Talk to a CFO
Eightx Talk to a CFO
← All Insights

Unit Economics

eCommerce Contribution Margin: Calculator + Complete Guide

· 11 min read

Contribution margin is the percent of revenue left after all variable costs, the costs that move with each unit sold, and most ecommerce teams overstate it by 8 to 18 percentage points by computing only revenue minus cost of goods. The four costs they skip are returns reserves, blended payment fees of 250 to 360 basis points, fulfilment-stage costs, and variable platform fees. The real number sits below gross margin and above operating margin and sets the maximum you can spend to acquire a customer.

Most ecommerce teams compute contribution margin the easy way: revenue minus cost of goods. Then they make pricing decisions, ad-spend decisions, and channel-expansion decisions off that number. Those decisions are wrong by 8–18 percentage points because that math is wrong. Real contribution margin lives below gross margin and above operating margin, and the four cost categories most teams skip are the ones that decide whether the business actually makes money.

This guide gives you the right formula, the easy mistakes to avoid, and an interactive calculator below to run your own numbers. By the end you will have a number you can actually defend in a board meeting.

What contribution margin actually is

Contribution margin is the dollar (or percent) of revenue left over after all variable costs — the costs that move up and down with each unit sold. It is what you have to spend on fixed costs (rent, salaried payroll, software) before reaching profit.

The formula:

Contribution margin = Revenue − Landed COGS − Variable selling costs − Variable marketing costs − Variable fulfilment costs − Payment processing − Returns reserve

That stack is what we will unpack below. The number that comes out is the maximum amount you can spend on customer acquisition before you start losing money on every order — which makes it the single most important number in ecommerce finance.

Contribution margin calculator

Run your numbers below. The calculator is simplified for the most common DTC and Amazon contribution scenarios. For the full version with channel-level breakdowns + scenario modelling, use our interactive Contribution Margin Calculator tool.

The four costs most teams skip — and the dollars they hide

1. Returns reserve

If your return rate is 8%, every order is mathematically only 92% of a sale. The 8% that come back cost you the original fulfilment cost (gone), often the landed COGS (gone if the unit is unsellable), and the return-processing fee on top. That cost should be reserved on every order, not booked when the return actually happens. Skipping this overstates contribution by 200–600 bps depending on category.

How to compute it: (landed COGS + fulfilment cost) × historical return rate, allocated to every order. If a return is sellable as B-stock (recovered), reduce the reserve by your historical sellable-recovery percentage.

2. Payment processing fees

Stripe + Shopify Payments runs 2.9% + $0.30 on most plans. Pay Pal sits around 3.5%. American Express + Affirm + Klarna stack up further. The blended payment cost on a typical DTC store is 250–360 bps. Many teams skip this entirely. On a $120 AOV that is $3–$4 per order — half a percent of an entire 25% contribution margin.

3. Fulfilment cost (not just shipping)

"Shipping" is the line item every team books. "Fulfilment" includes the warehouse pick-pack labor, the packaging materials, the carrier handoff, the chargebacks for address corrections, and the per-order 3PL fees. Pull the full 3PL invoice and divide by orders shipped — many DTC brands find their true per-order fulfilment cost is $2–$4 higher than they were booking.

4. Variable marketing — not all of it

The subtle one. Performance ads tied directly to acquisition are variable and belong in contribution math. Brand-building TV / podcast sponsorships are not strictly variable — they belong in operating cost. Influencer campaigns split: CPA campaigns are variable; brand campaigns are not. Marketing payroll is fixed. Software for marketing (Klaviyo, ad creative tools) is fixed.

The right split puts 60–80% of total marketing spend in contribution math at the high end (DTC heavy on performance) and 30–50% at the lower end (CPG with strong wholesale/brand-marketing mix). If you put 100% of marketing in contribution, you understate contribution. If you put 0%, you overstate it.

The two definitions of contribution margin and when to use each

There is a real definitional split that confuses ecom finance teams.

CM1 — Contribution margin after variable cost of goods. Revenue − COGS − fulfilment − payment processing − returns reserve. Excludes marketing. This is the maximum you can spend on acquisition before losing money on each order. Use it for: maximum-CAC analysis, channel-mix decisions, pricing decisions.

CM2 — Contribution margin after marketing. CM1 − variable marketing spend. This is the actual cash each incremental order contributes to fixed costs and profit. Use it for: profitability analysis, what-percentage-margin-am-I-actually-making, board reporting.

When a CMO says "we have a 28% contribution margin" they usually mean CM2. When a CFO says "we have a 38% contribution margin" they usually mean CM1. Same business, both correct, different lens. Make sure every meeting clarifies which one is on the table.

Contribution margin by channel

The aggregate number is the average of channels with very different cost structures. Run the math separately by channel and you will find:

  • DTC: Highest CM1 (no marketplace fees). CM2 depends entirely on paid-channel mix. Heavy Meta prospecting → low CM2. Heavy email/SMS retention → high CM2.
  • Amazon: Lower CM1 because of 8–17% referral fee + FBA stack. Often 6–12 pts below DTC. Lower CM2 too once you allocate ads honestly. See FBA Profit Analysis for the proper fee stack.
  • Wholesale: Lowest gross margin and lowest CM1 because retailer takes a stocked-margin layer. But often the highest CM2 because there is no acquisition cost — the retailer is the acquisition machine.

Mixing them produces a blended number that drives no real decisions. The right CFO move: compute contribution by channel, then weight by revenue mix to get the blended view, and report both.

What contribution margin should be by vertical (2026)

Composite ranges for CM2 (after marketing) across public DTC + CPG 2026 data:

  • Beauty / personal care DTC: 18–28%
  • Apparel DTC: 10–22%
  • Outdoor / hardgoods DTC: 14–24%
  • Food & beverage DTC: 4–14%
  • Subscription consumables: 22–34% (subscription economics reward retention math)
  • CPG (wholesale-heavy): 8–18%

For the full breakdown by vertical see average contribution margin by vertical. For comparison against the broader 2026 benchmark set see our 2026 eCommerce KPI Benchmark Report.

How contribution margin drives every other decision

Pricing. If CM1 is 38% and CM2 is 16%, you do not have a "pricing problem" — you have an acquisition cost problem. Raising prices will help; cutting CAC will help more. The math tells you which lever is bigger.

Maximum CAC. Your maximum allowable CAC is CM1 minus a target margin. If CM1 is $50 per order and you want 8 percentage points of margin after marketing, your maximum paid CAC is $50 − ($50 × 8/100) = $46. Spending more loses money on each acquired order.

Channel decisions. Channels below CM2 break-even (after marketing) are losing money on every order. They are sometimes still strategic — wholesale at break-even can be strategic if it pays for shelf placement that drives DTC repeat. But that needs to be a deliberate choice, not an accident.

SKU decisions. SKUs whose CM2 is negative are losing money on every order. Either reprice, redesign the cost structure, or rationalize. See SKU rationalization.

Common mistakes

Mistake 1. Using "gross margin" as a proxy for contribution. Gross margin excludes everything below COGS. It overstates contribution by 8–22 percentage points depending on channel and category.

Mistake 2. Including fixed marketing payroll + software in contribution math. Those are operating costs, not variable. You will understate CM2 and over-react to the wrong KPI.

Mistake 3. Excluding returns reserves. The return-rate cost is real and recurring. Hiding it makes pricing and channel decisions look better than they are.

Mistake 4. Computing one blended contribution margin for the whole business. Channels and SKUs have radically different cost structures. Blending them obscures the decisions you need to make.

Mistake 5. Comparing CM1 to CM2 across companies. If a competitor reports "32% contribution margin" and yours is 18%, you may be comparing CM1 to CM2 — they could be 4 points below you on like-for-like math. Always confirm definition.

How to operationalize contribution margin in your monthly close

Five steps every CFO should run during month-end:

  1. Pull SKU-level revenue + COGS from your accounting system
  2. Pull channel-level fulfilment + payment processing costs from operations
  3. Apply variable-marketing allocation from the ads team
  4. Build a contribution table by SKU × channel × month
  5. Roll up to channel-level CM1 and CM2 for the board pack; keep SKU-level granularity for operating decisions

For the broader operating-finance discipline see our 7-Layer Profitability Audit — Layer 2 is dedicated to the contribution margin reality check and is where most $20M+ DTC brands find their first real margin recovery.

Frequently Asked Questions

What is contribution margin in ecommerce?

Contribution margin is revenue minus all variable costs — landed COGS, fulfilment, payment processing, returns reserve, and (depending on definition) variable marketing. It is the amount of each sale that contributes to fixed costs and profit. In ecommerce specifically, it is the maximum amount you can spend on customer acquisition before losing money on each order.

What's the difference between gross margin and contribution margin?

Gross margin = revenue − COGS only. Contribution margin = revenue − COGS − fulfilment − payment processing − returns reserve − variable marketing. Contribution is always lower than gross. The gap is 8–22 percentage points in most ecommerce businesses, which is exactly the difference between a business that looks profitable and one that actually is.

What is CM1 vs CM2?

CM1 is contribution margin before marketing — revenue minus COGS, fulfilment, payment processing, returns reserve. CM2 is CM1 minus variable marketing. CM1 is the right number for maximum-CAC analysis. CM2 is the right number for profitability analysis. Most teams confuse the two; make sure every meeting clarifies which one is on the table.

What's a good contribution margin for ecommerce?

Composite 2026 CM2 ranges by vertical: beauty DTC 18–28%, apparel DTC 10–22%, outdoor/hardgoods 14–24%, food & bev DTC 4–14%, subscription consumables 22–34%, CPG wholesale-heavy 8–18%. Below the floor of your vertical means a cost-structure problem; above the ceiling means premium positioning is working.

Should I include marketing in contribution margin?

Variable performance marketing, yes (CM2 view). Fixed marketing — payroll, software, brand TV — no (those are operating costs). The split is typically 60–80% of total marketing for performance-heavy DTC and 30–50% for CPG-heavy brands.

How is Amazon contribution margin different from DTC?

Lower by 6–12 percentage points typically. Amazon takes 8–17% referral plus the FBA stack (pick-pack-ship, storage, returns, ad allocation). The bigger issue is that most FBA sellers under-allocate the Amazon-specific cost stack — see our Amazon FBA Profit Analysis for the proper math.

How often should I calculate contribution margin?

Monthly during close (channel-level CM1 + CM2 for the board pack). Quarterly at the SKU level (drives inventory and rationalization decisions). Re-run anytime a cost category changes meaningfully — supplier price change, FBA fee update, new payment processor, new channel launch.

About the Author

Matt Putra, Managing Partner

Matt is the Managing Partner of Eightx and a fractional / interim CFO for ecommerce, DTC, and CPG brands. A former PE investor with $500M+ deployed, Matt and the Eightx team manage $650M+ in combined revenue across 35+ portfolio brands across the US, Canada, Australia, and the UK.

Want results like these?

Get Your Free
Profit Audit

30-minute call. We'll find at least one profit leak in your business—no strings attached.

Talk to a CFO