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

Beat-Competition

How to Calculate Contribution Margin for eCommerce (With Examples)

· 12 min read

Contribution margin for ecommerce is net revenue minus all variable costs, including COGS, shipping, payment processing, and ad spend, not just COGS. Gross margin misses 15 to 25 points of variable costs, so a brand with 55% gross margin can land at 13% contribution margin. The CM1, CM2, CM3 framework splits margin into product, fulfillment, and marketing layers, and a CM3 of 20 to 25% is the minimum for sustainable growth.

Key Takeaways

  • Contribution margin is net revenue minus all variable costs — not just COGS. Gross margin misses 15–25 points of variable costs.
  • The CM1/CM2/CM3 framework breaks margin into three layers: product (CM1), fulfillment (CM2), and marketing (CM3) — so you can see exactly where margin disappears.
  • Target CM3 of 20–25% minimum for sustainable growth. Below 15%, growth is accelerating losses.
  • The same product sold on different channels can produce wildly different CM3 — DTC at 34% vs Amazon at 30% vs wholesale at 34% (but $10 less per unit); pair this with CAC by channel to see which sources actually clear margin.
  • A $60M brand discovered a 15-point gap between gross margin (55%) and CM2 (40%), then recovered 4 points of blended CM3 through channel reallocation.

Revenue is vanity. Gross margin is a half-truth. Contribution margin is the number that tells you whether your business actually works.

Contribution margin for ecommerce is net revenue minus all variable costs — including COGS, shipping, payment processing, and advertising — showing what remains to cover fixed costs and generate profit.

Most ecommerce brands track gross margin religiously. They know their COGS percentage, they know their gross profit. (For where it actually lands across public DTC brands, see our 2026 DTC gross margin benchmark from latest 10-K filings.) But gross margin ignores shipping, payment processing, marketplace fees, returns, and the ad spend required to drive every sale. A brand with a 55% gross margin might have a 35% contribution margin — or a 15% unit contribution margin. The difference between those two numbers determines whether growth is profitable or whether you are subsidizing every new customer.

I have served as fractional CFO for 35+ ecommerce and CPG brands with $650M+ in combined revenue, and contribution margin is the first thing we calculate in every engagement. Not revenue growth. Not gross margin. Contribution margin — because it tells you how many cents are actually left from every dollar of revenue after removing every variable cost.

This article walks through the calculation step by step, introduces the CM1/CM2/CM3 framework we use with every client, and provides benchmarks by category and channel. For the full per-vertical breakdown of CM1, CM2, and CM3 ranges, see our Average Contribution Margin by Vertical companion benchmark.

What Is Contribution Margin (and Why Gross Margin Is Not Enough)?

Gross margin only subtracts COGS from revenue. For an ecommerce brand, that misses 15–25 points of variable costs sitting between gross profit and actual contribution.

MetricBrand ABrand B
Revenue$100$100
COGS($45)($40)
Gross margin55%60%
Shipping + processing + returns($17)($10)
Variable ad spend($25)($15)
Contribution margin13%35%

Brand B has the higher gross margin and dramatically better contribution margin. Brand A, despite a respectable 55% gross margin, has only 13 cents left from every dollar. That brand cannot afford to invest in growth.

This is exactly why I tell every CEO I work with: stop making decisions based on gross margin. The way I look at finance and budget is through contribution margin. What is the number of cents left over after removing every variable cost from a dollar of revenue? That is the number that determines your capacity to grow, hire, and invest.

Step-by-Step: How to Calculate Your eCommerce Contribution Margin

Step 1 — Start With Net Revenue

Gross sales is not revenue. Net revenue is:

Net Revenue = Gross Sales - Discounts - Returns - Refunds - Chargebacks

Example: $500,000 in gross sales, $35,000 in discounts, $75,000 in returns/refunds = $390,000 net revenue.

Do not skip this step. I have seen brands calculate contribution margin on gross sales, which inflates the number by 10–15% and leads to dangerously wrong decisions. Returns alone can swing this significantly — our return rate guide covers what to expect by category.

Step 2 — Identify Every Variable Cost

Here is the complete list of variable costs in a typical ecommerce business:

Variable CostTypical % of RevenueNotes
COGS (product cost)35–55%Varies dramatically by category
Shipping & freight6–12%Outbound to customer
Payment processing2.5–3.5%Stripe, PayPal, Shopify Payments
Packaging1–3%Boxes, inserts, tissue, tape
Pick & pack labor1–3%Per-order 3PL or warehouse cost
Marketplace fees8–15%Amazon referral + FBA, Walmart, etc.
Return processing1–5%Reverse logistics, inspection, restocking
Affiliate/commission0–8%Revenue share programs
Variable ad spend15–30%Meta, Google, TikTok, Amazon PPC

What is NOT a variable cost: rent, salaries, SaaS subscriptions (Shopify, Klaviyo, etc.), insurance, accounting fees. These are fixed costs. They do not change with each additional order. The rule of thumb for ecommerce brands is that any fixed cost you add requires four to five times revenue to cover it. So be very careful about loading up on fixed costs too early — that is the number one mistake I see.

Step 3 — Calculate CM by Layer (The CM1/CM2/CM3 Framework)

This is the framework we use at Eightx with every client. We actually learned it from operators in the UK — it is not as common in North America — but it is the most precise way to understand where margin disappears in an ecommerce business.

CM1 (Gross Profit) = Revenue - COGS

CM1 tells you about product economics. Is your product priced correctly relative to what it costs to make or procure? If CM1 is below 50% for a DTC brand, there is often a structural issue in sourcing or pricing that needs to be addressed before anything else matters.

CM2 (After Fulfillment) = CM1 - Shipping - Processing - Packaging - Commissions

CM2 is the order-level truth. It tells you how much money you actually make on each order before considering how much it cost to acquire the customer. CM2 is where I often catch the biggest surprises. A typical client runs about 55% gross margin and comes in around 40–43% CM2. That 12–15 point gap is the cost of actually getting the product to the customer.

CM3 (After Marketing) = CM2 - Variable Ad Spend

CM3 is the number. It tells you what is actually left to cover fixed costs and generate profit. I target CM3 at 20–25% minimum for any brand that wants to scale sustainably. If your CM3 is below 15%, growth is not solving anything — it is accelerating losses.

Here is how I walk clients through it: if my target CM3 is 20%, and my CM2 is 43%, that means I can spend 23% of revenue on variable ad spend. That is the budget. The way I explain it: “$100 of revenue, $43 with which to have net profit or CM3. So if my target is $20 CM3, that means I can spend $23 on marketing.”

Step 4 — Walk Through the Math: Complete CM Waterfall

Line ItemAmount% of Net Revenue
Gross Revenue$100.00
Discounts & Returns($5.00)
Net Revenue$95.00100%
COGS($42.75)45%
CM1 (Gross Profit)$52.2555%
Shipping & Freight($7.60)8%
Payment Processing($2.85)3%
Packaging($1.90)2%
Pick & Pack($1.90)2%
CM2 (After Fulfillment)$38.0040%
Variable Ad Spend($19.00)20%
CM3 (True Contribution)$19.0020%

At 20% CM3, this brand needs $5 of revenue for every $1 of fixed costs. If monthly fixed costs are $100K, the brand needs $500K/month in revenue to break even. If monthly fixed costs are $150K, the brand is losing money on every marginal dollar and needs either more revenue, lower fixed costs, or better unit economics. That is the direct operational implication of this number.

For your specific numbers, try our Contribution Margin Calculator — it breaks down every line.

Step 5 — Calculate by Channel

The same product sold on different channels can have wildly different contribution margins:

DTC (Shopify)Amazon FBAWholesale
Selling Price / Net Revenue$75.00$75.00$45.00 (60% of retail)
COGS($22.50)($22.50)($22.50)
CM1$52.50 (70%)$52.50 (70%)$22.50 (50%)
Shipping($6.00)(in FBA fee)($2.00)
Payment Processing($2.25)(in referral fee)($0.50)
Marketplace/FBA Fees($11.25) 15%
Amazon Referral Fee($11.25) 15%
Trade Spend (10%)($4.50)
CM2$44.25 (59%)$30.00 (40%)$15.50 (34%)
Variable Ad Spend($18.75) 25%($7.50) 10% PPC$0
CM3$25.50 (34%)$22.50 (30%)$15.50 (34%)

Note: DTC produces $25.50 CM3 per unit vs wholesale at $15.50 per unit — but wholesale requires no marketing investment, so the CM3 on total dollars deployed may favor wholesale at scale. The CM3 percentages for DTC and wholesale are similar (34%), but DTC produces $10 more in absolute dollars per unit.

This is why I tell brands: your highest-revenue channel may be your worst profit channel. Amazon drives volume, but between referral fees, FBA costs, and PPC, the margin compression is significant.

What I see consistently across clients: wholesale contribution margin tends to be upwards of 30%, and DTC contribution margin usually runs 20–30%. And in retail — the contribution margins through retail are better than most people think. A good contribution margin in DTC is 20%. In wholesale retail, 30% is probably the lower bound after trade spend. The absence of customer acquisition cost changes the math entirely.

Step 6 — Calculate by SKU

Not all products are created equal. SKU-level contribution margin analysis is where the real profit optimization happens. Every brand I work with has products that look great on the top line but are destroying margin once you account for higher return rates, heavier shipping costs, or lower sell-through.

The approach:

  1. Export SKU-level data: revenue, units, COGS, returns
  2. Allocate variable costs by SKU (shipping by weight, returns by SKU-level rate)
  3. Calculate CM2 per SKU
  4. Rank SKUs by total CM2 contribution (not just revenue)
  5. Identify the bottom 20% — candidates for price increases, discontinuation, or bundling

Case Study: How Channel-Level CM Analysis Recovered 4 Points of Blended Margin

A $60M green cleaning products company we served as fractional CFO had been reporting 55% gross margins to their board and investors. They felt good about the number. But they had never calculated CM3 by channel.

When we built the contribution margin waterfall, the DTC channel was running 28% CM3 — healthy. But their rapidly growing wholesale channel, which they had been celebrating, was running 18% CM3 after trade spend, promos, and listing fees. And their Amazon channel — the fastest-growing segment — was at 13% CM3 after referral fees, FBA costs, and PPC.

The blended CM3 was 22%, but the blended number hid the fact that every incremental dollar of Amazon revenue was producing less than half the margin of a DTC dollar. They were shifting their revenue mix toward the lowest-margin channel and wondering why profitability was not improving despite growing top-line revenue.

We restructured their channel investment to shift marketing dollars toward DTC — where CM3 was highest — while renegotiating Amazon PPC targets to a minimum 20% CM3 threshold. Within two quarters, blended CM3 improved from 22% to 26% without a significant drop in total revenue.

Contribution Margin Benchmarks for eCommerce (2026)

These ranges reflect 2026 industry data across 50+ brands we have served and published third-party benchmarks. Your actual CM will vary based on product mix, channel mix, and operational efficiency. CM3 benchmarks assume blended new + returning customer economics. Brands with high repeat purchase rates will show higher CM3 because returning customers do not carry acquisition cost.

By Category

CategoryCM1 (Gross Margin)CM2 (After Fulfillment)CM3 (After Marketing)
Beauty & skincare65–80%50–65%30–45%
Supplements & vitamins60–75%45–60%25–40%
Pet products50–65%35–50%20–30%
Fashion & apparel50–60%30–40%15–25%
Electronics & tech30–50%20–35%15–25%
Food & beverage40–55%25–35%10–20%
Home goods45–60%30–45%15–25%

Beauty and supplements lead because COGS is low relative to price, shipping is light, and subscription models reduce acquisition cost on repeat orders. Food and beverage sits at the bottom because margins are compressed by perishability, heavy shipping, and lower average order values.

By Channel

ChannelTypical CM3 RangeKey Margin Drains
DTC (Shopify)20–30%Ad spend, shipping, returns
Amazon FBA10–20%Referral fees (8–15%), FBA fees, PPC
Wholesale (B2B)25–37%Lower price point, but no ad spend
Retail (CPG/grocery)30–45%Trade spend (15–25% of retail revenue)

How to Improve Your Contribution Margin

Price Optimization

A 5% increase in average selling price, with stable variable costs, produces outsized CM improvement. At one apparel client, a modest price increase on their core line added 6 points of CM3 because the entire variable cost base was unchanged — every additional dollar of revenue dropped straight to contribution margin.

Value-based pricing, not cost-plus. If your product delivers genuine differentiation, price it accordingly. The brands that compete on price are the ones with the thinnest margins and the most fragile economics.

COGS Reduction

Negotiate supplier terms through bulk commitments or longer-term contracts. Brands that manufacture private label achieve meaningfully better CM1 than resellers. Even 2–3 points of COGS improvement flows to every layer of contribution margin.

Landed cost optimization is underutilized. If you are importing, your landed cost includes duties, freight, insurance, and customs brokerage — not just the supplier invoice. Getting the full landed cost right often reveals 1–3 points of CM1 improvement hiding in logistics.

Shipping and Fulfillment

One brand improved margins by approximately 20% through logistics optimization alone — renegotiating carrier rates, right-sizing packaging, and moving to a 3PL closer to their customer concentration. At a $10M brand, that was roughly $300K in recovered annual margin.

Negotiate carrier rates annually. Optimize package dimensions. Explore zone-based or flat-rate models. Every point of fulfillment cost reduction improves CM2.

Channel Mix Optimization

If your DTC CM3 is 30% and your Amazon CM3 is 12%, every dollar shifted from Amazon to DTC improves blended contribution margin. This does not mean abandoning Amazon — it means understanding the role each channel plays and allocating investment accordingly.

For CPG brands, retail often provides the best contribution margin because trade spend (15–25%) is lower than DTC ad spend (20–30%) and the volume is higher. Understanding your channel-level profitability is essential.

Return Rate Reduction

Every point of return rate reduction directly improves contribution margin. If your return rate drops from 20% to 18%, that is an additional 2% of revenue that does not get refunded — plus the avoided processing costs. For a $10M brand, that is $200K+ in recovered margin.

Common Mistakes When Calculating Contribution Margin

  1. Treating ad spend as fixed. Variable ad spend scales with revenue. It belongs in CM3, not in fixed costs.
  2. Using gross margin as a proxy. Gross margin misses 15–25 points of variable costs. It is not contribution margin.
  3. Ignoring marketplace fees. Amazon charges 8–15% referral fees plus FBA fees. These must be in your CM calculations.
  4. Not calculating by channel. A blended CM3 of 22% might mean DTC is at 30% and Amazon is at 8%. The blend hides the problem.
  5. Forgetting return costs. Returns are variable. The refund, processing, and write-off all reduce CM.

Frequently Asked Questions

What is a good contribution margin for ecommerce?

A good CM3 (contribution margin after all variable costs including advertising) for ecommerce brands is 20–25% for growth-stage brands and 25–35% for mature brands. CM2 (before advertising) should typically be 35–45%. Beauty and supplement brands often achieve higher CM3 (30–45%) due to low COGS and light shipping, while food and beverage tends to be lower (10–20%) due to compressed margins and heavy fulfillment costs.

What is the difference between CM1, CM2, and CM3?

CM1 is gross profit — revenue minus COGS. CM2 is CM1 minus all fulfillment and transaction costs (shipping, payment processing, packaging, marketplace fees). CM3 is CM2 minus variable advertising spend. CM3 represents what is truly left to cover fixed costs and generate profit. For most ecommerce brands, the gap between CM1 and CM3 is 25–35 percentage points.

How do you calculate contribution margin per order?

Take the order’s net revenue (sale price minus any discount or return), subtract COGS, shipping cost, payment processing fee, packaging cost, and any marketplace fees. The result is CM2 per order. To get CM3, subtract the blended cost per acquisition allocated to that order. Example: $75 order - $22.50 COGS - $6 shipping - $2.25 processing - $1.50 packaging = $42.75 CM2 (57% margin).

What variable costs should be included in contribution margin?

All costs that scale directly with revenue or order volume: COGS, outbound shipping, payment processing fees (2.5–3.5%), packaging, pick-and-pack labor, marketplace commissions (Amazon 8–15%), affiliate commissions, return processing costs, and variable advertising spend. Fixed costs such as salaries, rent, software subscriptions, and insurance are excluded — these are what contribution margin covers.

How does contribution margin differ by sales channel?

DTC (Shopify) typically produces CM3 of 20–30%, driven by full pricing control but offset by ad spend and shipping. Amazon FBA produces CM3 of 10–20% due to referral fees (8–15%), FBA fees, and PPC. Wholesale produces CM3 of 25–37% because there is no ad spend, though the top-line price is lower. Retail (CPG) can produce CM3 of 30–45% despite trade spend of 15–25%. Always calculate contribution margin by channel — blended figures hide the real economics.


The brands that win in 2026 are not the ones with the highest revenue — they are the ones that know exactly how many cents they keep from every dollar.

Once you have CM3 by channel, the next step is connecting it to debt and growth decisions. Below 10% CM3, no new debt; 25%+ CM3, debt becomes a lever. We walk through this in Cash Flow Mastery: Beyond the 13-Week Forecast, where the contribution-margin-gated debt rules tie directly to the CM1/CM2/CM3 framework above. The other axis is the cash conversion cycle — how long each contribution-margin dollar stays trapped in inventory, AR, and AP before it's redeployable.

Want us to build your contribution margin waterfall? Book a Growth Economics Audit — we will calculate your CM1, CM2, and CM3 by channel and SKU and show you exactly where margin is being created and destroyed.

About the Author

Matt Putra, Managing Partner

Matt Putra is the Managing Partner of Eightx and a fractional CFO for eCommerce and CPG brands. A former PE investor with $500M+ deployed, Matt has served as fractional CFO for 35+ brands with $650M+ in combined revenue. He specialises in structural financial redesign for $5M–$50M DTC and CPG brands — unit economics, cash flow architecture, and the sequencing decisions that determine whether growth is durable or fragile.

Ready to see your real margins?

Get Your Free
Profit Audit

30-minute call. We’ll calculate your CM1, CM2, and CM3 by channel and SKU and show you exactly where margin is being created and destroyed.

Talk to a CFO