Contribution Margin Calculator
Free contribution margin calculator. Get contribution margin per unit, total contribution margin and the CM ratio from a price sheet or an income statement.
Contribution Margin Calculator
Background.
Contribution margin is the number that tells you whether selling one more thing helps. Take the price you charge, subtract every cost that only exists because you made that sale, and what remains is the contribution — the amount that goes toward paying rent, salaries, insurance and everything else that would still be owed if you sold nothing at all. It is the single most useful figure in unit economics, and it is the one most often confused with a number that looks similar and behaves very differently.
This calculator takes your numbers in whichever shape you actually have them. If you have a price sheet, enter the selling price and the variable cost of one unit. If you have a period income statement, enter total revenue and total variable costs. Either path returns the same six figures: contribution margin per unit, the contribution margin ratio, total contribution margin for the period, revenue, total variable cost, and the variable cost ratio. Units sold is required on both paths, because that is what converts a statement-level total into a per-unit figure and back again.
Read the ratio carefully, because contribution margin is not gross margin and the two answer different questions. Gross margin subtracts cost of goods sold, which under GAAP absorption costing includes fixed manufacturing overhead — factory rent, plant supervision, machine depreciation — spread across the units produced. Contribution margin subtracts only costs that actually vary with volume, and it adds back nothing. It also reaches below the gross profit line to capture variable selling costs such as sales commission and payment processing, which absorption costing leaves in operating expenses. Two products can report an identical gross margin and completely different contribution margins, and only the contribution margin tells you what happens to profit when the next unit ships. OpenStax's managerial accounting text is blunt about the corollary: variable costing is not acceptable for external financial reporting under GAAP. Contribution margin is a management number. It will not appear on your audited income statement, and no auditor will sign it.
The second thing to hold in mind is that the split between fixed and variable is a judgement, not a fact you can look up. The same line — a warehouse lease, a salaried delivery driver, a software subscription that bills per seat above a floor — is fixed in one company's model and variable in another's, and OpenStax notes that a single cost such as rent may be classified differently by different firms depending on the decision it is being used for. Your contribution margin is only as trustworthy as that classification. It is also only valid inside a relevant range: push volume far enough and a "fixed" cost steps up, or a volume discount drops your variable cost per unit, and the linear model quietly stops describing your business.
What this page deliberately does not do is compute break-even. Break-even units is fixed costs divided by contribution margin per unit, and Quanta already has a dedicated break-even point calculator that takes fixed costs as an input and returns both the unit and the revenue target. Use this page to establish and interrogate the margin itself — to compare products, to check whether a discount still leaves anything behind, to see what a price rise is really worth — and use the break-even calculator once you know the margin and want the volume.
The worked example below follows the standard managerial accounting fixture: a product priced at $100 with $20 of variable cost per unit, selling 500 units in the month. That is $80 of contribution per unit, an 80% contribution margin ratio, and $40,000 of total contribution margin against $50,000 of revenue. Run your own numbers first, then read the explainer to see exactly which costs belong on which side of the line.
What is contribution margin calculator?
Contribution margin is revenue less variable costs. It is defined at three levels, and this calculator reports all three. Contribution margin per unit is the selling price of one unit minus the variable cost of one unit — OpenStax's Principles of Accounting, Volume 2 states it as "Per Unit Sales Price minus Variable Cost per Unit equals Contribution Margin per Unit". Total contribution margin is that figure multiplied by units sold, equivalently total sales minus total variable costs. The contribution margin ratio is contribution margin expressed as a percentage of the selling price — the Saylor open text writes it as (S − V) ÷ S, where S is the selling price and V the variable cost per unit, which is the same denominator OpenStax uses. Both authorities agree the denominator is sales, never cost; dividing by variable cost instead produces markup, a different measure entirely. Contribution margin comes out of variable costing, the internal management method that treats fixed manufacturing overhead as a period cost rather than a product cost. Absorption costing, the method GAAP requires for external reporting, capitalises fixed overhead into inventory and releases it through cost of goods sold — which is why the gross profit on a published income statement and the contribution margin on an internal management report are different numbers computed from the same underlying transactions. Contribution margin is the input to cost-volume-profit analysis: break-even in units is fixed costs divided by contribution margin per unit, and break-even in dollars is fixed costs divided by the contribution margin ratio.
How to use this calculator.
- Choose where your numbers come from. Pick the price-sheet path if you know the selling price and variable cost of one unit. Pick the income-statement path if you have period totals — this is the faster route when you are working from a management P&L rather than a costing sheet.
- Enter units sold for the period. This field is required on both paths. Use the same period for every input: if revenue is monthly, units must be monthly. For subscription businesses use the paying customer count; for services, the number of engagements or billable hours you actually invoiced.
- On the price-sheet path, enter the realised price net of discounts, allowances and expected returns — not list price. Then enter the variable cost per unit: materials, packaging, outbound freight, per-piece direct labour, payment processing, per-customer hosting and sales commission. If a cost would not exist had you not made the sale, it belongs here.
- On the income-statement path, enter net revenue and total variable costs for the period. Include variable selling and administrative costs, not just variable production costs — commission and payment processing are the two most commonly left out, and both directly reduce what each sale contributes.
- Read the ratio before the dollars. The contribution margin ratio is scale-free, so it is the figure that lets you compare a $12 product against a $1,200 one, or this quarter against last. The variable cost ratio beneath it is its exact complement and is often the easier one to argue about with a supplier.
- Check the sign. A negative contribution margin per unit means each additional sale increases the loss. No amount of volume, marketing spend or operating leverage fixes that — only a higher price or a lower variable cost does. Treat a negative result as a structural finding, not a bad month.
- Take the margin to the break-even calculator. Once you trust the contribution margin, divide your period fixed costs by it to get the volume you need. Quanta's break-even point calculator does that in one step and returns the revenue target alongside the unit target.
The formula.
On the price-sheet path the calculator computes contribution margin per unit as price minus variable cost per unit, then scales it: revenue is price × units, total variable cost is variable cost per unit × units, and total contribution margin is the difference between them. On the income-statement path it starts from the totals — total contribution margin is revenue minus variable costs — and divides by units sold to recover the per-unit figure. Both paths then compute the contribution margin ratio as total contribution margin ÷ revenue × 100, and the variable cost ratio as total variable cost ÷ revenue × 100. The two ratios always sum to exactly 100%.
Rounding stage: there is no intermediate rounding anywhere in this calculation. Every quantity is carried at full decimal precision and rounded exactly once, at the point the result is returned, to ten decimal places; the currency and percentage formatting you see is applied afterwards by the page. This matters when units sold does not divide the totals evenly — entering $100 of revenue across 3 units returns a contribution margin per unit of 33.3333333333, not a prematurely rounded $33.33 that would then disagree with the total.
Using the worked example: price $100, variable cost $20, 500 units. Contribution margin per unit is $100 − $20 = $80. Revenue is $100 × 500 = $50,000 and total variable cost is $20 × 500 = $10,000, so total contribution margin is $40,000. The contribution margin ratio is $40,000 ÷ $50,000 × 100 = 80%, and the variable cost ratio is $10,000 ÷ $50,000 × 100 = 20%. Entering the same business from the income-statement path — revenue $50,000, variable costs $10,000, 500 units — returns exactly the same six numbers, which is the arithmetic identity the two paths are built on.
A zero or negative revenue figure is rejected rather than returned, because the contribution margin ratio has revenue in its denominator and would be undefined. A negative contribution margin is not rejected: it is a real and important result, and the calculator returns it so you can see how far underwater the unit economics are.
A worked example.
This is the standard managerial accounting fixture, taken from OpenStax's Hicks Manufacturing example. Hicks sells its Blue Jay model at $100 per unit. The variable cost of one unit — materials, direct labour paid per piece, packaging and shipping — is $20. In April the company sells 500 units. Contribution margin per unit is $100 − $20 = $80. Each Blue Jay sold puts $80 toward the fixed costs Hicks owes whether or not it sells anything. The contribution margin ratio is $80 ÷ $100 = 80%, meaning 80 cents of every sales dollar survives variable cost. Scaling to April's volume: revenue is $100 × 500 = $50,000, total variable cost is $20 × 500 = $10,000, and total contribution margin is $40,000. The variable cost ratio is $10,000 ÷ $50,000 = 20% — the exact complement of the 80% contribution margin ratio. What that $40,000 does next is the whole point. It is not profit. It is the pot available to pay April's fixed costs. If Hicks carries $18,000 of monthly fixed costs, April's operating income is $40,000 − $18,000 = $22,000. If fixed costs were $48,000 instead, April would lose $8,000 despite an 80% contribution margin ratio — which is why contribution margin has to be read alongside the fixed cost base and never on its own. Now test the margin's sensitivity, because this is where the ratio earns its keep. Discount the price by 10%, to $90, and contribution margin per unit falls to $70 — a 12.5% drop in contribution from a 10% drop in price, because the whole discount comes out of the margin and none of it out of variable cost. To hold $40,000 of total contribution at the discounted price you would need 572 units instead of 500, a 14.3% volume increase to fund a 10% discount. Entering the same period from the income-statement path — $50,000 revenue, $10,000 variable costs, 500 units — returns the identical six figures, which is a useful check that your P&L's variable cost line and your costing sheet actually agree.
Frequently asked questions.
What is the contribution margin formula?
What is the difference between contribution margin and gross margin?
Is contribution margin a GAAP measure?
Which costs count as variable?
Is the fixed-versus-variable split a judgement call?
What does the relevant range mean for my contribution margin?
How do I use contribution margin to find my break-even point?
What does a negative contribution margin mean?
How does contribution margin work for a SaaS or services business?
Why do the per-unit and income-statement paths give the same answer?
References& sources.
- [1]OpenStax, Principles of Accounting, Volume 2: Managerial Accounting, §3.1 "Explain Contribution Margin and Calculate Contribution Margin per Unit, Contribution Margin Ratio, and Total Contribution Margin" (OpenStax/Rice University, CC BY-NC-SA; retrieved 2026-07-29). Primary source for all three formulas and for the Hicks Manufacturing worked example ($100 price, $20 variable cost, $80 contribution margin, 80% ratio, 500 units, $40,000 total contribution margin) used on this page. Open access.
- [2]Heisinger, K. & Hoger, J., Managerial Accounting, §6.1 "Cost-Volume-Profit Analysis for Single-Product Companies" (Saylor Academy open textbook, CC BY-NC-SA; retrieved 2026-07-29). Independent second authority consulted specifically to cross-check the contribution margin ratio's denominator: it gives CM per unit = S − V and CM ratio = (S − V) ÷ S, and the Snowboard Company example ($250 price, $150 variable cost, $100 margin, 40% ratio). Agrees with OpenStax. Open access.
- [3]OpenStax, Principles of Accounting, Volume 2: Managerial Accounting, §6.5 "Compare and Contrast Variable and Absorption Costing" (retrieved 2026-07-29). Source for the contribution-margin-versus-gross-profit distinction and for the statement that "the variable cost method is not acceptable for financial reporting under GAAP", which is the basis of this page's non-GAAP caveat. Open access.
- [4]OpenStax, Principles of Accounting, Volume 2: Managerial Accounting, §2.2 "Identify and Apply Basic Cost Behavior Patterns" (retrieved 2026-07-29). Source for the fixed / variable / mixed cost definitions, the relevant-range limitation, and the statement that the same cost may be classified differently by different companies — the basis of this page's "classification is a judgement" caveat. Open access.
- [5]OpenStax, Principles of Accounting, Volume 2: Managerial Accounting, §3.2 "Calculate a Break-Even Point in Units and Dollars" (retrieved 2026-07-29). Source for the break-even formulas quoted in the FAQ (fixed costs ÷ contribution margin per unit; fixed costs ÷ contribution margin ratio) and the Hicks $18,000 / 225 unit / $22,500 figures. Open access.
- [6]Horngren, C. T., Datar, S. M. & Rajan, M. V., Cost Accounting: A Managerial Emphasis, 17th ed., Ch. 3 "Cost-Volume-Profit Analysis" (Pearson, 2023). Print/paywalled reference, listed for provenance only — the formulas on this page were verified against the two open-access sources above, not against this text.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 762 calculators remain free
- No billing is enabled