How it works
The formula
A margin of safety is the discount between your estimate of value and the price. It is there because every estimate is wrong in ways you cannot predict.
Margin of safety = (Value − Price) ÷ Value
Price with your margin = Value × (1 − required margin)
The calculator does not check whether your value estimate is sensible. That is the hard part, and the part the guides below teach.
Worked example
A fictional Company A
Company A is a made-up business. Suppose your discounted cash flow work suggests it is worth about $100 a share, and you want a 30% cushion. The price that gives you that cushion is $100 × (1 − 0.30) = $70. At a price of $64 the margin is ($100 − $64) ÷ $100 = 36%. At $85 it would be only 15%.
Company A is made up for teaching. Numbers are illustrative only.
Avoid these
Common mistakes
- Applying a margin to an optimistic value. A 30% discount to an inflated estimate is no discount.
- Treating a falling price as a margin of safety. Only the gap to value counts.
- Using one number. Work out a low, base and high value and test the price against all three.
- Demanding the same margin for every business. Less predictable businesses deserve a wider cushion.
Quick answers
What is a good margin of safety?
There is no universal number. Many value investors use 25–50%, with a wider margin for businesses whose future is harder to predict. The Gingernomics house rule for a predictable, high-quality business is a price at or below about 70% of a conservative value estimate.
Where does the value estimate come from?
From your own work, typically a discounted cash flow model built on conservative assumptions. The free Starter DCF spreadsheet and the DCF calculator are good places to begin.
Does a large margin of safety mean a stock will go up?
No. It only means the price is below your estimate. Your estimate can be wrong, and prices can stay low for a long time. This tool is for learning, not a recommendation.