Contribution Margin & Ratio

Excel Formulas › Business

All versionsRatios

Contribution margin is what each sale contributes toward fixed costs and profit: price minus variable cost. As a ratio it tells you how much of every revenue dollar is left after the variable costs of making the sale.


Quick formula: for price B1 and variable cost B2:
=B1 - B2 // contribution margin =(B1 - B2) / B1 // CM ratio
The margin is per unit; the ratio is the percentage of price left to cover fixed costs and profit.

Functions used (tap for the full reference guide):

The example

A $40 product with $25 variable cost.

AB
1MeasureValue
2Price$40
3Variable cost$25
4CM / unit$15
5CM ratio37.5%

The formula

Margin and ratio:

=B1 - B2 → 15 =(B1 - B2) / B1 → 0.375

How it works

Contribution margin isolates the variable economics of a sale:

  1. CM per unit = price − variable cost — the cash each unit throws off before fixed costs.
  2. CM ratio = CM ÷ price — the share of each revenue dollar that survives variable costs.
  3. Total contribution = CM per unit × units sold; once it exceeds fixed costs, you’re profitable.
  4. Break-even units = fixed costs ÷ CM per unit (see the break-even recipe).

CM, not gross margin. Contribution margin uses only variable costs; gross margin includes some fixed production costs. CM is the right tool for pricing, break-even, and “should I take this order?” decisions.

Try it: interactive demo

Live demo

Set price and variable cost.

CM · Ratio

Variations

Total contribution

Across all units:

=(price - varCost) * units

Break-even units

Cover fixed costs:

=fixedCosts / (price - varCost)

Required price for target CM%

Solve for price:

=varCost / (1 - targetRatio)

Pitfalls & errors

Variable costs only. Don’t fold fixed overhead into the variable cost, or the margin and break-even are wrong.

Divide-by-zero. A zero price makes the ratio error — guard with IFERROR if price can be blank.

CM ≠ profit. Contribution margin still has to cover fixed costs before any of it becomes profit.

Practice workbook

📊
Download the free Contribution Margin & Ratio practice workbook
A contribution-margin sheet with total CM, break-even, and target-price variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I calculate contribution margin in Excel?
CM per unit is =price - variableCost; the CM ratio is =(price - variableCost)/price. Total contribution is CM per unit × units sold.
What's the difference between contribution and gross margin?
Contribution margin uses only variable costs, while gross margin includes some fixed production costs. Use CM for pricing and break-even decisions.
How do I find break-even units from contribution margin?
Divide fixed costs by the contribution margin per unit: =fixedCosts/(price - variableCost).

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Break-even point · Profit margin vs markup · Cost per unit

Function references: SUM