ToolNimba Browse

📊 Contribution Margin Calculator

By ToolNimba Finance Team · Reviewed by ToolNimba Editorial Review, managerial accounting content · Updated 2026-06-19

This calculator gives an estimate for planning only and is not financial, accounting, or investment advice. Results depend on how you classify costs as fixed or variable, which can vary by business and by accounting method. Confirm your figures with your own records and a qualified accountant before making pricing or production decisions.

Contribution margin per unit
-
Contribution margin ratio
-
Total contribution
-

Contribution margin tells you how much money each sale leaves over to cover fixed costs and profit, after the variable cost of making that sale is paid. Enter your selling price and variable cost per unit, and this calculator shows the contribution margin per unit, the contribution margin ratio as a percentage, and (if you add units sold) the total contribution. It is the quickest way to see whether a product actually earns its keep.

What is the Contribution Margin Calculator?

Contribution margin is the slice of each sale that is left after you subtract the variable cost of producing or delivering that unit. The variable cost is anything that rises and falls directly with output: raw materials, packaging, shipping, payment processing fees, and per-unit labour. Whatever remains contributes first toward covering your fixed costs (rent, salaries, software, insurance) and then toward profit once those fixed costs are paid. The per-unit formula is simply price minus variable cost.

The contribution margin ratio expresses that same idea as a percentage of the selling price: margin divided by price, times 100. A ratio of 40% means that 40 cents of every sales dollar is available to cover fixed costs and profit, while the other 60 cents is eaten by variable costs. The ratio is useful because it lets you compare products of very different prices on a level footing, and it feeds directly into break-even analysis: break-even sales equal your fixed costs divided by the contribution margin ratio.

Contribution margin is not the same as gross profit or net profit. Gross profit subtracts the full cost of goods sold, which often mixes in some fixed manufacturing overhead, while contribution margin strips out only the truly variable costs. Net profit goes further still and subtracts all fixed costs and overheads. Because contribution margin isolates the variable piece, it is the figure managers reach for when deciding whether to accept a special order, drop a product line, or set a price floor, since any price above variable cost still makes a positive contribution.

When to use it

  • Checking whether a single product earns enough above its variable cost to be worth selling.
  • Comparing two products with different prices on an equal footing using the contribution margin ratio.
  • Working out the lowest price you could accept on a special or bulk order without losing money on each unit.
  • Feeding the contribution margin ratio into a break-even calculation to find the sales needed to cover fixed costs.

How to use the Contribution Margin Calculator

  1. Enter the selling price per unit.
  2. Enter the variable cost per unit (materials, packaging, shipping, fees, per-unit labour).
  3. Optionally enter the number of units sold to see the total contribution.
  4. Read off the contribution margin per unit, the contribution margin ratio, and the total contribution.

Formula & method

Contribution margin per unit = price - variable cost.   Contribution margin ratio = (margin ÷ price) x 100.   Total contribution = margin x units sold.

Worked examples

A product sells for $50 with a variable cost of $30 per unit, and you sell 1,000 units.

  1. Contribution margin per unit = 50 - 30 = $20
  2. Contribution margin ratio = (20 ÷ 50) x 100 = 40%
  3. Total contribution = 20 x 1,000 = $20,000

Result: Unit margin $20.00, ratio 40%, total contribution $20,000

A coffee sells for $4.50 with a variable cost of $1.35 per cup.

  1. Contribution margin per unit = 4.50 - 1.35 = $3.15
  2. Contribution margin ratio = (3.15 ÷ 4.50) x 100 = 70%
  3. If fixed costs are $6,300 per month, break-even = 6,300 ÷ 3.15 = 2,000 cups

Result: Unit margin $3.15, ratio 70%, break-even 2,000 cups per month

How price and variable cost shape the contribution margin and ratio

PriceVariable costMargin per unitCM ratio
$10$4$660%
$25$15$1040%
$50$30$2040%
$100$85$1515%
$4.50$1.35$3.1570%

Common mistakes to avoid

  • Treating fixed costs as variable. Rent, salaries, and software subscriptions do not change with each extra unit, so they are fixed costs and must be left out of the variable cost figure. Including them understates the contribution margin and makes a healthy product look unprofitable.
  • Confusing contribution margin with gross profit. Gross profit subtracts the full cost of goods sold, which can include some fixed overhead. Contribution margin subtracts only the truly variable costs, so the two figures are usually different and should not be used interchangeably.
  • Forgetting variable selling costs. Payment processing fees, sales commissions, and per-order shipping are variable and rise with each sale, so they belong in the variable cost. Leaving them out overstates how much each sale really contributes.
  • Reading a positive margin as profit. A positive contribution margin does not mean the product is profitable on its own. Fixed costs still have to be covered, so you need enough total contribution across all sales to clear them before any profit appears.

Glossary

Contribution margin
The amount left from a sale after variable costs, available to cover fixed costs and then profit. Per unit it equals price minus variable cost.
Contribution margin ratio
The contribution margin expressed as a percentage of the selling price: margin divided by price, times 100.
Variable cost
A cost that changes directly with output, such as materials, packaging, shipping, processing fees, and per-unit labour.
Fixed cost
A cost that stays the same regardless of how many units you make or sell, such as rent, salaries, and insurance.
Break-even point
The sales level where total contribution exactly covers fixed costs, so profit is zero. It equals fixed costs divided by the contribution margin (or ratio).

Frequently asked questions

What is contribution margin?

Contribution margin is the money left from each sale after the variable cost of that sale is paid. Per unit it equals the selling price minus the variable cost per unit, and it is what is available to cover your fixed costs and then add to profit.

How do I calculate the contribution margin ratio?

Divide the contribution margin per unit by the selling price, then multiply by 100. For example, a $20 margin on a $50 price gives (20 ÷ 50) x 100 = 40%, meaning 40 cents of every sales dollar contributes toward fixed costs and profit.

What counts as a variable cost?

Variable costs change with each unit you make or sell: raw materials, packaging, shipping, payment processing fees, sales commissions, and per-unit labour. Costs that stay the same no matter the volume, like rent and salaries, are fixed and should not be included here.

Is contribution margin the same as profit?

No. A positive contribution margin only means a sale covers its own variable cost with something left over. That surplus still has to cover all your fixed costs before any profit is earned, so a product can have a healthy margin yet the business still lose money if volume is too low.

How does contribution margin relate to break-even?

Break-even sales equal your fixed costs divided by the contribution margin. In units, divide fixed costs by the margin per unit; in dollars, divide fixed costs by the contribution margin ratio. Above that point, each extra sale adds its full contribution to profit.

Why use contribution margin instead of gross profit?

Contribution margin isolates only the variable costs, so it shows exactly how much each extra sale adds. Gross profit mixes in some fixed overhead through the cost of goods sold. For pricing, special orders, and product decisions, the cleaner variable-only view of contribution margin is more useful.

Sources