Margin of Safety: Formula, Calculation & What It Means for Investing
What Is Margin of Safety?
Margin of safety is the difference between a stock's estimated intrinsic value and its current market price, expressed as a percentage. If you estimate a company is worth $100 per share and buy at $70, your margin of safety is 30%. This buffer protects you against analytical errors, business deterioration, or prolonged market irrationality.
Benjamin Graham introduced the concept in The Intelligent Investor (1949), calling it "the central concept of investment." His reasoning: since intrinsic value is always an estimate based on imperfect information, buying at a significant discount creates a built-in error margin. Even if your analysis is partially wrong, the discounted purchase price limits downside. Seth Klarman named his fund and book after the concept — Margin of Safety (1991) expanded Graham's framework for modern markets.
Margin of Safety Formula
The result is a percentage representing how far below intrinsic value the stock trades. A positive margin = undervalued. Zero = fairly valued. Negative = overvalued. Graham typically demanded 30–50% margins before buying.
In accounting/break-even analysis, the formula differs: Margin of Safety = (Actual Sales − Break-even Sales) / Actual Sales × 100. This measures how far revenue can decline before the company stops making a profit. Both concepts share the same principle — how much cushion exists before things go wrong — but the investing application is what most stock analysts reference.
How to Find Margin of Safety
Step 1: Estimate intrinsic value using a DCF model, Graham Number, or comparable analysis. Suppose your estimate: $120 per share.
Step 2: Find the current market price. Suppose: $84.
Step 3: Calculate: ($120 − $84) / $120 × 100 = 30% margin of safety.
A 30% margin means you're buying at a 30% discount to estimated fair value. Graham demanded this level as a minimum. More aggressive value investors (deep value) seek 40–50%+. The challenge: intrinsic value is always an estimate. A 30% margin sounds comfortable, but if your intrinsic value estimate is 25% too high, your real margin is only 5%. This is why conservative estimates and multiple valuation approaches (DCF, comparables, asset-based) produce more reliable margins than a single optimistic projection.
Margin of Safety Percentage Formula
The percentage formula normalizes the margin relative to intrinsic value, making it comparable across stocks at different price levels. A $10 stock trading $3 below intrinsic value and a $500 stock trading $150 below intrinsic value both have a 30% margin — the percentage tells you the relative cushion is identical.
Some investors also express margin in dollars: Margin of Safety (dollars) = Intrinsic Value − Market Price. For the example above: $120 − $84 = $36 per share. While the dollar figure is useful for calculating potential upside, the percentage is better for comparing opportunities across different price points and for setting portfolio-level minimum thresholds ("I only buy stocks with 25%+ margin of safety").
Margin of Safety in Investing
In stock investing, margin of safety is the practice of only buying when the market price is significantly below your estimate of intrinsic value. It serves three functions: (1) protecting against analytical errors in your valuation, (2) providing a buffer against business deterioration you didn't foresee, and (3) creating asymmetric upside — limited downside at a discounted price with significant upside as the market re-prices toward fair value.
Graham's value investing approach systematizes this: heavy Valuation weighting (35% in the UQS Graham preset) combined with Risk emphasis (20%) creates a natural margin-of-safety filter. Stocks that score high under Graham's framework are both cheap (high valuation score) and financially safe (high risk score) — the exact combination that provides margin of safety in practice. Buffett's approach evolved the concept: he's willing to accept a smaller margin of safety for truly wonderful businesses with wide moats, reasoning that the quality of the business itself provides protection.
Margin of Safety and the UQS Score
UQS doesn't calculate margin of safety directly (it requires a subjective intrinsic value estimate). Instead, the Valuation pillar captures the same signals through four objective metrics: earnings yield (how cheap relative to earnings), P/FCF (how cheap relative to cash flow), PEG (how cheap relative to growth), and EV/EBITDA vs sector median.
A stock scoring high on all four Valuation metrics is almost certainly trading with a meaningful margin of safety by any reasonable DCF estimate. The best value stocks ranking surfaces these opportunities, and the Graham preset (35% Valuation, 20% Risk) explicitly prioritizes the margin-of-safety philosophy. Read the full UQS methodology →
Frequently Asked Questions
What is margin of safety in investing?
Margin of safety is the discount between a stock's estimated intrinsic value and its market price. If you estimate a stock is worth $100 and buy at $70, your 30% margin protects against analytical errors and business deterioration. The concept was introduced by Benjamin Graham and is the cornerstone of value investing.
How do you calculate margin of safety?
Margin of Safety = (Intrinsic Value − Market Price) / Intrinsic Value × 100. First estimate intrinsic value (via DCF, Graham Number, or comparables), then calculate the percentage discount. Graham demanded 30–50% margins. The challenge is that intrinsic value itself is an estimate, which is why conservative assumptions are essential.
What is a good margin of safety for stocks?
Graham recommended 30–50% for defensive investors. More aggressive value investors (deep value) seek 40–50%+. Buffett accepts smaller margins (15–25%) for exceptional businesses with wide moats, reasoning that business quality provides its own protection. The right margin depends on your confidence in the valuation estimate and the company's earnings stability.
Related Metrics
Find stocks trading below their fundamental value across four metrics
View the Rankings →Want to see how all 29 metrics work together?
The UQS Score combines Quality, Moat, Growth, Risk, Valuation, and Momentum into a single composite score for 6,400+ stocks.
Read the Full Methodology