Your Shopify Contribution Margin, Line by Line
Work ecommerce contribution margin on Shopify line by line: fees, returns, and discounts. Copy the spreadsheet-style calculator and see what's left.
Mark Cijo
Founder, GOSH Digital

Direct answer: Ecommerce contribution margin on Shopify is what's left after you take Shopify net sales and subtract the variable costs of filling those orders. That's COGS, card fees, shipping, and fulfillment. Discounts and returns already sit inside net sales. If you start from gross sales or from a ROAS screenshot, you're counting money that never hit the bank.
Most stores I look at know a gross margin. Fewer can tell me contribution after fees, returns, and discounts. That's the number that sets break-even ROAS and MER. Without it you're scaling ads on a guess.
This is a Shopify contribution margin calculator you can copy: line by line, with the reports to pull, and with every worked example labeled illustrative.
Last reviewed: November 14, 2026.
What is ecommerce contribution margin on Shopify?
Shopify's contribution margin guide defines it as sales minus the variable expenses of producing a product. Formula: (product revenue minus product variable costs) divided by product revenue. Shopify also notes that subtracting fixed costs (rent, salaries, equipment) from contribution margin is how you get to profit.
That definition is the right starting point. For a Shopify operator it is not the finish line.
Shopify's own sales reports already split revenue into pieces you should not mash together:
- Gross sales: product price times quantity, before taxes, shipping, discounts, and sales reversals.
- Discounts: dollar reductions from discount codes or automatic discounts, applied before tax. Compare-at price is not a discount in this report.
- Sales reversals: returned product value plus cancellations, edits, and other negative adjustments.
- Net sales: gross sales minus discounts minus sales reversals.
- Gross profit (in Shopify): net sales minus product cost, when you've recorded cost per item.
Shopify gross profit is not ecommerce contribution margin. It's net sales minus COGS. Card fees, pick and pack, outbound postage, and the extra cost of a return never show up on that line. If you stop there, paid media looks cheaper than it is.
Two versions of the number are useful. Keep them labeled so nobody mixes them:
- Contribution before ads. Net sales minus COGS, payment fees, and variable fulfillment. This is the input to break-even ROAS.
- Contribution after ads. The same number minus ad spend. This is what actually hit the account after you paid Meta and Google.
Agency reporting should show both. Platform ROAS shows neither.
How do you calculate Shopify contribution margin line by line?
Pull one period. A month is enough. Use the same date range in Shopify, your 3PL, and the ad accounts.
Then walk the lines in this order. Do not skip.
1. Gross sales. Shopify sales reports. This is the vanity top line.
2. Discounts. Same report. This is revenue you advertised and then gave away at checkout.
3. Sales reversals. Returns, refunds, cancellations. Shopify nets these into net sales. The warehouse still paid to ship the first order, and often pays to bring it back.
4. Net sales. Confirm it equals gross minus discounts minus reversals. If it doesn't, you're in the wrong report.
5. COGS. Product cost plus packaging. Shopify only does this cleanly if cost per item is filled in. If it isn't, you're guessing.
6. Payment fees. Shopify Payments card rate, or your processor's rate plus Shopify's third-party transaction fee. Per-order cents charges add up on low AOV.
7. Variable shipping and fulfillment. Outbound postage, pick and pack, packaging labor, and the portion of 3PL fees that moves with order count. Shipping you collected is a separate Shopify line. Shipping you paid is the cost.
8. Contribution before ads. Net sales minus lines 5 through 7.
9. Ad spend (optional next line). Paid media only, or fully loaded marketing, but pick one and write it on the sheet. Then you have contribution after ads.
Leave the Shopify plan fee, rent, salaries, and most apps out of this stack. Those are fixed (or close enough). They matter for operating profit. They do not belong in contribution margin. Mixing them in will make your break-even ROAS look worse than the unit economics of an extra order.
Where do Shopify fees sit in contribution margin?
Two different Shopify fees get treated as one. They aren't.
The plan fee is overhead. Basic, Grow, Advanced, and Plus are monthly (or annual) subscriptions. On Shopify's pricing page those list prices change with billing period. Treat the plan like rent. It does not move when you sell one more unit, so it stays out of contribution.
Card and transaction fees are variable. They fire on every paid order.
US Shopify Payments online standard card rates, as published on that same pricing page:
| Plan | Online standard cards | Third-party transaction fee |
|---|---|---|
| Basic | 2.9% + 30¢ | 2% |
| Grow | 2.7% + 30¢ | 1% |
| Advanced | 2.5% + 30¢ | 0.6% |
| Plus | 2.25% + 30¢ | 0.2% |
Premium cards and international cards cost more. PayPal Wallet is listed separately. In-person rates are different again. Rates also change by country. I am not going to pretend a UAE or UK store pays the US table. Check the pricing page for the market you're in, then put your blended rate on the sheet.
The third-party column is the trap. If you process on Stripe or PayPal instead of Shopify Payments, you pay that processor and Shopify's extra percentage. On Basic that's another 2% of the transaction. That is contribution walking out the door for no operational reason other than checkout setup.
Illustrative example (made-up round numbers, not a client result):
A $80 paid order on Grow, US standard card, Shopify Payments:
- 2.7% of $80 = $2.16
- plus $0.30 = $2.46 in fees
- 3.1% of the order, before COGS or postage
Same order on Basic with a third-party processor at 2.9% + 30¢ plus Shopify's 2% fee:
- processor: $2.32 + $0.30 = $2.62
- Shopify extra: $1.60
- $4.22 in fees, about 5.3% of the order
That gap is not theoretical. It's a line on the contribution sheet. If AOV is low, the 30¢ hurts more than the percent. If AOV is high, the percent dominates. Either way, pull payout fees from Shopify Payments (or your processor) for the same period. Don't type 3% because it "feels close."
How do returns change contribution margin?
A return hits you more than once. Shopify removes the product value from net sales through sales reversals. You still paid to pick, pack, and ship the first order. You often pay return postage. You inspect it. Sometimes you cannot resell it at the original price, or at all.
So a 10% return rate is not a 10% dent in contribution. It's 10% of revenue gone, plus the fulfillment you already spent, plus inbound, plus any markdown.
The National Retail Federation and Happy Returns estimated 19.3% of online sales returned in their 2025 Retail Returns Landscape report, versus 15.8% of all retail sales (online and in-store together). That survey is large US merchants, over $500 million in revenue, not a typical Shopify catalog. NRF press release. Shopify's own returns write-up repeats those figures and notes apparel and footwear run higher because fit is hard to judge on a screen. Shopify on ecommerce returns.
Use NRF as a sanity check, not as your number. Pull your return rate from Shopify: sales reversals divided by gross sales for the period. Then add the fulfillment cost you don't get back.
Illustrative example (made-up round numbers, not a client result):
- Order value: $100
- COGS: $32
- Outbound fulfillment: $9
- Payment fees: $3
- Customer returns it. You refund $100. Return shipping: $7. Item restocks.
Revenue from that order: $0.
Cash you already spent and don't recover: $9 + $3 + $7 = $19, plus whatever you lose if the unit is unsellable. The $32 COGS comes back only if you restock at full value. If you don't, that $32 is gone too.
That's why return policy and exchange-first flows are a margin tool, not a CX nice-to-have. An exchange keeps net sales. A refund deletes them.
Do not apply the NRF 19.3% to a food, supplement, or made-to-order catalog. Those return for different reasons and at different rates. Your Shopify report is the source of truth.
How do discounts change contribution margin?
A discount is a contribution decision you make before the carrier shows up.
Shopify counts it on the discounts line and already removes it from net sales. Gross sales of $100 with a 20% code is $80 of net (before any return). COGS, postage, and the 30¢ fee did not get 20% cheaper.
Illustrative example (made-up round numbers, not a client result):
| Full price | 20% off | |
|---|---|---|
| Gross sales | $100 | $100 |
| Discount | $0 | $20 |
| Net sales | $100 | $80 |
| COGS | $32 | $32 |
| Fees (illustrative) | $3.00 | $2.46 |
| Fulfillment | $9 | $9 |
| Contribution before ads | $56 | $36.54 |
| Contribution margin on net | 56% | 46% |
Same box. Same pick. Same label. Twenty dollars off the top, and contribution dropped by about $19 because fees moved a little and nothing else did.
Sitewide "20% off" is the expensive version of this. A dollar-off code on a high AOV cart, a free gift that costs $4 to include, or free shipping above a threshold that actually lifts AOV can be cheaper than a percent off everything. Work that math in Shopify discount strategy and free shipping thresholds. Don't argue about brand feel until you've put the discount on this sheet.
One more leak: if you pass gross or pre-discount value into ads, platform ROAS will look heroic on a week you bought the revenue with 25% off. Contribution will not.
How do you use a Shopify contribution margin calculator spreadsheet?
You don't need a SaaS tool. You need one tab, one month, and honest inputs.
Copy this. Replace every dollar figure. The figures below are illustrative, not a client result, not a benchmark, not "what we see."
| Line | Illustrative amount | Where it comes from |
|---|---|---|
| Gross sales | $100,000 | Shopify sales report |
| Discounts | ($10,000) | Shopify sales report |
| Sales reversals | ($8,000) | Shopify sales report |
| Net sales | $82,000 | Gross − discounts − reversals |
| COGS | ($30,000) | Cost per item × units, or your landed-cost sheet |
| Payment fees | ($2,500) | Shopify Payments / processor payouts |
| Variable shipping and fulfillment | ($8,000) | Carrier + 3PL variable, not shipping collected |
| Contribution before ads | $41,500 | |
| Contribution margin before ads (on net) | 50.6% | $41,500 / $82,000 |
| Contribution margin before ads (on gross) | 41.5% | $41,500 / $100,000 |
| Ad spend | ($18,000) | Ad accounts, same dates |
| Contribution after ads | $23,500 | |
| Contribution margin after ads (on net) | 28.7% | $23,500 / $82,000 |
Illustrative niche walkthrough (made-up round numbers, not a client result, not a benchmark, no brand names):
Same calculator. Two hypothetical catalogs. One is a $2M apparel brand running 20% off with high returns. The other is a supplement brand with low returns. Neither number below is a real result.
Apparel, 20% off, high returns. Sitewide 20% off is the discount table on every order: $100 of gross becomes $80 of net, COGS and postage stay put, and contribution on net drops from 56% to 46% in that illustrative $100 example. Apparel also sends more units back because fit is hard to judge on a screen. Shopify notes that; NRF's 19.3% online rate is a large-merchant sanity check, not this brand's number. Pull your reversals. Each return still costs the outbound you already paid, plus inbound. Stack 20% off and a return on the same order and you advertised a $100 unit, collected $80, then refunded it. Paid media ROAS on pre-discount revenue will look fine. Contribution will not.
Supplements, low returns. Consumables rarely come back the way a hoodie does. You may still discount, but you are not eating a second label on a large share of orders. Contribution before ads is mostly COGS, fees, and outbound. The break-even ROAS target is a different number than the apparel brand's, even if Ads Manager shows the same 3x.
Do not copy either implied margin. Run the table on your Shopify export. Niche changes which lines leak. It does not give you a category average.
A few rules so the calculator doesn't lie to you:
Pick a denominator and keep it. I use net sales, because that's the money Shopify says you sold after discounts and reversals. If you report margin on gross, you'll look healthier than the bank account. If you report it on total sales (which adds tax and shipping charged), you'll mix in money that isn't product revenue. Shopify's definition of total sales is gross minus discounts minus reversals, plus taxes, duties, shipping charges, and fees.
Don't double-count discounts and returns. Start from net sales, and those two are already out. Start from gross or from ads, and you must subtract them.
Don't use Shopify gross profit as the answer. That report stops at product cost. Fine as a SKU screen. Incomplete as contribution.
Split new vs returning if you can. Blended CAC vs new-customer CAC is the acquisition twin of this sheet. A fat blended contribution number can be returning customers covering expensive first orders.
Recalc when the offer mix changes. A BFCM month with twice the discount rate is a different business than January. Same store, different contribution. Your marketing budget should move with that, not with last year's percentage of revenue.
If you want this built on your actual Shopify export, that's the spreadsheet / audit offer at the end. I'm not going to email you a locked Google Sheet of fake benchmarks.
What's a good contribution margin for a Shopify store?
Shopify's own guide says the closer to 100% the better, and that most businesses sit well below that, "probably below 50%," because contribution has to cover overhead. Shopify. That's the only "good" range I'm willing to repeat, because it's their language, not a made-up industry table.
I will not give you fashion at 55 to 65% and beauty at 70% and pretend those are measurements. Your COGS, your return rate, your AOV, and your discount habit set the number. Two apparel stores can be miles apart if one is private label with a tight size guide and the other is wholesale with free returns both ways.
What you can say with a straight face:
- If contribution before ads is thin, paid media has to print a high ROAS just to stand still. The break-even formula does not care that a 3x "feels good."
- If discounts and returns are the reason the margin is thin, buying more traffic will not fix it. Fix the offer and the return reasons first.
- If contribution before ads is healthy and contribution after ads is not, you have a media or mix problem, not a product-cost problem.
- Retention revenue (email and SMS, repeat orders) usually carries higher contribution than discounted first purchases, because you skip a chunk of CAC. That's why email and SMS belongs on the same scoreboard as ads. One men's health brand generated $22.3M in email revenue over 31 months. That is email revenue, not a contribution-margin case study.
Human Marketing's MER examples make the same point from the other side: a store keeping 40% before ads breaks even near 2.5 MER; 25% before ads needs about 4.0. Human. Bloom's version: 50% before ads breaks even at MER 2.0; 30% needs about 3.3. Bloom. Those are their worked examples, not GOSH results.
How does contribution margin connect to break-even ROAS and MER?
Once you trust contribution before ads, break-even ROAS is not a debate.
Break-even ROAS = 1 / contribution margin before ads
In the illustrative sheet above, 50.6% before ads implies about 2.0x against net sales. A 2.0x ROAS on platform-attributed gross is not the same test. Align the revenue definition or you'll "hit break-even" in Ads Manager and miss it in Shopify.
MER is total store revenue divided by total ad spend. It ignores which platform claimed the click. Use MER with this contribution number when you decide whether the mix is profitable. Use channel ROAS when you decide which campaign to cut. The full walk is in break-even ROAS and MER. Budget sizing from a revenue goal is in the paid media budget calculator.
If contribution before ads moves, your targets move. Supplier price up, carrier rates up, a new 15% sitewide habit: the old 2.5x target is now fiction. Recalculate on a calendar, not when someone panics.
Frequently asked questions
What is ecommerce contribution margin on Shopify?
Ecommerce contribution margin on Shopify is the money left after you take net sales and subtract the variable costs of filling those orders: COGS, payment processing fees, shipping, and fulfillment. Shopify defines contribution margin as sales minus the variable expenses of producing the product. Shopify net sales already subtracts discounts and sales reversals, so those two leaks are in the starting number if you begin from net sales rather than gross.
How do you calculate Shopify contribution margin?
Start with Shopify net sales (gross sales minus discounts minus sales reversals). Subtract COGS, card and transaction fees, and variable shipping and fulfillment. Divide what's left by net sales. That is contribution margin before ads. Subtract ad spend only if you want contribution after ads. Keep one definition and do not mix gross sales, net sales, and platform-attributed revenue in the same formula.
Do Shopify fees go into contribution margin?
Variable payment fees do. On Shopify Payments in the US, online standard card rates are a percent plus a per-order cents charge, and they change by plan. If you use a third-party processor, Shopify also adds its own transaction fee on top of that processor's rate. The monthly Shopify plan fee is a fixed cost, so it belongs with overhead, not in contribution margin. Confirm current rates on Shopify's pricing page, because they vary by country and card type.
How do returns and discounts change contribution margin?
Discounts reduce the revenue you collect before a product even ships. Returns reverse revenue after the fact and add return shipping, labor, and often a product you cannot resell at full price. Shopify net sales already nets discounts and sales reversals out of gross. If you still run contribution off gross sales or off ad-attributed revenue, you are counting dollars that discounts and refunds already removed.
Is there a Shopify contribution margin calculator I can copy?
Yes. Build a one-period spreadsheet with gross sales, discounts, sales reversals, net sales, COGS, payment fees, variable shipping and fulfillment, then contribution before ads and after ads. The table in this post is that calculator. Every dollar figure in it is illustrative, not a client result. Paste it into Sheets, replace the numbers with your Shopify reports, and keep the formulas.
What's a good contribution margin for a Shopify store?
There is no universal good number. Shopify's contribution margin guide says the closer the ratio is to 100% the better, and that most businesses sit well below that, often below 50%, because the ratio has to cover fixed costs. Your floor is whatever still funds overhead and leaves a break-even ROAS you can actually hit. Recalculate from your cost stack instead of borrowing a category average.
What should you do with the number?
Build the sheet this week. One month. Shopify net sales, fees, COGS, fulfillment, then ads.
If the contribution margin before ads makes your current ROAS target look impossible, believe the sheet. Cut the discount, fix the return reasons, or raise price. Buying more clicks will not invent margin.
If you want a second set of eyes, we'll build the contribution margin spreadsheet with you and audit the leaks (fees, returns, discounts, and the ROAS target sitting on top). GOSH Digital is a Klaviyo Gold Partner, founded in 2021, headquartered in Dubai. 150+ clients. $70M+ revenue driven. $23M+ ad spend managed. 100+ flows built. Services from $1,500/mo.
Book a call. Bring last month's Shopify sales report and a payout export. We'll tell you what your contribution actually is, and whether the ad account is using that number.
Sources:
- Shopify: contribution margin: sales minus variable expenses of producing the product
- Shopify sales report terms: net sales = gross sales minus discounts minus sales reversals; gross profit = net sales minus product cost
- Shopify pricing: US Shopify Payments online standard card rates and third-party transaction fees by plan
- NRF / Happy Returns, 2025 Retail Returns Landscape: estimated 19.3% of online sales returned; 15.8% of all retail sales
- Shopify: ecommerce returns: repeats the NRF figures; apparel and footwear return more often because of fit
- Human Marketing: MER: break-even MER from contribution before ads
- Bloom Analytics: MER: worked MER examples at different margins
Related reading:
- Break-Even ROAS & MER: Know Your Real Profit Line
- What Good Ecommerce Agency Reporting Looks Like
- Blended CAC vs New-Customer CAC (aMER)
- Shopify Discount Strategy Without Destroying Margins
- Your Return Policy Is a Marketing Tool
- Paid Media Budget Calculator
- How to Allocate Your eCommerce Marketing Budget

Written by Mark Cijo
Founder of GOSH Digital. Klaviyo Gold Partner. Helping eCommerce brands grow revenue through data-driven marketing.
Book a free strategy call →

