What is contribution margin? Why it beats gross profit
What contribution margin is, how it differs from gross profit, how to calculate it online, and how to use it for break-even ROAS and revenue.
By The DataxLand team· · 5 min read
Most business owners know gross profit: revenue minus cost of goods. For a traditional store, that number is almost enough to tell whether an item makes money. Online, it is not. Between cost of goods and the cash you actually keep sits a series of costs that arise with every order: marketplace fees, payment fees, the shipping you absorb, return costs. A product with a 50% gross margin can still lose money on every order.
The metric that catches this is contribution margin. This post explains what contribution margin is, how to calculate it, how it differs from gross profit, and three decisions you only get right when you look at it.
Three layers of profit
| Layer | Formula | Answers the question |
|---|---|---|
| Gross profit | Net revenue − cost of goods | Is the selling price higher than the purchase price? |
| Contribution margin | Gross profit − all variable per-order costs | How much does each order leave you? |
| Profit after fees and ads | Contribution margin − ad spend | Is selling profitable after paying to acquire buyers? |
| Operating profit | Profit after ads − fixed costs (salaries, rent, software) | Is the whole business profitable? |
A "variable per-order cost" only occurs when there is an order and grows with the number or value of orders. Office salaries are not one; a 6% marketplace fee on every order is.
The formula for online selling
DataxLand uses exactly this chain for its contribution margin metric (the versioned definition is in the metric handbook):
Net revenue = GMV − discounts − allocated shop vouchers − refunds
Contribution margin = Net revenue − cost of goods − marketplace fees − payment fees
− shipping paid by the shop − return costs
Contribution margin % = Contribution margin ÷ Net revenueAdvertising is subtracted after contribution margin, not inside it. The reason: ad spend does not arise mechanically with each order — you decide how much to spend. Keeping it separate lets you ask "with this contribution margin, what is the most I can spend on ads?".
Example on sample data
Numbers come from the DataxLand sample data: a simulated scented-candle and essential-oil shop selling on Shopee, TikTok Shop and its own website, 1 Aug – 29 Oct 2026. These are not a real customer's numbers.
| Item (3 months) | Amount | % of net revenue |
|---|---|---|
| Net revenue | 755,554,000 ₫ | 100% |
| − Cost of goods | 392,589,000 ₫ | 52.0% |
| = Gross profit | 362,965,000 ₫ | 48.0% |
| − Marketplace fees | 90,481,900 ₫ | 12.0% |
| − Payment and transaction fees | 35,388,900 ₫ | 4.7% |
| − Shipping paid by the shop | 9,604,000 ₫ | 1.3% |
| − Return costs | 3,119,000 ₫ | 0.4% |
| = Contribution margin | 224,371,200 ₫ | 29.7% |
| − Advertising | 135,070,000 ₫ | 17.9% |
| = Profit after fees | 89,301,200 ₫ | 11.8% |
At a 48% gross margin, this shop looks very healthy. The 29.7% contribution margin shows that almost 18 percentage points went to fees before any advertising. After ads, only 11.8% is left.
Split by channel, the gap is even clearer:
| Channel | Net revenue | Contribution margin | Contribution margin % |
|---|---|---|---|
| Shopee | 397,961,000 ₫ | 128,090,600 ₫ | 32.2% |
| TikTok Shop | 228,021,000 ₫ | 42,093,900 ₫ | 18.5% |
| Website | 129,572,000 ₫ | 54,186,700 ₫ | 41.8% |
TikTok Shop has a 12.4% return rate in the sample data, more than four times Shopee's. Refunds come off net revenue, return costs come off contribution margin, and the result is that every 100 ₫ of net revenue on TikTok Shop leaves only about 18.5 ₫ before advertising.
Three decisions that need contribution margin
1. How much you can spend on ads: break-even ROAS
Ads are profitable when the ad spend is smaller than the contribution margin it brings in. Divide it out:
Break-even ROAS = 1 ÷ Contribution margin %
Shopee = 1 ÷ 0.322 ≈ 3.1
TikTok Shop = 1 ÷ 0.185 ≈ 5.4
Website = 1 ÷ 0.418 ≈ 2.4With the same ROAS of 4 (on net revenue), ads for Shopee and the website make money, while ads for TikTok Shop lose money. Without contribution margin by channel, you cannot see this. Details: What ROAS is profitable?.
2. How much revenue the whole business needs to break even
Contribution margin is the money that pays your fixed costs. Illustrative example: if the shop has fixed costs of 60,000,000 ₫ a month (salaries, warehouse, software), profit after fees and ads is 11.8% of net revenue, and the ad ratio stays as it is:
Break-even net revenue = Fixed costs ÷ Profit-after-ads %
= 60,000,000 ÷ 0.118 ≈ 508,500,000 ₫ per monthUsing the 48% gross margin, the wrong calculation gives about 125 million ₫ — four times lower. That is the gap between an optimistic business plan and a correct one.
3. Which products to keep
A product with a negative contribution margin loses more the more you sell, whatever its sales volume. In the sample data,
MH-NEN-03 has net revenue of 52,741,533 ₫ but a contribution margin of −7,697,340 ₫: a loss even before advertising. On a
sales report, it looks like a perfectly fine SKU.
Common mistakes when calculating contribution margin
- Subtracting refunds twice: once in net revenue and again as a cost. Refunds come off revenue only; return shipping is the cost.
- Ignoring provisional fees: recent orders do not have settled fees yet, so the latest week's contribution margin is inflated.
- Zero cost of goods for SKUs with missing data: gross profit and contribution margin are both inflated. In the sample data, 92.35% of revenue has a cost of goods.
- Putting advertising inside contribution margin: you lose the ability to compute break-even ROAS.
How DataxLand does this
Contribution margin is a Standard metric in the retail and consumer-goods pack, computed from the same definition for dashboards, scheduled reports, alerts, answers from Si and MCP. The retail profit and loss dashboard splits contribution margin by channel, product and week, together with the share of revenue that has a cost of goods and the share of provisional fees, so you know whether the numbers are complete. Ask Si "contribution margin by channel last month" and the Sources section tells you the metric, version and data date. For terms, see the glossary.
Frequently asked questions
Contribution margin or gross profit: which one does accounting use?
Financial statements under accounting standards use gross profit. Contribution margin is a management metric, used for pricing, channel and advertising decisions. The two complement each other; one does not replace the other.
Does shipping paid by the buyer count?
The part the buyer pays and the marketplace passes on to the carrier is not a cost to the shop. Only the part the shop absorbs (differences, free-shipping subsidies) comes off contribution margin.
What is a good contribution margin?
There is no universal number; it depends on the industry and business model. The right question is: is contribution margin enough to pay for advertising and fixed costs, and is it rising or falling over time?
Do packaging and free gifts count in contribution margin?
Yes, if they occur with each order. If you lack per-order detail, estimate an average cost per order and state that assumption clearly.
Read next: Profit by SKU: find best-sellers that lose money · How to calculate true profit on Shopee, TikTok Shop and Lazada · Pricing on marketplaces from your target profit