The formula
Contribution per unit = Selling price − Variable cost
Break-even (units) = Fixed costs ÷ Contribution per unit
Margin of safety = Budgeted sales − Break-even sales
Worked example
A product sells for $20 with a variable cost of $12. Contribution is $8 a unit. Fixed costs are $40,000.
Break-even = 40,000 ÷ 8 = 5,000 units, or 5,000 × 20 = $100,000 of revenue.
With budgeted sales of 8,000 units the margin of safety is 3,000 units, or 37.5%. For a profit of $16,000 the business must sell (40,000 + 16,000) ÷ 8 = 7,000 units.