Ad accounts are steered by revenue numbers: ROAS, revenue by campaign, conversion value. The finance side of the same business knows what an order actually leaves behind after shipping, fees and returns. The two numbers rarely meet on one page, so a campaign at 2.0x can look fine in the dashboard while the orders it brings in lose money.
Contribution margin is the revenue from an order minus every cost that scales with that order: product cost, packing, shipping you pay, payment fees and an allowance for returns. Fixed costs such as salaries and software stay out. That figure, not gross margin, should set your break-even ROAS and your discounting limits, because gross margin leaves out exactly the costs that turn a profitable-looking campaign into a loss.
This is written for the founder or marketing lead of a US ecommerce brand who owns or can get the cost data, and wants to set ad targets from something sturdier than a revenue figure. It is a method piece, not a benchmark list.
What contribution margin actually is
Contribution margin per order = revenue you keep from the order minus the variable costs of delivering it.
"Variable" means the cost goes up when an order is added and goes away when it is not. A warehouse lease is fixed. The box, the label, the carrier charge and the card fee are variable. Contribution margin is what each order contributes toward the fixed costs and, after those, profit.
Expressed as a percentage of revenue, it is the contribution margin ratio. That ratio is the one that connects to advertising, because ROAS is also a ratio of revenue to spend.
One order, line by line
Take a $120 order, shipped free to the customer, so the $120 is all item revenue and sales tax is excluded because it is not your money. The cost figures below are assumptions for the example; replace them with yours.
| Line | Amount |
|---|---|
| Revenue kept | $120.00 |
| Product cost | $40.00 |
| Pick, pack and materials | $4.00 |
| Shipping you pay | $11.00 |
| Payment fee (assumed 3% plus 30 cents) | $3.90 |
| Returns allowance | $6.00 |
| Contribution | $55.10 |
That is 45.9% of revenue. Gross margin on the same order, counting only product cost, is $80 out of $120, or 66.7%. The distance between those two percentages is $24.90 of costs that gross margin never sees.
The returns line deserves a word. It is an expected value: if one order in ten comes back and a return costs you the outbound and return shipping plus handling and some write-off, spread that cost across every order. How a payment processor treats its fee on a refunded order varies, so check yours rather than assuming it is returned.
The costs that belong, and the ones that do not
Inside: product cost, inbound freight if you allocate it per unit, packing and materials, fulfillment labor if it scales with orders, outbound shipping paid by you, payment fees, marketplace fees where relevant, and the returns allowance. Discounts are not a separate line here, because they have already reduced the revenue you kept.
Outside: salaries, rent, software, agency retainers. They are real, and the contribution margin has to be big enough to cover them, but they do not change when one more order arrives.
Two grey areas. Customer service cost is variable in some stores and fixed in others; pick one treatment and stay with it. And advertising is deliberately excluded from the per-order figure, which is what lets you ask the next question: how much advertising can this order afford?
Why gross margin sends campaigns the wrong way
The most common failure in ad planning is setting the ROAS target from gross margin. The arithmetic is the break-even rule: break-even ROAS = 1 / margin before ads. Use the wrong margin and the break-even is wrong.
Using the order above, with a $10,000 campaign that produces 150 orders and $18,000 of revenue, so ROAS is 1.8:
| Margin | Break-even ROAS | Profit on $10,000 spend | |
|---|---|---|---|
| Gross margin | 66.7% | 1.5 | +$2,000 (looks profitable) |
| Contribution margin | 45.9% | 2.18 | -$1,735 (loses money) |
Same campaign, same orders. The gross-margin view says the target of 1.5 is cleared with room to spare. The contribution view says 1.8 is short of the 2.18 it needed. On gross margin the campaign gets a bigger budget; on contribution it gets cut. The second answer is the one that matches the bank account.
The same error corrupts discount decisions. A 20% offer on a product with a 46% contribution margin leaves less than 30% of the original price as contribution on that order, before any extra advertising it needed to run. Decide the discount from contribution, not from the margin printed in the product catalog.
Per product, because the average hides the losses
A single store-wide contribution margin is a start, but it averages away the products that cost you money. Three illustrative products, all with the same 70% gross margin:
| Light item | Premium item | Bulky item | |
|---|---|---|---|
| Price | $60 | $150 | $90 |
| Product cost | $18 | $45 | $27 |
| Packing | $3 | $4 | $5 |
| Shipping you pay | $8 | $14 | $24 |
| Payment fee | $2.10 | $4.80 | $3.00 |
| Returns allowance | $3 | $22.50 | $4.50 |
| Contribution | $25.90 | $59.70 | $26.50 |
| Contribution margin | 43% | 40% | 29% |
| Break-even ROAS | 2.3 | 2.5 | 3.4 |
On gross margin all three look identical, and a single ROAS target would treat them identically. The bulky item needs a ROAS about 50% higher than the light one just to break even, because shipping eats a quarter of its price. The premium item has the biggest dollar contribution but a heavy returns allowance, which is common in categories where customers order to try.
If you run Shopping or Performance Max, this is why campaign structure by product group matters: separate groups let you set separate targets. Our guide to Performance Max for ecommerce covers where that structure is possible and where the platform decides for you.
Turning it into targets you can use
Once you have contribution margin before ads, three decisions get easier.
First, break-even ROAS, as above. Our walkthrough of how to calculate ROAS covers which revenue to put in it. A target is that break-even plus whatever you need to earn on top.
Second, a cap on acquisition cost. Contribution per order is the most you can spend to win one order without losing money on it. The relationship to customer lifetime is in LTV, CAC and payback.
Third, a profit-based bidding signal. Google documents a cost of goods sold attribute in Merchant Center that feeds gross profit reporting for conversions with cart data, and says the figures are for reporting and need not be exact. Shopify likewise reports profit only for products that had a cost recorded when they sold. Both cover product cost, not shipping, fees or returns, so they give you a gross-profit view. The fuller idea is covered in profit on ad spend.
When contribution per order misleads
It is the wrong lens alone in two situations.
Repeat-purchase brands. If most of the value of a customer arrives in the second and third order, a first order that only breaks even, or loses a little, can be a good acquisition. Contribution per order will call it a failure. Use it together with a lifetime view, and decide explicitly how much first-order loss you will fund.
Very small order counts. On a handful of orders a month, the returns allowance and shipping averages are noise. One bad week of returns moves the figure more than any campaign does. Use a longer window and a product-group view rather than per-order precision.
A third caution: the figure is only as good as the costs fed in. A cost per item that was entered once and never updated will quietly make every number downstream wrong. Shopify's own documentation notes the cost per item field is static, so reports reflect costs at one point in time.
Building it in an afternoon
You do not need a finance system to start.
- Pull a month of orders and the cost per item for each product.
- Add the shipping you actually paid, from carrier invoices, not the amount you charged customers.
- Add payment fees as a percentage plus fixed fee per order.
- Set a returns allowance per product group from your own return rate.
- Calculate contribution per order and per product group.
- Compute break-even ROAS for each group and put it beside the platform ROAS you currently see.
The first time through, expect at least one group to be below break-even that you were happy with. That is the point of the exercise. If you would rather have the cost data and the ad accounts looked at together, our analytics service does that work, and ecommerce KPIs places contribution margin among the other numbers worth tracking.
If you would like someone to build this view on your own store and show where ad targets and real margins disagree, request a free audit.
Sources.
- About conversions with cart data — Google Ads Help (accessed November 2026)
- Cost of goods (cost_of_goods_sold) — Google Merchant Center Help (accessed November 2026)
- Profit reports (cost per item, gross profit, profit margin by order) — Shopify Help Center (accessed November 2026)
- Sales report definitions (gross sales, discounts, sales reversals, net sales, total sales) — Shopify Help Center (accessed November 2026)



