Margin of Safety Calculator
Enter a stock's current price and your fair value estimate to calculate the margin of safety — and your maximum price to pay.
Target Margin of Safety
Enter a current price and fair value estimate above to see results.
How to interpret your result
What does margin of safety mean?
Margin of safety is the gap between a stock's current price and your estimate of its intrinsic value, expressed as a percentage. It acts as a buffer — the wider the gap, the more room for error in your assumptions before a position moves against you.
What MoS% should you target?
As a general guide: 10–15% for large-cap, dividend-paying companies with stable earnings; 20–30% for growth-oriented businesses; 30–50% for speculative or cyclical positions where fair value estimates carry more uncertainty.
How to estimate fair value
Common approaches include discounted cash flow (DCF) analysis, the Graham Number (derived from EPS and book value), and industry P/E or EV/EBITDA multiples. Blending several methods reduces reliance on any single model's assumptions.
Let the screener find them for you
Equity Rank scores 3,000+ stocks across 15 fair value models. The screener surfaces stocks where the current price corresponds to potential undervaluation — no manual calculation required.
Formula reference
The exact formula this calculator uses to compute Margin of Safety.
Margin of Safety = ((Fair Value − Price) ÷ Fair Value) × 100%Fair ValueEstimated intrinsic value per sharePriceCurrent share price- The percentage gap between an intrinsic-value estimate and the current price.
- Positive means price sits below the estimate; negative means above it.
- It is only as good as the fair-value estimate it is measured against — a snapshot, not a forecast.
Educational reference only — not investment advice. See the glossary for plain-English definitions of each term.
Free Weekly Update
3,000+ stocks re-scored every week.
Delivered free every Sunday.
- Top 5 most undervalued stocks by margin of safety — with valuation breakdown
- Biggest score changes from the prior week across 3,000+ equities
- Best options setups from the screener (covered calls, cash-secured puts)
Research and educational purposes only. Not investment advice.
Frequently asked questions
Common questions about margin of safety and how to use this calculator.
There is no single universal threshold — it depends on the stock's risk profile. As a general framework, established large-cap stocks with stable earnings may warrant a 10–15% discount to fair value. Higher-growth or less-predictable businesses typically require 20–30%, and speculative or cyclical situations may require 30–50% or more to justify the additional uncertainty.
Fair value can be estimated through several methods: discounted cash flow (DCF) analysis projects future free cash flows and discounts them to a present value; the Graham Number uses earnings per share and book value; and industry P/E or EV/EBITDA multiples benchmark a company against comparable peers. Each method has strengths and blind spots, which is why blending multiple models tends to produce a more reliable estimate.
Yes. A negative margin of safety means the current market price exceeds your fair value estimate — the stock appears to be trading at a premium. This does not necessarily mean the stock is a poor long-term holding, but it does mean there is no price cushion relative to your estimate. Many high-quality compounders trade at persistent premiums to simple valuation models.
Equity Rank blends 8–15 valuation models — including DCF, Graham Number, P/E, P/B, P/S, EV/EBITDA, PEG, and DDM — weighted by sector-calibrated method weights. The result is a model fair value range (25th/75th percentile across methods), not a single point estimate. The displayed margin of safety is a model residual: the percentage difference between the blended model fair value and the current market price, after applying dispersion shrinkage when methods disagree widely. It is not a probability of gain or loss, nor a prediction of future performance. It reflects model assumptions that may differ from market reality. You can explore the full methodology on the Methodology page.
This tool is for research and educational purposes only. It does not constitute financial advice. All outputs depend entirely on user-provided inputs. Equity Rank is not a registered investment adviser.
Go deeper: multi-method valuation
No single model captures fair value. Triangulate with DCF, Graham Number, Margin of Safety, and asset-based methods to build a complete valuation picture.
Learn more about how Equity Rank weights these models in the methodology or browse the full free tool directory. Still have questions? See the FAQ.
Read the method behind this calculator
Each explainer walks through the formula, the inputs it needs, and the cases where it stops being informative.
More write-ups in the blog, or see how the models are weighted in the methodology.