Contribution margin shows what each sale leaves after the costs that rise with it: the product itself, picking and packing, shipping, payment fees and the marketing that won the order. Revenue tells you how much you sold. Contribution margin tells you which products, orders and channels actually pay their way before overhead.

HelloFresh shows why the difference matters. The meal kit company took in €3.2 billion of revenue in the first half of 2026, but according to its interim report, ingredients and cooking took 40.1% of it, fulfillment another 35% and marketing 18.6%. By our calculation, roughly €6 of every €100 was left for head-office salaries, technology and everything else, and the company reported a €39.6 million operating loss for the six months.

This guide shows how to calculate ecommerce contribution margin in three layers (CM1, CM2 and CM3), how it differs from gross margin, how HelloFresh, Wayfair and Naked Wines report it and how to use it to improve your margins.

What is ecommerce contribution margin?

Ecommerce contribution margin is the revenue a sale leaves after subtracting the variable costs of making it. That remainder contributes toward fixed expenses and, once those are covered, profit.

The basic calculation is:

Contribution margin = Net revenue − Variable costs

To express it as a percentage:

Contribution margin % = Contribution margin ÷ Net revenue × 100

This is the standard definition, as in Shopify's contribution margin guide. For an online store, variable costs usually include the product itself, packaging, pick-and-pack, shipping, payment fees, marketplace commissions and often the marketing that brought the order in. Fixed costs, such as rent, salaried staff and software subscriptions, stay out because they don't change with each order.

Say an order generates $80 in net revenue and has $50 in variable costs. It contributes $30, or 37.5% of revenue, toward the rest of the business.

How is contribution margin different from gross margin?

Contribution margin and gross margin differ in which costs they take away. Gross margin subtracts only the cost of goods sold (COGS), while contribution margin subtracts every cost that rises with each sale, including the ones that fall outside COGS. Shopify's gross margin guide, updated in August 2026, gives a simple example: a $100 product with $40 of COGS has a 60% gross margin, and a $10 payment fee on each sale takes its contribution margin down to 50%.

The gap matters most when products cost very different amounts to deliver. Ranked by gross margin, a bulky product with a low unit cost can look like your best item and still leave the least per order.

Two stacked bars for products that both sell for $60. Product A splits into $18 of product cost, $24 to pick, pack, ship and take payment, then $18 of contribution: a 70% gross margin but a 30% contribution margin. Product B splits into $27 of product cost, $9 for delivery and payment, then $24 of contribution: a 55% gross margin and a 40% contribution margin.
Product A has the better gross margin, but its large box costs $24 to pick, pack, ship and take payment for, so it leaves $18 per order to Product B's $24.

Each measure has its own job:

MeasureWhat it subtracts from revenueBest suited to
Gross marginCost of goods soldPricing and supplier negotiations
Contribution marginEvery variable cost of the sale: product, delivery, payment and often marketingComparing products, orders, promotions and channels
Operating profitVariable and fixed costs, including salaries, rent and softwareJudging the business as a whole

What counts as COGS varies, so check before you compare. Wayfair includes shipping and fulfillment in its cost of goods sold, according to its 2025 annual report, so its 30.0% gross margin in the second quarter of 2026 already reflects delivery. A manufacturer may also hold fixed production costs in COGS. Keep the classifications consistent rather than assuming every gross-profit figure matches the first stage of a contribution calculation.

What are CM1, CM2 and CM3?

CM1, CM2 and CM3 are three stages of contribution margin that show where each sale's money goes: after product costs, after delivery and payment costs, then after marketing. They're often used in ecommerce operating reports, although the exact cost groupings vary between businesses, so write down what each layer includes.

Each layer suits a different job. CM1 is ideal for comparing products and negotiating with suppliers. CM2 informs fulfillment and operations decisions, while CM3 is the one for judging campaigns and channels.

CM1: after product costs

CM1 is net revenue minus the variable cost of the products sold, including the landed unit cost of inventory and any product packaging already in that cost.

CM1 = Net revenue − Variable product costs

Net revenue should already reflect discounts and refunds. If an $80 product sells with an $8 discount, begin with $72; don't subtract the discount again later in the calculation.

This stage lets you compare the earning potential of products before order handling and marketing enter the picture.

CM2: after delivery and payment costs

CM2 takes CM1 and subtracts the variable costs of getting each order to the customer and collecting payment.

CM2 = CM1 − Variable fulfillment, shipping and transaction costs

Include pick-and-pack charges, delivery packaging, carrier costs, payment fees and applicable marketplace commissions. Use the rates your business actually pays, since the same product can cost different amounts to deliver to different destinations and through different sales channels.

Returns can add handling and transport costs as well as reducing revenue. Keeping those costs visible shows the full effect of products that come back frequently.

CM3: after marketing

CM3 subtracts the marketing spend allocated to a set of orders from their CM2, showing what's left once you've paid to generate the sales.

CM3 = CM2 − Allocated marketing spend

This layer is best suited to judging campaigns and channels. Advertising budgets don't always vary directly with each order, so note which spending you've included.

On a first-order analysis, you might deduct acquisition spend per new customer. On a monthly store report, you can deduct the period's marketing spend from total CM2. Each expense should appear once, with fixed team and software costs left in overhead unless you've already allocated them above.

How do you calculate contribution margin for an order?

To calculate contribution margin for an order, start with net revenue after discounts and work down through each layer of cost. Here's an $80 product sold with a $10 promotion. In this simplified example, the customer pays no shipping charge and there are no returns or taxes included in revenue.

ItemAmount
Product selling price$80
Discount−$10
Net revenue$70
Variable product cost−$24
CM1$46
Pick, pack and delivery packaging−$4
Shipping−$7
Payment and transaction fees−$3
CM2$32
Allocated marketing spend−$20
CM3$12

The order leaves $12 after the costs shown, equivalent to 17.1% of net revenue. That amount is available for the overhead not already included in the calculation and for profit.

The stages also show where to investigate. A lower product cost would improve all three levels. A less expensive delivery arrangement would improve CM2 and CM3. A more efficient campaign would improve CM3.

What's a good contribution margin for ecommerce?

A good ecommerce contribution margin is one large enough to cover your fixed costs and leave a profit, so the right number depends on which costs you've deducted and how heavy your overhead is. There's no dependable industry benchmark, because the public companies that report contribution margin draw the line in different places:

CompanyReported measureCosts deductedLatest figure
HelloFreshContribution marginIngredients and cooking, then picking, packing, shipping and payment fees (close to CM2)25.4% of revenue, first half of 2026
Naked WinesRepeat Customer contribution marginProduct, fulfillment and service costs, on repeat customers' orders only24% of repeat customer sales, year to March 30, 2026
WayfairContribution marginProduct, shipping and fulfillment, customer service, payment fees and advertising (close to CM3)15.3% of net revenue, second quarter of 2026

Sources: HelloFresh interim report, August 2026, excluding share-based compensation and impairment; Naked Wines full-year results, July 2026; Wayfair second-quarter results, August 2026.

Read side by side, Wayfair's figure looks the weakest, but it's the only one that has already paid for advertising. HelloFresh spent another 18.6% of revenue on marketing in the same half, which by our calculation leaves it less than 7%. Naked Wines' figure covers only customers it has already won; it reports the cost of new customers separately.

So compare your contribution margin with your own fixed costs, at the same layer each time. If CM3 is 12% of revenue and overhead runs at 15%, the gap has to close through more volume, a better margin or lower overhead before the business makes money. Compared with gross margin, which you can benchmark against an industry, contribution margin is mainly a number to track against your own history: month on month, product by product and channel by channel.

Should you measure contribution margin per order, product or channel?

Most stores need contribution margin per order, per product and per channel, because each view answers a different question.

ViewWhat it showsBest suited to
Per orderWhether a typical basket, with its discount and delivery cost, pays its waySetting offers, bundle prices and free-shipping thresholds
Per productWhich items earn the most after their own delivery and return costsMerchandising, reordering and choosing what to advertise
Per channel or marketWhat's left after each channel's fees, commissions and ad spendDeciding where to sell and where to spend

A per-product view is a strong fit when your range mixes small and bulky items, or products with very different return rates. HelloFresh reports contribution margin for each product line, and its two main lines have moved apart. In the first half of 2026, its meal kits kept 28.0% of revenue after ingredients, cooking and fulfillment, while its ready-to-eat meals slipped from 25.7% to 22.5%. The company put the drop down to deliberate product investments and the ramp-up of a new production facility in Germany.

HelloFresh contribution margin by product line

Six months to June 30, excluding share-based compensation and impairment

  1. Meal kits, 202528.6%
  2. Meal kits, 202628.0%
  3. Ready-to-eat, 202525.7%
  4. Ready-to-eat, 202622.5%
Source: HelloFresh Interim Report 2026

Markets differ too. Naked Wines splits its figures by country: in the year to March 30, 2026, its repeat customers in the US produced a 32% contribution margin, compared with 27% in Australia and 18% in the UK, where the company raised prices after new producer responsibility obligations and alcohol duty changes pushed up costs.

Sales channels change the cost of the same order. Selling on Amazon adds a referral fee, which is 15% of the price in categories such as home and kitchen, plus fulfillment fees if Amazon ships the order. On TikTok Shop, sales that affiliate creators drive carry the creator's commission, which belongs in the channel's contribution too. Ian Page, CEO of Bullseye Sellers, told our podcast that success there depends on the product, the video and the affiliate, not the brand name. A product with a healthy CM2 on your own site can leave far less once those costs come out.

How do you improve contribution margin?

You improve contribution margin by cutting variable costs customers don't value or by earning more from each order, without giving up what makes people buy. The largest percentage on a report isn't always the most useful opportunity, so weigh the dollars involved and how many orders a change affects.

Review products and promotions together

A product's contribution margin can look healthy at full price and much weaker under a common promotion, so compare products at the price customers usually pay.

A bundle might earn more total contribution even with a lower percentage margin, because customers buy several relevant items in one shipment. A broad discount could do the opposite if it reduces revenue without adding enough orders. Before a sale, work out how many extra orders it needs to leave the same total contribution as full price; if that number looks unrealistic, the discount is too deep.

Reduce avoidable fulfillment costs

Fulfillment costs are easier to cut once you break them down by product, parcel size and destination. An oversized box, an unnecessary split shipment or a fragile item that repeatedly arrives damaged can create a recurring expense, and products like Product A in the diagram above are where a smaller box, a delivery charge or a minimum order makes the most difference.

Changes to packaging or inventory placement can help, but include their wider effects. A cheaper material that leads to more damage may cost more overall. A larger supplier order may reduce unit costs while tying up more cash in stock.

Investigate returns at the product level

Returns cut contribution twice: the refund removes revenue, and return shipping and handling add cost. Return reasons often point to something you can fix before the next order. Fit problems may call for better sizing information; misunderstood features may need clearer photos or descriptions.

Include refund effects and return-processing costs in the same product view. If returned inventory can be resold, account for its recovery consistently instead of treating every return as a complete inventory loss.

Judge campaigns on contribution, not revenue

A campaign with a strong advertising return can still leave little contribution when the promoted product has high costs. Compare campaigns using the contribution from the orders they bring in, alongside their customer acquisition cost.

That can reveal a different priority from a revenue-only report. A campaign selling fewer high-contribution orders may be more useful than one generating a large volume of heavily discounted purchases. Report CM3 by campaign and channel, not just ROAS, so the comparison shows up.

How do repeat purchases change contribution margin?

Repeat purchases usually leave more contribution than first orders, because the customer doesn't need to be acquired again. Naked Wines, the direct-to-consumer wine retailer, splits its reporting this way because new and repeat customers, in its words, "can have different levels of profitability":

£45.8m

Contribution from repeat customers after fulfillment and service costs, year to March 30, 2026

Naked Wines

£9.2m

Net investment in new customers, including advertising, in the same year

Naked Wines

42 months

Time for a new customer's profit to cover their acquisition cost, down from 75 a year earlier

Naked Wines

Repeat orders still carry product, delivery and transaction costs, and rewards, discounts, messaging and any paid reactivation belong in the calculation too. Ben Zettler, founder of Zettler Digital and a Klaviyo Elite Partner, explained on our podcast why many loyalty tools quietly reduce margin instead of building it.

Using the earlier example, if a repeat order has the same $32 CM2 and needs $4 in allocated retention marketing, it leaves $28 after marketing, compared with $12 for the first order. The lower marketing cost adds $16 to the contribution from that order.

Your own comparison may look different. Understanding it, and adding contribution up across a customer's orders, shows where improving customer lifetime value can add meaningful contribution over time.

How many orders do you need to break even?

To find how many orders you need to break even, divide the fixed costs left outside your contribution calculation by the contribution each order leaves.

If those expenses total $12,000 a month and orders average $12 of contribution after the costs already deducted, you need 1,000 orders to cover them. That assumes the contribution per order and remaining fixed costs stay consistent at that volume.

Separating new-customer orders from repeat purchases makes this view more useful. Their different costs can change how much sales volume the business needs.

Breaking even on paper isn't the same as having cash in the bank, either. Stock bought ahead of the season and ad spend paid before the orders arrive both draw on cash before any contribution comes in.

Final thoughts

Contribution margin makes the cost of selling visible. It connects the product, the order experience and the marketing behind each purchase, so you can see what each sale leaves for the business. HelloFresh, Wayfair and Naked Wines each report a version of it to investors, and Wayfair says its version shows the economic impact of the orders it fulfills.

Start with one consistent definition and calculate it per order, product and channel. Check it before you change a price, a promotion or a fulfillment arrangement. As the store grows, that view keeps your decisions grounded in what your orders actually earn.

Frequently asked questions

Can contribution margin be negative?

Contribution margin is negative when an order's variable costs are bigger than its net revenue, as with a heavily discounted, bulky product shipped free. Every extra order of that kind adds to the loss, so more volume won't fix it. A negative CM3 on a first order can still be a deliberate investment if repeat purchases recover it: Naked Wines reports the net cost of its new customers as an investment and tracks how many months each one takes to pay back.

Should shipping fees customers pay count as revenue?

Shipping fees customers pay belong in net revenue for a contribution margin calculation, provided the full cost of delivery sits in your variable costs. Leaving one side out distorts the result: a $10 shipping charge against a $12 carrier bill is a $2 delivery cost, not $12 or nothing. Sales tax you collect is different, because it isn't your revenue, so leave it out of both.

How does contribution margin relate to break-even ROAS?

Break-even ROAS is 1 divided by your contribution margin before marketing, written as a decimal. If CM2 is 40% of net revenue, a campaign needs a return on ad spend of 2.5 to cover its own cost, and anything lower loses money on the orders it brings in before overhead. Measure both on the same revenue basis, after discounts and refunds. Break-even ROAS only judges a campaign on its own orders, so pair it with a longer-term measure such as the LTV-to-CAC ratio.

Is contribution margin the same as EBITDA?

Contribution margin isn't the same as EBITDA, because EBITDA also subtracts fixed operating costs such as head-office salaries, rent and technology, along with any marketing your contribution figure leaves out. HelloFresh shows how wide the gap can be: in the first half of 2026, its contribution margin before marketing was 25.4% of revenue, while its adjusted EBITDA margin was 4.5%. Contribution margin tells you which sales pay their way; EBITDA tells you whether the whole business does.

How often should you calculate contribution margin?

Most stores should calculate contribution margin monthly, with product and channel views alongside the total, and again before any promotion, price change or new sales channel. Carrier rates, ad costs and discount levels move often enough that an annual figure goes stale. Wayfair reports its contribution margin to investors every quarter.