Margin of Safety Calculator
Estimate how far a stock's market price sits below (or above) your intrinsic value estimate.
What Is Margin of Safety?
In investing, the margin of safety is the discount between what you believe a business is worth (its intrinsic value) and what the market asks you to pay today. The larger that discount, the bigger your cushion against mistakes in your assumptions, unexpected business setbacks, or market volatility.
Value investors use this idea to avoid overpaying. Even if your valuation is not perfect, buying with a healthy gap can improve long-term outcomes by reducing downside risk.
How to Calculate Margin of Safety
Core Formula
Use this formula:
Margin of Safety (%) = (Intrinsic Value - Market Price) / Intrinsic Value × 100
- If the result is positive, the asset is below your estimated value.
- If the result is zero, price equals your estimate.
- If the result is negative, the asset is trading above your estimate (a premium).
Quick Example
Suppose intrinsic value is $100 and market price is $70:
($100 - $70) / $100 × 100 = 30%
That means you have a 30% margin of safety. If your target threshold is 25%, this passes your rule.
How to Use the Calculator Above
- Enter your estimated intrinsic value per share.
- Enter the current market price per share.
- Set your required margin of safety (many investors use 20% to 40%).
- Click Calculate to see your current discount and whether it meets your threshold.
What Is a “Good” Margin of Safety?
There is no universal number. A reasonable target depends on the quality and predictability of the business:
- 10% to 20%: Often used for stable, mature companies with highly predictable cash flows.
- 20% to 30%: A common middle ground for many long-term value investors.
- 30% to 50%+: Often preferred for cyclical, leveraged, or uncertain businesses.
If your valuation method has wide uncertainty, you generally need a wider safety buffer.
Common Mistakes to Avoid
1) Treating Intrinsic Value as Exact
Intrinsic value is always an estimate, not a fact. Build scenarios (conservative, base, optimistic) instead of relying on one precise number.
2) Ignoring Business Quality
A cheap price alone is not enough. Check debt levels, competitive advantages, capital allocation, and management quality.
3) Focusing Only on Today’s Price
Margin of safety works best when paired with patience. A good investment can still move against you in the short term.
4) Forgetting Position Size
Even with a strong margin of safety, diversify and size positions sensibly. One thesis can still fail.
Practical Checklist Before Buying
- Did I estimate intrinsic value with conservative assumptions?
- Do I understand the company’s revenue drivers and key risks?
- Is the current margin of safety above my minimum threshold?
- Would this still look attractive in a slower-growth scenario?
- Am I comfortable holding for 3 to 5+ years?
Final Takeaway
Calculating margin of safety is one of the simplest and most useful risk-control tools in investing. It helps you avoid emotional decisions, creates discipline around valuation, and encourages buying only when price and value are far enough apart. Use it consistently with sound business analysis, and your odds of better long-term outcomes improve.
Educational use only. This page is not financial advice. Always do your own research or speak with a licensed professional before investing.