Free calculator · in your browser

Margin of safety calculator

Enter your own estimate of what a share is worth, the current price and the cushion you want. See how much room for error the price leaves you.

No sign-upNothing is storedFictional example pre-filled

Margin of safety36.0%
Price with your margin$70.00
Gap to your estimate$36.00
Your estimate $100.00Price with your margin $70.00Price $64.00$0$50$100$150$200

The price is 36.0% below your estimate, at or beyond the 30% margin you asked for.

Education only. This tool does arithmetic on the numbers you enter. It is not investment advice, a valuation of any real security, or a recommendation to buy, sell or hold anything. Results depend entirely on your assumptions. Terms of use

How it works

The formula

A margin of safety is the discount between your estimate of value and the price. It is there because every estimate is wrong in ways you cannot predict.

Margin of safety = (Value − Price) ÷ Value

Price with your margin = Value × (1 − required margin)

The calculator does not check whether your value estimate is sensible. That is the hard part, and the part the guides below teach.

Worked example

A fictional Company A

Company A is a made-up business. Suppose your discounted cash flow work suggests it is worth about $100 a share, and you want a 30% cushion. The price that gives you that cushion is $100 × (1 − 0.30) = $70. At a price of $64 the margin is ($100 − $64) ÷ $100 = 36%. At $85 it would be only 15%.

Company A is made up for teaching. Numbers are illustrative only.

Avoid these

Common mistakes

  • Applying a margin to an optimistic value. A 30% discount to an inflated estimate is no discount.
  • Treating a falling price as a margin of safety. Only the gap to value counts.
  • Using one number. Work out a low, base and high value and test the price against all three.
  • Demanding the same margin for every business. Less predictable businesses deserve a wider cushion.

Quick answers

What is a good margin of safety?

There is no universal number. Many value investors use 25–50%, with a wider margin for businesses whose future is harder to predict. The Gingernomics house rule for a predictable, high-quality business is a price at or below about 70% of a conservative value estimate.

Where does the value estimate come from?

From your own work, typically a discounted cash flow model built on conservative assumptions. The free Starter DCF spreadsheet and the DCF calculator are good places to begin.

Does a large margin of safety mean a stock will go up?

No. It only means the price is below your estimate. Your estimate can be wrong, and prices can stay low for a long time. This tool is for learning, not a recommendation.

Next step

Go further with the full models

Free lead magnet

Get the free Five Criteria cheat sheet

The one-page screen we run before spending hours on any business. Delivered straight away.

Free. Education, not advice. Unsubscribe in one click. Privacy