1. Calculators
  2. Stock Valuation & Fundamentals

Margin of Safety & Fair Value Calculator

Compare your estimate of a stock's value with its price, find the most you should pay for a given margin of safety, and estimate fair value from earnings, growth and an exit P/E.

Updated Oct 16, 2026Free · no sign-upFormulas tested

Your inputs

Compare your estimate of what a share is worth with the price the market asks for it.

Fills the current share price. Intrinsic value is your own estimate. You can change any value afterwards.
$
From a DCF, a Graham Number, an earnings multiple or your own analysis.
$
%
Many value investors ask for 25%–33%; Graham-style investors sometimes 50% for riskier companies.

Results

Margin of safety22.5%Below your 25% requirement
Upside to intrinsic value
+29.0%
Buy price at a 25% margin
$60.00
Fall needed to reach the buy price
3.2%
Value minus price per share
$18.00

The price is 22.5% below your estimate, short of the 25% you require. The price would have to fall 3.2%, to $60.00, to meet it.

Buy price at each required margin of safety

$40$50$60$70$8010%20%30%40%50%Price $62.00Today

Buy prices from a 10% to a 50% margin of safety

Margin of safetyBuy priceChange from today's price
10%$72.00+16.1%
15%$68.00+9.7%
20%$64.00+3.2%
25%$60.00-3.2%
30%$56.00-9.7%
35%$52.00-16.1%
40%$48.00-22.6%
45%$44.00-29.0%
50%$40.00-35.5%

Green prices are at or above today's price: the stock already offers that margin.

Results are estimates from the numbers you enter. They are not financial, tax or legal advice.

How to use the margin of safety calculator

Margin of safety compares a value you already have with the price. Fair value from earnings builds that value from a few assumptions.

  1. Intrinsic value per share. Your own estimate, from a DCF, the Graham Number, an earnings multiple or any other method.
  2. Current share price.
  3. Required margin of safety. The discount you insist on before buying. The default of 25% is a common starting point.
  4. For fair value from earnings, enter EPS, the growth you expect, how many years it lasts, the P/E you expect the market to pay at the end, and the annual return you require.

The table under the first tool lists buy prices for margins from 10% to 50%.

The formulas

Margin of safety = 1 − Price ÷ Intrinsic value
Upside = Intrinsic value ÷ Price − 1
Buy price = Intrinsic value × (1 − Required margin)A positive margin means the price is below your value estimate.
Future EPS = EPS × (1 + g)n
Future price = Future EPS × Exit P/E
Fair value today = Future price ÷ (1 + r)ng is annual EPS growth, n the number of years, and r the annual return you require. Dividends are not included.

A worked example

You estimate a share is worth $80, and it trades at $62. Margin of safety = 1 − $62 ÷ $80 = 22.5%, an upside of +29.0%.

You require 25%, so your buy price is $60.00. The stock would have to fall 3.2% to get there. Ask for 33% and the buy price drops to $53.60.

For the earnings method, Company E earns $3.50 a share. If EPS grows 8% a year for 5 years, it reaches $5.14. At 18 times earnings, the share would be worth $92.57 then. Discounted at 10% a year, the fair value today is $57.48, and the buy price with a 25% margin is $43.11.

Which assumption moves fair value most

Change from the example Fair value today
The example $57.48
Growth 4% instead of 8% $47.59
Exit P/E lowered to 14 times earnings $44.70
Required return 12% instead of 10% $52.53

The exit P/E is the assumption people check least and it often matters most: it scales the whole future price. A company growing fast today usually trades at a lower multiple once it matures, so assuming today’s P/E will last can quietly build in optimism. The chart under the tool shows fair value across growth rates, with the buy price beneath it.

Why a margin of safety works

A value estimate depends on forecasts that will be wrong to some degree. The margin of safety turns that uncertainty into a rule: if your estimate turns out 22.5% too high, buying at $62 still means you did not overpay. It also improves returns when you are right, because the gap between price and value becomes your gain.

The cost is opportunity. A high requirement means you will buy less often, and good companies rarely trade at deep discounts. Some investors accept a smaller margin for businesses with very predictable earnings and demand a wider one for cyclical or indebted companies.

Limitations

  • The margin is only as good as the value estimate. Measuring it precisely against a careless estimate gives false comfort.
  • The earnings model ignores dividends, so it understates value for companies that pay out a large share of profit. The dividend discount model handles that case.
  • Constant growth is a simplification. Real earnings rise and fall with the business cycle.
  • No allowance for risk of permanent loss. A cheap price does not protect against a business whose value is shrinking.

Frequently asked questions

How do you calculate the margin of safety?
Divide the share price by your estimate of intrinsic value and subtract the result from 1. A stock worth $80 trading at $62 has a margin of safety of 22.5%.
What is a good margin of safety?
Many value investors look for 25% to 33% on established companies and more, sometimes 50%, on businesses that are harder to forecast. The less confident you are in the value estimate, the wider the margin should be. There is no standard figure.
Is margin of safety the same as upside?
No. Margin of safety measures the discount from value (1 − price ÷ value), while upside measures the gain from price to value (value ÷ price − 1). In the example, a 22.5% margin of safety corresponds to +29.0% of upside.
Who came up with the margin of safety?
Benjamin Graham made it the central idea of value investing in The Intelligent Investor and Security Analysis. His argument was simple: since any estimate of value can be wrong, buying well below it leaves room for error and bad luck.
Can the margin of safety be negative?
Yes. A negative figure means the price is above your value estimate. At a price of $90 against a value of $80, the margin is -12.5%.

Related calculators

All calculators →

Check prices and earnings for real stocks

All stocks →

Every PromtFinance stock page shows the latest price, earnings per share, growth history and the P/E range, the inputs for both tools here.

This calculator is for education and planning. It uses the formulas described above and the inputs you provide; real results depend on fees, taxes, timing and other details that a general tool cannot know. PromtFinance does not give personal financial advice. Check important decisions with your provider or a qualified professional.