Contribution Margin for E-commerce: Spend on Profit, Not Revenue
Contribution margin is what an order earns after product, shipping, fees and returns. Use it to set break-even ROAS and ad targets instead of borrowing industry benchmarks.
Contribution margin in e-commerce is what an order actually earns after you subtract every cost that comes with it: product, shipping, packaging, fulfillment, payment fees, returns and the ad spend it took to get it. It's the number to run ads on. Revenue tells you how busy you are. Contribution margin tells you whether being busy is making you money.
Here's why it matters. A store can post a 3x ROAS, celebrate, and still lose money on every new customer. That happens when the costs between revenue and profit are bigger than anyone wrote down, or when the ROAS number is quietly inflated by sales the ads didn't cause.
This post gives you a worksheet, where to pull each number, the break-even ROAS formula and what moves it, a worked example of blended ROAS lying to you, a rule for setting ad targets from your own margin, the ways margin math goes wrong and a template you can copy.
Key takeaways
- Count every variable cost. Product, shipping, packaging, fulfillment, payment fees, returns and discounts all come out before ads.
- Break-even ROAS is one division. Divide order revenue by contribution before ads and you know the lowest ROAS that doesn't lose money.
- Blended ROAS hides problems. Returning customer revenue can make ads look profitable while new customers cost more than they earn.
- Set targets from your margin. Your ceiling on new-customer cost comes from your numbers, not an industry ROAS figure.
What goes into contribution margin?
Start with one average order and walk it down, line by line. Here's a worksheet with example numbers. Every figure is an assumption, so swap in your own from your store, your 3PL invoices and your payment processor statements:
| Line | Example (assumptions) | Running total |
|---|---|---|
| Net revenue per order (after discounts) | $80 | $80 |
| Product cost (COGS, landed) | minus $24 | $56 |
| Shipping and packaging | minus $12 | $44 |
| Pick, pack and fulfillment | minus $4 | $40 |
| Payment processing (assumed 2.5%) | minus $2 | $38 |
| Returns and refunds allowance (assumed 7.5%) | minus $6 | $32 |
| Contribution before ads | $32 (40%) | |
| Ad cost per order | minus your number | what's left |
The three layers
A common way to split it is in three layers. Each answers a different question, so know which one you're looking at before you make a call with it.
| Layer | What comes out | Example | What it's for |
|---|---|---|---|
| After product | Landed product cost | $56 (70%) | Pricing and supplier talks |
| After fulfillment and fees | Shipping, packaging, fulfillment, payment fees, returns | $32 (40%) | Setting ad targets and break-even ROAS |
| After marketing | Ad spend and other per-order marketing costs | $32 minus ad cost per order | Checking whether the targets held |
The middle one is the number you'll use most. When someone on the team says "margin," ask which layer they mean. Half of all margin arguments are two people using different layers.
The lines people skip
Landed product cost includes freight and duties, not just the factory price. Free shipping isn't free, it moved from the customer to your margin. Returns cost you the refund, the return label and sometimes the product itself if it can't be resold. And discounts belong at the top, because a $100 order with a 20% code is an $80 order.
Fixed costs like salaries, software and rent stay out of this. They matter for overall profit, but they don't change when you get one more order, so they don't belong in the per-order math that drives ad decisions.
Where do you pull each number?
Most of these numbers already exist. They just live in five different places. Here's the procedure I'd follow to fill the worksheet for the last 90 days.
- Net revenue per order. From Shopify's order export: gross sales minus discounts minus refunds, excluding tax and shipping charged, divided by orders.
- Landed product cost. From the cost field on each product in Shopify, if it's maintained, or from your purchase orders. Add freight in and duties, spread across units received.
- Shipping and packaging. From your carrier or 3PL invoices for the same period, divided by orders shipped. Add boxes, mailers and inserts.
- Fulfillment. From 3PL pick and pack fees, or from warehouse hours times wage if you ship yourself.
- Payment fees. From your payment processor statements: total fees divided by orders. Don't guess a percentage when the statement has the real one.
- Returns allowance. Refunds issued plus return labels plus written-off product, divided by all orders in the period.
- Discounts. Already out of net revenue, but list the share of orders that used a code. You'll need it for the failure checks below.
- Write down the date range and source for every line, so next quarter's refresh compares like with like.
How do you find break-even ROAS?
Break-even ROAS is the return on ad spend where an order exactly covers its ad cost and nothing more. The formula is one division:
Break-even ROAS = net revenue per order ÷ contribution before ads
In the worksheet above, that's $80 ÷ $32, or 2.5. Below a 2.5 ROAS you lose money on each order the ads bring in. Above it you make money, before fixed costs. Another way to say the same thing: you can spend up to $32 in ads to get this order and still break even.
What moves break-even ROAS?
Some of the best "ad optimizations" never touch the ad account. Here's the same order with one line changed at a time. Every change is an assumption.


| Change | Net revenue | Contribution before ads | Break-even ROAS |
|---|---|---|---|
| Base case | $80 | $32 | 2.5 |
| Shipping cost cut by $4 | $80 | $36 | About 2.2 |
| Bundle adds a $15 accessory that costs $5, same box | $95 | About $40.50 | About 2.35 |
| Return rate rises from 7.5% to 12% | $80 | About $28.40 | About 2.8 |
| 15% sitewide discount on an $80 list price | $68 | About $21.20 | About 3.2 |
Read the last row twice. A 15% discount doesn't cost 15% of your margin. On these numbers it costs about a third of it, because product, shipping and fulfillment don't get cheaper when the price drops. That's why a promo week can show record revenue and lose money.
Why does blended ROAS mislead?
Blended ROAS is total store revenue divided by total ad spend. It's popular because it's simple and it sidesteps platform attribution fights. But it mixes two very different kinds of revenue: orders from new customers your ads went out and found, and orders from returning customers who would have bought anyway.


That might still be a fine trade. If your repeat purchase rate by cohort shows those customers come back and earn more than $8 within a few months, you're buying future profit on purpose. The problem is when nobody knows that's the trade being made, because the dashboard said 3.5.
How do you split new and returning revenue?
Two habits fix this. First, track new-customer revenue and cost per new customer as their own numbers every week, straight from your store data. Shopify's reports can split sales by new and returning customers, though report names change, so check the current docs. Divide total ad spend by new customers, not by all orders.
Second, check whether ads are causing sales at all. Platform-reported conversions overlap and over-count, so the more honest answer comes from holdouts and geo tests, covered in incrementality testing for ad spend.
How should you set ad targets from margin?
Here's my position: stop borrowing ROAS targets from benchmarks, podcasts or what your last agency used. A "good ROAS" for a brand with 70% gross margin and cheap shipping is a disaster for a brand with 40% margin and heavy packaging. The only target that makes sense is the one your own margin produces.
Build the target in three steps:
- First-order contribution. From the worksheet: $32 before ads in this example.
- Expected repeat contribution in your payback window. Pull this from your cohort data, not a guess. Say your data shows customers earn another $18 of contribution in their first six months.
- Your margin of safety. Pick a buffer. Here, cap new-customer cost at $45 instead of the full $50, because repeat contribution is an average and cash today beats cash in month five.
That $45 is your ceiling on customer acquisition cost for new customers. Translate it back into the language the ad platforms speak: $80 ÷ $45 is a new-customer ROAS target of about 1.8. That's lower than most benchmark numbers people quote, and in this example it's the right number. A brand chasing a 4x target here would leave profitable customers on the table and grow slower than a competitor who did the math.
The flip side matters as much. If your repeat data is thin, your target is your first-order break-even, full stop. Don't fund acquisition on repeat purchases you hope will happen. The time it takes repeat contribution to cover the gap is your CAC payback period, and it should fit inside your cash cycle.
Set targets by margin tier, not one number
SKUs differ, so one target for the whole catalog overfunds some products and starves others. Group products into tiers by contribution before ads and give each tier its own target. The numbers below are assumptions on an $80 order.
| Tier | Contribution before ads | Break-even ROAS | How hard to advertise |
|---|---|---|---|
| A | 50% ($40) | 2.0 | Lead products for prospecting campaigns |
| B | 40% ($32) | 2.5 | Advertise with tighter targets |
| C | 25% ($20) | 4.0 | Retargeting, bundles or no ads at all |
Once the targets exist, they should shape how your campaigns are built and budgeted, which is the subject of e-commerce ad account structure.
What does a weekly contribution report look like?
Keep it to one screen. These are the lines I'd review every Monday:
- Orders, split into new and returning customers
- Net revenue after discounts and refunds
- Contribution before ads, total and per order
- Total ad spend
- Cost per new customer, compared to your ceiling
- Contribution after ads, total
- Top five SKUs by contribution, not revenue
That last line catches a common surprise. Your best seller by revenue is sometimes your worst by contribution, because it's heavy to ship, gets returned more or always sells on discount. Ads tend to push whatever converts best, so without this view the platform can happily scale your least profitable product.
Where does margin math usually go wrong?
Each of these has a symptom you can spot in the weekly report, a cause and a check that catches it early.
Gross margin used as contribution margin
The symptom is ads that look profitable on paper while cash in the bank keeps shrinking. The cause is stopping after product cost, so shipping, fees and returns never come out. The early check is asking which layer every margin number in a deck or dashboard uses.
A free shipping threshold set by feel
The symptom is a cluster of orders just over the threshold with thin or negative contribution. The cause is a threshold below the order size where shipping is covered. The early check is running the worksheet on an order sitting exactly at the threshold.
Discounts that stack
The symptom is orders in your export with two or three codes or a sale price plus a code. The cause is a sitewide sale, a welcome code and a bundle discount that all apply at once. The early check is pulling your top ten discount combinations each month and running each through the worksheet.
One margin for the whole catalog
The symptom is a best seller by revenue that barely shows up in the top five by contribution. The cause is a blended margin that hides heavy, fragile or often-returned SKUs. The early check is the tier table above, refreshed quarterly.
Numbers from last year
The symptom is a worksheet that no longer matches the profit and loss statement. The cause is shipping rates, landed costs and fees that changed while the sheet didn't. The early check is a quarterly refresh, plus an extra one any time a supplier or carrier changes pricing.
A contribution worksheet you can copy
Paste this into a sheet, fill it per channel, and keep the sources column honest.
CONTRIBUTION WORKSHEET (per channel, per quarter)
Period: <start> to <end>
Channel: <own store / marketplace / wholesale>
Orders: <n>
Line Per order Source
Net revenue (excl. tax) $____ Shopify order export
- Landed product cost $____ cost field or POs + freight + duties
- Shipping and packaging $____ carrier / 3PL invoices
- Fulfillment $____ 3PL fees or warehouse hours
- Payment fees $____ processor statements
- Returns allowance $____ refunds + labels + write-offs / all orders
- Per-order commissions $____ affiliate platform
= Contribution before ads $____ (__%)
Break-even ROAS net revenue / contribution before ads = ____
Repeat contribution, 6 months $____ cohort sheet
Safety buffer $____
New-customer cost ceiling $____
New-customer ROAS target net revenue / ceiling = ____
When does contribution margin matter most?
My call: if you spend money on ads, you need this worksheet before you set another target. It takes a few hours to build and it changes every bidding decision after that. The D2C growth strategy guide shows where it sits in the order of work, and the Shopify conversion rate optimization guide uses the same per-order number to rank fixes.
You can keep it lighter if you don't run paid yet. Product cost plus shipping is enough to price products and set a free shipping threshold, and the full worksheet can wait until ads start. And if you sell on more than one channel, build a separate sheet for each before you decide where to put effort, because the answer to Amazon vs DTC lives in those two sheets side by side. For where all of this fits in the overall plan, see the e-commerce marketing playbook.
The brands that win on paid don't have a secret audience. They know exactly what an order is worth, so they can bid with confidence where others guess. Revenue is the scoreboard everyone can see. Contribution margin is the one that decides who's still in business next year.
FAQ
What's a good contribution margin for an e-commerce brand?
There isn't a universal number worth chasing. It depends on your price point, product weight, return rate and how much repeat business you get. What matters is that contribution before ads leaves enough room to buy customers at a cost your repeat data supports.
Should contribution margin include ad spend?
Calculate it both ways. Contribution before ads tells you how much you can afford to spend to get an order. Contribution after ads tells you what you actually kept. You need the first to set targets and the second to check them.
How do I handle subscriptions in contribution margin?
Treat each subscription order like any other order in the worksheet, including the subscription discount at the top. Then use your actual subscription retention by month to estimate contribution over your payback window. Don't assume subscribers stay forever.
Who should own the contribution margin number, finance or marketing?
Finance usually owns the cost inputs and marketing owns the spend decisions, so build the worksheet together once and agree on the definitions. After that, marketing should see the per-order contribution every week, because it's the number that sets their bids.
Do affiliate commissions and creator fees go in the worksheet?
Commissions paid per order are a variable cost, so they come out before ads, just like payment fees. Flat creator fees and retainers are marketing spend, so treat them like ad spend and divide them by the orders they drove. Mixing the two makes your break-even ROAS look better than it is.
How should sales tax and VAT be handled?
Leave them out of net revenue. Tax you collect and pass to the government was never your money, so including it inflates revenue and every ratio built on it. Check how your Shopify export shows tax and make sure the revenue column you use excludes it.
Should I build one worksheet for every sales channel?
Yes, at least one per channel. Your own store, a marketplace and wholesale each carry different fees, fulfillment and return costs, so a blended margin hides which channel actually pays. Start with your largest channel, then copy the worksheet and change only the lines that differ.
More like this
E-commerceAnalyticsGlossary: Contribution Margin, First-Order Profitability, Gross Margin, Return on ad spend, Return Rate, Unit Economics