Margin of Safety Calculator

Calculate the margin of safety for value investing decisions based on intrinsic value analysis.

Note

Important Financial Disclaimer

This calculator provides estimates based on standard financial formulas from verified references. Results are for informational and educational purposes only and should not be considered as professional financial, investment, or tax advice.

For important financial decisions such as loans, investments, mortgages, retirement planning, or tax matters, please consult with qualified financial advisors, certified financial planners, or licensed tax professionals who can review your specific situation.

Calculations may not account for all variables specific to your circumstances, local regulations, or current market conditions. Always verify results and consult professionals before making financial commitments.

Not a substitute for professional financial advice

Valuation Inputs

$
$
%

For Alternative Valuations

$
%
%

Margin of Safety

25.0%

Consider - Moderate - Reasonable margin

Dollar Margin
$25.00
Upside Potential
33.3%

Value Analysis

Intrinsic Value$100.00
Current Price$75.00
Discount to Value$25.00 (25.0%)
Max Buy Price (25% MOS)$75.00

Alternative Valuations

Current P/E

Price / EPS

15.0x
Intrinsic P/E

Implied from value

20.0x
Graham Number

Conservative value

$75.00
PEG Fair Value

P/E = Growth rate

$50.00
DCF Value

10-year projection

$93.13

Required Margin Scenarios

10% Margin Required
$90.00Met
20% Margin Required
$80.00Met
25% Margin Required
$75.00Met
30% Margin Required
$70.00Not Met
40% Margin Required
$60.00Not Met
50% Margin Required
$50.00Not Met

Price vs Value Table

50% of Value
$50.00MOS: 50%
60% of Value
$60.00MOS: 40%
70% of Value
$70.00MOS: 30%
80% of Value
$80.00MOS: 20%
90% of Value
$90.00MOS: 10%
100% of Value
$100.00MOS: 0%

Benjamin Graham: "The margin of safety is always dependent on the price paid." At $75.00, you have a 25.0% margin below the $100.00 intrinsic value.

What Is Margin of Safety?

The margin of safety is a core principle of value investing, first articulated by Benjamin Graham in his 1934 book Security Analysis and later popularized in The Intelligent Investor. At its heart, the concept is elegantly simple: buy a security only when its market price is meaningfully below its estimated intrinsic value. The gap between those two numbers is your margin of safety — a financial cushion that protects you from analytical errors, unexpected business setbacks, and the inherent unpredictability of markets.

Value investors treat intrinsic value as the true worth of a business, derived from its earnings power, assets, growth prospects, and competitive position. Because no valuation is perfectly accurate, buying at a discount to intrinsic value gives you room to be wrong and still make money — or at least avoid losing it. Warren Buffett, Graham's most famous student, called the margin of safety "the three most important words in investing."

This margin of safety calculator lets you quantify that cushion quickly. Enter an intrinsic value estimate alongside the current market price and the tool instantly calculates the percentage margin, the dollar cushion per share, the maximum price you should pay to hit your target safety buffer, and the upside potential if the stock reverts to fair value. It also provides supplementary valuations — Graham Number, PEG-based fair value, and a simplified DCF — so you can triangulate your estimate from multiple angles.

Understanding where each input comes from is just as important as running the numbers. Intrinsic value is not a fact you look up; it is an estimate you build from earnings, cash flows, and growth assumptions. The more conservative your estimate, the larger the margin of safety you naturally obtain. Experienced value investors deliberately use pessimistic assumptions for exactly this reason.

Margin of Safety Formula

MOS (%) = ((Intrinsic Value − Current Price) / Intrinsic Value) × 100

Where:

  • Intrinsic Value= Your estimate of the stock's fair (true) worth per share
  • Current Price= The stock's current market price per share
  • MOS (%)= Margin of safety expressed as a percentage of intrinsic value

How to Calculate Margin of Safety Step by Step

Calculating the margin of safety requires two inputs: an estimate of intrinsic value and the current market price. Once you have both, the arithmetic is straightforward. The percentage margin of safety tells you what fraction of the intrinsic value you are getting for free as a safety buffer.

The dollar margin of safety is simply Intrinsic Value minus Current Price. If a stock's intrinsic value is $100 and it trades at $70, your dollar cushion is $30 per share. The percentage margin is ($100 − $70) / $100 × 100 = 30%.

The maximum buy price for a target margin is calculated as: Max Buy Price = Intrinsic Value × (1 − Target Margin%). If you want a 25% margin on a $100 intrinsic value stock, you should pay no more than $100 × (1 − 0.25) = $75.

The upside potential measures how much the stock could appreciate if it reaches intrinsic value: Upside (%) = ((Intrinsic Value − Current Price) / Current Price) × 100. Note that this is a different denominator than the MOS formula — upside is measured from the current price, while MOS is measured from intrinsic value.

This calculator also shows three supplementary valuation benchmarks. The Graham Number is a conservative estimate: √(22.5 × EPS × Book Value Per Share), where this calculator approximates book value as EPS × 10. The PEG fair value sets price-to-earnings equal to the growth rate (P/E = growth rate%), giving Fair Value = EPS × Growth Rate (%). The DCF value sums ten years of discounted earnings cash flows and adds a terminal value using a 3% perpetuity growth rate.

Understanding Intrinsic Value Estimates

The quality of a margin of safety calculation is only as good as the intrinsic value estimate underpinning it. No single method produces a definitive intrinsic value — each approach makes different assumptions and works better for different types of businesses. Experienced investors therefore triangulate across multiple methods and use the most conservative result as their reference point.

Discounted Cash Flow (DCF) analysis is arguably the most theoretically sound method. It projects a company's future earnings or free cash flows and discounts them back to present value using a discount rate that reflects the required rate of return. The calculator uses a simplified 10-year DCF on earnings per share with a 3% terminal growth rate. Higher discount rates produce lower DCF values, which is conservative and therefore appropriate for safety-conscious investors.

The Graham Number provides an ultra-conservative ceiling price for defensive investors. Benjamin Graham defined it as the geometric mean of 15× earnings and 1.5× book value, which simplifies to √(22.5 × EPS × Book Value Per Share). Stocks trading below their Graham Number are considered genuinely cheap by classic value investing standards.

PEG-based valuation uses Peter Lynch's principle that a fairly valued growth stock should have a P/E ratio roughly equal to its earnings growth rate. The PEG Fair Value therefore equals EPS × Growth Rate (expressed as a percentage). This method is more appropriate for growing companies than for mature, slow-growth businesses.

Rather than picking one method, look for convergence. When a stock's market price is below the DCF value, below the Graham Number, and below the PEG fair value simultaneously, the margin of safety is more credible than when only one method supports it.

Margin of Safety Thresholds and Investment Ratings

Not all positive margins of safety are equally compelling. The appropriate required margin depends on your risk tolerance, the quality of your intrinsic value estimate, and the nature of the underlying business. This calculator classifies results into five tiers based on the percentage margin.

Margin of Safety Rating Implication
≥ 50% Deep Value — Strong Buy Exceptional cushion; stock is dramatically underpriced relative to estimated intrinsic value
30% – 49% Undervalued — Buy Good safety buffer; appropriate for most value investors with moderate risk tolerance
15% – 29% Moderate — Consider Reasonable margin for high-quality businesses; thinner cushion for uncertain estimates
0% – 14% Low — Hold Minimal cushion; little room for error in valuation assumptions
Negative Overvalued — Avoid Price exceeds intrinsic value; buying guarantees paying a premium for an uncertain asset

Benjamin Graham generally required a minimum 33% margin for common stocks and a lower margin for high-grade bonds. Modern value investors often require 30–50% for volatile or cyclical businesses and may accept 15–20% for wide-moat, predictable franchises where intrinsic value estimates are more reliable.

Using Margin of Safety in a Value Investing Strategy

The margin of safety concept is most powerful when embedded in a disciplined investment process rather than used as a one-time screen. Successful value investors build watch lists of businesses they understand deeply, estimate intrinsic value using conservative assumptions, set a target purchase price that guarantees an adequate margin, and then wait patiently for the market to offer that price.

Start with business quality. A large margin of safety on a deteriorating business may not protect you if the intrinsic value itself is declining. Focus on companies with durable competitive advantages — pricing power, switching costs, network effects, or cost advantages — because these attributes make future earnings more predictable and intrinsic value estimates more reliable.

Use multiple valuation methods together. The calculator provides five reference points: your entered intrinsic value, the Graham Number, the PEG fair value, the DCF value, and the implied intrinsic P/E ratio. When several of these converge below the current price, conviction is higher. When they diverge widely, the business economics are harder to forecast and a larger margin of safety is warranted.

Revisit intrinsic value regularly. A stock that offered a 40% margin of safety six months ago may have seen its intrinsic value estimate cut by deteriorating fundamentals, erasing the apparent discount even if the price held steady. Recalculate whenever earnings, growth prospects, or competitive position change materially.

Avoid anchoring on purchase price. Once you own a stock, the relevant comparison is always current price versus current intrinsic value, not your cost basis. If intrinsic value has fallen to where the margin of safety is gone or negative, discipline requires honest reassessment regardless of paper gains or losses.

Worked Examples

Classic Value Buy: 25% Margin of Safety

Problem:

A stock has an estimated intrinsic value of $100. It currently trades at $75. You have set a target margin of safety of 25%. Is this a good entry point?

Solution Steps:

  1. 1Calculate MOS (%): ((100 − 75) / 100) × 100 = 25.0%
  2. 2Calculate dollar cushion: $100 − $75 = $25 per share
  3. 3Calculate maximum buy price at 25% target: $100 × (1 − 0.25) = $75.00
  4. 4Calculate upside to intrinsic value: ((100 − 75) / 75) × 100 = 33.3%
  5. 5At $75, the current price exactly meets the 25% MOS target — a 'Consider' to 'Buy' situation depending on estimate quality

Result:

Margin of safety = 25.0%. Dollar cushion = $25/share. Upside potential = 33.3%. The stock meets the 25% target, making it a valid buy candidate.

Deep Value Scenario: 40% Margin with EPS Inputs

Problem:

A company earns $8 EPS and you estimate intrinsic value at $200 per share. The stock trades at $120. Growth rate is 10%, discount rate is 12%. What does the margin of safety analysis show?

Solution Steps:

  1. 1Calculate MOS (%): ((200 − 120) / 200) × 100 = 40.0%
  2. 2Dollar cushion: $200 − $120 = $80 per share
  3. 3Max buy price at 25% target: $200 × (1 − 0.25) = $150 — current price of $120 is well below this
  4. 4Graham Number: Book Value ≈ EPS × 10 = $80; √(22.5 × 8 × 80) = √14,400 = $120.00
  5. 5PEG Fair Value: EPS × Growth Rate% = $8 × 10 = $80 — more conservative than DCF-based intrinsic
  6. 6Upside potential: ((200 − 120) / 120) × 100 = 66.7%

Result:

Margin of safety = 40.0% — rated 'Undervalued / Buy'. Graham Number of $120 equals the current price, while your $200 intrinsic estimate provides 66.7% upside. Strong convergence between multiple methods.

Overvalued Stock: Negative Margin of Safety

Problem:

You estimate a stock's intrinsic value at $50 per share. The market currently prices it at $65. Should you buy?

Solution Steps:

  1. 1Calculate MOS (%): ((50 − 65) / 50) × 100 = −30.0%
  2. 2Dollar cushion: $50 − $65 = −$15 per share (you are paying a $15 premium)
  3. 3Max buy price at 25% target: $50 × (1 − 0.25) = $37.50 — stock must fall 42% from current price before meeting this threshold
  4. 4Upside to intrinsic: ((50 − 65) / 65) × 100 = −23.1% (stock would need to decline to reach fair value)
  5. 5Assessment: 'Overvalued — Avoid' per the calculator's rating logic

Result:

Margin of safety = −30.0%. The stock trades 30% above estimated intrinsic value. There is no margin of safety; you would be paying a premium. Wait for the price to fall to $37.50 or below for a 25% MOS entry.

Borderline Case: Finding the Right Buy Price

Problem:

A high-quality business has intrinsic value of $150. It trades at $130. You want a minimum 20% margin of safety. What price point do you need?

Solution Steps:

  1. 1Current MOS: ((150 − 130) / 150) × 100 = 13.3% — below the 20% target
  2. 2Max buy price at 20% MOS: $150 × (1 − 0.20) = $120.00
  3. 3The stock must drop $10 more (from $130 to $120) before meeting your threshold
  4. 4Dollar cushion at $120: $150 − $120 = $30 per share
  5. 5Upside from $120 to $150 intrinsic value: ((150 − 120) / 120) × 100 = 25.0%

Result:

At $130 the MOS is only 13.3% — insufficient. Place a limit order at $120 or below where the 20% target is met, giving a $30/share cushion and 25% upside potential.

Tips & Best Practices

  • Use conservative intrinsic value estimates — the goal is to be roughly right, not precisely wrong. Err on the pessimistic side to preserve your safety cushion.
  • Require a larger margin of safety for businesses with uncertain earnings, high debt, or rapidly changing competitive landscapes.
  • Check convergence: when Graham Number, PEG Fair Value, and DCF all support a discount to the current price, conviction is much higher than when only one method does.
  • Set a maximum buy price alert and be patient — the market occasionally offers extraordinary prices during corrections and earnings disappointments, and discipline rewards those who wait.
  • Revisit your intrinsic value estimate every quarter using updated earnings data; a 40% margin can evaporate quickly if business fundamentals deteriorate.
  • Never confuse a low stock price with a large margin of safety — a cheap-looking stock may have negative intrinsic value if the business is losing money or destroying capital.
  • For portfolio sizing, scale position sizes to the magnitude of the margin of safety — larger margins justify larger positions within your risk management framework.
  • Remember that margin of safety does not guarantee profit; it reduces the probability of permanent capital loss, which is the primary goal of value investing.

Frequently Asked Questions

Benjamin Graham typically required at least 33% for common stocks. Most value investors today use 20–30% as a minimum for high-quality, predictable businesses and 40–50% for more speculative or cyclical companies. A larger required margin compensates for greater uncertainty in your intrinsic value estimate. If you are highly confident in your valuation — for example, for an asset-heavy company where book value is verifiable — a smaller margin may be acceptable.
Intrinsic value is not a single number but a range derived from multiple methods. Common approaches include discounted cash flow (DCF) analysis using projected free cash flows, the Graham Number (√(22.5 × EPS × Book Value)), earnings-power value, and asset-based valuation. This calculator provides DCF, Graham Number, and PEG Fair Value estimates automatically from EPS, growth rate, and discount rate inputs. Conservative investors use the lowest plausible estimate and require an even larger safety margin on top of it.
The Graham Number is a conservative upper-bound price for a defensive stock, calculated as √(22.5 × EPS × Book Value Per Share). The 22.5 comes from Graham's rule that a stock's P/E should not exceed 15 and its P/Book should not exceed 1.5 (15 × 1.5 = 22.5). This calculator approximates book value as EPS × 10 for simplicity. Stocks priced below their Graham Number are considered classically cheap by Benjamin Graham's standards.
Margin of safety is measured as a percentage of intrinsic value: (Intrinsic − Price) / Intrinsic × 100. Upside potential is measured as a percentage of the current price: (Intrinsic − Price) / Price × 100. Because the denominators differ, upside potential is always a larger percentage than the MOS when the stock is undervalued. For example, buying at $75 when intrinsic value is $100 gives a 25% MOS but a 33.3% upside. Both metrics matter: MOS tells you how wrong your estimate can be; upside tells you the potential return.
The core margin of safety formula — (Intrinsic Value − Price) / Intrinsic Value — applies to any asset where you can estimate fair value and compare it to a market price. For bonds, intrinsic value might be the present value of coupons and principal discounted at a required yield. For real estate, it might be the property's net operating income capitalized at a market cap rate. The supplementary metrics (Graham Number, PEG Fair Value, DCF with EPS inputs) are equity-specific, but the primary MOS percentage calculation is universal.
Ensure you are dividing by intrinsic value, not by the current price. The standard margin of safety formula uses intrinsic value as the denominator: (Intrinsic − Price) / Intrinsic. A common mistake is dividing by price instead, which gives upside potential rather than margin of safety. Also verify that your intrinsic value and price inputs use the same per-share basis. If results still differ, confirm that both inputs are positive numbers — the calculator returns null when either value is zero or negative.
The discount rate is the required annual rate of return you demand from the investment, used to convert future earnings into today's dollars. A higher discount rate produces a lower DCF value, which results in a lower intrinsic value estimate and therefore a smaller margin of safety — or even a negative one. Conservative value investors often use a discount rate of 10–15%, higher than the risk-free rate, to build an additional layer of conservatism into the DCF calculation itself.

Sources & References

Last updated: 2026-06-05

💡

Help us improve!

How would you rate the Margin of Safety Calculator?

Sources

  • Reserve Bank of India (RBI) — Financial regulations, lending rates, and monetary policy guidelines. rbi.org.in
  • Consumer Financial Protection Bureau (CFPB) — Consumer finance guidelines, mortgage and loan disclosure standards. consumerfinance.gov
  • Securities and Exchange Board of India (SEBI) — Investment and securities market regulations. sebi.gov.in
  • Investopedia — Financial formulas, definitions, and educational content. investopedia.com

For a complete list of all references used across the site, visit our full sources page.

<>

Editorial Note

MyCalcBuddy Editorial Team

This page is maintained as an educational calculator reference.

Source

Formula Source: Fundamentals of Financial Management

by Brigham & Houston

UpdatedLast reviewed: May 2026
CheckedFormula checks are based on standard references and internal QA review.