# Margin of Safety in Investing: Formula, Examples and Limits

Web page: https://uptickflow.com/en/learn/margin-of-safety  
Updated: 2026-10-15

Margin of safety explained: Graham’s idea, the formula (fair value − price) ÷ fair value, how it absorbs estimate errors, how big it should be, and its limits.

The margin of safety is the gap between a conservative estimate of a stock’s intrinsic value and the price you pay, as a share of that value: (fair value − price) ÷ fair value. If you estimate a stock is worth $100 and buy it at $70, your margin of safety is 30%. Benjamin Graham made it the central idea of value investing: a cushion that keeps a wrong estimate or bad luck from turning into a large loss.

Below: where the idea comes from, the formula and its reverse, how the cushion absorbs mistakes, how big it should be, a worked example and its limits. All numbers are hypothetical; this is education, not investment advice.

## What is the margin of safety? Benjamin Graham’s idea

Benjamin Graham and David Dodd used the term in Security Analysis (1934), and Graham devoted chapter 20 of The Intelligent Investor to it, titled “Margin of Safety” as the Central Concept of Investment. His reasoning: you cannot forecast a company’s future precisely, so buy at a price low enough that a precise forecast is not needed. Warren Buffett later named that chapter, with chapter 8 on market fluctuations, as the most important in the book; see the [Warren Buffett strategy](https://uptickflow.com/en/learn/warren-buffett-strategy).

Engineers use the same idea when they design a bridge to carry more than the heaviest load they expect. In investing, the extra capacity is the gap between value and price. It protects against three things: an estimate that was too optimistic, bad luck in the business, and a market that stays pessimistic longer than you expected.

## How to calculate the margin of safety

Margin of safety = (fair value − price) ÷ fair value. The drawing at the top shows the hypothetical example: fair value $100, price $70, so (100 − 70) ÷ 100 = 30%. Always divide by the fair value, not the price: (100 − 70) ÷ 70 = 43% describes the upside to fair value, a different and more flattering number.

Turn the formula around to get a maximum purchase price before you look at the chart: maximum price = fair value × (1 − required margin). With a $100 estimate and a 25% margin, the most you would pay is $75; with a 40% margin, $60. Writing that number down in advance keeps a falling price from rushing the decision.

The fair value in the formula is your own conservative estimate; the [intrinsic value](https://uptickflow.com/en/learn/intrinsic-value) guide shows how to build one from earnings, a [discounted cash flow](https://uptickflow.com/en/learn/discounted-cash-flow) model or book value.

- **Margin of safety**: The discount between a conservative estimate of value and the price paid, as a percentage of the value.
- **Maximum purchase price**: Fair value × (1 − required margin): the highest price at which a purchase still meets your margin.
- **Upside to fair value**: (Fair value − price) ÷ price: the gain if the price reaches your estimate. It is not the same number as the margin of safety.

## How a margin of safety absorbs estimate errors

Suppose your estimate is $100, but honestly the business could be worth anywhere from $80 to $120. The drawing below compares two buyers of the same stock.

The first bought at $70. If the low end is right and the business is worth only $80, the price was still $10 below value. The second bought at $95. If the low end is right, that buyer paid $15 more than the business is worth, and a return to fair value means a loss of about 16%. Same estimate, same mistake, very different outcomes: the price decided which buyer could afford to be wrong.

Graham argued that this is the real function of the margin: it makes an accurate estimate of the future unnecessary. You don’t need to know the value to the dollar if you buy well below every reasonable estimate.

## How big should your margin of safety be?

There is no official number. A common practice is to scale the margin with uncertainty: a smaller margin for a stable, predictable business whose earnings you can estimate with some confidence, a larger one for a cyclical, young or indebted company whose value could swing widely. The drawing below shows illustrative ranges, not rules.

Two trade-offs decide where you land. A large margin protects you better, but you will buy rarely and miss many good companies that never get that cheap. A small margin lets you buy more often but leaves less room for error. A conservative fair value already contains some caution, so a modest margin on a cautious estimate can protect as much as a large margin on an optimistic one.

## Worked example: buying XYZ with a margin of safety

Continue with hypothetical company XYZ from the intrinsic value guide: fair-value range $75 to $90, conservative value $75. XYZ is a steady business, so you choose a 20% margin. Maximum price: $75 × (1 − 0.20) = $60.

1. Write it down: buy only at $60 or below, and only while the conservative value is still $75.
2. Wait. At $72 the margin is only 4%, so there is nothing to do.
3. Check the reason when the price arrives. If XYZ falls to $60 in a market-wide sell-off while its earnings hold, the margin is real: (75 − 60) ÷ 75 = 20%. If it falls because the company cut its earnings outlook, re-estimate first: with EPS of $4.00, the conservative value becomes $60 and the margin disappears.
4. Size the position so that being wrong stays survivable; see [risk management](https://uptickflow.com/en/learn/risk-management).
5. Re-estimate after every earnings report. The margin is measured against today’s value, not the value you estimated a year ago.

## The limits of a margin of safety

A margin of safety reduces the damage from errors; it does not remove risk. Combined with a conservative estimate and quality checks it is still a practical rule, one that methods such as the [UpTickFlow Strategy](https://uptickflow.com/en/strategy) build into their buying rules. Its limits:

- It cannot fix a broken business. If the value itself is falling, a 30% discount to last year’s value is no discount at all: that is the [value trap](https://uptickflow.com/en/learn/value-trap), and [growth vs value stocks](https://uptickflow.com/en/learn/growth-vs-value-stocks) runs the same formula on a stock that became one.
- It is only as good as the estimate. A margin measured from an optimistic fair value is mostly an illusion.
- It does not time the bottom. A stock bought 20% below value can fall another 20% before it recovers, if it recovers; buying more on the way down is a separate decision covered in [averaging down](https://uptickflow.com/en/learn/averaging-down).
- It can take years. Price can stay below value for a long time, with your cash tied up meanwhile.
- It is not a stop-loss. It controls the price you pay, not the loss you accept if your thesis breaks, so write that exit rule separately.

## Key takeaways

- Margin of safety = (fair value − price) ÷ fair value: buying at $70 what you estimate is worth $100 gives 30%.
- It comes from Benjamin Graham, who called it the central concept of investment: the cushion means you don’t need a precise forecast.
- Measure it from a conservative estimate and demand more when the business is harder to predict; common ranges are practice, not rules.
- It cannot protect you from a business whose value is falling, from a bad estimate or from a long wait.

## FAQ

**What is a good margin of safety?**

There is no single number. Many value investors ask for more when the business is harder to predict, and less when it is stable and the fair value is already conservative. Whatever you choose, decide it before you look at the price.

**How do you calculate the margin of safety of a stock?**

Subtract the price from your conservative fair value and divide by the fair value: a $100 estimate and a $70 price give (100 − 70) ÷ 100 = 30%. To find the most you should pay, multiply the fair value by (1 − your required margin).

**Who came up with the margin of safety?**

Benjamin Graham, often called the father of value investing, used it with David Dodd in Security Analysis (1934) and called it the central concept of investment in The Intelligent Investor. Warren Buffett, his former student, made it a pillar of his own approach.

**Can you still lose money with a margin of safety?**

Yes. If the business deteriorates, your estimate was too optimistic or you sell during a long decline, a stock bought below its estimated value can still lose money. The margin reduces the damage from mistakes; it does not remove risk.

---

Educational content, not financial advice. Trading involves risk of loss. https://uptickflow.com/llms.txt
