Contribution Margin Calculator

Find what each sale contributes toward fixed costs and profit — after variable costs only.

$

What you charge for one unit or order.

$

COGS, shipping, payment fees — costs that scale with each sale.

To see total contribution margin dollars in the period.

Contribution margin per unit $28
Contribution margin % 56.0%
Total contribution margin $28,000 CM per unit × units sold.

What is contribution margin?

Contribution margin is what's left from each sale after variable costs — the portion that contributes to covering fixed costs (rent, salaries, software) and then profit.

Contribution margin per unit = Selling price − Variable cost per unit

Contribution margin % = Contribution margin ÷ Price × 100

Price $50, variable cost $22 → CM = $28 per unit (56%). Sell 1,000 units → $28,000 total contribution margin to put toward fixed costs.

How to calculate contribution margin (step by step)

  1. Set selling price — what the customer pays per unit or order.
  2. List variable costs per unit — everything that increases when you sell one more (see checklist below).
  3. Subtract: price − variable cost = CM per unit.
  4. Optional: multiply CM per unit × units sold = total CM for the period.
  5. Plug into break-even: fixed costs ÷ CM per unit = units needed to break even.

Worked example: DTC skincare brand

Item Per order
Selling price (AOV) $68
Product COGS $18
Packaging + outbound ship subsidy $6
Payment processing (~2.9%) $2
Variable cost per unit $26
Contribution margin $42 (61.8%)

Monthly fixed costs (team, warehouse base, software): $21,000.
Break-even units = $21,000 ÷ $42 = 500 orders/month before profit.

If paid ads add $8,000/month and bring 200 new customers at $40 CAC, those customers must contribute enough CM to cover that spend — 200 × $42 = $8,400 CM from those orders, barely clearing ad cost before fixed overhead.

Contribution margin vs. gross profit vs. profit margin

Metric What it subtracts Best for
Contribution margin Variable costs only Unit economics, break-even, pricing tests
Gross profit Usually COGS only P&L reporting, gross profit totals
Profit margin All costs (fixed + variable) Bottom-line health

For many ecommerce businesses, CM per unit equals gross profit per unit when variable cost equals COGS. Add shipping subsidies and payment fees to variable cost when they scale per order — that is when CM is more accurate than gross margin alone for ad decisions.

Why marketers should know CM

Every unit sold adds CM dollars toward fixed costs and ad spend. If CM per unit is $28 and CAC is $35, you lose $7 on acquisition before fixed costs — unless LTV saves you. Contribution margin is the bridge between pricing and whether paid growth works.

Pair CM with break-even analysis before scaling budget: if break-even units exceed realistic traffic, fix price or variable cost first — not ad creative alone.

Variable costs to include

Ecommerce: product cost, packaging, outbound shipping subsidies, payment processing (~2–3%), marketplace fees if applicable. SaaS: hosting and support per account. Agencies: freelancer cost on billable projects.

Exclude fixed costs like rent, base salaries, and software that does not scale per unit — those are covered after CM accumulates across volume.

Industry benchmarks

SaaS contribution margin (typical) 70%–85%
Ecommerce / DTC (typical) 40%–60%
Restaurant (food CM) 60%–70%
Retail (typical) 30%–50%
Used in break-even formula Fixed costs ÷ CM per unit
Healthy if CM > CAC per order for one-time purchase models

Frequently asked questions

How do you calculate contribution margin?

Subtract variable cost per unit from selling price. For $50 price and $22 variable cost, contribution margin is $28 per unit. As a percentage: $28 ÷ $50 = 56%.

What is the difference between contribution margin and profit margin?

Contribution margin subtracts only variable costs. Profit margin (especially net margin) subtracts all costs including fixed overhead. CM shows per-unit economics; net margin shows bottom-line results.

What is a good contribution margin?

It varies by industry. SaaS often exceeds 70%; ecommerce 40–60%. A good CM is high enough that each sale meaningfully covers its share of fixed costs and acquisition — compare CM per unit to CAC for paid growth.

How does contribution margin relate to break-even?

Break-even units = Fixed costs ÷ Contribution margin per unit. Higher CM means fewer units to break even. Use the break-even calculator with your CM figure for full analysis.

What counts as a variable cost?

Costs that increase with each unit sold: product COGS, shipping subsidies, payment fees, sales commissions, and variable fulfillment. Fixed costs like rent and base salaries are not subtracted from CM.

Is contribution margin the same as gross margin?

Often yes for simple product businesses where variable cost equals COGS. In accounting, gross margin is usually (revenue − COGS) ÷ revenue. Contribution margin can include other variable costs beyond COGS, like shipping or commissions.

Can contribution margin be negative?

Yes — when variable cost per unit exceeds selling price, CM is negative and every sale loses money before fixed costs. That can happen with deep discounts, free shipping subsidies, or mispriced SKUs. Fix price or variable cost before spending on ads to drive volume.

How does contribution margin affect ROAS?

CM sets how much gross profit each ad-driven sale contributes. Thin CM means you need a higher [ROAS](/roas-calculator/) or [target ROAS](/target-roas-calculator/) to stay profitable after ad spend. A 4x ROAS looks great until CM per order cannot cover the ad cost per order.

Related calculators