Contribution margin: definition, formula and ratio
Contribution margin is the money a sale leaves after the costs that the sale itself causes. It answers a narrow question: if we sell one more unit, one more order or one more month of this channel, how much money is left to pay for everything else?
This guide covers the definition, the formula per order and in total, the contribution margin ratio, how it differs from gross margin, and the decisions an online shop makes with it. All figures in the examples are illustrative.
What is contribution margin?
Contribution margin is revenue minus variable costs. Variable costs are the ones that rise and fall with each sale: the product itself, shipping, payment fees, packaging and, in many shops, the marketing spent to win the order. Fixed costs such as rent, salaries and software subscriptions stay out, because they do not change when you sell one more order.
What is left contributes first to covering fixed costs, then to profit. That is where the name comes from.
How do you calculate contribution margin?
The formula is the same at every level. Only the scope changes.
Contribution margin = revenue − variable costs
Per unit or per order:
Unit contribution margin = selling price − variable cost of one unit
And as a share of revenue:
Contribution margin ratio = contribution margin ÷ revenue × 100
- Start from net revenue. Take the price the customer paid, without VAT, and subtract discounts and refunds.
- List every variable cost. For an online shop that usually means product cost, shipping, packaging, payment fees and the cost of returns.
- Decide where marketing goes. Many teams report contribution margin twice, before and after marketing spend. Say which one you mean, every time.
- Subtract and divide. Contribution margin in euros tells you how much is left. The ratio lets you compare products, channels and months of different size.
A worked example
Take one order from an online shop, with illustrative costs:
| Line | Amount |
|---|---|
| Net revenue (price after discount, without VAT) | €80.00 |
| Product cost | −€28.00 |
| Shipping and packaging | −€7.00 |
| Payment fee | −€2.00 |
| Contribution margin before marketing | €43.00 |
| Marketing spend per order | −€18.00 |
| Contribution margin after marketing | €25.00 |
Before marketing, the order leaves €43, a ratio of 53.75%. After marketing it leaves €25, a ratio of 31.25%.
- Before marketing
- After marketing
Both numbers are correct. They answer different questions. The first says whether the product and its fulfilment make sense at this price. The second says whether this way of selling it does.
Contribution margin, gross margin and net profit
The three measures stack. Each one subtracts more costs than the one before.
| Measure | What it subtracts from revenue | What it answers |
|---|---|---|
| Gross margin | Cost of the goods sold | Is the product priced above what it costs to make or buy? |
| Contribution margin | Every cost that rises with each sale | How much does one more sale leave? |
| Net profit | All costs, fixed ones included | Did the business make money? |
A product can have a healthy gross margin and a thin contribution margin when it is heavy to ship, often returned or expensive to advertise. That is the gap shops miss when they look only at gross margin or at ROAS. Why ROAS hides the products that lose money works through that case.
What the contribution margin ratio tells you
The ratio shows how much of each euro of revenue is left after variable costs. It is the figure to use when comparing things of different size, such as a best-selling product with a niche one, or a large channel with a small one.
It also gives the break-even point. Divide fixed costs by the ratio, and you get the revenue at which contribution margin exactly covers fixed costs:
Break-even revenue = fixed costs ÷ contribution margin ratio
With illustrative fixed costs of €20,000 a month and the 31.25% ratio after marketing from the example, the shop breaks even at €20,000 ÷ 0.3125, which is €64,000 of revenue a month. Every euro of revenue above that adds about 31 cents of profit.
How an online shop uses contribution margin
The same sum, cut in different ways, answers most of the questions a shop asks about where its money comes from.
- By product. Rank products by contribution margin in euros, not by revenue. Bestsellers with a thin margin and frequent returns often move down the list.
- By channel. Subtract each channel's own marketing spend to see which channels pay for the business and which only add revenue. Contribution margin by channel builds that table step by step.
- By cohort. Follow the customers acquired in the same month and add up what they leave over time. Contribution margin by cohort shows why a cohort with a high repeat rate can still lose money.
- By customer. Contribution margin over a customer's whole relationship is margin-based customer lifetime value. Customer lifetime value shows how to calculate it.
Mistakes that distort contribution margin
- Using gross revenue. Discounts, refunds and VAT are not money the shop keeps. Start from net revenue.
- Forgetting returns. A product returned one time in four carries the cost of shipping both ways and often of the item itself.
- Mixing levels. Comparing one channel's contribution margin before marketing with another's after marketing makes the first one look better than it is.
- Treating fixed costs as variable, or the other way round. A warehouse fee per parcel is variable. The warehouse rent is not.
- Reading the ratio without the euros. A 60% ratio on €1,000 leaves less than a 25% ratio on €10,000.
Getting the data together
The formula is simple. The data is not in one place. Revenue and discounts sit in the shop platform, refunds in the payment provider, product cost in a spreadsheet or the ERP, shipping in carrier invoices and marketing spend in each ad platform. Omnichannel data silos covers how to join them.
This is the work of the Margin Loop: we join revenue, costs, refunds and ad spend by channel, an AI reads the margin in every channel, we propose the budget moves, and they run only within limits your team sets and signs off. The number it is measured by is contribution margin by channel.
Questions
- What is the formula for contribution margin?
- Contribution margin = revenue − variable costs. Per unit, it is the selling price minus the variable cost of one unit. The contribution margin ratio is contribution margin ÷ revenue, usually shown as a percentage.
- What is the difference between contribution margin and gross margin?
- Gross margin subtracts only the cost of the goods sold. Contribution margin subtracts every cost that rises with each sale, which for an online shop also includes shipping, payment fees, packaging, returns and often the marketing spend tied to the order.
- Is a higher contribution margin ratio always better?
- For a single product or channel, a higher ratio means each sale leaves more. Across the business, a lower ratio on much larger volume can leave more money in total, so compare the ratio together with the contribution margin in euros.
- How do you use contribution margin to find the break-even point?
- Divide fixed costs by the contribution margin ratio. The result is the revenue at which contribution margin exactly covers fixed costs. Below it the business loses money, above it each extra sale adds profit.