What is contribution margin?
Contribution margin tells you how much of each sale is left to pay for marketing, overhead and profit. If your ad budget is set on revenue alone, this is the number that shows whether growth is paying you or costing you.
How contribution margin works
Every order carries two kinds of cost. Fixed costs, like salaries, rent and software, stay about the same whether you ship 100 orders or 1,000. Variable costs move with volume: each extra order brings its own product cost, box, shipping label and card fee.
Contribution margin strips out only the variable costs. What remains is the money each sale contributes to covering fixed costs and, after that, to profit.
Formula: Contribution margin = Revenue − Variable costs
Formula: Contribution margin ratio = Contribution margin ÷ Revenue
A hypothetical ecommerce example
Say a store sells a $120 order. The product costs $48 to buy, shipping costs $12, payment processing takes $4 and pick-and-pack takes $6.
| Line | Per order |
|---|---|
| Revenue | $120 |
| Cost of goods sold | −$48 |
| Gross margin | $72 (60%) |
| Shipping, payment fees, fulfillment | −$22 |
| Contribution margin before ads | $50 (41.7%) |
| Ad cost per order | −$30 |
| Contribution margin after ads | $20 |
The store looks healthy at a 60% gross margin. Once shipping, fees and ads come out, each order leaves $20 for overhead and profit. That $20 is the number to manage.
Contribution margin vs. gross margin, and the views to track
Gross margin
Revenue minus cost of goods sold. It measures product pricing power and leaves out shipping, fees, returns and ads, the costs that grow fastest when you scale.
Contribution margin
Revenue minus every variable cost. It measures what an order actually leaves behind, which makes it the better base for budgets and pricing.
Per-order view
Average contribution per order. Use it with average order value to see whether bundles, free-shipping thresholds or discounts help or hurt.
Per-channel view
Contribution after each channel’s spend. Google Shopping, Meta and email can share the same order value and leave very different dollars once their own costs come out.
Per-customer view
Contribution across repeat orders. This feeds customer lifetime value and tells you how much a first order can afford to cost.
Break-even ROAS
Revenue ÷ contribution margin before ads. In the example, $120 ÷ $50 = 2.4. Any channel running under a 2.4x return loses money on each order.
Why ad decisions should run on contribution margin
Most ad dashboards report return on ad spend against revenue. A 3x ROAS sounds strong. On a product with a 33% contribution margin before ads, 3x is break-even, and every dollar of spend above that point buys revenue with zero profit attached.
That is why we pair platform ROAS with two store-level numbers. Marketing efficiency ratio (total revenue ÷ total marketing spend) and blended ROAS show the whole business. Contribution margin after ads shows whether that efficiency turned into dollars. When a channel’s MER climbs and contribution falls, discounting or a cheaper product mix is usually doing the work.
The same logic applies to organic channels. Traffic from SEO and AI search has no click cost, so contribution per order from those visitors is higher. When AI answers send buyers who arrive through direct visits, that margin can hide in the wrong report. Our guide to the dark funnel from AI search covers how to spot it.
From our work
For a specialty coffee equipment retailer that had no marketing help before us, our Google and Meta ads work produced a 15× blended ROAS with ad spend under 5% of revenue. Those two ratios are the published result.
The margin math is how we read results like that on any account. With ad spend under 5% of revenue, nearly all of the contribution margin before ads survives to cover overhead and profit, so the next question becomes how far spend can rise before contribution per order starts to fall. You can read more results on our reviews and case studies page.
How to calculate yours this week
- Pull 90 days of orders with revenue, discounts and refunds.
- Add product cost per order from your inventory system.
- Add shipping, payment fees, packaging and fulfillment per order.
- Subtract those to get contribution margin before ads, then divide by revenue for the ratio.
- Take 1 ÷ that ratio. That is your break-even ROAS.
- Subtract each channel’s spend to get contribution after ads, by channel.
Related terms
- Unit economics: the per-order and per-customer math that contribution margin anchors.
- Customer acquisition cost: what you can afford to pay is capped by contribution.
- Payback period: how many months of contribution it takes to earn back CAC.
- LTV:CAC ratio: lifetime contribution compared with the cost to acquire.
Frequently asked questions
What is a good contribution margin?
It depends on your price point, category and how much you spend to acquire customers. The useful test is internal: after ads, each order should leave enough to cover fixed costs at your current volume, with room left for profit.
Is contribution margin the same as gross margin?
No. Gross margin subtracts only cost of goods sold. Contribution margin also subtracts shipping, payment fees, fulfillment and other variable costs, so it is always equal to or lower than gross margin.
Should ad spend count as a variable cost?
For ecommerce, yes, when you want the per-order view after marketing. Many teams track two lines: contribution before ads, used to set break-even ROAS, and contribution after ads, used to judge each channel.
How do you calculate the contribution margin ratio?
Divide contribution margin by revenue. A $120 order with $50 of contribution margin has a ratio of about 41.7%, and its break-even ROAS is 1 ÷ 0.417, or 2.4.
Grow the margin, and the revenue follows
We plan paid media, SEO and AI search around the dollars each order leaves behind, so growth shows up in profit as well as revenue.