The ZyG Blog

The ZyG Blog

The ZyG Blog

Ecommerce Contribution Margin: How to Calculate and Improve It

Ecommerce Contribution Margin: How to Calculate and Improve It

Ecommerce Contribution Margin: How to Calculate and Improve It

What ecommerce contribution margin measures

Ecommerce contribution margin is revenue left after variable costs including product cost, shipping, returns, and payment fees. It is the money remaining to cover fixed overhead and eventually produce profit.

Revenue tells you how much came in. Contribution margin tells you how much of it survived the sale.

For DTC founders this is usually the more important number, because a brand can grow fast on top-line revenue while weakening underneath. Orders that require heavy discounting, expensive paid acquisition, subsidised shipping, and a high return rate can grow sales while eroding the economics that fund them.

Contribution margin is where pricing, CAC, fulfilment, payment fees, and returns connect into one operating picture. It replaces "are we growing" with the more useful question: are we growing in a way that leaves enough behind to support the business?

Contribution margin vs gross margin vs net profit

Three metrics, three different questions, and confusing them produces bad decisions.



Metric

What it usually includes

What it tells you

Gross margin

Revenue minus cost of goods sold

Whether the product is priced above production cost

Contribution margin

Revenue minus variable costs such as COGS, fulfilment, payment fees, returns, discounts, and often channel acquisition costs

Whether each order, SKU, or channel contributes enough to support the business

Net profit

Revenue minus all costs including fixed overhead, payroll, software, and rent

Whether the business is profitable overall

A product can carry strong gross margin and weak contribution margin once shipping, returns, and paid acquisition land. A brand can post positive contribution margin and still lose money overall if fixed overhead is too high.

Why revenue growth hides weak contribution margin

Revenue growth is visible and contribution deterioration is not, because the leakage spreads across several lines at once: deeper discounting to hold conversion, rising ad costs pushing up CAC, free shipping absorbing fulfilment expense, return-heavy categories where net revenue falls after refunds, and product mix drifting toward lower-margin SKUs.

A founder watching sales rise month over month can reasonably assume the business is strengthening. If each additional order contributes less than the one before it, scale makes the problem larger rather than smaller, which is the pattern behind most DTC brands that stall.

How to calculate it

Start with net revenue, then subtract the variable costs attached to that sale.

Contribution Margin ($) = Net Revenue − Variable Costs
Contribution Margin (%) = Contribution Margin ($) ÷ Net Revenue × 100

Variable costs typically include cost of goods sold, packaging, pick-and-pack fees, shipping costs and subsidies, payment processing, discounts, refunds and returns reserve, and channel-specific acquisition costs where the analysis calls for them.

Fixed overhead stays below the line: salaries not tied to order volume, rent, general software, agency retainers that do not flex with orders, executive payroll, and broad brand marketing not allocated per order.

The objective is a consistent definition reflecting the real economics of a sale, not one perfect formula. The calculation applies at order, SKU, campaign, channel, and cohort level, and the structure has to stay stable enough that comparisons hold.

A worked example



Line item

Amount

Product sale price

$80.00

Discount applied

-$10.00

Net revenue before returns

$70.00

Returns reserve

-$5.00

Net revenue

$65.00

COGS

-$18.00

Packaging

-$2.00

Pick-and-pack

-$4.00

Shipping subsidy

-$7.00

Payment processing

-$2.50

Paid acquisition cost

-$18.00

Contribution margin

$13.50

Contribution margin percentage is $13.50 ÷ $65.00 = 20.8%.

An $80 sale becomes $13.50 of contribution after discounting, returns reserve, fulfilment, fees, and acquisition. The order still contributes positively, and the compression is the point: small leaks compound, and each one is individually easy to dismiss.

Common calculation mistakes

Six errors recur:

  • Using gross sales instead of net revenue. Excluding refunds, discounts, and cancellations makes margin look better than reality.

  • Ignoring payment processing fees. They are variable and belong in the calculation.

  • Leaving out shipping subsidies or packaging. Minor in isolation, material in aggregate.

  • Blending fixed and variable costs. Mixing payroll and rent with order-level fees makes the metric useless for decisions.

  • Trusting platform dashboards. Most report revenue and ad spend well and handle returns, fulfilment leakage, and fee structure poorly.

  • Treating acquisition cost identically in every analysis. Product-level analysis may exclude CAC; channel analysis usually includes it.

How to use it for operating decisions

Contribution margin beats ROAS alone because it reflects what a sale actually leaves behind.

A campaign can post attractive ROAS and still be weak once discounts, low AOV, or high returns are counted. Another can show lower ROAS and generate healthier contribution because customers buy full price, keep the product, and repeat sooner. Reading it alongside blended ROAS catches the gap.

The metric sharpens decisions across acquisition channels, campaigns, SKUs, bundles, promotions, shipping offers, and cohorts. It also sets guardrails: instead of asking whether spend drives revenue, ask whether it drives enough contribution to justify more spend.

Channel and campaign decisions

A paid social campaign can look strong on click-through and conversion while depending on a 20% discount and attracting high-return customers, leaving contribution weak. Search or creator partnerships can show lower headline blended ROAS and better payback, because orders arrive at higher AOV with lower return rates.

Blended metrics hide those pockets, which is why contribution should be reviewed by channel and campaign rather than in aggregate.

SKU and assortment planning

Not every high-revenue product is a good scale candidate. A bulky item sells well and carries high freight. A fashion SKU converts well and suffers high returns. A hero product moves volume only under constant discounting. In each case top-line demand looks healthy while contribution is under pressure.

SKU-level contribution informs assortment planning, discontinuation, bundle design, merchandising priorities, and which products deserve paid scale.

Pricing and promotion strategy

Discounting improves conversion in the short term without necessarily being healthy. Contribution margin gives a cleaner test for percentage-off offers, bundles, subscriptions, free shipping thresholds, and upsells.

The goal is more economically sound orders rather than simply more orders. A promotion lifting conversion while cutting contribution too sharply is not worth keeping. A bundle raising AOV and lowering effective fulfilment cost per item can be healthier even when conversion barely moves.

What counts as a good contribution margin

No universal benchmark exists, because healthy levels depend on category, price point, repeat purchase behavior, return rates, and acquisition model.

A brand with strong replenishment tolerates thinner first-order contribution than a one-time purchase business. A high-return category needs more margin room than a low-return one. A premium brand selling at full price has a different structure from a discount-led volume brand.

What matters is whether contribution margin is consistently positive where it needs to be, stable enough to scale responsibly, and strong enough to support overhead and cash needs over time.

Why benchmarks vary by business model



Business model

Common contribution dynamics

Consumables

Repeat behavior can justify thinner first-order economics if retention is strong

Apparel

Returns and discount dependency put more pressure on contribution

Beauty

Benefits from replenishment and bundling, though CAC still binds

High-ticket products

Absorb higher CAC in dollars, with larger fulfilment and return risk

Subscription-led brands

Cohort behavior dominates, since repeat orders change the economics materially

New vs returning customers

Splitting contribution by customer type is the most important cut in DTC.

Some brands afford thin or negative first-order contribution because repeat cohorts are reliably strong. Others cannot, and where retention is weak, losing money on the first order is simply losing money.

Contribution should therefore be reviewed separately for new customers, returning customers, subscription versus one-time buyers, and acquisition cohorts over time. Forecasting that repeat behavior rather than assuming it is the subject of LTV, the metric behind agentic scale. A healthy repeat engine changes the picture materially, though assuming future retention will rescue weak first-order economics, without data already showing it, is how brands scale into trouble. Our guide to CAC payback period covers how to put a number on that window.

Limits of the metric

Contribution margin cannot explain cash flow timing, inventory risk, fixed-cost burden, seasonality exposure, or the long-term brand effects of pricing decisions.

A brand can show positive contribution margin and still hit cash constraints through poorly timed inventory. Another can protect short-term contribution by pulling back on growth and weaken the brand longer term. Use it as a core operating metric rather than the only one.

How to improve it

Improvement starts with finding where margin leaks rather than defaulting to "spend less on ads" or "raise prices." The first question is whether the problem sits on the revenue side, the cost side, or in product-channel mix.

Revenue-side levers

Five levers work on the revenue side: pricing discipline where discounting has become a crutch rather than a strategy, bundle design that lifts AOV and spreads fulfilment cost across items, cart and post-purchase upsells that add contribution without new acquisition spend, subscription logic for genuine replenishment products, and merchandising that features products combining healthy demand with healthy economics.

Cost-side levers

Founders usually have more upside here than they expect: COGS through supplier negotiation or design simplification, packaging where materials or dimensional weight inflate shipping, pick-and-pack fees where fulfilment structure no longer matches the order profile, payment fees through processor mix, returns operations through better sizing and clearer product pages, and shipping policy including thresholds, zone strategy, and how much subsidy the business can genuinely afford.

The right fix depends on where the pressure sits. High returns need a different response from high CAC, and a freight-heavy SKU problem is not solved by discounting harder.

Build a contribution margin dashboard

Consistent reporting matters more than a perfect finance stack. Track contribution by order, SKU, channel, campaign, new versus returning customer, and cohort.



Field

Why it matters

Net revenue

Prevents gross-sales distortion

Discount rate

Shows how much demand depends on promotion

COGS

Anchors product-level economics

Fulfilment and shipping cost

Surfaces operational leakage

Payment fees

Captures real transaction cost

Return or refund rate

Protects against overstated revenue quality

CAC by channel or campaign

Connects media efficiency to margin

Contribution margin dollars

Shows what each sale leaves behind

Contribution margin percentage

Enables comparison across products and channels

A weekly view suits operating decisions, with deeper monthly review for trend analysis. The purpose is catching deterioration early rather than after the month closes and the revenue number already looks locked in. Where this sits in the wider plan is covered in our ecommerce growth strategy guide.

Frequently asked questions

Should CAC sit inside contribution margin or below it?

Both placements are valid and they answer different questions, so the rule is to fix one per analysis and label it. Product and SKU analysis usually excludes CAC, because traffic is blended and attributing it per SKU is guesswork. Channel, campaign, and cohort analysis usually includes it, because the whole point is judging whether that spend earned its keep. Moving CAC between the two mid-report is what makes margin trends untrustworthy.

How do you allocate contribution margin across a multi-SKU order?

Shared order costs such as shipping, packaging, and payment fees are allocated across the SKUs in the basket, most simply in proportion to each item's net revenue. Allocating them entirely to one line makes that SKU look unprofitable and flatters the others. The allocation method matters less than applying the same one every time, since SKU-level decisions get made on the comparison rather than the absolute figure.

Does contribution margin include the cost of free returns and exchanges?

Free returns and exchanges are variable costs and belong inside contribution margin, covering the refunded revenue, the outbound shipping already spent, the return shipping, and the labour to inspect and restock. Counting only the refund understates the true cost of a return by roughly the fulfilment spend that never comes back. Categories running generous return policies feel this most and should model it explicitly rather than inside a general reserve.

Can a brand run negative contribution margin on first orders?

Negative first-order contribution is survivable only where repeat purchase is already proven in the data, because the second and third orders are what recover the loss. Brands do it deliberately in replenishment categories with reliable reorder rates. Doing it on assumed future retention rather than measured retention is the most common way a growing brand runs out of cash while revenue climbs.

Does contribution margin improve automatically as order volume grows?

Volume improves contribution margin only where a cost is genuinely volume-sensitive, such as unit COGS falling at larger production runs or fulfilment rates improving at higher tiers. Payment fees, shipping subsidies, and return rates are broadly flat per order and do not improve with scale. Expecting margin to fix itself through growth is the assumption behind most brands that scale into losses.

How does contribution margin set the maximum CAC a brand can pay?

Contribution margin per order sets the ceiling on what a first order can spend to acquire a customer while staying immediately profitable. An order contributing $13.50 before acquisition cost cannot pay more than $13.50 in CAC without going negative on that first purchase. Paying above it is a deliberate bet on repeat purchase, and the size of that bet should be sized against measured repeat rate rather than hope.


What ecommerce contribution margin measures

Ecommerce contribution margin is revenue left after variable costs including product cost, shipping, returns, and payment fees. It is the money remaining to cover fixed overhead and eventually produce profit.

Revenue tells you how much came in. Contribution margin tells you how much of it survived the sale.

For DTC founders this is usually the more important number, because a brand can grow fast on top-line revenue while weakening underneath. Orders that require heavy discounting, expensive paid acquisition, subsidised shipping, and a high return rate can grow sales while eroding the economics that fund them.

Contribution margin is where pricing, CAC, fulfilment, payment fees, and returns connect into one operating picture. It replaces "are we growing" with the more useful question: are we growing in a way that leaves enough behind to support the business?

Contribution margin vs gross margin vs net profit

Three metrics, three different questions, and confusing them produces bad decisions.



Metric

What it usually includes

What it tells you

Gross margin

Revenue minus cost of goods sold

Whether the product is priced above production cost

Contribution margin

Revenue minus variable costs such as COGS, fulfilment, payment fees, returns, discounts, and often channel acquisition costs

Whether each order, SKU, or channel contributes enough to support the business

Net profit

Revenue minus all costs including fixed overhead, payroll, software, and rent

Whether the business is profitable overall

A product can carry strong gross margin and weak contribution margin once shipping, returns, and paid acquisition land. A brand can post positive contribution margin and still lose money overall if fixed overhead is too high.

Why revenue growth hides weak contribution margin

Revenue growth is visible and contribution deterioration is not, because the leakage spreads across several lines at once: deeper discounting to hold conversion, rising ad costs pushing up CAC, free shipping absorbing fulfilment expense, return-heavy categories where net revenue falls after refunds, and product mix drifting toward lower-margin SKUs.

A founder watching sales rise month over month can reasonably assume the business is strengthening. If each additional order contributes less than the one before it, scale makes the problem larger rather than smaller, which is the pattern behind most DTC brands that stall.

How to calculate it

Start with net revenue, then subtract the variable costs attached to that sale.

Contribution Margin ($) = Net Revenue − Variable Costs
Contribution Margin (%) = Contribution Margin ($) ÷ Net Revenue × 100

Variable costs typically include cost of goods sold, packaging, pick-and-pack fees, shipping costs and subsidies, payment processing, discounts, refunds and returns reserve, and channel-specific acquisition costs where the analysis calls for them.

Fixed overhead stays below the line: salaries not tied to order volume, rent, general software, agency retainers that do not flex with orders, executive payroll, and broad brand marketing not allocated per order.

The objective is a consistent definition reflecting the real economics of a sale, not one perfect formula. The calculation applies at order, SKU, campaign, channel, and cohort level, and the structure has to stay stable enough that comparisons hold.

A worked example



Line item

Amount

Product sale price

$80.00

Discount applied

-$10.00

Net revenue before returns

$70.00

Returns reserve

-$5.00

Net revenue

$65.00

COGS

-$18.00

Packaging

-$2.00

Pick-and-pack

-$4.00

Shipping subsidy

-$7.00

Payment processing

-$2.50

Paid acquisition cost

-$18.00

Contribution margin

$13.50

Contribution margin percentage is $13.50 ÷ $65.00 = 20.8%.

An $80 sale becomes $13.50 of contribution after discounting, returns reserve, fulfilment, fees, and acquisition. The order still contributes positively, and the compression is the point: small leaks compound, and each one is individually easy to dismiss.

Common calculation mistakes

Six errors recur:

  • Using gross sales instead of net revenue. Excluding refunds, discounts, and cancellations makes margin look better than reality.

  • Ignoring payment processing fees. They are variable and belong in the calculation.

  • Leaving out shipping subsidies or packaging. Minor in isolation, material in aggregate.

  • Blending fixed and variable costs. Mixing payroll and rent with order-level fees makes the metric useless for decisions.

  • Trusting platform dashboards. Most report revenue and ad spend well and handle returns, fulfilment leakage, and fee structure poorly.

  • Treating acquisition cost identically in every analysis. Product-level analysis may exclude CAC; channel analysis usually includes it.

How to use it for operating decisions

Contribution margin beats ROAS alone because it reflects what a sale actually leaves behind.

A campaign can post attractive ROAS and still be weak once discounts, low AOV, or high returns are counted. Another can show lower ROAS and generate healthier contribution because customers buy full price, keep the product, and repeat sooner. Reading it alongside blended ROAS catches the gap.

The metric sharpens decisions across acquisition channels, campaigns, SKUs, bundles, promotions, shipping offers, and cohorts. It also sets guardrails: instead of asking whether spend drives revenue, ask whether it drives enough contribution to justify more spend.

Channel and campaign decisions

A paid social campaign can look strong on click-through and conversion while depending on a 20% discount and attracting high-return customers, leaving contribution weak. Search or creator partnerships can show lower headline blended ROAS and better payback, because orders arrive at higher AOV with lower return rates.

Blended metrics hide those pockets, which is why contribution should be reviewed by channel and campaign rather than in aggregate.

SKU and assortment planning

Not every high-revenue product is a good scale candidate. A bulky item sells well and carries high freight. A fashion SKU converts well and suffers high returns. A hero product moves volume only under constant discounting. In each case top-line demand looks healthy while contribution is under pressure.

SKU-level contribution informs assortment planning, discontinuation, bundle design, merchandising priorities, and which products deserve paid scale.

Pricing and promotion strategy

Discounting improves conversion in the short term without necessarily being healthy. Contribution margin gives a cleaner test for percentage-off offers, bundles, subscriptions, free shipping thresholds, and upsells.

The goal is more economically sound orders rather than simply more orders. A promotion lifting conversion while cutting contribution too sharply is not worth keeping. A bundle raising AOV and lowering effective fulfilment cost per item can be healthier even when conversion barely moves.

What counts as a good contribution margin

No universal benchmark exists, because healthy levels depend on category, price point, repeat purchase behavior, return rates, and acquisition model.

A brand with strong replenishment tolerates thinner first-order contribution than a one-time purchase business. A high-return category needs more margin room than a low-return one. A premium brand selling at full price has a different structure from a discount-led volume brand.

What matters is whether contribution margin is consistently positive where it needs to be, stable enough to scale responsibly, and strong enough to support overhead and cash needs over time.

Why benchmarks vary by business model



Business model

Common contribution dynamics

Consumables

Repeat behavior can justify thinner first-order economics if retention is strong

Apparel

Returns and discount dependency put more pressure on contribution

Beauty

Benefits from replenishment and bundling, though CAC still binds

High-ticket products

Absorb higher CAC in dollars, with larger fulfilment and return risk

Subscription-led brands

Cohort behavior dominates, since repeat orders change the economics materially

New vs returning customers

Splitting contribution by customer type is the most important cut in DTC.

Some brands afford thin or negative first-order contribution because repeat cohorts are reliably strong. Others cannot, and where retention is weak, losing money on the first order is simply losing money.

Contribution should therefore be reviewed separately for new customers, returning customers, subscription versus one-time buyers, and acquisition cohorts over time. Forecasting that repeat behavior rather than assuming it is the subject of LTV, the metric behind agentic scale. A healthy repeat engine changes the picture materially, though assuming future retention will rescue weak first-order economics, without data already showing it, is how brands scale into trouble. Our guide to CAC payback period covers how to put a number on that window.

Limits of the metric

Contribution margin cannot explain cash flow timing, inventory risk, fixed-cost burden, seasonality exposure, or the long-term brand effects of pricing decisions.

A brand can show positive contribution margin and still hit cash constraints through poorly timed inventory. Another can protect short-term contribution by pulling back on growth and weaken the brand longer term. Use it as a core operating metric rather than the only one.

How to improve it

Improvement starts with finding where margin leaks rather than defaulting to "spend less on ads" or "raise prices." The first question is whether the problem sits on the revenue side, the cost side, or in product-channel mix.

Revenue-side levers

Five levers work on the revenue side: pricing discipline where discounting has become a crutch rather than a strategy, bundle design that lifts AOV and spreads fulfilment cost across items, cart and post-purchase upsells that add contribution without new acquisition spend, subscription logic for genuine replenishment products, and merchandising that features products combining healthy demand with healthy economics.

Cost-side levers

Founders usually have more upside here than they expect: COGS through supplier negotiation or design simplification, packaging where materials or dimensional weight inflate shipping, pick-and-pack fees where fulfilment structure no longer matches the order profile, payment fees through processor mix, returns operations through better sizing and clearer product pages, and shipping policy including thresholds, zone strategy, and how much subsidy the business can genuinely afford.

The right fix depends on where the pressure sits. High returns need a different response from high CAC, and a freight-heavy SKU problem is not solved by discounting harder.

Build a contribution margin dashboard

Consistent reporting matters more than a perfect finance stack. Track contribution by order, SKU, channel, campaign, new versus returning customer, and cohort.



Field

Why it matters

Net revenue

Prevents gross-sales distortion

Discount rate

Shows how much demand depends on promotion

COGS

Anchors product-level economics

Fulfilment and shipping cost

Surfaces operational leakage

Payment fees

Captures real transaction cost

Return or refund rate

Protects against overstated revenue quality

CAC by channel or campaign

Connects media efficiency to margin

Contribution margin dollars

Shows what each sale leaves behind

Contribution margin percentage

Enables comparison across products and channels

A weekly view suits operating decisions, with deeper monthly review for trend analysis. The purpose is catching deterioration early rather than after the month closes and the revenue number already looks locked in. Where this sits in the wider plan is covered in our ecommerce growth strategy guide.

Frequently asked questions

Should CAC sit inside contribution margin or below it?

Both placements are valid and they answer different questions, so the rule is to fix one per analysis and label it. Product and SKU analysis usually excludes CAC, because traffic is blended and attributing it per SKU is guesswork. Channel, campaign, and cohort analysis usually includes it, because the whole point is judging whether that spend earned its keep. Moving CAC between the two mid-report is what makes margin trends untrustworthy.

How do you allocate contribution margin across a multi-SKU order?

Shared order costs such as shipping, packaging, and payment fees are allocated across the SKUs in the basket, most simply in proportion to each item's net revenue. Allocating them entirely to one line makes that SKU look unprofitable and flatters the others. The allocation method matters less than applying the same one every time, since SKU-level decisions get made on the comparison rather than the absolute figure.

Does contribution margin include the cost of free returns and exchanges?

Free returns and exchanges are variable costs and belong inside contribution margin, covering the refunded revenue, the outbound shipping already spent, the return shipping, and the labour to inspect and restock. Counting only the refund understates the true cost of a return by roughly the fulfilment spend that never comes back. Categories running generous return policies feel this most and should model it explicitly rather than inside a general reserve.

Can a brand run negative contribution margin on first orders?

Negative first-order contribution is survivable only where repeat purchase is already proven in the data, because the second and third orders are what recover the loss. Brands do it deliberately in replenishment categories with reliable reorder rates. Doing it on assumed future retention rather than measured retention is the most common way a growing brand runs out of cash while revenue climbs.

Does contribution margin improve automatically as order volume grows?

Volume improves contribution margin only where a cost is genuinely volume-sensitive, such as unit COGS falling at larger production runs or fulfilment rates improving at higher tiers. Payment fees, shipping subsidies, and return rates are broadly flat per order and do not improve with scale. Expecting margin to fix itself through growth is the assumption behind most brands that scale into losses.

How does contribution margin set the maximum CAC a brand can pay?

Contribution margin per order sets the ceiling on what a first order can spend to acquire a customer while staying immediately profitable. An order contributing $13.50 before acquisition cost cannot pay more than $13.50 in CAC without going negative on that first purchase. Paying above it is a deliberate bet on repeat purchase, and the size of that bet should be sized against measured repeat rate rather than hope.


Are you a product innovator, entrepreneur or DTC brand seeking scale?

Are you a product innovator, entrepreneur or DTC brand seeking scale?