Contribution Margin Calculator

Find the contribution margin of a product.

How it is calculated

The tool calculates two figures per unit sold. The contribution margin in money is CM = price − variable cost, and the ratio is CM ratio = CM / price × 100. The price is the selling price per unit and the variable cost is everything that rises with each unit sold (materials, packaging, per-unit shipping, sales commission). Amounts are shown in dollars with two decimals; the currency symbol is only a label, the maths is the same in any currency.

The price must be greater than zero. The variable cost can be anything, and if it exceeds the price the result is a negative margin and a negative ratio, meaning each sale loses money before fixed costs. Fixed costs such as rent or salaries do not belong in this calculation: they are covered by the margin, not part of it.

Worked example

A product sells for 40 and costs 26 in materials, packaging and commission per unit. Contribution margin: 40 − 26 = $14.00. Ratio: 14 / 40 = 0.35, or 35.00%. Each sale leaves 14 to pay fixed costs and then profit. If the variable cost were 46, the margin would be −6.00 and the ratio −15.00%.

Try this example →

Common mistakes

  • Including fixed costs, such as rent or salaried staff, in the variable cost; that mixes in costs that do not change with each sale and understates the margin.
  • Leaving out per-unit variable costs like payment fees, shipping or sales commission, which makes the margin look higher than it is.
  • Confusing the contribution margin with the gross margin or profit; fixed costs still have to be paid out of it.
  • Entering a price that already includes VAT or sales tax; use the net selling price, otherwise the margin counts tax you pass on to the state.
  • Reading the ratio as a profit percentage; a 35% ratio does not mean 35% profit, as fixed costs are still to come.

Sources

About this calculator

The contribution margin is what's left from a sale after covering variable costs, calculated per unit as selling price minus variable cost per unit, or as a ratio (contribution margin ÷ selling price) to express it as a percentage. It's called "contribution" because that amount contributes toward covering fixed costs first, and toward profit once fixed costs are covered — it deliberately excludes fixed costs, unlike gross margin which is based on total cost of goods sold.

Managerial accountants and business owners use contribution margin as the core input for break-even analysis (fixed costs ÷ contribution margin per unit = break-even units) and cost-volume-profit (CVP) analysis, and to decide which products or product lines are most worth prioritizing when capacity is limited. A high contribution margin ratio means each additional sale adds more toward covering fixed costs and generating profit, making it a key metric for pricing decisions and product mix optimization.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    Use the per-unit margin to find break-even quickly, since the tool leaves fixed costs out. At a price of 25 and a variable cost of 10 the margin is 15, or 60 percent, so 3,000 of fixed costs needs 200 units. The ratio also helps compare products with different prices. Which costs do you treat as variable in your business?

Popular calculators

All Calculators