Basis Report/Resources/Margin of Safety Guide

Value investing · Valuation

Margin of Safety: Formula, What It Means, and How to Calculate It

The margin of safety is the gap between what a business is worth and what you pay for it. Benjamin Graham called it the central concept of investment; Warren Buffett calls it the most important principle in investing. This guide gives you the formula, three ways to estimate intrinsic value, a worked Apple example, and the thresholds that separate adequate from dangerous cushions.

Short answer

Margin of safety = (Intrinsic Value - Market Price) / Intrinsic Value x 100. It measures how far a stock trades below its estimated intrinsic value -- the cushion against estimation error.Benjamin Graham introduced the concept; Warren Buffett calls it the most important principle in investing.

MoS% = (IV - Price) / IV x 100

The Margin of Safety Formula

There are two ways to express margin of safety. The percentage form is more useful for comparing opportunities across stocks at different price levels.

As a percentage (preferred)
(Intrinsic Value - Market Price) / Intrinsic Value x 100
As a dollar amount
Intrinsic Value - Market Price

The percentage form is more useful because it scales. A $50 discount on a $200 stock (25% margin of safety) is a very different risk profile than a $50 discount on a $500 stock (10%). The dollar amount tells you how much you lose if your intrinsic value estimate is exactly right; the percentage tells you how wrong you can be before the thesis breaks.

How to Estimate Intrinsic Value

Margin of safety is only as good as the intrinsic value estimate it is applied to. Three methods are most commonly used.

DCF model -- The most rigorous approach. Project free cash flows 5-10 years forward, discount them at the weighted average cost of capital (WACC), and add a terminal value. The output is a range, not a point estimate -- run a sensitivity table across growth rate and discount rate assumptions to see how the intrinsic value moves. Use the DCF calculator to run this live for any ticker. See the intrinsic value guide for a full step-by-step DCF walkthrough.

Graham Number -- Benjamin Graham's shorthand formula for the maximum fair price of a defensive value stock: Graham Number = (22.5 x EPS x BVPS)^0.5. It embeds a maximum P/E of 15 and a maximum P/B of 1.5. It is a conservative floor, not a ceiling. Use the Graham Number calculator to compute it for any ticker.

Earnings-based valuation -- Multiply normalized EPS by a fair P/E multiple for the business quality and growth rate. If a company earns $8 per share and you believe a 18x multiple is appropriate, intrinsic value is roughly $144. The simplicity is the weakness: the fair multiple is a judgment call, and two reasonable analysts will disagree. Cross-check with the P/E ratio guide for sector context.

Worked Example: Apple (AAPL) FY2024

Suppose a DCF analysis of Apple using FY2024 free cash flow yields an intrinsic value of $220 per share. At the time of this writing, the market price is approximately $170. Here is the margin of safety calculation step by step.

Step 1: Establish intrinsic value
DCF model output: $220 per share
Step 2: Note the market price
Current price: $170 per share
Step 3: Compute the discount
$220 - $170 = $50 (dollar form)
Step 4: Express as percentage
$50 / $220 x 100 = 22.7% margin of safety

At a 22.7% margin of safety, your intrinsic value estimate can be off by up to 22.7% before you would be paying fair value at $170. If the true intrinsic value turns out to be $170 -- not $220 -- you bought at exactly fair value and have no cushion. This is why Graham preferred 30-50%: estimation errors on a business like Apple can easily run 15-20% from the true value. (Figures are illustrative and approximate.)

What Is a Good Margin of Safety?

The required cushion depends on how predictable the business is and how confident you are in your intrinsic value estimate. Graham's 30-50% rule was designed for average businesses where estimation error is high. High-quality, predictable businesses warrant a lower threshold.

TierMoS RangeBest suited for
Conservative30-50%Average businesses; wide moat uncertainty; Graham's preferred range
Moderate15-25%Quality businesses; predictable cash flows; durable competitive advantage
AggressiveLess than 15%Highest-conviction, blue-chip only; Buffett-style quality moat investing

These thresholds are guidelines, not rules. A 40% discount on a business in secular decline is not safety -- it is value destruction on a slower timeline. Quality of the business must be evaluated alongside the size of the discount.

Margin of Safety vs. Stop-Loss

Margin of safety and stop-loss are both risk-management tools, but they operate at different moments in the investment process and from entirely different philosophies.

Margin of safety is an entry discipline. It answers the question: "Am I paying a price low enough relative to intrinsic value that estimation error will not wipe me out?" It is about the relationship between price and value at the time of purchase. A wide margin of safety protects you on the upside -- even if your estimate is wrong, you paid enough of a discount that the investment can still work.

A stop-loss is an exit discipline. It answers the question: "At what price do I sell to cap my losses?" It is purely about price action after purchase -- it has no relationship to intrinsic value. A stop-loss on a stock purchased with a 35% margin of safety might trigger during normal price volatility, forcing a sale of a genuinely undervalued position.

Graham and Buffett do not use stop-losses -- the margin of safety is meant to make price-action exits unnecessary. If you have done the valuation work rigorously, a price decline increases the margin of safety rather than triggering a sale.

Common Margin of Safety Mistakes

  • Using too-optimistic intrinsic value assumptions. If you model 15% perpetual FCF growth for a mature business, the resulting intrinsic value is high enough to show a margin of safety at almost any price. The cushion is illusory -- it is built on assumptions, not facts. Anchor growth rates to the last 5-year historical average, then stress-test at half that rate.
  • Ignoring business quality. A 40% discount on a declining business is not safety -- it is an invitation to watch your capital erode more slowly. Margin of safety only protects against estimation error on a business that is genuinely worth something. A business in permanent decline has an intrinsic value that falls every year, so the discount narrows even if the price stays flat.
  • Applying the same threshold across different business quality levels.Requiring 40% margin of safety on a world-class compounder means you will rarely -- if ever -- own one. Requiring only 10% on a cyclical industrial means you have almost no cushion against an earnings downturn. The threshold should scale with the uncertainty in the valuation.
  • Confusing a low stock price with a high margin of safety. A stock that has fallen 50% from its peak is not automatically cheap -- if earnings have also fallen 50%, the intrinsic value may have fallen with it. Always recalculate intrinsic value from first principles; do not anchor to past prices.
🧮
Try the Margin of Safety Calculator
Enter any ticker or manual intrinsic value estimate to calculate your margin of safety percentage instantly.
Open Calculator →
🧮
Try the DCF Calculator
Build a full discounted cash flow model with live FCF data, WACC, terminal value, and a sensitivity table to establish your intrinsic value estimate.
Open Calculator →