Margin of Safety Formula: The One Number That Protects You From Bad Decisions

Margin of Safety Formula: The One Number That Protects You From Bad Decisions

You found a stock. You calculated its intrinsic value. It looks undervalued. Time to buy?

Not yet. You need one more number — the one that protects you when you’re wrong.

That number is the margin of safety.

What Is Margin of Safety?

Margin of safety is the gap between what a stock is worth and what you pay for it. The bigger the gap, the more room you have for error.

Warren Buffett calls it the most important concept in investing. His teacher Benjamin Graham devoted the entire final chapter of The Intelligent Investor to it.

The idea is simple: if you think a stock is worth $100, don’t pay $98. Pay $70 or less. That $30 discount is your safety net. If your valuation is wrong and the stock is really worth $80, you still didn’t overpay.

The Margin of Safety Formula

Margin of Safety = (Intrinsic Value - Current Price) / Intrinsic Value × 100

That gives you a percentage. The higher the percentage, the bigger the discount.

Real example — Bank of America (BAC):

  • Intrinsic Value (Graham Number) = $45.53
  • Current Price = $34.00
  • Margin of Safety = ($45.53 – $34.00) / $45.53 × 100 = 25.3%

Translation: BAC trades at a 25% discount to its Graham Number. Not bad, but not huge.

Now compare with another stock where the Graham Number is $80 and the price is $45:

  • Margin of Safety = ($80 – $45) / $80 × 100 = 43.8%

That’s a much wider gap. More room for error.

What’s a Good Margin of Safety?

Graham recommended at least 30%. That means buying a stock at no more than 70% of its intrinsic value.

Most value investors today use these benchmarks:

Margin of Safety What It Means
Below 20% Too tight. One wrong assumption and you overpay.
20-30% Decent, but not much room for error.
30-50% Sweet spot. This is what most value investors look for.
Above 50% Excellent — but ask why the market is so pessimistic.

Why Beginners Get This Wrong

On Reddit’s r/ValueInvesting, beginners ask the same question over and over:

> “Everyone says buy at 50-70% of intrinsic value. But how do I even get the intrinsic value in the first place?”

They’re right to be confused. Margin of safety only makes sense after you have intrinsic value. It’s a two-step process:

  1. Calculate intrinsic value (Graham Number or DCF)
  2. Check the discount (margin of safety formula)

Skip step 1 and step 2 is meaningless. You can’t measure a discount without knowing the full price.

The Conservative Approach

Here’s the problem: Graham Number and DCF can give you different intrinsic values. Which one do you use?

The answer: use the lower one.

If Graham Number says $45 but a crisis-mode DCF (0% growth) says $38, your margin of safety should be based on $38. This is called conservative margin of safety — and it’s what Value Stock Score calculates automatically.

Why? Because it’s better to be pleasantly surprised than painfully disappointed. If the conservative number still gives you 30%+ margin of safety, you have a real opportunity. If the only way to get 30% is to use the optimistic number, you’re fooling yourself.

How to Use Margin of Safety in Practice

  1. Calculate intrinsic value using at least two methods (Graham Number + DCF)
  2. Take the lower value as your baseline (conservative approach)
  3. Apply the formula to get your margin of safety percentage
  4. Only buy if margin of safety is 30% or more
  5. If it’s below 30%, wait. Stocks go on sale when the market panics. Patience is the strategy.

Common Mistakes

  1. Using a single intrinsic value. If your one estimate is wrong, your margin of safety is fiction. Always use two methods and take the conservative one.
  1. Confusing a low price with a margin of safety. A stock dropping 50% doesn’t mean it has 50% margin of safety. It might have been overpriced to begin with. Margin of safety compares price to intrinsic value, not to last year’s price.
  1. Ignoring business quality. A 60% margin of safety on a dying company is a trap. The intrinsic value keeps shrinking. Make sure the business is profitable, has manageable debt, and generates cash.
  1. Being too rigid. A 28% margin of safety isn’t automatically bad. For an exceptional business with predictable earnings, you might accept a smaller discount. For a risky, unpredictable company, demand 50%+.

FAQ

What is the margin of safety formula?

Margin of Safety = (Intrinsic Value – Current Price) / Intrinsic Value × 100. It tells you what percentage discount you’re getting relative to the stock’s true worth.

What is a good margin of safety percentage?

Most value investors look for 30-50%. Graham recommended at least 30%. For riskier or less predictable companies, demand a higher margin (50%+). For stable, predictable businesses, 20-30% may be acceptable.

How does Warren Buffett calculate margin of safety?

Buffett doesn’t use a spreadsheet. He estimates intrinsic value based on his deep understanding of the business, then requires a significant discount before buying. His approach is qualitative, but the math is the same: pay less than what it’s worth.

Can margin of safety be negative?

Yes. If the current price is higher than your intrinsic value estimate, the margin of safety is negative. That means the stock is overvalued by your calculation. Don’t buy.

What’s the difference between margin of safety and intrinsic value?

Intrinsic value is what the company is worth. Margin of safety is the discount you get when buying below that value. You need intrinsic value first to calculate margin of safety.


Want to see margin of safety calculated automatically for real stocks? Visit valuestockscore.com — we compute Graham Number, DCF, and conservative margin of safety for every ticker, so you don’t have to.

0%