Short answer: Shopify already calculates gross profit for you: net sales minus the cost of the products you sold. You’ll find it in the profit reports under Analytics > Reports, and in the Gross profit breakdown of the Finance summary. Gross profit isn’t the same as net profit, for two reasons. Shopify counts only sales of products that had a cost recorded when the order was placed. And gross profit is net sales minus product cost, so payment processing fees, app charges and ad spend aren’t part of it. To get net profit, add a cost to every product, read the gross profit report, then subtract the costs Shopify doesn’t see.
AfterAds, our Shopify app, does that last step for you: it takes the figures Shopify already reports, subtracts the costs Shopify doesn’t know about, and shows what is left, per day and per ad channel. See AfterAds on the Shopify App Store.
Step 1: Add a cost per item to every product
Shopify can only calculate profit for products it knows the cost of. The cost per item is, in Shopify’s words, how much it costs you for the product or variant. To add it:
- In your Shopify admin, go to Products and click a product.
- In the Price section, click Cost per item.
- Enter the cost and click Save.
If a product has variants, each variant needs its own cost. For many products at once, use the bulk editor or a product CSV, where the column is called Cost per item. Our guide to bulk editing products in Shopify shows how both work. Once a cost is set, Shopify shows the projected profit and margin in the product’s Price section.
Timing matters. Shopify records the cost on an order when the order is created, and a new cost isn’t applied to orders created before the change. So a cost you add today won’t fix last month’s report. For where your costs show up and how to fill in the ones that are missing, see our guide to Shopify cost per item.
Step 2: Read Shopify’s profit reports
Shopify’s profit reports work from net sales and the costs it has on record:
| Report | What it shows |
|---|---|
| Gross profit by product | Gross profit for each product that had a cost recorded at the time of sale. |
| Gross profit by product variant | The same, for each variant. |
| Profit margin by order | Profit margin for every order in the period you choose. |
| Average profit margin by market | Profit figures for each market, compared with your domestic market. |
| Gross profit by POS location | Gross profit for each point of sale location. |
Shopify calculates profit by subtracting the cost from net sales, and margin as ([net sales − cost] ÷ net sales) × 100. Discounts and refunds affect net sales and profit margin. The order and market reports also count shipping costs, duties and import taxes paid by your store.
The Finance summary has a Gross profit breakdown card with the same logic. It splits net sales into sales with a cost recorded and sales without one, and only the first part counts toward cost of goods sold and gross profit.
What Shopify’s profit reports leave out
- Sales without a cost. Orders for products that had no cost recorded at the time of sale are left out of the gross profit reports. If many products have no cost, your report covers only part of your sales.
- Payment processing fees. They aren’t part of gross profit. If you use Shopify Payments, fees are in a separate Shopify Payments report, together with reserves and payouts.
- Your Shopify bills and fees. They’re in the Bills section of your Billing page, not in gross profit.
- Ad spend. What you pay Meta, Google or TikTok isn’t part of Shopify’s gross profit calculation.
- Your other expenses. Packaging, tools, freelancers or rent are outside Shopify unless you track them yourself.
Our guide on how to see Shopify fees shows where to find payment fees, transaction fees and app charges, and how to get a total for a month or a year.
The formula: from net sales to net profit
Start from net sales and subtract every cost of running the store:
Net profit = net sales − product costs − shipping you paid − payment fees − ad spend − apps and other expenses
Taxes you collect aren’t your money, so leave them out of sales. Here’s an illustrative example for one month, with made-up round numbers:
| Line | Amount |
|---|---|
| Net sales | $10,000 |
| Product costs | − $4,000 |
| Gross profit (what Shopify’s report shows) | $6,000 |
| Shipping you paid | − $800 |
| Payment processing fees | − $300 |
| Ad spend | − $2,500 |
| Apps and other expenses | − $400 |
| Net profit | $2,000 |
In this example, the gross profit report would show $6,000, while the store kept $2,000. Ad spend is the largest gap, which is why it’s worth checking channel by channel. To run the same numbers for your own store, use our Shopify profit calculator.
ROAS and break-even ROAS
ROAS (return on ad spend) is the sales from your ads divided by what you spent on them. For example, $7,500 of sales from $2,500 of ad spend is a ROAS of 3.
A ROAS above 1 doesn’t by itself mean an ad made money, because each sale still carries its own costs. Break-even ROAS is the ROAS at which the profit on the sales just pays for the ads: 1 ÷ your contribution margin, meaning what’s left of net sales after product cost, shipping and payment fees. In the example above, those costs take $5,100 of $10,000, leaving a 49% contribution margin, so break-even ROAS is 1 ÷ 0.49 ≈ 2.04. Using the 60% gross margin instead would give 1.67 and make ads look profitable sooner than they are.
Two cautions. Which sales count as “from your ads” depends on the attribution model, and an ad platform’s own figure can differ from the orders Shopify matched to that channel. And spend that matches no order is still spend: leave it in your totals.
See your profit after ads, every day
AfterAds is our Shopify app. It shows your profit line by line: net sales, then product cost, shipping, payment fees, ad spend and your own expenses, down to net profit. Taxes and duties are never counted as revenue. It lists products that sold without a cost, so you can enter costs one by one or paste them from a spreadsheet, and save them back to Shopify if you want.
For ads, it uses the spend your channels report to Shopify, Shop Campaigns spend and spend you enter yourself, matched to orders with Shopify’s own attribution. For each channel you see the spend, the orders Shopify matched, ROAS against its own break-even, and profit after ads, plus the platform’s own purchase count when the channel reports one. When you connect an ad account, AfterAds only reads it and never creates, changes or pauses a campaign, ad, budget or bid.
Sources
All sources were opened on November 26, 2026.
- Shopify Help Center, Profit reports
- Shopify Help Center, Finance reports
- Shopify Help Center, Adding cost per item to products