Invictus Global Consult Book a call

E-Commerce

How to Calculate Contribution Margin in E-Commerce Properly

By René Schubert8 min readPublished: November 20, 2026
Short answer

Contribution margin is what is left per order after all variable costs. Calculate CM1 to CM3 with real numbers per product and channel. A few percentage points more returns can turn a positive CM3 negative.

Contribution margin in e-commerce is what remains from an order after all variable costs have been deducted, available to cover fixed costs and generate profit. Calculated properly, it deducts not only the cost of goods but also shipping, packaging, payment fees, marketplace commissions, returns and marketing costs. Only this number shows whether growth earns money or just produces revenue.

Why revenue and gross margin are not enough

Many retailers steer by revenue and gross margin, meaning selling price minus purchase price. In bricks-and-mortar retail this was long sufficient, because most other costs were fixed. Online it is different: a large share of costs arises per order. Every additional order causes shipping, packaging, pick and pack, payment fees and often a return. On top come advertising costs tied directly to the order.

A product with a 60 per cent gross margin can therefore contribute very little once all variable costs are in. This happens frequently with low-priced items with high return rates, or with orders won entirely through paid advertising.

The levels: CM1, CM2, CM3

In practice a step-by-step calculation works best. Names vary, but the logic is always the same: from top to bottom, cost blocks directly attributable to the order are deducted.

Level Calculation What it tells you
Net revenue Gross revenue minus VAT, discounts and refunded returns What actually stays
CM1 Net revenue minus cost of goods (incl. freight, duty) Product margin
CM2 CM1 minus fulfilment, shipping, packaging, payment fees, marketplace fees, return costs Margin after logistics and channel
CM3 CM2 minus directly attributable marketing costs Contribution after customer acquisition

CM3 is the most important metric for steering growth. If it is positive, every additional order contributes to fixed costs. If it is negative, the business gets poorer with every order, however good the revenue looks.

One order from top to bottom (constructed example)

An order in your own shop, gross price €59.50 (19% VAT, so €50.00 net). The assumptions are invented and serve only to show the method.

Item Amount per order
Net price €50.00
less discount code €2.00
Net revenue before returns €48.00
less refunded returns (rate 20%) €9.60
Net revenue after returns €38.40
Cost of goods incl. freight and duty €17.00
plus: resaleable goods returning to stock (20% × €17 × 80%) minus €2.72
CM1 €24.12 (63% of net revenue after returns)
Shipping and fulfilment €5.50
Packaging €0.70
Payment fee €1.10
Returns process (20% × €4.50) €0.90
CM2 €15.92
Marketing per order (new customer acquisition) €14.00
CM3 €1.92

The order contributes only very narrowly to fixed costs. The break-even ROAS on net revenue after returns is €38.40 / €15.92 = 2.41. Below that this order loses money.

Now the sensitivity: if the return rate rises from 20% to 30%, net revenue after returns falls to €33.60, cost of goods after returning stock is €12.92, CM1 €20.68. After logistics and returns process (now €1.35) a CM2 of €12.03 remains. With the same €14.00 marketing, CM3 falls to minus €1.97. Ten percentage points more returns turn the order negative, without any change in price or advertising.

Which costs go where?

Most mistakes are not in the formula but in the allocation. These items are particularly often forgotten or booked in the wrong place:

  • Landed cost components: ocean freight, customs duty, financing of import VAT, inspection costs. They belong in cost of goods, not overheads.
  • Returns: not only the refunded revenue, but also return shipping, inspection, refurbishment and the share of goods that cannot be resold.
  • Payment fees: they differ significantly by payment method. Pay-by-invoice can have a different cost profile from card payment.
  • Marketplace fees: referral fees, fulfilment fees, storage fees and long-term storage fees. On Amazon, the per-order transaction report is worth studying.
  • Free samples and vouchers: inserts, samples and discount codes reduce margin just as much as a lower price.

A simple calculation template

For a first robust version, a table with one row per product (or product group) and channel is enough. Values are averages per unit sold:

  1. average net selling price after discounts
  2. minus landed cost including freight and duty
  3. minus fulfilment and shipping per unit
  4. minus payment and channel fees
  5. minus return costs (return rate times cost per return plus loss in value)
  6. minus marketing costs per unit

It is essential to work with real numbers from accounting, marketplace reports and ad accounts, not with service providers' list prices. The differences are often larger than expected.

What you derive from contribution margin

The calculation is not an end in itself. It answers concrete questions:

Ad budget

CM2 tells you how much marketing can cost per order before the order loses money. From this you can derive channel targets based on profitability instead of revenue. What that looks like in campaign management is covered in ROAS, POAS, MER.

Assortment

Products with a persistently negative CM2 are candidates for a price change, a bundle, a channel switch or delisting. More in the article on assortment strategy.

Channel

The same item can have very different contribution margins in your own shop and on a marketplace. Channel decisions should be based on that, not on revenue potential alone.

Minimum order value and free-shipping threshold

If small orders are systematically negative, an adjusted free-shipping threshold or targeted cross-selling that increases basket size often helps.

Deriving targets from contribution margin

From the example you can derive an advertising target that is not plucked from the air:

  • Maximum per order: CM2 (€15.92) is the ceiling for what marketing may cost per order before the order loses money.
  • Target value with a buffer: if you want to cover fixed costs and make a profit, plan well below, for example 60 to 70 percent of CM2. How large the buffer must be follows from your fixed cost structure.
  • New and existing customers separately: for new customers an order with a CM3 near zero can make sense if later purchases follow. That is an assumption you have to support with repeat purchase data, see Customer Lifetime Value.
  • Return rate per product group: a single rate hides outliers. In clothing and shoes, rates are usually well above other ranges, so the calculation belongs per group.

Common mistakes

  • Marketing costs are spread over total revenue instead of new-customer orders, making acquisition look cheaper than it is.
  • Returns are only reflected in revenue; the process costs are missing.
  • Marketplace storage fees end up in overheads and disappear from the product view.
  • Monthly figures are used in which seasonal effects distort the picture.
  • The calculation is built once and never updated.

Where the numbers come from

The calculation stands or falls with the data basis. These sources exist in most companies:

Item Source
Net revenue, discounts order export from the shop system
Returns returns list or returns module, with reason and condition
Cost of goods, freight, duty purchase invoices and freight statements, allocated per unit
Shipping and fulfilment invoices of carriers and logistics providers
Payment fees payout reports of the payment providers
Marketplace fees transaction or settlement reports of the platform
Marketing ad accounts, for new-customer orders with the share of new customers

Two plausibility checks protect against calculation errors: the sum of contribution margins across all products, less fixed costs, should match the result from the accounts, and the return rate in the calculation must match the returns list. If the figures deviate clearly, cost items are usually missing.

Checklist

  • define data sources: accounting, shop, marketplaces, ad accounts, logistics
  • separate per-unit and per-order costs cleanly
  • calculate CM1 to CM3 per product group and channel
  • update monthly and comment on deviations
  • derive marketing targets from CM2
  • put products with negative CM2 up for decision

Contribution margin is also the foundation for customer lifetime value and for any budget planning. Want to check this for your business in concrete terms? Have a look at e-commerce consulting.

Related: Shopify or Shopware: Which Platform Fits Which Business Model

Note: This article is general information only and does not constitute legal, tax or financial advice. For advice on your specific situation, please consult a lawyer or tax adviser.

Want to go through this with your numbers?

Tell me briefly how your shop is set up today. In the initial call we look at contribution margin and the biggest levers.

Book an initial call E-Commerce & Marketing

FAQ

What is a good contribution margin in e-commerce?

There is no universal figure; it depends on category, price level and fixed cost structure. What matters is that CM3 covers fixed costs sustainably and leaves room for investment.

Do marketing costs belong in contribution margin?

Directly attributable costs such as performance advertising belong in CM3. Brand campaigns without a direct link to orders are often treated separately as an investment.

How often should contribution margin be recalculated?

At least monthly, and immediately after major price or cost changes. Fees charged by service providers and marketplaces change regularly.

Is a spreadsheet enough?

To start with, yes. What matters is a clear structure and a link to real data. A BI tool becomes worthwhile when many products and channels have to be analysed continuously.

How do I include returns correctly?

With three parts: refunded revenue, process costs of the return (return shipping, inspection, reconditioning) and the share that cannot be resold. The example above shows how these parts enter CM1 and CM2.

What counts as the break-even ROAS?

The quotient of net revenue after returns and CM2. In the example €38.40 / €15.92 = 2.41. Below this value the order loses money after marketing.

René Schubert
René Schubert is Managing Member of Invictus Global Consult and advises online retailers, brands and property owners from Berlin. He has built his own brands and marketplace businesses.

Further reading