AI Blocks › Run your online store
Store profit margin calculator
Run it on your orders. Get true profit per order and product after cost, shipping, fees, discounts, refunds and tax.
Store profit margin calculator is a free AI skill for the job "Run your online store". Give the instructions to an AI assistant that supports the required files and tools, then review its output.
Free · No account · MIT licence · Made by 40rty AI · Level: advanced
Made by 40rty AI. See the original on GitHub; we copied it as it is, with its licence.
What it does
The profit you really keep on each order and each product, not just sales. It starts from revenue and takes off product cost, shipping, payment fees, discounts, refunds and tax, so a best seller that loses money no longer hides. You pick a look-back period, 30 days by default, and group results by order, product or variant. A minimum order count keeps one-off sales from skewing the list. It reads your Shopify orders and product costs, so accuracy depends on unit costs being filled in. Products with missing costs are called out. Nothing in your store is changed, so you can run it any time.
You give it
- Your Shopify store link and read access
- Look-back period in days (optional)
- How to group results (optional)
- Unit costs filled in on products
You get
- Net profit and margin per order
- Net profit and margin per product
- A split of costs and fees
- A list of loss-making products
- Products with missing costs flagged
Use it when
- Sales look healthy but your bank balance does not.
- You run frequent discounts and want to know which still make money.
- You want to drop products that cost more to sell than they earn.
- Your accountant asks for margin by product.
How to use it
- Add it to your AI once: download it and add the folder to Claude, ChatGPT or Codex as a skill.
- Ask for the job in your own words. Your AI opens the skill when it fits.
- It works best when your AI can access your Shopify admin.