Margin of Safety Calculator

Know your buffer before you buy

Enter Stock Data

$

The current market price of the stock (e.g., 45.50)

$

Your estimated fair value per share — from DCF, Graham Number, or another model (e.g., 70.00)

This calculator applies the classic value investing formula pioneered by Benjamin Graham: Margin of Safety (%) = (Intrinsic Value − Current Price) ÷ Intrinsic Value × 100. A positive result means the stock is trading below your estimated fair value; a negative result means it is trading above it.

MoS (%) = (Intrinsic Value − Price) ÷ Intrinsic Value × 100

Step 1: Enter the current market price of the stock you are evaluating.

Step 2: Enter your estimated intrinsic value. You can use our Graham Number calculator, a DCF model, or any other valuation method.

Step 3: Click Calculate. The result shows your margin of safety percentage, a colour-coded verdict, and a visual gauge.

Step 4: Use the verdict as a signal, not a guarantee. A strong margin of safety reduces risk but never eliminates it.


Learn More

What Is the Margin of Safety in Value Investing?

The margin of safety is the difference between a stock's intrinsic value and its current market price, expressed as a percentage of intrinsic value. It is the central concept of value investing, introduced by Benjamin Graham in Security Analysis (1934) and popularised in The Intelligent Investor (1949). Graham argued that buying a stock at a significant discount to its intrinsic value provides a buffer — a margin of safety — that protects investors against valuation errors, unforeseen events, and market volatility.

Warren Buffett, Graham's most famous student, has called the margin of safety the three most important words in investing. Unlike speculative approaches that rely on momentum or sentiment, value investing demands that investors know what they are buying and refuse to overpay. The margin of safety quantifies exactly how much of a discount you are getting — and therefore how much room for error you have.

The Margin of Safety Formula Explained

MoS (%) = (Intrinsic Value − Current Price) ÷ Intrinsic Value × 100

If a stock's intrinsic value is $100 and it trades at $70, the margin of safety is 30%. If it trades at $110, the margin is −10% — meaning you are paying a 10% premium over fair value. The formula is straightforward, but its power lies in the quality of the intrinsic value estimate feeding it.

Common methods for estimating intrinsic value include: the Graham Number (a quick screen based on EPS and book value), discounted cash flow (DCF) analysis (which projects future free cash flows and discounts them back to present value), earnings power value (EPV), and asset-based valuation. Each has strengths and limitations. The margin of safety calculation itself is always the same — only the input quality varies.

How Much Margin of Safety Is Enough?

Graham typically required a margin of safety of at least 33% for common stocks and 10–20% for investment-grade bonds. The required cushion depends on the uncertainty of the intrinsic value estimate: the more difficult the business to value, the larger the required margin of safety.

Our calculator uses these thresholds as guidance: above 30% is a Strong Buy signal, 15–30% is a Buy, 0–15% is a Hold (potential interest but limited cushion), and below 0% is Overvalued. These are not hard rules — they are starting points for further analysis.

Using This Tool Alongside Other Value Calculators

The margin of safety calculator is most powerful when combined with a reliable intrinsic value model. Start with our Graham Number calculator to get a quick intrinsic value estimate, then plug that figure in here to see your margin of safety.

Remember: the margin of safety is a risk-management tool, not a buy signal on its own. Always consider the quality of the business, the sustainability of its competitive advantage, management quality, and macroeconomic context before making any investment decision.

Frequently Asked Questions About Margin of Safety

Benjamin Graham recommended at least 33% for common stocks. In practice, most value investors look for 20–50% depending on the certainty of their intrinsic value estimate. For highly predictable businesses, 15–20% may suffice. For less predictable companies, many investors demand 40–50% or more.

The most common approaches are: (1) Graham Number — √(22.5 × EPS × Book Value per share); (2) DCF Analysis — project free cash flows and discount at WACC; (3) Earnings Power Value — normalised earnings divided by cost of capital; (4) Comparable company analysis — apply industry average multiples. Many investors average several models to reduce error.

Not necessarily. A very high margin of safety can signal genuine undervaluation, but it can also mean your intrinsic value estimate is wrong, the market knows something you do not, or the stock is a value trap. Always investigate why a stock trades at a large discount before assuming it is an opportunity.

The Graham Number is one method of estimating intrinsic value. The margin of safety is what you calculate after you have an intrinsic value estimate — it tells you how much of a discount the current market price represents. Use our Graham Number calculator to generate an intrinsic value, then feed that into this calculator.

For a deeper dive, read our companion article: What Is the Margin of Safety? A Value Investor's Guide

Margin of safety calculator — intrinsic value vs stock price gap showing buy/hold/sell verdict

Screen Stocks at Scale with Worthmap

Apply margin of safety analysis across hundreds of stocks with Worthmap's AI-powered screener. Track intrinsic value estimates, portfolio positions, and real-time valuations — all in one place.

Sign Up for Worthmap
Built & maintained by Worthmap · Last updated June 7, 2026
Educational use only. This tool provides estimates for informational purposes and does not constitute financial, investment, tax, or legal advice. Results are based on inputs you provide and mathematical models — they do not guarantee future performance. Always consult a qualified financial adviser before making investment decisions.