Contribution Margin Calculator

Contribution margin is what one sale leaves behind after the costs that exist only because the sale happened. Enter your selling price, the variable cost of making one unit and any commission or card fee that scales with the price, and this calculator returns contribution margin per unit, total contribution margin, the contribution margin ratio and the variable cost ratio — plus the operating income and break-even volume those figures imply. This is the number that decides whether a discount, a new channel or an extra shift actually makes money, and it is not the same as gross margin.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Selling price per unitNet price actually realised after discounts, coupons and returns — not list price.40 $
Variable production cost per unitDirect materials, per-unit labour, packaging and outbound freight for one unit — take it from a costed bill of materials, not from average cost of sales.22 $
Variable selling costSales commission, marketplace fee and card processing — anything charged as a percentage of the sale. Enter 0 if none.5 % of price
Units sold in the periodActual or budgeted volume for one period, used for the totals and the income statement.5000 units
Total fixed costs for the periodRent, salaried pay, insurance, depreciation and software for the same period. Needed only for operating income and break-even.60000 $

It returns

  • Contribution margin per unit — What one more sale adds toward fixed costs, and once those are covered, straight to profit.
  • Contribution margin ratio — Multiply any change in sales revenue by this to get the change in operating income.
  • Total variable cost per unit
  • Variable cost ratio
  • Total contribution margin
  • Operating income
  • Break-even volume

The formula

CM=pv,CM ratio=pvp
Total CM=(pv)Q
π=(pv)QF

In plain text: CM per unit = p − v and CM ratio = (p − v) ÷ p

  • CMContribution margin per unit — price less every cost that varies with the sale ($)
  • pNet selling price per unit ($)
  • vTotal variable cost per unit: production cost plus percentage-based selling cost ($)
  • QUnits sold in the period (units)
  • FTotal fixed costs for the period ($)

Valid inside the relevant range, where price and variable cost per unit stay constant and total fixed cost does not step up. The variable cost ratio is always 1 − CM ratio.

Updated Category Cost-Volume-Profit, Break-Even & Overhead Verified against published test cases Reading time 13 min

What contribution margin measures, and why it is not gross margin

Contribution margin is the selling price of one unit minus every cost that exists only because that unit was sold. It answers one question with unusual precision: if you sell one more, how much better off are you? Because fixed costs do not respond to one more sale, they play no part in the answer, and leaving them out is the point rather than an oversight.

That makes it the correct margin for any incremental decision: a rush order at a discount, a marketplace channel charging 15%, an extra shift, dropping a product line, or choosing which product to push while a machine is the bottleneck. Gross margin answers every one of them wrongly.

Gross margin is a different measure with a different purpose. Gross margin is sales minus cost of goods sold, and under absorption costing, cost of goods sold contains fixed manufacturing overhead: factory rent, the plant manager's salary, machine depreciation. It also excludes variable costs that sit below the gross profit line, such as sales commission, card processing and outbound freight. So gross margin includes fixed costs it should not and excludes variable costs it should. Use it for external reporting and peer comparison, and use contribution margin to make decisions. For the reporting figure, the gross profit margin calculator handles that case.

The second output on this page, the contribution margin ratio, converts the same fact into per-dollar form. A 40% ratio means forty cents of every sales dollar survives variable costs. That is exactly the multiplier you apply to a forecast revenue change to get the profit change, which is why it is the number FP&A teams reach for the moment a sales figure moves.

The formulas, term by term

Four expressions appear on this page and they are the same fact viewed from different angles.

Contribution margin per unit is pv. The subtlety is entirely inside v. It must include every cost that scales with the unit, wherever it lands on your income statement. Materials and per-unit labour are obvious. Packaging, pallet wrap and outbound freight get forgotten. Percentage-based costs get forgotten most: a 3% card fee, a 15% marketplace commission, a 5% sales commission, a chargeback reserve. Those are variable in price rather than in units, which is why this calculator takes them as a percentage and converts them for you. On a $40 product a 5% fee is $2.00, and that $2.00 comes straight out of the margin.

Contribution margin ratio is (pv) ÷ p. Reach for the ratio rather than the per-unit figure whenever you have no meaningful unit — an agency, a restaurant, a repair shop, or any mixed basket. Break-even in dollars falls straight out of it, which is the method behind the break-even sales revenue calculator.

Variable cost ratio is v ÷ p, and it is always 1 − CM ratio. Quote it alongside the CM ratio, because it is the figure a discount attacks. A 60% variable cost ratio means a 10% price cut removes a quarter of your margin: the variable cost stays put while the margin absorbs the whole reduction.

Total contribution margin is (pv) × Q, equivalently sales minus total variable costs. Subtract fixed costs and you have operating income. Written out, π = (pv)QF — the profit equation every cost-volume-profit result is derived from. Set π to zero and solve for Q and you have break-even volume; that single rearrangement is the break-even point in units calculator.

Worked example: a $40 accessory sold through a marketplace

You sell a phone accessory for $40. The costed bill of materials, assembly labour paid per piece, retail box and outbound parcel come to $22.00 a unit. The marketplace fee and the card network together take 5% of the selling price. Fixed costs for the month — warehouse rent, two salaried staff, software, insurance — are $60,000, and you expect to ship 5,000 units.

  1. Convert the percentage cost into dollars. $40.00 × 5% = $2.00 per unit.
  2. Total the variable cost. $22.00 + $2.00 = $24.00 per unit.
  3. Contribution margin per unit. $40.00 − $24.00 = $16.00.
  4. Contribution margin ratio. $16.00 ÷ $40.00 = 40.0%.
  5. Variable cost ratio. $24.00 ÷ $40.00 = 60.0%. Check: 40% + 60% = 100%.
  6. Total contribution margin. 5,000 × $16.00 = $80,000. Cross-check from totals: sales $200,000 minus variable costs $120,000 = $80,000. The two routes agree, and they always must.
  7. Operating income. $80,000 − $60,000 = $20,000.
  8. Break-even volume. $60,000 ÷ $16.00 = 3,750 units, which is $150,000 of revenue.

Now use the ratio the way it is meant to be used. A buyer asks for a 10% discount in exchange for a bigger order. At $36 the fee falls to $1.80, variable cost becomes $23.80, and contribution margin drops to $12.20 — a 23.75% cut in margin from a 10% cut in price. To earn the same $80,000 of contribution you would need $80,000 ÷ $12.20 = 6,558 units instead of 5,000, an increase of 31%. Unless the buyer is offering a 31% volume lift, the discount destroys profit however much revenue it adds.

Run it the other way too. Cutting the $22.00 production cost by $1.00 raises contribution margin to $17.00, a 6.25% improvement, and pulls break-even down to 3,530 units. A dollar off variable cost beats a dollar of extra revenue, because the dollar off cost carries no fee, no freight and no commission with it.

How to read your contribution margin

No universal target exists for the CM ratio, because the ratio reflects how much of your capacity you own rather than rent. Judge it against three things instead.

Against your fixed-cost base. The only pairing that matters is CM ratio against fixed costs. A software business with a 90% ratio and $4m of fixed cost and a distributor with a 12% ratio and $200k of fixed cost can both be healthy. What kills a business is a low ratio carried on a high fixed-cost base, because break-even then sits near the top of achievable volume. Divide fixed costs by contribution margin per unit and compare that to your capacity before you compare it to anything else.

Against your own history, product by product. A CM ratio drifting down across four quarters at a constant price is telling you variable cost is creeping — a freight surcharge, a fee increase, rising scrap, or a quiet shift in channel mix toward a higher-commission route. That drift hides inside gross margin whenever fixed overhead absorption is moving at the same time.

Against the alternative use of a constrained resource. When something scarce limits output — a machine, a curing oven, a licensed technician, a delivery slot — rank products by contribution margin per unit of the constraint, not per unit of product. A product earning $16 of margin per machine-hour beats one earning $40 of margin that occupies four hours, because the second yields only $10 an hour. The lower-margin product is the better one to make while the constraint binds.

Two structural readings are worth taking every time. Contribution margin divided by operating income is the degree of operating leverage, which tells you how violently profit reacts to a sales change; above, $80,000 ÷ $20,000 = 4.0, so a 10% sales fall cuts profit 40%. The reciprocal of that leverage is your margin of safety percentage — 25% here — the sales drop you can absorb before the period turns into a loss.

What a price change does to contribution margin

Based on the worked example: $22.00 of variable production cost per unit, a variable selling cost of 5% of price, and $60,000 of fixed costs for the period. Volumes are rounded up to the next whole unit.
PriceChangeCM per unitCM ratioBreak-even unitsUnits for $20,000 profit
$32.00−20%$8.4026.25%7,1439,524
$36.00−10%$12.2033.89%4,9196,558
$38.00−5%$14.1037.11%4,2565,674
$40.00base$16.0040.00%3,7505,000
$42.00+5%$17.9042.62%3,3524,470
$44.00+10%$19.8045.00%3,0314,041
$48.00+20%$23.6049.17%2,5433,390

Read the leverage: a 20% price cut nearly doubles the volume you need for the same profit, while a 20% price rise cuts it by a third. That asymmetry is why margin, not revenue, is the right target in a pricing decision.

Contribution-format statements are internal only

The statement this calculator produces is a management report, not a financial statement. Under US GAAP (FASB ASC Topic 330, Inventory) and IFRS (IAS 2, Inventories), inventory must be measured at full absorption cost, so fixed production overhead is allocated to units and carried on the balance sheet until those units are sold. Variable costing — the basis of contribution margin — is not permitted for external reporting or for inventory measurement.

The practical consequence: when production and sales volumes differ, variable-costing operating income and absorption-costing operating income differ too, by the fixed overhead attached to the change in inventory. Build 6,000 units and sell 5,000 and absorption costing defers a slice of fixed overhead into inventory, reporting a higher profit than the contribution-format statement does. Neither is wrong; they answer different questions. Reconcile them before you present both in the same meeting.

Costs that get misclassified, and what it does to the answer

  • Percentage fees left out entirely. Card processing, marketplace commission, affiliate payouts and payment-plan discounts are pure variable cost. Omitting a 5% fee on a 40% CM ratio overstates margin by an eighth.
  • Mixed costs treated as one or the other. A utility bill with a standing charge, a shipping contract with a monthly minimum plus a per-parcel rate, hourly staff with guaranteed minimum hours. Split them with the high-low method or a regression on twelve months of data before totalling anything.
  • Average cost of sales used as variable cost per unit. Dividing last year's cost of sales by units gives a figure contaminated with fixed manufacturing overhead. Build variable cost up from a bill of materials and a labour routing instead.
  • Sales salaries treated as variable. Base pay is fixed; commission is variable. A plan with both is a mixed cost and needs splitting.
  • Depreciation on volume-driven equipment assumed fixed. Straight-line depreciation is fixed. Units-of-production depreciation is variable. Check which method the asset actually uses.
  • List price used instead of realised price. Trade discounts, rebates, coupons, freight allowances and returns all reduce what you actually collect, and every one of them lands on contribution margin.
  • Mixing periods. Monthly fixed costs against an annual sales plan produces an operating income figure wrong by a factor of twelve.

Three margins get routinely confused, and each uses a different denominator. Markup divides profit by cost: a $24 cost sold at $40 is a 66.7% markup. Contribution margin ratio divides by price: the same product is a 40% contribution margin. Gross margin also divides by price but uses cost of goods sold, which under absorption costing carries fixed factory overhead and omits selling costs. Quoting a markup as though it were a margin is the most common pricing error in small business, and it always overstates profitability.

Once you have the margin, the tools that use it are all rearrangements of one profit equation. Divide fixed costs by contribution margin per unit for break-even units. Divide by the CM ratio for break-even revenue. Add a profit goal to fixed costs first for target-profit volume. Subtract break-even from planned sales for the margin of safety.

Contribution margin is the wrong tool in three situations. It ignores the time value of money, so a multi-year capital decision belongs in a discounted cash flow model. It ignores cash timing, so a business can carry a healthy contribution margin and still run out of cash — read it alongside the cash conversion cycle. And in a job shop where overhead reaches work through a predetermined overhead rate, only the genuinely variable share of that applied overhead belongs in v — the fixed share does not, however precisely it has been allocated.

Key terms

Contribution margin
Sales less variable costs, expressed per unit or in total. What is left to cover fixed costs and then become profit.
Contribution margin ratio
Contribution margin ÷ sales. Multiply a revenue change by this to get the operating income change.
Variable cost ratio
Variable costs ÷ sales, always 1 − CM ratio. The share of every sales dollar consumed by the sale itself.
Variable costing
A costing method that charges only variable production cost to units and treats fixed production overhead as a period expense. Permitted internally, not for external reporting.
Relevant range
The band of volume over which price, variable cost per unit and total fixed cost stay linear. Outside it, every CVP result must be recalculated.
Contribution margin per unit of constraint
Contribution margin divided by the amount of the bottleneck resource a unit consumes. The correct ranking measure when capacity is limited.

Frequently asked questions

Is contribution margin the same as gross profit?

No, and treating them as interchangeable causes real pricing errors. Gross profit subtracts cost of goods sold, which under absorption costing includes fixed manufacturing overhead, and it sits above selling costs so it ignores commission, card fees and outbound freight. Contribution margin subtracts every variable cost wherever it appears and no fixed cost at all. On the same product the two figures can differ by ten points or more in either direction.

Can contribution margin be negative?

Yes, and it is an immediate stop signal. A negative contribution margin means each additional sale increases your loss, so raising volume makes things worse and no amount of fixed-cost cutting repairs it. The usual causes are a percentage fee larger than the remaining margin, a freight cost on a low-price item, or a promotional price set from markup on an incomplete cost figure. Raise the price, cut the variable cost, or stop selling the item.

What contribution margin ratio should I aim for?

No universal target exists, because the ratio tracks your cost structure rather than your quality. Software and services often run 70–90% because almost all cost is fixed; distribution and contract manufacturing often run 10–25% because almost all cost is variable. The meaningful test is fixed costs ÷ contribution margin per unit measured against your realistic capacity. If break-even volume sits comfortably inside what you can produce and sell, the ratio is high enough.

How do I calculate contribution margin with several products?

Weight the per-unit margins by your sales mix. Sell three of product A at $10 of margin for every one of product B at $30, and one bundle of four units earns (3 × $10) + (1 × $30) = $60, so the weighted-average contribution margin is $60 ÷ 4 = $15 per unit. Divide fixed costs by $15 for total break-even units, then split them back into the 3:1 mix. The answer holds only while the mix holds — selling relatively more of the low-margin item moves break-even out even when total units are on plan.

Should sales commission come out of contribution margin?

Yes — commission paid per sale is a textbook variable cost and belongs in variable cost per unit, even though it appears well below gross profit on the income statement. Enter it here as a percentage of price and the calculator converts it into dollars. A salesperson's base salary is fixed and belongs in fixed costs; a plan carrying both is a mixed cost, so split it into its two components.

Does contribution margin include fixed manufacturing overhead?

No. Fixed manufacturing overhead — factory rent, the plant manager's salary, straight-line machine depreciation — does not change with one more unit, so it stays out of the per-unit figure and is subtracted as a period cost. This is exactly where contribution margin and absorption-costing gross margin diverge, and it is why the two profit figures differ whenever inventory levels change.

How does contribution margin decide whether to accept a special order?

Accept the order when its price exceeds the variable cost of filling it and you have spare capacity, even if the price sits below full cost. With $24 of variable cost, a one-off order at $30 adds $6 per unit of contribution and no new fixed cost, so profit improves by $6 a unit. Two conditions attach: the order must not displace full-price sales, and it must not reset the price your regular customers expect.

Why does my operating income differ from my accountant's?

Almost always because they are on absorption costing and you are on variable costing. When units produced differ from units sold, absorption costing moves fixed production overhead into or out of inventory, so reported profit shifts by that amount while contribution-format profit does not. Ask for the change in inventory and the fixed overhead rate applied to it; the gap between the two profit figures is those two numbers multiplied together.

References