The scheme: from gross revenue to CM3
In e-commerce, contribution margin is calculated per order in three steps. Each step takes off a group of costs that come with every order, and what is left after CM3 pays the fixed costs such as salaries, rent and software. The example starts at the median order value of our panel (€79.04) and uses the example costs the calculator shows under More options, every amount without VAT:
| Line | Per order | % of net revenue |
|---|---|---|
| Gross revenue: what the customer pays, with VAT and shipping | €79.04 | |
| − VAT (19%) | -€12.62 | |
| − Discounts and vouchers, if not yet deducted | €0.00 | |
| − Returns (10% of revenue) | -€6.64 | |
| = Net revenue | €59.78 | 100.0% |
| − Product costs (COGS) | -€20.00 | -33.5% |
| = Contribution margin 1 (CM1) | €39.78 | 66.5% |
| − Fulfilment and shipping (picking, packing, packaging, postage) | -€7.00 | -11.7% |
| − Payment fees (2% of the amount paid) | -€1.58 | -2.6% |
| − Returns handling (€8.00 per return, one order in 10) | -€0.80 | -1.3% |
| = Contribution margin 2 (CM2) | €30.40 | 50.9% |
| − Marketing (ad spend, influencer, affiliate) per order | -€15.00 | -25.1% |
| = Contribution margin 3 (CM3) | €15.40 | 25.8% |
- Gross revenue is what the customer pays, with VAT and shipping. That is how Shopify's order totals count it.
- Net revenue is gross revenue without VAT, discounts and returns: the money you keep before any cost. Every percentage refers to it.
- Product costs (COGS, cost of goods sold) are the purchase or production costs of the goods the customer keeps.
- Fulfilment and shipping, payment fees and returns handling come with every order, whether you handle them yourself or pay a provider.
- Marketing is everything you spend to win orders: ad spend, influencer budgets and affiliate commissions.
In the example, an order of €79.04 leaves €30.40 of CM2 (50.9% of net revenue), and €15.40 of CM3 after €15.00 of marketing. CM2 also gives the break-even ROAS: €79.04 ÷ €30.40 = 2.60 on order value with VAT and before returns. Below it, every order the ads bring costs more than it contributes. The ROAS calculator checks your ROAS against it.
How to read your CM1, CM2 and CM3
- CM1 tells you whether your products earn. A low CM1 is a pricing or purchasing problem, not a marketing problem.
- CM2 tells you whether an order earns once it has been packed, shipped, paid for and, sometimes, sent back. It is the ceiling for marketing costs per order: in the example you can spend up to €30.40 of marketing per order before CM3 turns negative.
- CM3 tells you whether your marketing pays. It has to cover the fixed costs and leave a profit. A negative CM3 can still be right when you win new customers who buy again later.
Then set the result against three numbers of your own:
- CM2 in euros per order against your marketing cost per order. Below it, every order your marketing brings is a loss.
- CM2 of the first order plus the repeat orders against what a customer costs to acquire, within a time you can finance. The CAC calculator turns that into the most a new customer may cost.
- CM3 per month against your fixed costs. Only above them does the shop make money.
The order value starts at the median of our panel, €79.04 in September 2026, with the middle half of brands between €66.99 and €99.66; the benchmark page shows it by industry and month by month. Per-order costs such as postage and packaging weigh more on small baskets, so compare a margin in percent only with shops whose order value is similar.
Our customers define CM2 the same way in their questions to us: net revenue − COGS − logistics − transaction costs. Which level to set targets and budgets on is the contribution margin entry's view on setting targets on CM2 and budgets on CM3.
Traps when you calculate contribution margin in e-commerce
- Calculating with VAT. Costs taken off gross revenue leave the VAT in, which belongs to the tax office: at 19% VAT that is 16% of every gross euro. Contribution margin starts from net revenue.
- Taking gross margin for contribution margin. Gross margin stops at CM1 and leaves out fulfilment, shipping, payment fees and returns handling: small per order, and together often larger than what a campaign earns above break-even.
- Booking returns in the wrong month. Assign returns to the order they belong to. If you take them off in the month of the refund, contribution moves from one month to the next: a strong December looks better than it was, and January worse.
- Counting only ad spend as marketing. Influencer budgets and affiliate commissions buy orders too. Leave them out and CM3 looks better than it is.
Related glossary entries, market data and calculators
- Contribution margin (CM1, CM2, CM3): what each level means and where each cost goes
- Break-even ROAS: the ROAS your CM2 margin requires
- ROAS calculator: ROAS, break-even ROAS and ROI on ad spend
- LTV calculator: customer lifetime value on CM2 and the time to payback
- AOV (average order value) and Average Order Value (AOV) in E-Commerce: DTC Benchmark
- CAC (customer acquisition cost) and Average Customer Acquisition Cost (CAC) for DTC Brands
- ROAS (return on ad spend)
Contribution margin calculator: frequently asked questions
How do you calculate contribution margin in e-commerce?
Start from gross revenue and take off VAT, discounts and returns: that is net revenue. Net revenue minus product costs is CM1, CM1 minus fulfilment, shipping, payment fees and returns handling is CM2, CM2 minus marketing is CM3. An order of €79.04 with 19% VAT and 10% returns leaves €59.78 of net revenue, and with the example costs above €39.78 of CM1, €30.40 of CM2 and €15.40 of CM3.
How do I calculate contribution margin per order in a spreadsheet?
Put the scheme above into one column, a row per step. Order value with VAT ÷ (1 + VAT rate) is the order value without VAT; take off discounts and the share refunded as returns for net revenue. Net revenue minus product costs is CM1. CM1 minus fulfilment and shipping, payment fees (a percentage of what the customer paid) and returns handling (cost per return × return rate) is CM2. CM2 minus marketing per order, which is the month's marketing ÷ orders, is CM3. Divide each row by net revenue for the percentages. The example's €79.04 order gives €59.78 of net revenue and €30.40 of CM2.
How do I calculate CM3 for a whole month?
Multiply CM2 per order by the month's orders and subtract the month's marketing: ad spend, influencer budgets and affiliate commissions. Under More options, the calculator starts with 1,000 orders and €15,000 of marketing a month: €30.40 of CM2 per order makes €30,397, and €15,397 of CM3 is left to pay the fixed costs. Count returns in the month of the order they belong to, not in the month of the refund.
Which costs do I enter as fulfilment and shipping?
Every cost that one more order makes bigger, such as picking, packing, packaging and postage, entered per order and without VAT. Which level every other cost belongs to is in the contribution margin entry's table of where each cost goes.
How do I enter product costs when orders are returned?
Enter the product costs of the goods customers keep. Return postage, checking and restocking go into the cost per return, and so does the product cost of returned goods you cannot sell again. Why a restocked item gives its cost back and a written-off one does not is in the COGS entry's answer on refunds and restocks.