Calculate Contribution Margin and CM Ratio

Revenue minus variable costs - what's left to cover fixed costs and generate profit

PRO TIP
A common mistake people make is including fixed cost allocations in the variable cost field. This distorts your contribution margin. The correct approach is to only include costs that change with each unit sold in the variable cost field, such as payment processing, materials, or hosting per user. Rent and salaries should always go into the fixed costs section.

Quick answer

Contribution Margin = Revenue − Variable Costs. CM Ratio = CM / Revenue × 100. Example: $500,000 revenue − $300,000 variable costs = $200,000 CM, 40% CM ratio. Subtract fixed costs to get operating profit: $200,000 − $120,000 = $80,000.

How to use this CM calculator

Enter Total Revenue and Total Variable Costs to see contribution margin and CM ratio. Optionally add Units Sold to see contribution margin per unit, and Fixed Costs to see operating profit and operating margin. All inputs should be for the same period (month, quarter, or year).

Variable costs include raw materials, direct labour paid per unit produced, packaging, shipping, and sales commissions. Do not include salaries, rent, or other fixed overheads in the variable cost field.

Contribution margin explained to a beginner

Think of baking cookies to sell at a school fair. Each cookie sells for $3.00. The ingredients - flour, butter, chocolate - cost $0.90 per cookie. That is your variable cost. You paid $15 to rent the table for the day - that is your fixed cost, paid regardless of how many cookies you sell.

CM per unit = $3.00 - $0.90 = $2.10. That $2.10 "contributes" to paying off the $15 table rental first, and becomes profit only after the fixed cost is covered. Break-even: $15 / $2.10 = 8 cookies. Every cookie after the 8th puts $2.10 directly into your pocket.

The CM ratio is $2.10 / $3.00 = 70%. That means 70 cents of every dollar you earn is available for fixed costs and profit, while 30 cents is consumed by ingredients. A higher CM ratio means you reach break-even faster and keep more of each incremental dollar of revenue - which is why software businesses (low ingredient cost) have much higher CM ratios than manufacturers.

Contribution margin formula

Contribution margin can be calculated in total, per unit, or as a ratio:

$$\text{Contribution Margin} = \text{Revenue} - \text{Variable Costs}$$

$$\text{CM per Unit} = \text{Selling Price} - \text{Variable Cost per Unit}$$

$$\text{CM Ratio} = \frac{\text{Contribution Margin}}{\text{Revenue}} \times 100$$

Operating profit is then derived by subtracting fixed costs:

$$\text{Operating Profit} = \text{Contribution Margin} - \text{Fixed Costs}$$

And break-even units follow directly:

$$\text{Break-Even Units} = \frac{\text{Fixed Costs}}{\text{CM per Unit}}$$

The CM ratio is the most versatile form - it tells you what percentage of every revenue dollar is available to cover fixed costs and profit, regardless of volume. It is constant as long as selling price and variable cost per unit remain unchanged.

CM ratio benchmarks by industry

CM ratios vary widely by business model. Asset-light, software, and services businesses have high CM ratios; manufacturing and distribution have lower ratios due to material costs:

Industry / Business TypeTypical CM RatioKey Variable Cost Drivers
SaaS / Software70% – 85%Hosting, payment processing, support
Consulting / Professional Services50% – 75%Contractor / project-based labour
Restaurants60% – 75%Food and beverage cost (COGS)
E-commerce / Retail30% – 55%Product cost, shipping, returns
Manufacturing25% – 45%Raw materials, direct labour
Construction20% – 35%Subcontractors, materials
Distribution / Wholesale15% – 30%Product cost, freight

I notice the restaurant row in the benchmarks table surprises most people. At 60-75% CM ratio, restaurants outscore e-commerce and manufacturing by a wide margin - yet restaurants are widely described as low-margin businesses. The distinction is CM ratio versus operating margin.

The restaurant in the worked examples table has a 70% CM ratio and $280,000 in contribution margin on $400,000 revenue. But $220,000 in fixed costs (rent, salaried staff, equipment) consume 79% of that CM, leaving only $60,000 in operating profit. The story is entirely in the fixed cost base.

A restaurant with the same 70% CM ratio but $260,000 in fixed costs instead of $220,000 earns $20,000, not $60,000 - a 67% drop in profit from a 18% rise in fixed costs.

Worked examples for CM calculation

BusinessRevenueVariable CostsCMCM RatioFixed CostsOperating Profit
SaaS company$800,000$120,000$680,00085%$500,000$180,000
Restaurant$400,000$120,000$280,00070%$220,000$60,000
E-commerce store$600,000$330,000$270,00045%$180,000$90,000
Manufacturer$2,000,000$1,200,000$800,00040%$650,000$150,000

Contribution margin vs. gross profit

These two metrics are related but answer different questions:

Contribution MarginGross Profit
FormulaRevenue − Variable CostsRevenue − COGS
What's excludedAll fixed costsSG&A, R&D (below gross profit line)
COGS treatmentSplits COGS into fixed/variableUses COGS as reported (includes fixed manufacturing overhead)
Best used forInternal decisions, break-even, pricingExternal reporting, industry comparison
Is it GAAP?No - management accounting metricYes - appears on the income statement

Gross profit is the standard reported metric. Contribution margin is more useful for internal decision-making because it cleanly separates the volume-driven variable costs from the fixed cost base.

Using CM to make product mix decisions

When a business sells multiple products with a shared fixed cost base, CM per unit (or CM ratio) determines which products to prioritise. Always maximise total contribution margin - not revenue or gross margin.

ProductPriceVariable CostCM / UnitCM RatioShould you prioritise?
Product A$200$80$12060%Yes - high CM ratio
Product B$500$350$15030%Only if volume is very high
Product C$50$15$3570%Yes - highest CM ratio

Product B has the highest CM per unit ($150) but the lowest CM ratio (30%). If production capacity is constrained, Product C generates more CM per dollar of revenue. If sales time is the constraint, focus on which product generates the most CM per sales hour.

One pattern I see repeatedly: businesses rank their product line by revenue per unit or absolute CM per unit, and miss what the CM ratio is telling them.

The product mix table above shows the gap clearly. Product B at $500/unit earns $150 CM per unit - the highest of the three. But at a 30% CM ratio, it generates only 30 cents per revenue dollar. Product C earns just $35 per unit, but at 70% CM ratio it generates 70 cents per revenue dollar.

Whether Product B or Product C is the right priority depends on the actual constraint: if your sales team takes the same time to close each deal, Product B wins on absolute CM per call.

If your warehouse has a fixed number of SKU slots, Product C wins - it converts more of its cost base into contribution per dollar of shelf space used. Identify the constraint first, then rank by CM per unit of that constraint.

Frequently asked questions about contribution margin

What is contribution margin?

Contribution margin is the amount of revenue left after subtracting all variable costs. It is the pool of money available to cover fixed costs and generate profit. CM = Revenue − Variable Costs. A positive CM means each additional sale moves the business toward profitability; a negative CM means each sale deepens the loss.

What is CM ratio and why does it matter?

CM Ratio = Contribution Margin / Revenue × 100. It tells you what percentage of every revenue dollar flows through to cover fixed costs and profit. A 40% CM ratio means 40 cents of every dollar earned is available for fixed costs and profit. Higher CM ratios mean faster break-even and more profit per unit of revenue growth.

What is the difference between contribution margin and gross profit?

Gross profit uses COGS as reported, which often includes fixed manufacturing overhead. Contribution margin uses only variable costs. For a manufacturer with $2M in COGS - $1.4M variable, $600K fixed overhead - CM is $200K higher than gross profit. CM is more useful for break-even and pricing; gross profit is used for financial reporting.

Can contribution margin be negative?

Yes. A negative CM means variable costs exceed revenue per unit - every unit sold increases the loss. This is always unsustainable and indicates a fundamental pricing or cost problem. If CM is negative, increasing sales volume makes things worse, not better. The fix is either to raise prices or reduce variable costs.

How is contribution margin used in pricing?

Minimum viable price = Variable Cost per Unit + (Fixed Costs / Expected Units). Any price above variable cost contributes positively to fixed cost coverage. Target price should provide enough CM to cover fixed costs AND deliver the required profit margin. Use CM ratio sensitivity: if you discount price by 10%, how many more units must you sell to maintain the same total CM?

Test your knowledge

Quiz: how well do you know contribution margin?

5 questions · ~2 min

1. What does the CM ratio represent, according to this page?

CM Ratio = Contribution Margin / Revenue x 100. A 40% CM ratio means 40 cents of every dollar earned flows through to cover fixed costs and then profit. It stays constant as long as selling price and variable cost per unit remain unchanged.

2. Using the e-commerce store row in the worked examples table ($600,000 revenue, $330,000 variable costs, $180,000 fixed costs), what is the operating profit?

CM = $600,000 - $330,000 = $270,000 (45% CM ratio). Operating Profit = CM - Fixed Costs = $270,000 - $180,000 = $90,000. Option C ($270,000) is the intermediate CM figure, not the final operating profit.

3. According to the CM vs. gross profit comparison table, how does contribution margin treat manufacturing overhead differently from gross profit?

The comparison table shows that CM separates fixed and variable portions of COGS, while gross profit uses COGS as it appears on the income statement - which typically bundles fixed manufacturing overhead with variable costs. This is why CM is more useful for internal pricing and break-even decisions.

4. According to the CM ratio benchmarks table, which business type has the lowest typical CM ratio range?

Distribution/Wholesale sits at 15-30%, the lowest range in the table. Product cost and freight consume most of each revenue dollar, leaving very little contribution margin. Construction (20-35%) is the second lowest.

5. The page warns that a negative contribution margin has a specific consequence. What is it?

The page states: "If CM is negative, increasing sales volume makes things worse, not better." Each unit sold at a negative CM widens the loss by exactly that amount. The only fixes are raising the selling price or reducing variable costs below the selling price.

Key terms