Calculate the margin of safety between intrinsic value and market price. Includes value scoring, max buy price, P/E & P/B analysis, and sensitivity table.
The margin of safety is the difference between a stock's intrinsic value and its market price, expressed as a percentage of intrinsic value. Coined by Benjamin Graham in "Security Analysis" and championed by Warren Buffett, it's the single most important concept in value investing — your cushion against errors in valuation, unexpected business problems, or market irrationality.
If you estimate a stock's intrinsic value at $150 and it trades at $100, your margin of safety is 33%. This means your estimate could be 33% too high and you'd still break even. The wider the margin, the lower your risk and the higher your potential return.
This calculator goes beyond a simple percentage calculation. It computes a value score (0–100) incorporating margin of safety, P/E ratio, P/B ratio, debt levels, and liquidity. The sensitivity table shows maximum buy prices across different intrinsic value estimates and MOS targets, helping you plan entry points even when your valuation has uncertainty.
Every intrinsic-value estimate contains uncertainty. The margin of safety converts that uncertainty into a concrete buying threshold, showing how much valuation error you can absorb before the investment stops making sense.
Margin of Safety = (Intrinsic Value − Price) / Intrinsic Value × 100 Max Buy Price = Intrinsic Value × (1 − Target MOS%) Upside = (Intrinsic Value − Price) / Price × 100
Result: Margin of safety = 33.3%, Max buy = $105
Intrinsic value of $150 vs $100 price gives a 33.3% margin of safety, exceeding the 30% target. The max buy price at 30% MOS is $105 — the stock is currently below this, so it passes the test.
Intrinsic value on its own does not tell you when to act. The margin of safety translates that estimate into a maximum buy price so you can separate a good business from a good entry point.
Stable, predictable businesses can justify a smaller required margin than cyclical, leveraged, or difficult-to-value companies. The more fragile the estimate, the more room you usually want between price and value.
A strong margin of safety today can disappear if earnings, balance-sheet quality, or capital allocation changes. Recheck the inputs whenever the business outlook or your valuation assumptions move materially.
Last updated:
This worksheet calculates margin of safety directly from the gap between the user-entered intrinsic value estimate and market price, then converts the chosen target margin into a maximum buy price. It also shows supporting ratios such as P/E and P/B using the user-entered EPS and book-value inputs.
The 0-100 value score on this page is an internal heuristic, not a standardized Graham or Buffett formula. It combines margin of safety, valuation ratios, leverage, and liquidity into a screening aid, so it should be treated as a quick triage metric rather than a substitute for the underlying valuation work.
Graham suggested 30%+ for most stocks. Buffett requires 25% for high-quality businesses and 40%+ for more uncertain situations. Higher uncertainty demands wider margins.
Use our Intrinsic Value Calculator or DCF Calculator to estimate fair value from earnings, dividends, or cash flows. Multiple methods provide a valuation range.
Yes — a negative margin means the stock is trading above your estimated intrinsic value. Negative margins suggest the stock is overvalued.
They're related but calculated differently. MOS uses intrinsic value as the base; discount uses current price. A 33% MOS equals a 50% upside.
It combines margin of safety, valuation ratios, financial health, and liquidity into a single summary score. Use it as a screening aid, not as a substitute for reading the business and testing the valuation assumptions.
For stable, predictable businesses you might accept 20-25%. For cyclicals, turnarounds, or uncertain companies, insist on 40%+.