StatGardenREF. DESK
Calculators/Finance/Margin of Safety Calculator
Finance

Margin of Safety Calculator

How far actual or budgeted sales can fall before a business hits its break-even point, in dollars and as a percentage.

Published 26 August 2026

What this calculator does

Margin of safety measures the buffer between what a business is actually selling and the point where it would stop making a profit altogether. It answers a specific, practical question: if sales fell, how far could they fall before the business is merely breaking even rather than losing money.

The margin of safety formula is actual sales minus break-even sales, usually then expressed as a percentage of actual sales so it can be compared across businesses of different sizes. A thin margin of safety is a warning sign even for a currently profitable business, because it means a modest sales downturn is enough to wipe out the profit entirely.

The formula

FormulaMargin of safety = Actual sales − Break-even sales. Margin of safety % = Margin of safety / Actual sales × 100

First work out the contribution margin ratio: selling price minus variable cost per unit, divided by selling price. Divide total fixed costs by that ratio to get break-even sales in dollars. Margin of safety is actual sales minus break-even sales, and the percentage version divides that gap by actual sales.

TermMeaning
Margin of safetyThe dollar gap between actual sales and break-even sales.
Margin of safety %That gap expressed as a percentage of actual sales, so it compares across businesses of different sizes.
Break-even salesThe sales level at which total contribution margin exactly covers fixed costs, leaving zero profit.
Contribution margin ratioThe share of each sales dollar left over after variable costs, before fixed costs are covered.

The inputs explained

FieldWhat to enter
Actual or budgeted sales ($)Actual sales achieved, or a budgeted sales figure if you are testing a forecast.
Selling price per unit ($)The selling price per unit.
Variable cost per unit ($)The variable cost per unit, meaning costs that scale directly with each unit sold.
Total fixed costs ($)Total fixed costs for the period, which do not change with sales volume.

When to use it

Stress-testing a sales forecast

Before committing to a budget built around a sales target, checking the margin of safety shows how much room there is for that forecast to come in low before the business tips into a loss.

Comparing two product lines

A product with high sales but a thin margin of safety can be riskier than a smaller product with a wide one, since the first has less room to absorb a downturn.

Deciding whether to add fixed costs

Taking on more fixed costs, such as a lease or new equipment, raises the break-even point and narrows the margin of safety at the same sales level, which this calculator makes visible before the commitment is made.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How margin of safety narrows as fixed costs rise

The same sales, price and variable cost, with fixed costs stepped up.

$200,000 sales, $50 price, $30 variable cost
Fixed costsMargin of safetyMargin of safety %
$20,000$150,000.0075.00%
$40,000$100,000.0050.00%
$60,000$50,000.0025.00%
$80,000$0.000.00%
$100,000−$50,000.00-25.00%
$120,000−$100,000.00-50.00%
With sales held at $200,000, margin of safety shrinks steadily as fixed costs climb, reaching zero once fixed costs hit $80,000, the point at which break-even sales equal actual sales, and turning negative beyond that as break-even sales overtake actual sales.

Questions

What is the margin of safety formula?

Margin of safety = actual (or budgeted) sales minus break-even sales. Expressed as a percentage, it is that gap divided by actual sales, multiplied by 100.

How do I calculate margin of safety without knowing break-even sales directly?

Work it out from price, variable cost and fixed costs first: the contribution margin ratio is (price − variable cost) ÷ price, and break-even sales is fixed costs divided by that ratio. This calculator does that step automatically.

What counts as a healthy margin of safety?

There is no universal threshold, since it depends on how stable and predictable the business's sales are. A business with volatile demand generally wants a wider margin of safety than one with very steady, contracted revenue.

How is this different from break-even analysis?

Break-even analysis finds the sales level needed to cover costs exactly. Margin of safety takes that break-even figure and compares it against actual or budgeted sales to show the size of the cushion above it.

For the underlying contribution margin and break-even units calculation, see the contribution margin calculator.