foundercalc

How do you calculate Contribution Margin?

Quick answer

Calculate contribution margin and contribution margin ratio from revenue and variable costs.

Enter revenue, variable costs below to get an instant result. The calculation runs locally in your browser.

Calculate now No signup. Inputs stay in your browser.
Methodology reviewed
Contribution Margin Calculator Live
Email

Educational estimates only.

Inputs and calculation steps

Use values from the same reporting period for a meaningful comparison.

Input Unit Accepted range
Revenue USD 0 to no maximum
Variable costs USD 0 to no maximum

How to use it

  1. Enter consistent inputs. Enter revenue, variable costs. Use values from the same reporting period and currency where applicable.
  2. Review the calculated result. Read the contribution margin ratio and contribution margin result and its interpretation in the calculator panel.
  3. Compare scenarios. Adjust one input at a time to compare scenarios, then copy the share link if you need to revisit the same inputs.

Data checks

  • Use source records rather than rounded estimates when available.
  • Keep time periods and currencies consistent across every input.
  • Treat the output as an estimate, not financial, legal, tax, or accounting advice.

What is contribution margin?

Contribution margin is what remains from revenue after subtracting the costs that rise and fall with each sale. That remainder contributes first to fixed costs, such as rent and salaries, and then to profit.

It can be stated in two ways. As an amount, it tells you how much money a sale or product line leaves behind. As a percentage of revenue, the contribution margin ratio, it lets you compare products with different prices.

The metric is useful for decisions about more or less of something: whether to accept a discounted order, which product to promote, or how much you need to sell to break even. Fixed costs do not change in those decisions, so leaving them out gives a clearer answer.

The formula

Contribution margin = Revenue - Variable costs
Contribution margin ratio = Contribution margin / Revenue x 100

The hard part is deciding which costs are variable. Ask: if I sold one more unit, would I pay more?

CostUsuallyWhy
Materials, packaging, shippingVariablePaid per unit
Payment processing feesVariableCharged per transaction
Sales commissionsVariablePaid per sale
Usage-based hosting or API feesVariableGrows with activity
Flat software subscriptionsFixedSame at any volume
Rent and base salariesFixedSame at any volume
Customer supportMixedSteps up when a new hire is needed

Mixed costs need a judgment. Split them if you can, or treat them as fixed until the volume at which the next step is needed.

Edge case: With zero revenue there is no ratio to calculate, and the calculator shows 0%. A negative result means each sale loses money before fixed costs are even considered.

Worked example

Default inputs: revenue = $100,000 and variable costs = $40,000.

Contribution margin = $100,000 - $40,000 = $60,000
Contribution margin ratio = $60,000 / $100,000 = 60%

Break-even. If fixed costs are $45,000, the sales needed to cover them are $45,000 / 0.60 = $75,000. At $100,000 of revenue, profit is $60,000 − $45,000 = $15,000. The break-even calculator works this out per unit.

A 10% discount. Suppose you cut prices by 10%, sell the same number of units, and unit costs do not change. Revenue falls to $90,000 and variable costs stay at $40,000. Contribution margin drops to $50,000, a ratio of 55.6%, and break-even revenue rises to $81,000. To get back to a $60,000 contribution you would need to sell 20% more units: $108,000 of revenue less $48,000 of variable costs. A 10% discount sounds small, but it has to bring in a fifth more volume just to stand still.

Contribution margin vs. gross margin

Gross margin subtracts the cost of goods sold. Contribution margin subtracts variable costs. The two overlap without matching:

  • Cost of goods sold can include fixed production costs, such as factory rent. Contribution margin leaves those out.
  • Cost of goods sold usually leaves out variable selling costs, such as commissions and payment fees. Contribution margin subtracts them.

Either one can therefore be higher. For a manufacturer with a large plant, contribution margin is often higher than gross margin. For an online shop with heavy transaction and commission costs, it can be lower. Use gross margin for financial reporting and contribution margin for volume and pricing decisions.

Benchmarks

There is no universal target, so the calculator only tells you whether a sale contributes anything at all. A software company and a grocery store have very different variable costs, and both can be profitable. Set your own threshold from your fixed costs: divide them by the revenue you can realistically reach, and you have the minimum ratio you need. With $45,000 of fixed costs and $90,000 of expected revenue, that minimum is 50%.

How to interpret and improve it

Compare products. Say the $100,000 comes from two products:

ProductRevenueVariable costsContributionRatio
A$60,000$15,000$45,00075%
B$40,000$25,000$15,00037.5%
Total$100,000$40,000$60,00060%

Product B looks weak, but dropping it would lose $15,000 that currently helps to pay fixed costs. Unless those costs fall too, or the capacity can be used for more of product A, dropping B makes the business worse off.

When something is scarce, rank by that. If both products need the same machine or the same support team, compare contribution per hour of the scarce resource instead of the ratio.

Ways to raise it: increase price, negotiate material or processing rates, reduce returns, and shift sales toward higher-contribution products.

Common mistakes

  • Treating all staff costs as variable. Salaried employees cost the same in a slow month.
  • Forgetting small per-sale costs. Payment fees, refunds, and packaging add up.
  • Using it for long-term pricing alone. A price above variable cost can be fine for one extra order. If every order is priced that way, fixed costs never get paid.
  • Mixing periods. Match the variable costs to the revenue they produced.

When the metric misleads: It assumes price and unit cost stay constant as volume changes. Bulk discounts, overtime, and new capacity all break that assumption, so recalculate when volume moves a lot.

Methodology sources

Reference definitions and methodology were checked on . These external sources do not endorse foundercalc, and your own reporting definitions should take precedence.

Frequently asked questions

What is contribution margin?

Contribution margin is revenue minus variable costs. It is the amount left over from each sale to cover fixed costs and then contribute to profit.

How is contribution margin calculated?

Contribution margin = revenue − variable costs. The contribution margin ratio = contribution margin ÷ revenue × 100, expressed as a percentage.

How is it different from gross margin?

Gross margin subtracts cost of goods sold (COGS), which can include some fixed production costs. Contribution margin subtracts only variable costs, so it isolates the profit each additional unit adds.

Why does contribution margin matter?

It tells you how much each sale helps cover fixed costs, which drives break-even and pricing decisions. A higher contribution margin means you reach profitability with fewer sales.

Which costs count as variable?

Costs that rise and fall with each unit sold, such as materials, packaging, shipping, payment fees, and sales commissions. Rent, salaries, and software subscriptions usually stay the same as volume changes, so they are fixed.

Did this calculator help you?