Contribution margin is the revenue left over after subtracting all variable costs directly tied to producing and selling a product. It answers the most fundamental question in any product business: does this sale actually make money once you account for everything it costs to fulfill it?
Most ecommerce founders track gross margin — revenue minus cost of goods sold (COGS). That number only captures the product cost. It ignores shipping, payment processing fees, marketplace commissions, and the ad spend that brought the customer in. Contribution margin captures all of those variable costs, giving you a far more honest picture of per-unit profitability.
Below is everything you need to understand contribution margin: the formula, a worked example, how it differs from gross margin, industry benchmarks, and concrete ways to improve yours.
The Contribution Margin Formula
The formula itself is straightforward:
Contribution Margin = Revenue − Variable Costs
To express it as a ratio (percentage):
Contribution Margin Ratio = (Revenue − Variable Costs) ÷ Revenue × 100
You can calculate contribution margin three ways: as a total dollar figure across all sales, as a per-unit amount on a single product, or as a percentage of revenue (the contribution margin ratio). The ratio is the most useful for comparisons because it normalizes across different price points.
Variable costs in ecommerce typically include:
- COGS — raw materials, manufacturing, packaging, landed cost
- Shipping & fulfillment — outbound shipping, pick-and-pack fees, 3PL costs
- Payment processing — credit card fees (typically 2.9% + $0.30 per transaction)
- Marketplace / platform fees — Shopify transaction fees, Amazon referral fees, Etsy listing fees
- Ad spend per unit — your cost per acquisition (CPA) divided across orders
- Refunds & returns — the cost of returned or refunded orders
Any cost that scales proportionally with the number of units sold is a variable cost and belongs in the contribution margin calculation. Fixed costs like rent, salaries, and software subscriptions are excluded — contribution margin measures what each sale contributes toward covering those fixed expenses.
How to Calculate Contribution Margin (Worked Example)
Here is a step-by-step example for a DTC brand selling a skincare product at $50 per unit.
| Line Item | Amount |
|---|---|
| Selling price | $50.00 |
| COGS (manufacturing + packaging) | -$12.00 |
| Shipping & fulfillment | -$6.00 |
| Payment processing (2.9% + $0.30) | -$1.75 |
| Ad spend (CPA) | -$14.00 |
| Refund allowance (~3%) | -$1.50 |
| Contribution Margin | $14.75 |
| Contribution Margin Ratio | 29.5% |
That $14.75 per unit is what the business has left to cover fixed costs — warehouse rent, salaries, software, insurance — and generate profit. If fixed costs total $10,000 per month, the brand needs to sell at least 679 units ($10,000 ÷ $14.75) before it starts turning a true profit.
This is exactly why contribution margin is the single most important number in ecommerce unit economics. It tells you whether scaling volume will actually make you money, or just make you busy.
Want to calculate your contribution margin?
Use True Margin's free profit margin calculator to break down your margins.
Open Profit Margin Calculator →Contribution Margin vs Gross Margin
These two metrics are related but measure different things, and confusing them is one of the most common accounting mistakes in ecommerce. Here is the distinction:
| Gross Margin | Contribution Margin | |
|---|---|---|
| Formula | Revenue − COGS | Revenue − All Variable Costs |
| Costs included | Product cost only | Product cost + shipping + fees + ad spend + returns |
| Typical ecommerce range | 50–70% | 20–35% |
| Best for | Pricing & sourcing decisions | True per-unit profitability |
| Includes ad spend? | No | Yes |
A product can have a healthy 65% gross margin and still lose money if shipping, fees, and ad spend eat through the remaining revenue. This is why brands that track only gross margin often feel like they should be profitable but cannot figure out where the cash is going. For a deeper breakdown, see our gross margin vs contribution margin comparison.
Contribution Margin by Industry
Contribution margin varies widely by industry because each sector carries different variable cost structures. The table below shows typical ranges. Note that most published benchmarks report gross margin rather than contribution margin — the figures below reflect contribution margin estimates (gross margin minus fulfillment, fees, and variable marketing) sourced from industry analyses.
| Industry | Typical Gross Margin | Typical Contribution Margin |
|---|---|---|
| SaaS / Software | 70–85% | 50–70% |
| DTC Beauty & Skincare | 60–75% | 25–40% |
| DTC Apparel | 55–65% | 15–30% |
| Health & Supplements | 60–70% | 20–35% |
| Consumer Electronics | 25–40% | 8–18% |
| Food & Beverage | 25–35% | 10–20% |
| General Retail | 25–50% | 5–15% |
| Manufacturing | 20–35% | 8–15% |
SaaS companies enjoy the widest gap between gross and contribution margin because their variable costs (mainly hosting and payment processing) are minimal relative to revenue. Physical product businesses — especially those with heavy shipping costs and paid acquisition — see their margins compressed significantly between the gross and contribution levels.
For more ecommerce-specific margin data, see our guide to good profit margins for ecommerce.
Why Contribution Margin Matters
Contribution margin answers three questions that gross margin cannot:
1. Can I afford to scale this product?
If your contribution margin is positive, every additional unit sold brings in more cash to cover fixed costs. If it is negative, you lose more money with every sale — and scaling just accelerates the bleeding. This is the single most important gate before increasing ad spend.
2. Which products (or channels) are actually profitable?
Two products can have identical gross margins but wildly different contribution margins if one requires heavier shipping, higher return rates, or more expensive acquisition. Knowing contribution margin at the SKU level lets you double down on winners and cut losers.
3. Where is my break-even point?
Break-even volume = Fixed Costs ÷ Contribution Margin per Unit. Without knowing your contribution margin, you cannot calculate how many units you need to sell before the business turns profitable. This is the foundation of any serious profit margin analysis.
Finance and marketing teams at high-performing ecommerce brands use contribution margin to evaluate SKU-level, channel-level, and campaign-level profitability. It is the metric that connects product decisions to marketing decisions to actual cash flow.
How to Improve Your Contribution Margin
Contribution margin improves in two ways: increase revenue per unit or decrease variable costs per unit. Here are the highest-leverage strategies for ecommerce brands:
Reduce COGS Through Better Sourcing
Negotiate volume discounts with suppliers, consolidate vendors, or switch to a closer manufacturer to cut landed costs. Even a 5% reduction in COGS flows directly to the bottom line on every unit sold. Our guide on calculating COGS for ecommerce breaks down every component.
Increase Average Order Value
Bundles, upsells, and cross-sells spread your fixed fulfillment and acquisition costs across more revenue per order. If your CPA is $14 on a $50 order, that is a 28% acquisition cost. On a $75 order with an upsell, it drops to 18.7% — an immediate contribution margin improvement with zero additional ad spend.
Lower Customer Acquisition Cost
Ad spend is typically the largest variable cost for DTC brands. Improving ad creative, tightening audience targeting, and investing in organic channels (SEO, email, referrals) all reduce your blended CPA. Even a $2 reduction in CPA across thousands of orders has a meaningful impact on contribution margin.
Optimize Shipping and Fulfillment
Negotiate better carrier rates, use regional fulfillment centers to reduce zone-based shipping costs, or set a free shipping threshold that encourages larger carts. A well-placed free shipping threshold lifts average basket size and spreads fulfillment costs over more revenue per order.
Reduce Returns
Returns destroy contribution margin because you absorb shipping costs in both directions plus lost product value. Better product descriptions, sizing guides, and customer reviews reduce return rates. For context, the average ecommerce return rate is significant enough that even modest improvements move the needle.
Optimize Your Product Mix
Not every SKU deserves equal promotion. Identify products with the strongest contribution margins and allocate more ad spend, homepage real estate, and email marketing toward them. Conversely, consider discontinuing or repricing SKUs that consistently produce thin or negative contribution margins.
Want to calculate your contribution margin?
Use True Margin's free profit margin calculator to break down your margins.
Open Profit Margin Calculator →Frequently Asked Questions
What is contribution margin in simple terms?
Contribution margin is the money left over from a sale after you subtract every variable cost — product cost, shipping, payment processing fees, marketplace fees, and ad spend. It tells you how much each sale actually contributes toward covering your fixed costs (rent, salaries, software) and generating profit.
What is a good contribution margin for ecommerce?
A healthy contribution margin for ecommerce is 20–35%. Below 15% is dangerously thin — you need very high volume to cover fixed costs, and any uptick in ad costs or return rates could push you into unprofitable territory. Above 35% is strong and gives you room to scale ad spend aggressively. DTC brands with subscription models often achieve 30–40% because repeat orders carry zero acquisition cost, which improves the blended contribution margin.
Does contribution margin include fixed costs?
No. Contribution margin only subtracts variable costs — costs that change in proportion to units sold. Fixed costs like office rent, salaried employees, and software subscriptions are excluded. The purpose of contribution margin is to show how much each unit sold contributes toward covering those fixed costs.
Can a product have a high gross margin but a negative contribution margin?
Yes, and it happens more often than founders expect. A $30 product with $6 in COGS has an 80% gross margin — impressive on paper. But add $8 for shipping, $0.90 for payment processing, $4.50 for marketplace fees, and $18 for customer acquisition, and total variable costs reach $37.40. The contribution margin is -$7.40. You lose money on every sale despite that 80% gross margin.
How is contribution margin used to calculate the break-even point?
Break-even volume equals your total fixed costs divided by your contribution margin per unit. If your fixed costs are $15,000 per month and your contribution margin is $20 per unit, you need to sell 750 units per month to break even. Every unit beyond 750 generates $20 in pure profit toward your bottom line.
The Bottom Line
Contribution margin is the metric that separates ecommerce brands that understand their profitability from those that only think they do. Gross margin tells you how much you make on a product. Contribution margin tells you how much you make on a sale — after every cost it takes to get that product into a customer's hands.
If you are not calculating contribution margin at the SKU level, you are likely over-investing in unprofitable products and under-investing in your best ones. Start by mapping every variable cost line item, plug them into the formula above, and use the result to make sharper decisions about pricing, marketing spend, and product mix.
Use our free profit margin calculator to run the numbers on your own products.

