Gross Margin vs Contribution Margin vs Net Profit for Online Stores
Gross margin prices your products, contribution margin sets your ad budget, and net profit tells you whether the store works. A worked three-product example shows how the rankings flip.
On this page
Gross margin tells you how much of a sale is left after the product itself. Contribution margin tells you what is left after every cost that comes with each order: shipping, packaging, payment fees and returns. Net profit is what remains after ads and fixed costs too. Use gross margin to price products, contribution margin to decide how much you can spend on ads, and net profit to judge whether the business works.
The three numbers can rank the same products in opposite order. Below, a hypothetical three-product store shows a 68% gross margin and still loses money every month. We walk through why, line by line.
The three margins in one line each
| Measure | Formula | What it answers |
|---|---|---|
| Gross margin | (Net sales minus cost of goods sold) / net sales | Is the product priced well against what it costs to buy or make? |
| Contribution margin | (Net sales minus all variable costs) / net sales | How much does each order leave to pay for ads and overheads? |
| Net profit margin | (Contribution minus ads minus fixed costs) / net sales | Does the whole store make money? |
The gross margin formula is the one accounting textbooks use. OpenStax’s financial accounting text defines gross margin as net sales minus cost of goods sold, and the gross profit margin ratio as that amount divided by net sales. Its managerial accounting text defines contribution margin as the amount by which selling price exceeds total variable cost per unit, and the contribution margin ratio as contribution per unit divided by price.
The key word is variable. A variable cost rises with every order you ship. A fixed cost stays the same whether you ship 50 orders or 500. That split is what separates the second number from the third.
What goes into each layer for an online store
Cost of goods sold (for gross margin)
This is what the product costs you. For goods you resell, Shopify’s Help Center describes cost per item as the manufacturer price, excluding taxes, shipping and other costs. For goods you make, it is based on labour and materials. Many stores also include inbound freight and duties in a landed cost. Whatever you choose, apply it the same way to every product so the margins compare fairly.
Variable costs per order (for contribution margin)
- Outbound shipping labels you pay for, including on “free shipping” orders
- Packaging, inserts and fulfillment fees per order
- Payment processing fees. On Shopify’s US Basic plan, the standard online card rate is 2.9% plus 30 cents, checked October 19, 2026. The pricing page also lists a higher premium card rate of 3.5% plus 30 cents and adds 1% for international cards.
- Shopify’s third-party transaction fee if you use another payment provider: 2% on Basic, 1% on Grow, 0.6% on Advanced
- Returns, refunds and damaged goods, as a percentage allowance
- Usage-based app fees or marketplace fees charged per order
Some operators also treat advertising as a variable cost, because spend tends to rise with orders. In this guide we keep ads as a separate line, so you can see the margin available before you spend anything on acquisition. That number is the one your ad budget has to fit inside.
Fixed costs (for net profit)
Your Shopify subscription, flat-fee apps, an email tool, bookkeeping, salaries and rent. These do not change with each order. We stop at operating profit before interest and income tax, because tax depends on where and how your business is set up.
A worked example: one store, three products
Here is a hypothetical US store on Shopify Basic using Shopify Payments at the standard 2.9% plus 30 cent rate. It sells a scented candle, a mug set and a leather wallet, all with free shipping. Prices, product costs, shipping, packaging, return rates and ad cost per order are illustrative assumptions, not benchmarks. The payment fee is the only published rate in the table.
| Per order | Scented candle | Mug set | Leather wallet |
|---|---|---|---|
| Price | $28.00 | $48.00 | $65.00 |
| Product cost | -$7.00 | -$16.00 | -$26.00 |
| Gross profit (gross margin) | $21.00 (75.0%) | $32.00 (66.7%) | $39.00 (60.0%) |
| Packaging | -$2.20 | -$2.50 | -$1.20 |
| Shipping label | -$9.50 | -$11.80 | -$4.60 |
| Payment fee (2.9% + $0.30) | -$1.11 | -$1.69 | -$2.19 |
| Returns allowance | -$1.68 (6%) | -$2.40 (5%) | -$1.95 (3%) |
| Contribution (contribution margin) | $6.51 (23.3%) | $13.61 (28.4%) | $29.06 (44.7%) |
| Ad cost per order | -$11.00 | -$15.00 | -$16.00 |
| Left after ads | -$4.49 (-16.0%) | -$1.39 (-2.9%) | $13.06 (20.1%) |
Look at the ranking. By gross margin the candle is the star at 75%, and the wallet is last at 60%. By contribution margin the order flips completely. The candle is light on product cost but heavy, fragile and cheap, so shipping and packaging eat most of what gross margin promised. The wallet costs more to buy but ships in a small envelope, so most of its gross profit survives.

Which margin should decide your ad spend
Contribution margin. It is the most you can pay to win an order before that order loses money. In dollars, that is your break-even cost per acquisition. As a ratio, break-even ROAS is price divided by contribution. Our break-even ROAS guide covers the formula in detail; here is what it says for these three products.
| Product | Break-even ROAS if you wrongly use gross margin | Real break-even ROAS (contribution) | ROAS the ads achieve | Verdict |
|---|---|---|---|---|
| Scented candle | 1.33 | 4.30 | 2.55 | Loses $4.49 per order |
| Mug set | 1.50 | 3.53 | 3.20 | Loses $1.39 per order |
| Leather wallet | 1.67 | 2.24 | 4.06 | Makes $13.06 per order |
An owner using gross margin would see a 2.55 ROAS on candles, compare it with a 1.33 break-even and scale the campaign. Every extra candle sold that way loses money. The mug set looks healthy at 3.20 and is still just under water. Only the wallet, the product with the lowest gross margin, actually pays for its ads.
This is why ad platform profit reports need care. Google Ads can report gross profit for conversions with cart data, but it builds that figure from the cost of goods sold you submit in your Merchant Center feed. Google’s Merchant Center Help describes the cost_of_goods_sold attribute as an optional, rough estimate used to calculate estimated gross profit. That is gross profit, not contribution. Shipping, fees and returns are not in it unless you have built them into the number you send, so a “profitable” campaign in that report can still lose money at the contribution level.
The monthly picture: a 68% gross margin that loses money
Now add volume and fixed costs. Say the store sells 300 candles, 120 mug sets and 90 wallets in a month. Fixed costs are $1,135: Shopify Basic at $39 billed monthly (the published US price on October 19, 2026), $146 of apps and an email tool, $150 of bookkeeping and $800 of part-time packing help. Everything except the Shopify price is an assumption.
| Monthly line | Amount | Share of revenue |
|---|---|---|
| Revenue | $20,010.00 | 100% |
| Cost of goods sold | -$6,360.00 | |
| Gross profit | $13,650.00 | 68.2% |
| Packaging, shipping, payment fees, returns | -$7,448.40 | |
| Contribution | $6,201.60 | 31.0% |
| Advertising | -$6,540.00 | |
| Left after ads | -$338.40 | -1.7% |
| Fixed costs | -$1,135.00 | |
| Net operating profit | -$1,473.40 | -7.4% |

Variable costs after the product take $7,448, more than the product itself. Ads then take more than the contribution that is left. Fixed costs push the month to a loss of about $1,473 on $20,000 in sales. Nothing in the gross margin line would warn you.
What changes when you manage by contribution
Suppose the owner acts on the contribution numbers. These changes are hypothetical and their effects on volume and ad cost are assumptions, shown only to illustrate the method:
- Sell candles only as a $52 two-pack. Product cost $14, packaging $2.80, shipping $10.60, the same 6% returns, payment fee $1.81. Contribution rises to $19.67 per order. Assume ad cost of $13 per order and 160 orders.
- Narrow mug set targeting so ad cost drops to $12 per order, accepting fewer sales: 95 instead of 120.
- Leave the wallet alone.
Revenue falls 6.4% to $18,730. Gross margin barely moves, from 68.2% to 67.4%. But contribution margin rises from 31.0% to 37.7%, ad spend drops to $4,660, and the month turns from a $1,473.40 loss into a $1,260.55 profit, a 6.7% net margin. The store sold less and earned more, and only contribution margin would have pointed to where to act.
How discounts hit each margin differently
A discount comes straight off the price, while shipping and packaging stay the same. That makes it far more damaging to contribution than to gross margin. Here is a 20% sitewide discount on the same three products, before ads.
| Product | Gross margin, full price | Gross margin, 20% off | Contribution, full price | Contribution, 20% off | Drop in contribution |
|---|---|---|---|---|---|
| Scented candle | 75.0% | 68.8% | $6.51 | $1.41 | 78.3% |
| Mug set | 66.7% | 58.3% | $13.61 | $4.77 | 65.0% |
| Leather wallet | 60.0% | 50.0% | $29.06 | $16.83 | 42.1% |
Gross margin on the candle slips about 6 points and still looks fine. Contribution per candle falls by more than three quarters. If you run a sale, you would need roughly 4.6 times as many candle orders just to keep the same total contribution, and that is before any ad cost. Shopify’s own reports show the gross side of this: its Help Center example is a $20 T-shirt with a $10 cost that shows a 50% margin on the product page but 33% in the Gross profit by product report after a 25% discount.
Finding these numbers in Shopify
Checked October 19, 2026. In your Shopify admin, go to Analytics > Reports and filter by the Profit margin category. The profit reports include Gross profit by product, Gross profit by product variant, Profit margin by order and Average profit margin by market.
- Gross profit by product gives you gross margin, calculated as (net sales minus cost) divided by net sales. It only works for products with a cost per item recorded at the time of sale. If orders are missing, check that those variants have a cost.
- Profit margin by order and Average profit margin by market also bring in shipping charges, duties and import taxes, along with the shipping and duty costs your store pays. That gets you closer to contribution.
- The Help Center page does not list payment processing fees, packaging or a returns allowance among the costs in these reports. Add them yourself in a spreadsheet using your payout reports and invoices.
Cost per item is a static value, so update it when your supplier price changes. Otherwise every margin report quietly drifts. For a full picture of what Shopify itself charges, see our Shopify fees explained guide.
Common mistakes
- Setting ad targets from gross margin. It overstates what you can afford per order. In our example the gross-margin break-even ROAS is 1.3 to 3.2 times too low.
- Using one store-wide margin. Blended numbers hide products like the candle that lose money on every ad-driven sale.
- Treating free shipping as free. The label still costs you; it belongs in contribution.
- Leaving out returns. A refunded order still used shipping, packaging and ad spend.
- Calling contribution “profit”. Fixed costs still have to come out of it, as the $1,135 in our example shows.
- Letting cost per item go stale after a supplier price rise.
What you should check next
- Confirm every active product has a current cost per item in Shopify.
- For your top five products, list shipping, packaging, payment fee and a return allowance per order, and calculate contribution in dollars.
- Compare each product’s contribution with what you actually pay per order in ads. Any product where ad cost is higher is losing money on paid sales.
- Add up monthly fixed costs and check how many orders it takes to cover them at your average contribution after ads.
- If ad costs have been rising, read why Facebook ads get more expensive before raising budgets.
Frequently asked questions
Is contribution margin the same as operating margin?
No. Contribution margin is before fixed costs. Operating margin is after both variable and fixed operating costs, which is what we call net operating profit in the example.
What is a good contribution margin for an online store?
There is no single answer, because it depends on how much you spend to win each order. A useful test is whether contribution per order is comfortably above your cost per acquisition, with enough left over to cover fixed costs at your normal volume.
Should advertising be inside contribution margin?
Both conventions exist. Keeping ads out, as here, shows the ceiling for ad spend. Some operators calculate a second figure after ads. Just label which one you are using, and never compare one with the other.
Do I need accounting software to do this?
Not at first. A spreadsheet with one row per product and columns for each cost in the worked example is enough. Accounting software matters more when you need accurate fixed costs and tax reporting.
Why does my Shopify gross profit differ from my own sheet?
Shopify only counts products that had a cost recorded at the time of sale, and its cost per item is a fixed value you entered. Discounts and refunds also reduce net sales, which lowers reported margin.
The takeaway
Gross margin is a pricing check. Contribution margin is the budget for winning each order. Net profit is the verdict. If you only track one, track contribution per product in dollars, because it is the number your ad spend has to fit inside.
Sources
- Shopify Help Center, “Profit reports” (report list, gross margin formula, cost per item, missing cost data, discount example), checked October 19, 2026. help.shopify.com
- Shopify, Pricing (US plan prices, online card rates, third-party transaction fees), checked October 19, 2026. shopify.com/pricing
- OpenStax, Principles of Accounting, Volume 1: Financial Accounting, section 6.6 (multi-step income statement, gross margin, gross profit margin ratio). openstax.org
- OpenStax, Principles of Accounting, Volume 2: Managerial Accounting, section 3.1 (contribution margin, contribution margin ratio, fixed and variable costs). openstax.org
- Google Ads Help, “About conversions with cart data” (gross profit reporting uses COGS from Merchant Center). support.google.com
- Google Merchant Center Help, “Cost of goods (cogs) [cost_of_goods_sold]”. support.google.com
Last reviewed: October 19, 2026. Shopify prices and card rates are the published US figures on that date and change from time to time.
How this article was made: researched and drafted with AI assistance, with every factual claim checked against the sources above. The three-product store, its costs, volumes, ad costs and the improvement scenario are hypothetical models built on stated assumptions, not data from a real store.



