Skip to content
Launch week · Your first model, free

Contribution margin: formula, examples, and what it tells you

CFO.ai team

Originally published July 10, 2025 · Updated September 19, 2026 · 7 min read

Contribution margin shows how much revenue remains after costs that rise with each sale, providing the amount available to pay fixed costs and, after those are covered, produce operating profit.

The calculation depends on deciding which costs are truly variable, then using the result at the right level: per unit, per customer, per product, or across the company.

What is contribution margin?

Contribution margin is revenue minus variable costs. It measures the amount each sale contributes toward fixed costs and profit. A positive contribution margin establishes that each additional sale moves the company closer to covering its fixed cost base. Company profitability still depends on total contribution dollars exceeding fixed costs.

Contribution margin = Revenue - Variable costs

Variable costs change with sales volume. For a software company, they might include payment processing, usage-based cloud infrastructure, customer support tied directly to account volume, or commissions. Fixed costs such as office rent and most salaried payroll do not change immediately when one more unit is sold.

The distinction matters more than the label in the general ledger. A hosting contract with a large monthly minimum may be partly fixed and partly variable. Sales compensation may include a fixed salary and a commission. Split mixed costs before using them in the calculation.

How do you calculate contribution margin and contribution margin ratio?

State contribution margin in dollars to show how much is available to cover fixed costs, or as a percentage to compare products, customer groups, or periods with different revenue levels.

Contribution margin ratio = Contribution margin / Revenue × 100

Suppose a product produces $100,000 in monthly revenue. Its variable costs are $18,000 for infrastructure, $7,000 for payment processing and support, and $10,000 for commissions.

ItemMonthly amount
Revenue$100,000
Variable costs$35,000
Contribution margin$65,000
Contribution margin ratio65%

The product contributes $65,000 each month toward fixed costs and profit. Its contribution margin ratio is 65%.

At the unit level, the same logic applies. A product sold for $100 with $35 in variable cost has a contribution margin of $65 per unit and a 65% contribution margin ratio.

What does contribution margin tell you?

Contribution margin tells you whether selling more of something improves the economics of the business. It also shows how pricing, discounts, product mix, and variable costs change the amount available to fund the rest of the company.

A company can use it to answer specific operating questions:

  • Which product produces the most contribution dollars?
  • Does a discounted contract still cover the cost to serve it?
  • Which customer segment should receive the next dollar of sales capacity?
  • How much volume is required before a new product covers its fixed launch costs?

The answer depends on the level of analysis. A product with a lower margin ratio may still generate more total contribution dollars because it sells at much higher volume. A high-margin product may look attractive until you include the support or infrastructure cost that grows with each customer.

How does contribution margin differ from gross profit?

Gross profit follows the cost of goods sold classification in the company's financial statements, while contribution margin includes every cost that varies with sales volume wherever it appears in the chart of accounts. The 2 measures can be equal, but they answer different questions.

MeasureCalculationBest used for
Gross profitRevenue - cost of goods soldFinancial reporting and overall unit economics
Contribution marginRevenue - all variable costsPricing, product mix, break-even, and incremental decisions

Include commissions in contribution margin when they rise directly with new sales, even if the company records them in sales expense rather than cost of revenue.

Consistency matters. Document which costs are variable, keep that treatment stable across periods, and explain any change. A contribution margin trend becomes misleading when the cost classification changes halfway through the year.

How does contribution margin affect break-even?

Break-even is the point where total contribution margin covers fixed costs. The number of units required to break even falls as contribution margin per unit increases.

Break-even units = Fixed costs / Contribution margin per unit
Break-even revenue = Fixed costs / Contribution margin ratio

Assume fixed costs are $80,000 per month and contribution margin is $65 per unit.

$80,000 / $65 = 1,231 units

The company needs to sell about 1,231 units per month to cover fixed costs. If a price increase lifts contribution margin to $75 per unit without reducing demand, break-even falls to about 1,067 units.

Model every margin decision with volume. A higher price improves contribution per unit only if the resulting change in conversion, retention, or usage does not erase the gain.

How can you improve contribution margin?

Contribution margin improves when price rises, variable cost falls, or the sales mix moves toward higher-contribution products. Each lever has a second-order effect, so finance should model the change through volume, retention, and capacity before treating the improvement as real.

Pricing changes often have the fastest mathematical effect. Test the new price against conversion and retention assumptions. A 10% price increase with no volume loss is a very different plan from a 10% increase that reduces new sales by 15%.

Variable cost work starts with the costs that move most directly with sales. Renegotiate processing rates, revise infrastructure architecture, change service levels, or reduce costly exceptions. Do not spread an annual cost reduction evenly across products if only one product produced it.

Product mix changes can increase company contribution without changing any individual product. Shift sales effort toward the product, plan, customer group, or channel that contributes more dollars after its variable cost to serve.

How should a finance team model contribution margin?

Build contribution margin from the same revenue and cost drivers used in the rest of the financial model. Separate fixed and variable components, then break the result down by the dimensions that can change a decision, such as product, customer segment, channel, or region.

In CFO.ai, the useful setup is a shared model with revenue, variable costs, contribution margin, and contribution margin ratio as separate variables. Dimensions let the same calculation show each product or segment without maintaining parallel spreadsheets. A scenario can then change price, volume, or cost assumptions while the rest of the model updates from the same inputs.

A practical review page should show:

  • Revenue, variable cost, contribution margin, and ratio by month
  • The same measures by the product or customer dimension that owners can act on
  • A base scenario beside the proposed change
  • The effect on gross profit, operating profit, cash, and break-even timing

The model should make the assumption visible. If the plan says margin improves because infrastructure cost per customer falls, show that driver. If the result depends on higher prices with unchanged retention, make that assumption easy to challenge.

What mistakes make contribution margin misleading?

The most common error is treating every cost below gross profit as fixed. Commissions, transaction fees, usage-based infrastructure, fulfillment, and some service labor may vary directly with sales even when accounting presents them elsewhere.

Other mistakes include:

  • Mixing contribution margin with gross margin without defining either measure
  • Using revenue averages that hide an unprofitable product or customer group
  • Comparing periods after changing which costs count as variable
  • Improving the ratio while total contribution dollars fall
  • Modeling price changes without any effect on demand or retention

Contribution margin is most useful when it stays connected to the operating drivers behind it. Keep the formula visible beside the price, volume, mix, and cost assumptions that moved the result.

What should you review each month?

Review contribution margin in dollars and as a percentage, then trace the movement to price, volume, mix, and variable cost. Compare actuals with the plan and with the prior period using the same cost classification.

Start with the largest change. Separate the effect of unit economics from the effect of sales volume so the operating response addresses the source of the movement.

Keep the review tied to decisions. A useful margin report connects the changed assumption to the action available now.

Questions answered.

What is contribution margin?

Contribution margin is revenue minus variable costs. It shows how much revenue remains to cover fixed costs and profit after the costs that rise with each sale.

How do you calculate contribution margin ratio?

Divide contribution margin by revenue, then multiply by 100. A company with $65,000 of contribution margin on $100,000 of revenue has a 65% contribution margin ratio.

Is contribution margin the same as gross profit?

They can be equal, but they use different cost definitions. Gross profit follows the company's cost of goods sold classification. Contribution margin includes every cost that varies with sales volume.

How does contribution margin affect break-even?

Break-even units equal fixed costs divided by contribution margin per unit. A higher contribution margin reduces the sales volume required to cover fixed costs.