← All posts
Unit economicsJuly 20267 min readBy Siddharth Deepak — Founder

How to Calculate Contribution Margin for E-commerce (Formula + Worked Example)

Gross margin tells you how the catalog is doing on average. Contribution margin tells you which SKUs are actually paying the bills — and which ones only look profitable.

Why gross margin isn't enough

Gross margin stops at cost of goods. It ignores payment fees, shipping subsidies, packaging, returns, and the ad spend it took to win the order. A SKU can carry a 60% gross margin and still lose money on every unit once those costs land.

contribution_margin = revenue − COGS − payment_fees − fulfillment − returns_cost − variable_ad_spend

Everything in that formula scales with volume. Fixed costs (rent, salaries, software) stay out — that's the point. Contribution margin answers one question: when you sell one more unit, does cash go up or down?

Worked example (sample numbers)

Take a candle priced at $34 with 1,200 units sold in a month:

40,800 − 11,040 − 1,543 − 4,920 − 2,880 − 8,200 = $12,217 → 29.9% contribution margin

Run the same math on a $19 accessory with heavy free-shipping orders and you'll often find contribution margin below zero — a SKU that grows revenue while shrinking the bank account.

Numbers above are illustrative sample data — the formulas are the real thing.

How to run this on your own store

You need order-line detail, not dashboard aggregates: export orders with SKU, price, discount, shipping charged, and region. Join against a COGS sheet. Then compute per SKU, not per store — averages are where losers hide.

Do it monthly. Ad costs and shipping rates drift; a SKU that contributed 25% in Q1 can quietly go negative by Q3 after a carrier rate hike.

Computed, not estimated

ProfitFalcon runs this exact math on your store exports — every number verifiable.

Try ProfitFalcon free