Margin of Safety: Formula, Calculation, and Examples
Margin of safety is the amount by which actual or budgeted sales exceed break-even sales. It measures how far sales can fall before a business reaches zero operating profit, assuming selling prices and costs remain unchanged. You can express it in dollars, units, or as a percentage of sales.
This lesson explains the formulas, works through two restaurant scenarios, and shows how to interpret the results. Margin of safety is part of cost-volume-profit (CVP) analysis, which connects sales volume, costs, and operating profit.
Updated October 21, 2026.
Margin of Safety Formula
Margin of safety in dollars = Actual or budgeted sales dollars − Break-even sales dollars
Margin of safety percentage = (Margin of safety in dollars ÷ Actual or budgeted sales dollars) × 100%
Margin of safety in units = Actual or budgeted units sold − Break-even units
Use the same sales basis throughout a calculation. If you start with budgeted sales, divide by budgeted sales when calculating the percentage. Use sales and costs for the same period. The percentage formula requires a positive sales denominator.
For a single product sold at a constant price, you can also divide the margin of safety in dollars by the selling price per unit to find the margin in units.
Calculate Break-Even Sales First
Break-even is the sales level at which total contribution margin exactly covers fixed operating costs. Operating profit is zero. Contribution margin is sales revenue minus variable operating costs; it is not the same as profit.
- Contribution margin per unit = Selling price per unit − Variable cost per unit.
- Contribution margin ratio = Contribution margin per unit ÷ Selling price per unit.
- Break-even units = Fixed costs ÷ Contribution margin per unit.
- Break-even sales dollars = Fixed costs ÷ Contribution margin ratio.
Enter the ratio as a decimal when dividing: use 0.50 for 50%. A positive contribution margin is necessary to cover positive fixed costs. Review the contribution margin ratio formula and examples if this step needs clarification.
Example 1: Tasty Bites at Break-Even
Assume Tasty Bites, a hypothetical restaurant, has the following monthly budget. Fixed costs include rent and fixed salaries. Any variable portions of utilities and labor are included in the variable cost per meal.
| Item | Amount |
|---|---|
| Fixed operating costs | $6,000 |
| Selling price per meal | $20 |
| Variable cost per meal | $10 |
| Budgeted sales revenue | $12,000 |
Step 1: Find Contribution Margin
Contribution margin per meal = $20 − $10 = $10.
Contribution margin ratio = $10 ÷ $20 = 0.50, or 50%.
Step 2: Calculate Break-Even Units and Dollars
Break-even units = $6,000 ÷ $10 = 600 meals.
Break-even sales dollars = $6,000 ÷ 0.50 = $12,000. Check: 600 meals × $20 = $12,000.
Step 3: Calculate the Margin of Safety
Margin of safety in dollars = $12,000 − $12,000 = $0.
Margin of safety percentage = ($0 ÷ $12,000) × 100% = 0%.
Tasty Bites expects to sell exactly 600 meals, so its margin of safety in units is also zero. The restaurant is at break-even and has no cushion for a sales decline. Notice that $6,000 is fixed cost, not break-even sales revenue. Subtracting fixed costs directly from sales would give the wrong margin of safety.
Example 2: A Positive Margin of Safety
Now assume Tasty Bites budgets $20,000 in monthly sales. Selling price, variable cost per meal, and fixed costs remain unchanged, so break-even sales are still $12,000.
- Budgeted units = $20,000 ÷ $20 = 1,000 meals.
- Margin of safety in dollars = $20,000 − $12,000 = $8,000.
- Margin of safety percentage = ($8,000 ÷ $20,000) × 100% = 40%.
- Margin of safety in units = 1,000 − 600 = 400 meals.
Sales can fall by $8,000, or 40% of the budgeted amount, before the restaurant reaches break-even. At exactly $12,000 in sales, operating profit is zero; below that amount, the restaurant incurs an operating loss under these assumptions.
How the $20,000 sales budget is divided
What Does a High or Low Margin of Safety Mean?
A larger positive percentage indicates a greater cushion against declining sales. A small positive percentage means that a relatively small sales decline could eliminate operating profit. There is no single percentage that is appropriate for every business; sales volatility, seasonality, cost structure, and the reliability of the budget all matter.
A negative margin means sales are below break-even. For example, $10,000 of sales against $12,000 of break-even sales gives a margin of −$2,000, or −20%. If those are actual sales, the business has an operating loss under the model. If they are budgeted sales, it projects an operating loss. A negative margin is a shortfall, not an available cushion.
Managers can improve the margin by increasing profitable sales or reducing the break-even level. Changes to prices, variable costs, or fixed costs require a fresh calculation. A positive margin alone does not establish adequate cash flow, solvency, or overall financial health.
Margin of Safety Versus Profit Margin
Margin of safety measures the sales cushion above break-even. Operating profit margin measures operating profit as a percentage of sales.
In Example 2, operating profit = ($20,000 × 0.50) − $6,000 = $4,000. Operating profit margin = $4,000 ÷ $20,000 = 20%. This differs from the 40% margin of safety.
A useful cross-check is Operating profit = Margin of safety in dollars × Contribution margin ratio. Here, $8,000 × 0.50 = $4,000. This relationship uses the same CVP assumptions and cost definitions. To plan for a specific profit amount, see the target profit formula and worked examples.
Assumptions and Common Mistakes
- Keep prices and costs consistent. Selling price and variable cost per unit remain constant within each scenario; total fixed costs remain constant within the relevant range.
- Separate mixed costs. Identify their fixed and variable portions before calculating break-even.
- Keep the sales mix stable. For multiple products, use an appropriate weighted-average contribution margin. Recalculate if the mix changes.
- Match units with units and dollars with dollars. Dividing fixed costs by contribution margin per unit gives units, not sales dollars.
- Use the correct denominator. Divide by actual or budgeted sales, not break-even sales, when calculating the margin of safety percentage.
- Distinguish forecasts from results. Budgeted sales do not guarantee actual demand or profitability.
Watch Professor Farhat Explain Margin of Safety
Use the Farhat Lectures video below to review the concept and calculation process. You can also watch the margin of safety lesson on YouTube.
Practice: Calculate the Sales Cushion
A company has budgeted sales of $90,000 and break-even sales of $60,000 for the same month. Calculate its margin of safety in dollars and as a percentage. Assume prices and costs remain unchanged.
Show the worked solution
Margin of safety in dollars = $90,000 − $60,000 = $30,000.
Margin of safety percentage = ($30,000 ÷ $90,000) × 100% = 33.33%, rounded to two decimal places.
Sales can fall by $30,000, or approximately one-third of the budget, before operating profit reaches zero. Dividing $30,000 by $60,000 would incorrectly use break-even sales as the denominator.
Frequently Asked Questions
Can the margin of safety be negative?
Yes. It is negative when actual or budgeted sales are below break-even sales. The result identifies an actual or projected operating loss, respectively, under the stated CVP assumptions.
Is a 40% margin of safety the same as a 40% profit margin?
No. It means sales can decline by 40% before reaching break-even, assuming unchanged prices and costs. Profit margin depends on the profit amount relative to sales.
Can I calculate the percentage using units?
Yes, for a single product with a constant selling price: divide the margin of safety in units by actual or budgeted units sold and multiply by 100%. In Example 2, 400 ÷ 1,000 × 100% = 40%.
What is a good margin of safety?
There is no universal benchmark. Compare the cushion with the business’s likely sales fluctuations, cost commitments, and planning assumptions. A larger positive percentage provides more room for a sales decline under comparable conditions.
Continue Learning with Farhat Lectures
Build your foundation with the Managerial Accounting course, or explore the supplemental BAR and CMA resources below. Review the course outlines to find the lessons that match your studies.
About the author: Professor Mansour Farhat, DBA, CPA, CIA, MAcc, is an accounting educator and the founder of Farhat Lectures. His lessons support college accounting students and professional exam candidates. Learn more about Professor Farhat.
Responses