Contribution margin calculator: CM1, CM2 and CM3 for online stores
Contribution margin is the price minus the variable costs of a sale, and the CM ratio is that margin as a share of the price. For an online store it splits three ways: CM1 after the goods, CM2 after shipping and payment fees, CM3 after advertising. Work it out per unit, per order or for a month.
Free, nothing to sign up forLines 12 to 33 of a nouz P&L
Contribution margin, per unit
€20,00
CM ratio
40,0%
of the price
Markup
66,7%
the same euro, on the cost
Over 1.000 units
€20.000
towards fixed costs and profit
One unit
Work it out
Price minus variable cost: the textbook contribution margin and its ratio.
The sale
€
€
units
↑↓ to nudge, Shift for ten. Commas or dots both work.
One unit
Price€50,00
Variable cost−€30,0060,0%
Contribution margin€20,0040,0%
Over 1.000 units€20.000
€20,00 of every €50,00 sale is left for fixed costs and profit: a CM ratio of 40,0%. Against the €30,00 it costs, the same €20,00 is a 66,7% markup, which is why the two are never swapped.
Each unit leaves €20,00 towards fixed costs and profit, 40,0% of its price. For an online store that margin splits three ways, which the per order mode shows.
An estimate from flat rates. In nouz every order is priced from the costs of its own day.
What this calculator does
What it does
A contribution margin calculator subtracts variable costs from the price: contribution margin is price minus variable cost, and the CM ratio is that margin divided by the price. For an online store this one splits it further, per order or for a month, into CM1 after the goods, CM2 after shipping and payment fees and CM3 after advertising.
Why three
One number hides which cost is the problem.
The textbook contribution margin is one subtraction: price minus variable cost. On the figures above, a €50,00 product with €30,00 of variable cost contributes €20,00, a CM ratio of 40,0%. It tells you whether a sale pays, not which of its costs is the problem.
Take two products with the same contribution margin of 22%. One is a heavy €40 item with a good purchase price and an expensive parcel. The other is a light €140 item with a poor purchase price and a cheap parcel. They look identical on a single figure and they need opposite decisions. Split into layers, the heavy item has a strong CM1 and a weak CM2, so the answer is a better rate card; the expensive one has a weak CM1 that only a supplier or a price rise can fix.
The third layer is the one most stores never compute. CM3 takes advertising out, and it is where a product with a healthy CM2 turns out to be losing money because it takes €30 of ads to sell one. Overhead comes off below all three and is deliberately not a contribution margin, because rent does not change when you ship one more parcel. What is left after it is EBITDA.
Contribution margin is only useful if every cost is on the layer it belongs to. These four move around the most, and each one flatters a different margin.
Line 7 vs line 14
Gross revenue used instead of net
The European mistake. Shopify shows a figure that includes VAT and, depending on where you look, includes orders that were later refunded. Neither is margin. Net revenue is what is left after returns and after tax, and it is the only denominator that makes the percentages comparable.
Get this wrong and all three margins are overstated by roughly a sixth at German rates, in the same direction, so nothing looks obviously broken.
Line 6 and line 21
Shipping revenue counted as a cost offset
What the customer paid for delivery is revenue and belongs at the top. What the carrier charged is a cost and belongs in CM2. Netting the two against each other hides both, and it is how a store ends up believing shipping is free when it is running a €2 loss on every parcel.
Line 23
Payment fees taken out of the wrong base
A gateway charges a percentage of the gross amount it moved, VAT and shipping included, plus a fixed fee per transaction. Applying the advertised percentage to net revenue understates the cost, and ignoring the fixed leg understates it badly on a low basket.
Use the blended rate you actually pay across every gateway, which is rarely the number on any one of their pricing pages.
Line 27 vs line 31
Overhead mixed into CM3
Agency retainers, software subscriptions and salaries feel like marketing costs when they sit on a marketing budget, but they do not vary with the sale, so they belong below CM3. Only spend that bought this month’s orders belongs in the marketing line.
The exception worth knowing: an influencer retainer or a campaign booked as a one-off really is marketing, and nouz routes costs categorised as marketing into the marketing line rather than into overhead, so each euro is counted exactly once.
The calculator’s example order: €59,90 at 19% VAT, goods at €18,50, a €6,40 parcel, a payment fee of 2% plus €0,25 and €9,00 of ads.
CM1 is 63,2%, the number most merchants would quote if asked. CM2 is 47,7%: shipping, packing and the payment fee took 15,6 points between them. CM3 is 29,8%, because the ads took another 17,9.
An order with a 63% margin keeps €14,99 once it is paid for, 29,8% of what was yours. Nothing here is unusual; the gap is the sum of three ordinary costs that a single margin never shows.
Which is the point of computing three margins rather than one. If this order needed more room, the statement says where to look first, and the month mode above carries the same ladder down to EBITDA.
In the app
nouz works this out from every order, every day.
A calculator works from flat rates you type once. nouz prices every single order from the cost rules that were in force on that order's own date, and rebuilds the same statement every night from your own orders and your own ad spend.
Every cost at the rate of its own day. Product costs, parcels and payment fees per order, so a price change never rewrites last month.
Ad spend comes in by itself. Meta, Google and TikTok through their official APIs, plus anything you add by hand or by CSV.
The same lines, per product. What is left after product costs, after shipping and payment fees, and after ads, for every product you sell.
Contribution margin is the price of a unit minus its variable cost; for a period in euros, multiply it by the units sold, or take revenue minus every variable cost. The CM ratio is the margin divided by the price. On the figures above, a €50,00 product with €30,00 of variable cost has a contribution margin of €20,00, a CM ratio of 40,0%, and 1.000 units contribute €20.000.
What is the difference between contribution margin and profit margin?
Contribution margin takes out only the variable costs, the ones that come with each sale: the goods, the parcel, the payment fee and, for an online store, the advertising that won the order. Profit margin takes out every cost, the fixed ones too: rent, salaries, software. Contribution margin says what each sale adds towards the fixed costs; profit margin says what was left once they were paid. On a nouz P&L, CM3 is the last contribution margin and EBITDA is the profit.
What is the difference between contribution margin and markup?
The base. The CM ratio divides the margin by the price; a markup divides the same margin by the cost. On the figures above, €20,00 on a €50,00 price is a 40,0% CM ratio and a 66,7% markup on the €30,00 cost. A CM ratio can never reach 100%, while a markup passes it easily, which is the quickest way to tell which one you are reading.
What are CM1, CM2 and CM3?
Three contribution margins for an online store, each after one more layer of variable cost. CM1 is net revenue minus the goods and asks whether the product makes money. CM2 also takes out shipping, packing and payment fees and asks whether the order does. CM3 takes out the advertising and asks whether the customer does. On the calculator's example order, €59,90 at 19% VAT, CM1 is €31,84, CM2 €23,99 and CM3 €14,99.
Is contribution margin the same as gross margin?
No. Gross margin is an accounting figure that usually stops after the cost of goods, which makes it roughly CM1, and only if your cost data is complete. Contribution margin is an operating idea: everything that varies with the sale comes out, wherever it sits in the chart of accounts. The gap between the two is shipping, packing and payment fees, and in an online store it is often the gap between a product that looks profitable and an order that is.
Should VAT be in the revenue figure?
No. VAT is collected for the tax authority and passed straight on, so it was never yours and it is not margin. Every margin this calculator shows is measured on revenue without VAT. Putting gross revenue in overstates all three margins by roughly a sixth at German rates, and a merchant who does that will believe a losing product is a thin one.
More calculators
Four that go with this one.
Each one is a different question about the same statement. All 36 are free, and none of them asks you to sign up.