Variable Cost Calculator

Work out total variable cost, contribution margin, variable cost ratio and the break even volume from unit cost, price and fixed cost.

Finance and MoneyUpdated 2026-11-183 min read
Variable Cost Calculator
Total variable cost
...
Total contribution margin...
Contribution per unit...
Variable cost ratio...
Break even volume...
Sales revenue...

What it does

A variable cost rises and falls with output. OpenStax Principles of Managerial Accounting gives direct materials as the usual example and notes that 100 shirts at $10 of material each produce $1,000 of total variable cost, while 250 shirts produce $2,500. The same chapter defines contribution margin as the selling price minus the variable cost of one unit, the amount available to cover fixed costs.

That relationship is the basis of cost volume profit analysis. Revenue equals units times price, total variable cost equals units times unit cost, and the gap between them is the contribution. Once fixed costs are covered, each extra unit contributes its margin to profit. The tool shows the whole chain so you can see where a change in price or cost takes effect.

OpenStax uses a birdbath example with a $100 price and $20 of variable cost, giving $80 of contribution per unit. A second model priced at $75 with $15 of variable cost gives $60. The point is that every product has its own margin, and the same arithmetic applies whether you sell shirts, birdbaths or software licences.

Below you enter units, the variable cost per unit, the selling price and the fixed costs for the period. The calculator returns total variable cost, sales revenue, contribution in total and per unit, the variable cost ratio and the break even volume. Money values are shown with two decimal places.

The model assumes that cost per unit and price stay constant over the range you are looking at. Bulk discounts, overtime, step changes in staffing and capacity limits all break that assumption and need a more detailed model.

How to use

  1. Enter the number of units you expect to sell or produce in the period.
  2. Enter the variable cost of one unit, such as materials and direct labour.
  3. Enter the selling price of one unit before tax.
  4. Enter the fixed costs for the same period, such as rent and salaried staff.
  5. Read the total variable cost and the sales revenue to check the scale of the calculation.
  6. Use the contribution figures for short term decisions and the break even volume to see how far the product is from covering its fixed costs.

Formula

TVC = q x v. Revenue = q x p. Unit contribution = p - v. Total contribution = q x (p - v). Variable cost ratio = 100 x v / p. Break even units = ceiling(F / (p - v)).
q
Number of units sold or produced in the period.
v
Variable cost of one unit in dollars.
p
Selling price of one unit in dollars.
F
Fixed costs for the period in dollars.
TVC
Total variable cost in dollars.

The break even volume is rounded up, because a fraction of a unit cannot be sold, and it is shown as not available when price does not exceed variable cost. At a price of zero the variable cost ratio is reported as zero rather than as a division by zero. Contribution margin here is the cost accounting measure, which excludes fixed costs, and is not the same as gross margin on an income statement.

Worked example

Example: 1,000 units at a $12.50 unit cost and a $20.00 price

Defaults: 1,000 units, $12.50 variable cost per unit, $20.00 selling price and $5,000 of fixed costs.

  1. Total variable cost: 1,000 x $12.50 = $12,500.00.
  2. Revenue: 1,000 x $20.00 = $20,000.00, and contribution per unit is $20.00 - $12.50 = $7.50.
  3. Total contribution: 1,000 x $7.50 = $7,500.00, which also equals $20,000.00 - $12,500.00.
  4. Variable cost ratio: $12.50 / $20.00 x 100 = 62.50 percent of each sales dollar.
  5. Break even volume: $5,000 / $7.50 = 666.67 units, rounded up to 667 units.
  6. Profit at this volume is total contribution minus fixed costs: $7,500.00 - $5,000.00 = $2,500.00.
  7. The tool shows $12,500.00, $7,500.00, $7.50, 62.50 %, 667 units and $20,000.00.

Reference table

Cost and contribution at different output levels, with a $20.00 price and a $12.50 unit cost
UnitsVariable costRevenueContribution
500$6,250.00$10,000.00$3,750.00
1,000$12,500.00$20,000.00$7,500.00
2,000$25,000.00$40,000.00$15,000.00
5,000$62,500.00$100,000.00$37,500.00

Limits

  • Assumes a linear cost function, so it ignores quantity discounts, overtime premiums and step fixed costs outside the relevant range.
  • Treats all fixed costs as independent of volume within the period you enter.
  • Does not distinguish semi variable costs that contain both a fixed and a variable part.
  • Ignores taxes, returns, bad debts and any change in the sales mix of a multi product business.

Common mistakes

  • Including rent or other fixed costs in the variable cost per unit.
  • Rounding the break even point down, which would leave fixed costs slightly uncovered.
  • Confusing contribution margin with gross margin, which subtracts cost of goods sold instead of variable cost.
  • Using an average cost per unit that already includes fixed costs when calculating the margin.
  • Comparing the variable cost ratio with the contribution margin ratio without noticing that they add to 100 percent.

Try it yourself

Quick checks. Answers sit tucked under each question.

A product sells for $40 with $25 variable cost per unit. What are the variable cost ratio and contribution margin ratio?

Variable cost ratio is $25 / $40 x 100 = 62.50 %. Contribution margin ratio is $15 / $40 x 100 = 37.50 %.

Fixed costs are $9,000 and contribution per unit is $15. How many units are needed to break even?

$9,000 / $15 = 600 units.

What is the total variable cost of 800 units at $18 per unit?

800 x $18 = $14,400.00.

Questions

What counts as a variable cost?

Any cost that changes in total when output changes, such as raw materials, packaging and piece rate labour. OpenStax uses direct materials as the standard example.

What is contribution margin?

It is sales revenue minus variable costs. Per unit it is price minus variable cost per unit, and it is the money available to cover fixed costs and then profit.

How do I find the break even point?

Divide fixed costs by contribution per unit. If the answer is not a whole number, round up to the next unit.

What if price is below variable cost?

Contribution is negative and every unit sold adds a loss, so there is no break even volume. The tool shows not available in that case.

Is the variable cost ratio the same as the gross margin ratio?

No. The variable cost ratio uses variable costs from cost volume profit analysis, while gross margin uses cost of goods sold from the income statement.

Does the calculator handle more than one product?

No. It uses one price and one unit cost. For several products you need a weighted average contribution based on a fixed sales mix.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.