Audited 29 Jul 2026·Last updated 29 Jul 2026·6 citations·Tier 1·0 uses

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

Where are your numbers coming from?
Required on both paths — it is what converts a period total into a per-unit figure and back. For subscription businesses use the customer count; for services, the number of engagements or billed hours.
Your realised selling price, net of discounts, allowances and returns. Used on the price-sheet path only.
$
Every cost that moves with one more unit: materials, direct labour paid per piece, packaging, outbound freight, payment processing, per-customer hosting, sales commission. Used on the price-sheet path only.
$
Net sales for the period — the same figure your income statement labels "Net revenue". Used on the income-statement path only.
$
Variable production costs PLUS variable selling and administrative costs. Exclude rent, salaried payroll, insurance and fixed manufacturing overhead. Used on the income-statement path only.
$
Contribution margin per unit
$80.00
Price minus variable cost per unit — the amount each additional sale contributes to covering fixed costs and, once those are covered, to profit. A negative figure means every extra sale deepens the loss; volume cannot fix it.
Contribution margin ratio
80.00%
Total contribution margin
$40,000.00
Revenue
$50,000.00
Total variable cost
$10,000.00
Variable cost ratio
20.00%

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.

CM = S − V · CM% = (S − V) ⁄ S × 100 · Total CM = (S − V) × Q

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.

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.

units Sold500
total Revenue50,000
variable Cost Per Unit20
basisperUnit
price Per Unit100
total Variable Costs10,000

Frequently asked questions.

What is the contribution margin formula?
Contribution margin per unit = selling price per unit − variable cost per unit. Total contribution margin = total sales − total variable costs, which is the same as contribution margin per unit × units sold. The contribution margin ratio = contribution margin ÷ sales × 100. OpenStax's Principles of Accounting, Volume 2 states the per-unit form as "Per Unit Sales Price minus Variable Cost per Unit equals Contribution Margin per Unit" and the ratio as contribution margin per unit divided by sales price per unit; the Saylor managerial accounting open text writes the same two relationships as CM = S − V and CM ratio = (S − V) ÷ S. The denominator is always sales. Dividing contribution by cost instead gives markup, which is a pricing measure, not a margin.
What is the difference between contribution margin and gross margin?
They subtract different costs. Gross margin subtracts cost of goods sold, which under GAAP absorption costing includes fixed manufacturing overhead — factory rent, plant supervision, machine depreciation — allocated across units produced. Contribution margin subtracts only costs that vary with volume, excludes all fixed overhead, and additionally captures variable selling and administrative costs such as sales commission and payment processing that sit below the gross profit line. OpenStax notes that absorption costing "applies all direct costs, fixed overhead, and variable manufacturing overhead to the cost of the product", whereas under variable costing "fixed overhead is treated as a period cost charged against revenue for each period". Two products can show the same gross margin and very different contribution margins; only contribution margin predicts what the next unit does to profit.
Is contribution margin a GAAP measure?
No. Contribution margin comes from variable costing, and OpenStax states plainly that "the variable cost method is not acceptable for financial reporting under GAAP" — only absorption costing is. Contribution margin is an internal management measure. It will not appear on an audited income statement, and if a public company discloses it in an earnings release it is a non-GAAP measure subject to the SEC's reconciliation requirements. That does not make it less useful; it makes it a different tool. Use gross margin to talk to investors and auditors, and contribution margin to decide whether to take an order, drop a SKU or fund a discount.
Which costs count as variable?
A cost is variable if it would not have been incurred had you not made the sale, and if it scales roughly in proportion to volume. In practice that means raw materials, packaging, inbound and outbound freight, direct labour paid per piece or per hour against measured output, payment processing fees, per-customer hosting and third-party API charges, sales commission, and per-unit warranty accruals. It does not mean rent, salaried payroll, insurance, scheduled depreciation, or the software you would pay for at any volume. The boundary is genuinely contested for things like a delivery driver on salary, a warehouse leased on a per-pallet basis, or a support team that grows in steps — see the next question.
Is the fixed-versus-variable split a judgement call?
Yes, and it is the biggest single source of error in a contribution margin. OpenStax's cost behaviour chapter observes that "a single cost, such as rent, may be classified by one company as a fixed cost, by another company as a committed cost, and by even another company as a period cost", depending on the decision it is being used for. There is no external authority you can consult to settle it for your own business. The practical discipline is to classify each line against a specific decision — usually "what happens if we sell 10% more?" — and to write the classification down so the same rule is applied next period. A contribution margin computed on one classification and compared against a prior period computed on another is not a comparison at all.
What does the relevant range mean for my contribution margin?
The relevant range is, in OpenStax's words, "a specific activity level that is bounded by a minimum and maximum amount" within which cost behaviour is predictable. Inside it, fixed costs are flat and variable costs are proportional, so the arithmetic on this page holds. Outside it, the model breaks in both directions: push volume up and a fixed cost steps — a second shift, another warehouse, a higher server tier — while push it down and you may still be paying contractual minimums that behaved like variable costs on the way up. A contribution margin is a statement about a range of activity, not a universal constant. Recalculate it at the volume you are actually planning for, not the volume you measured last quarter.
How do I use contribution margin to find my break-even point?
Divide fixed costs by contribution margin per unit for the unit target, or by the contribution margin ratio for the revenue target. OpenStax gives both as "Break-Even Point in Units = Total Fixed Costs divided by Contribution Margin per Unit" and "Break-Even Point in Dollars = Fixed Costs divided by Contribution Margin ratio". Their Hicks Manufacturing example carries $18,000 of monthly fixed costs against an $80 contribution margin, giving 225 units and $22,500 of sales. This page deliberately stops short of that step because Quanta already has a dedicated break-even point calculator that takes fixed costs as an input and returns the unit and revenue targets together — use this page to establish the margin, and that one to convert it into a volume.
What does a negative contribution margin mean?
It means variable cost per unit exceeds the price, so every additional sale makes the loss larger. This is a structural problem, not a volume problem: no amount of scale, marketing or operating leverage can recover it, because there is no positive volume at which the losses stop compounding. There are exactly three fixes — raise the price, reduce the variable cost per unit, or stop selling the item. Loss-leader pricing is the one deliberate exception, and it is only rational when the negative-margin unit reliably drags a positive-margin unit along with it; if you are running a loss leader, measure the contribution margin of the basket, not of the leader.
How does contribution margin work for a SaaS or services business?
Translate the terms rather than the arithmetic. Selling price becomes average revenue per customer per period, and variable cost per unit becomes the genuinely marginal cost of serving one more customer: payment processing, attributable hosting and bandwidth, third-party API calls, and any per-seat licence you resell. Units sold becomes the paying customer count. Salaries, office costs and the engineering team stay fixed. Software businesses routinely show contribution margin ratios in the 80–95% band, which is why their break-even customer counts look so low — and why customer acquisition cost and payback period, not contribution margin, usually turn out to be the binding constraint. For services, the unit is a billable hour or an engagement, and the variable cost is subcontractor time and per-engagement expenses.
Why do the per-unit and income-statement paths give the same answer?
Because they are the same identity entered from two directions. Total contribution margin is (price − variable cost) × units, and it is also total revenue − total variable costs; the per-unit path multiplies up while the statement path divides down. Entering the worked example both ways — $100 price and $20 variable cost across 500 units, versus $50,000 revenue and $10,000 variable costs across 500 units — returns identical figures. That equivalence is a useful audit: if your management P&L's variable cost line and your costing sheet disagree when you run them both through this page, one of them has a cost on the wrong side of the fixed/variable line.

References& sources.

  1. [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. [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. [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. [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. [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. [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.

Embed

Quanta Pro

Paid features are coming later.

  • All 762 calculators remain free
  • No billing is enabled
Coming soon