What Is Margin of Safety in Investing?
Learn what margin of safety means, why Benjamin Graham considered it the central concept of investing, and how to calculate it for any stock.
Senior Software Engineer at Red Hat
Margin of safety is the difference between a stock’s intrinsic value and its market price, expressed as a percentage. It represents your buffer against errors in analysis, unforeseen events, and market volatility.
Benjamin Graham called it “the central concept of investment” and “the secret of sound investment in three words.”
The Formula
Margin of Safety = (Intrinsic Value - Market Price) / Intrinsic Value × 100%
Example:
- Intrinsic value estimate: $100
- Current market price: $70
- Margin of safety: ($100 - $70) / $100 = 30%
A 30% margin of safety means the stock could decline another 30% from your purchase price before it reaches zero value, or alternatively, your intrinsic value estimate could be 30% too optimistic and you’d still break even.
Why Margin of Safety Matters
1. No Valuation Is Perfect
Even the best analysts get inputs wrong. Growth rates slow, margins compress, black swan events happen. Margin of safety protects you against estimation errors.
2. The Future Is Uncertain
A company might face:
- New competition destroying pricing power
- Regulatory changes
- Management mistakes
- Economic recessions
- Technology disruption
Margin of safety is your insurance policy against what you can’t predict.
3. It Improves Your Returns
Buying at a discount to intrinsic value creates asymmetric upside. If you buy at a 30% discount and the stock reverts to fair value, you earn 43% return (30/70). If your estimate is wrong and intrinsic value is lower than you thought, your loss is limited.
How Much Margin of Safety Do You Need?
It depends on the quality and predictability of the business:
| Business Quality | Recommended Margin of Safety |
|---|---|
| Wide-moat blue chips (AAPL, MSFT, JNJ) | 15-20% |
| Stable companies with good track records | 20-30% |
| Cyclical or turnaround situations | 30-40% |
| Speculative or high-uncertainty stocks | 40-50%+ |
Benjamin Graham’s rule: Never less than 33% (one-third) discount to intrinsic value.
Warren Buffett’s approach: “I want to buy it at a price that even if I’m wrong about the business, I’m still going to do okay.”
Margin of Safety in Practice
Step 1: Calculate Intrinsic Value
Use multiple models (DCF, Graham Number, PEG) and take a weighted average.
Step 2: Determine Your Required Margin
Based on your confidence in the estimate and the business quality.
Step 3: Set Your Buy Price
Buy Price = Intrinsic Value × (1 - Required Margin of Safety)
Example:
- Intrinsic value: $150
- Required margin: 25%
- Buy price: $150 × 0.75 = $112.50
You’d only buy if the stock drops to $112.50 or below.
Step 4: Be Patient
The hardest part of value investing is waiting. The stock may never reach your buy price, and that’s okay. Move to the next opportunity.
Common Mistakes
1. Reducing Margin of Safety When Excited
When you “love” a company, the temptation is to accept a smaller margin of safety. This is exactly when discipline matters most. Excitement often means the stock is popular (and expensive).
2. Using Stale Intrinsic Value Estimates
If a company’s earnings declined 20% since your last analysis, your intrinsic value estimate is outdated. Recalculate before concluding there’s a margin of safety.
3. Confusing “Cheap” with “Margin of Safety”
A stock that dropped 50% isn’t automatically undervalued. If the business deteriorated, intrinsic value may have dropped even more. Margin of safety requires both:
- A sound intrinsic value estimate
- A market price meaningfully below it
4. Ignoring Negative Margin of Safety
When market price exceeds intrinsic value, margin of safety is negative, meaning you’d be paying a premium to fair value. This is where overvaluation risk lives.
The Margin of Safety Spectrum
| Margin | Interpretation | Action |
|---|---|---|
| -20% or worse | Significantly overvalued | Avoid / consider selling |
| -10% to 0% | Slightly overvalued | Hold if already owned, don’t buy |
| 0% to 15% | Fairly valued | Only for highest-quality businesses |
| 15% to 30% | Attractively valued | Accumulate gradually |
| 30%+ | Deep value | Strong buy opportunity |
Warren Buffett on Margin of Safety
“You don’t try to buy businesses worth $83 million for $80 million. You leave yourself an enormous margin. When you build a bridge, you insist it can carry 30,000 pounds, but you only drive 10,000-pound trucks across it. And that same principle works in investing.”
Calculate Your Margin of Safety
Use our margin of safety calculator to instantly see the discount (or premium) for any stock. Or browse undervalued stocks to find names already trading below our composite fair value estimates.
Try It Yourself
Put this knowledge into practice with our free calculators: