Margin of Safety Calculator
Discount of stock price to intrinsic value.
Calculate margin of safety by entering a stock's current price and intrinsic value estimate to see the percentage discount between them.
What this tool does
This calculator estimates the percentage discount between a stock's current market price and your estimate of its intrinsic value. Enter the current trading price and your calculated or researched intrinsic value estimate, and the tool computes the gap between them as a percentage. The result shows how far below your estimated fair value the stock currently trades. The intrinsic value estimate drives the calculation most significantly—small changes here shift the final percentage meaningfully. A typical scenario involves comparing a stock you've analysed against its market price to see the size of any potential gap. The calculator assumes your intrinsic value estimate is accurate and doesn't account for transaction costs, tax implications, or changes in value over time. Results are for educational illustration and comparative analysis only.
Quick answer: with the default values, the result is 33.33% (Margin of Safety). Adjust the values below for your own figures.
Enter Values
People also use
Startup & VC
Warrant Value Calculator
Calculate the intrinsic value of stock warrants. Enter share price, strike price and number of warrants to see total value and in-the-money status.
Investing
Stock Split Value Calculator
Calculate new share count and adjusted price after any stock split. Enter shares, price, and ratio — forward or reverse splits supported.
Investing
Bond Price Calculator
Calculate bond price as the present value of its coupon stream plus face value, given face value, coupon rate, market yield, and years to maturity.
Formula Used
Disclaimer
Results are estimates for educational purposes only. They do not constitute financial advice. Consult a qualified professional before making financial decisions.
Benjamin Graham's idea in one line
Margin of safety is the gap between a security's intrinsic value and its current market price. The bigger the gap, the more protected you are against errors in your valuation, adverse business developments, and market volatility. Graham popularised the concept in The Intelligent Investor (1949) and Security Analysis (1934). Warren Buffett, who studied under Graham, called it "the three most important words in all of investing."
This calculator expresses the margin as a percentage discount. If intrinsic value is 100 and current price is 65, margin of safety is 35 per cent. Buying at that price would leave a 35 per cent buffer before the purchase price equals the estimated value — plus any upside if the price eventually rises to that value.
The math and what it does not tell you
(Intrinsic Value − Current Price) ÷ Intrinsic Value × 100 = Margin of safety %
The formula is trivial. The hard work is estimating intrinsic value accurately — the number you feed into the calculator is entirely dependent on the rigour behind it. Three common methods:
Discounted cash flow (DCF). Project free cash flows for 10-ish years, apply a terminal value, discount everything back at a cost of capital. Produces a specific number but sensitive to terminal growth and discount rate assumptions. Even a small change in the terminal growth or discount rate assumption can shift the result substantially.
Earnings-based multiples. Multiply normalised earnings by a reasonable P/E for the industry and quality of the business. Simple, robust, but requires judgment about what earnings are normalised and what multiple is reasonable.
Asset-based / liquidation value. Particularly for banks, real estate, commodities businesses. Useful as a floor but often far below continuing-operation value.
Serious value investors typically run all three and look for stocks where multiple methods independently suggest the price is below fair value.
How much margin do you need
Graham is commonly associated with margins from around a third up to 50 per cent — for example buying at roughly two-thirds of intrinsic value, and at a deeper discount for his most conservative, asset-based purchases. Modern practitioners, working in more efficient markets, typically target 25 to 40 per cent. Buffett has operated with smaller margins when business quality is high, arguing that a great business compounds over time and rewards patience even at a slim discount.
The right margin depends on:
Confidence in your valuation. A stable utility with 30 years of predictable cash flows can be valued with higher precision than a growth stock whose profitability might triple or halve. Less confidence needs bigger margin.
Time horizon. Short horizons need larger margins because market prices may not correct quickly. Long horizons can tolerate smaller margins because fundamental value tends to dominate eventually.
Position size. Small positions can take smaller margins. Concentrated positions that will dominate your portfolio need larger margins.
Liquidity. Illiquid positions (small-caps, private equity) need larger margins because exit is harder.
The behavioural use of the concept
Beyond the math, margin of safety functions as a discipline. Some value investors purchase shares near or above their own intrinsic value estimate because "the story is great" or "the momentum is there." A hard rule of "no purchases without X per cent margin" forces patience and usually means owning fewer, cheaper positions. Over long cycles this is one of the few strategies that has shown consistent excess return — though it also underperforms growth during bubbles and can look foolish for years at a time.
How market context shapes the margin
Different markets and sectors trade at different valuation multiples, so a given headline discount means different things depending on where it appears. Sectors with cyclical earnings or heavy regulation — energy, banks, commodities, some industrials — can show wide apparent margins that partly reflect those risks rather than a pure bargain. Those risks belong inside the intrinsic value estimate, not outside it.
Smaller and less liquid companies frequently display larger apparent margins of safety alongside materially larger valuation uncertainty. A wide margin built on shaky forward numbers can shrink quickly once those numbers are re-examined. A smaller margin on a large, stable business and a wide margin on a volatile small-cap are not the same risk, even when the percentages suggest otherwise.
Common ways the concept gets misused
Back-fitted intrinsic value. Starting from a target margin of safety and working backwards to an intrinsic value that justifies it. The discipline only works if intrinsic value is computed independently and honestly.
Confusing cheap with value. A stock that has fallen 40 per cent is not automatically 40 per cent margin of safety. It may have fallen because intrinsic value has also fallen 40 per cent (or more).
Ignoring quality decay. A business that was worth 100 a share in 2020 is not necessarily worth 100 today. Industries get disrupted, management changes, competitive moats erode. Intrinsic value is not a fixed point.
Value traps. Stocks that look cheap on every metric but stay cheap or go cheaper for years. Usually indicates that the market sees structural decline the valuation model misses.
What the calculator cannot do
It cannot estimate intrinsic value for you — that is the whole craft of equity analysis. It cannot tell you whether your intrinsic value is reasonable. It cannot account for liquidity, tax, position sizing, or behaviour. It gives you a clean headline number; the analysis behind it is where the real work lives.
At a current price of £100 versus an intrinsic value of £150, your margin of safety is 33.33%.
Inputs
| Discount | $50.00 |
|---|---|
| Current Price | $100.00 |
| Intrinsic Value | $150.00 |
| Verdict | Strong margin |
This example uses typical values for illustration. Adjust the inputs above to match a specific situation and see how the result changes.
Sources & Methodology
Methodology
The calculator computes margin of safety by subtracting the current stock price from an estimated intrinsic value, then dividing the result by that intrinsic value to express the gap as a percentage. A positive result indicates the current price trades below the estimated intrinsic value; a negative result indicates the price trades above it. The model assumes the intrinsic value estimate is accurate and remains constant during the holding period. It does not account for the method used to derive intrinsic value, changes in that value over time, transaction costs, taxes, or the precision of any valuation approach. The output represents a static comparison between two price points at a single moment.
References
Frequently Asked Questions
How to estimate intrinsic value?
Good margin?
What if price exceeds value?
Limitations?
Related Calculators
Warrant Value Calculator
Calculate the intrinsic value of stock warrants. Enter share price, strike price and number of warrants to see total value and in-the-money status.
Stock Split Value Calculator
Calculate new share count and adjusted price after any stock split. Enter shares, price, and ratio — forward or reverse splits supported.
Bond Price Calculator
Calculate bond price as the present value of its coupon stream plus face value, given face value, coupon rate, market yield, and years to maturity.
More Investing Calculators
Investing
100 Minus Age Asset Allocation Calculator
Calculate stock-vs-bond allocation using the 100-minus-age rule of thumb — see the suggested percentage split for any age you put in.
Investing
Active vs Passive Investing Calculator
Compare active versus passive investing over the long run. See how a percentage point of extra fees compounds into a wealth gap over decades.
Investing
Annuity Present Value Calculator
Calculate the present value of an ordinary annuity from regular payments, periodic rate, and the number of periods until the stream ends.
Investing
APR to APY Calculator
Convert APR to APY for any compounding frequency to see the true effective annual yield — what you actually earn (or pay) on a given quoted rate.
Investing
Art Investment Calculator
Calculate art investment net returns including insurance and carrying costs, given purchase price, current value, and length of holding period.
Investing
Asset Allocation Calculator
Calculate suggested portfolio asset allocation by age and risk tolerance (stocks/bonds/cash). Enter risk tolerance 1-10 to see suggested stock and bond.
Explore Other Financial Tools
Green & Sustainable Finance
Single-Use Plastic to Cash Converter
Calculate annual single-use plastic spending and quantify potential savings by switching to reusable alternatives for cost analysis.
Creator Economy
Personal Trainer Business Calculator
Calculate personal trainer annual profit from weekly clients, session price, session frequency, weeks worked, and operating expenses.
Psychology & Behavioral
Money Anxiety Cost Calculator
Chronic money anxiety has real costs: lost productivity, avoidance of financial decisions, and impulsive short-term choices. Quantify the annual impact.
Spotted something off?
Calculations or display — let us know.