Margin of Safety Calculator

Free margin of safety calculator. Compare intrinsic value to market price, find your buffer and the price to buy below. Browser-based, no signup.

Free to useNo signupNo paywallNothing you enter is uploaded

$
$
%
I don't have an intrinsic value - estimate one here

A one-line Gordon check: value = EPS x (1 + growth) / (discount rate - growth). It treats earnings as owner earnings and assumes growth lasts forever, so use it as a sanity band, not an appraisal. Defaults are Coca-Cola's trailing EPS (3.39, TTM ended 2026-10-02) with 4% growth and an 8% hurdle.

$
%
%
—
Margin of safety — Enter your numbers and calculate
Discount to intrinsic value—
Upside to fair value—
Buy-below price at target—
Price vs target—

Margin of safety is a buffer against estimation error, not a guarantee or investment advice. For education only.

A margin of safety calculator turns one of value investing's central ideas into a number you can act on. The concept is simple: because every estimate of a company's worth is uncertain, you should only buy when the market price sits meaningfully below your estimate of intrinsic value. That gap is the margin of safety - a cushion against being wrong. This tool computes the gap for you and, if you set a target, tells you the maximum price at which that target would be met. Everything runs in your browser with no signup and no data leaving your device.

Enter your estimate of intrinsic value per share, the current market price, and optionally a target margin of safety. The result shows the actual margin, the discount to intrinsic value, the upside if price returns to your estimate, and the buy-below price for your target. Use it after you have done the harder work of estimating value - the calculator does not produce that estimate for you.

The margin of safety formula

The margin of safety is the discount between what a business is worth and what you pay, expressed as a percentage of the value:

Margin of safety = (Intrinsic value - Market price) / Intrinsic value x 100

With an intrinsic value of $100 and a price of $70, the margin is ($100 - $70) / $100 = 30%. You are paying 70 cents on the dollar, leaving a 30% buffer. Two related numbers are easy to confuse with it. The discount to intrinsic value is the same 30% here. The upside to fair value divides by the price instead: ($100 - $70) / $70 = 42.9%. Different denominators, different answers - the calculator shows both so you never mix them up.

To solve for the price at which a target margin would be met, rearrange the formula: Buy-below price = Intrinsic value x (1 - target margin). At a 30% target with a $100 estimate, that is $70. This is the number that matters at the moment of decision: it is the most you should pay under your own assumptions.

Where the intrinsic value comes from

The calculator takes your intrinsic value as an input on purpose. The quality of the output depends entirely on the quality of that estimate, so the real work happens before you open this page. A disciplined approach uses more than one method and looks at the range. The DCF calculator projects free cash flow and discounts it back to today. The intrinsic value calculator offers a faster two-stage earnings-based estimate, and the intrinsic value formula explains the reasoning behind both. The stock valuation calculator lays PE, PB and DCF side by side so a single optimistic model cannot carry the whole answer.

Warren Buffett, following Benjamin Graham, describes margin of safety as the third essential principle of investing: buy at a sensible discount, and the buffer absorbs mistakes in analysis, bad luck, and the simple fact that the future is unknown. His own words are in the 1992 shareholder letter. A wide margin only makes sense when it is paired with a business whose cash flows are durable - that durability is what the economic moat helps you judge.

A worked example (illustrative, as of 2026-09)

Here is an illustrative example shaped like a mature company such as Apple (AAPL), so you can reproduce the arithmetic. These are example inputs, not reported figures or live quotes.

  • Intrinsic value = $100 per share. Your conservative fair-value estimate, arrived at from a DCF or a blend of methods.
  • Current market price = $70 per share. The quote you would actually pay today.
  • Target margin of safety = 30%. A classic Graham starting point for a reasonably predictable business.

The actual margin is ($100 - $70) / $100 = 30%, exactly at the target. The discount to intrinsic value is 30%, the upside to fair value is ($100 - $70) / $70 = 42.9%, and the buy-below price at a 30% target is $100 x 0.70 = $70. The stock is right at your line: acceptable under these assumptions, worth revisiting if your value estimate moves down or the price rises.

Buy-below prices at a $100 intrinsic value

The calculator computes one buy-below price at a time. The same formula laid out as a table is easier to scan and to compare with a quote you already have in front of you. All rows use the same $100 intrinsic value used above; scale the prices in proportion if your estimate is different.

Required margin of safety Buy-below price What the buffer assumes
10% $90 A small cushion: the estimate is close to a point value and the business is highly predictable
20% $80 A moderate cushion: appropriate for stable cash flows with ordinary uncertainty
30% $70 Graham's classic defensive starting point and the default in the calculator above
40% $60 A wider cushion: meaningful uncertainty in the estimate or in the business
50% $50 A demanding cushion: suitable when the valuation depends on a distant forecast

Graham's defensive approach often called for 30-50%; a stable, predictable business may justify 20-25%. The higher the required margin, the more certainty you are asking the estimate to have. These are arithmetic results from one formula, not targets the market owes you - a stock can stay above every buy-below price for years.

How wide should the margin be?

There is no single correct number. The buffer should scale with the uncertainty of the estimate. Stable, predictable businesses with clear cash flows may justify 20-25%. Cyclical or leveraged companies, or any business whose value depends on a distant forecast, call for 35-40% or more. A larger margin leaves more room for error, but it also means fewer stocks will ever qualify - a trade-off between safety and opportunity, not a score to maximize.

The margin of safety protects against a wrong estimate; it does not make the estimate right. If your intrinsic value is too optimistic, a 50% discount to that number can still be an overpayment. Always test the estimate under weaker assumptions, use a range rather than a point, and treat the output as education rather than investment advice.

Frequently asked questions

What is a margin of safety in investing?

It is the discount between a stock intrinsic value and its market price, expressed as a percentage of intrinsic value. Popularized by Benjamin Graham, it is the buffer that absorbs mistakes in valuation and the uncertainty of the future. A 30% margin means paying $70 for something you estimate is worth $100.

How do you calculate margin of safety?

Margin of safety = (intrinsic value - market price) / intrinsic value x 100. To find the price that meets a target margin, use buy-below price = intrinsic value x (1 - target margin). The calculator does both and also shows the upside to fair value, which divides by price instead and is therefore a different percentage.

What is a good margin of safety percentage?

There is no universal threshold. Graham often required 30-50% for a defensive investor. In practice the right buffer depends on how predictable the business is: stable firms may justify 20-25%, while cyclical, leveraged or hard-to-forecast companies call for 35-40% or more. The more uncertain the estimate, the wider the margin.

Can margin of safety be negative?

Yes. A negative result means the market price is above your intrinsic value estimate, so there is no cushion. It does not guarantee the price will fall - your estimate may be too low, or the market may be pricing in growth your model misses. Treat it as a signal to demand more evidence, not an automatic sell.

Does the calculator estimate intrinsic value for me?

No. You supply the intrinsic value, because that estimate is the hard part and no single formula can produce it reliably. Use a DCF, an earnings-based estimate and a multiples comparison, then feed a conservative figure here. The tool measures the buffer against your estimate; it does not validate the estimate itself.