Finance tools

Margin of safety calculator

Free margin of safety calculator for stocks and value investing. Apply the margin of safety formula with your fair value per share and market price to see margin of safety percentage, cushion in dollars per share, and an illustrative verdict — or set a target MOS for the maximum price to pay. Live results, formula card, CSV/PDF export. (For sales above break-even, use our break-even calculator — accounting margin of safety, not stock MOS.)

What is margin of safety in investing?

Margin of safety formula

Investment margin of safety

Margin of safety percentage vs dollars

How to use this margin of safety calculator

  1. Enter fair value per share

    Use your intrinsic value estimate from a DCF, Graham model, or blended valuation — this tool does not fetch live quotes.

  2. Calculate MOS or target buy price

    Choose Calculate MOS and add market price, or Target buy price and pick a target MOS % (10–50% presets).

  3. Read MOS %, verdict, and export

    Review margin of safety %, dollar cushion, and illustrative verdict bands — then export CSV or PDF if needed.

What is a good margin of safety?

Margin of safety vs break-even margin of safety

Worked examples

Excel and Google Sheets formulas

CalculationFormula (A = fair value, B = price)
MOS %=(A1-B1)/A1
MOS % (formatted)=TEXT((A1-B1)/A1,"0.00%")
Alternate MOS %=1-B1/A1
MOS dollars per share=A1-B1
Max price for 20% MOS=A1*(1-0.2)
Max price (target % in C1)=A1*(1-C1)

How to estimate fair value

Limitations and disclaimer

Discover more calculators for time tracking, payroll, and HR.

Frequently asked questions

How do you calculate margin of safety for a stock?

MOS (%) = (Fair value − Market price) ÷ Fair value × 100 (same as 1 − Price ÷ Fair value). MOS in dollars = Fair value − Market price per share. Enter fair value and price above for live results.

What is the margin of safety in investing?

In value investing, margin of safety is the discount of market price to your intrinsic or fair value estimate — a buffer against model error and volatility. It is not the same as break-even margin of safety in accounting.

What is the margin of safety formula?

For investing: (Fair value − Price) / Fair value. Equivalently 1 − Price/Fair value. For break-even analysis the formula uses sales and breakeven — see our break-even calculator.

What is a good margin of safety percentage?

Graham often cited 20–35% for equities. Higher MOS implies more conservative pricing or higher model uncertainty — there is no single correct number for every stock.

Can margin of safety be negative?

Yes. Negative MOS means market price is above your fair value estimate — no discount cushion relative to your model. Quality compounders can trade above simple fair value for long periods.

How do I find the maximum price to pay?

Use Target buy price mode: Max price = Fair value × (1 − Target MOS% ÷ 100). Example: $100 fair value and 20% target MOS → pay at most $80.

How is fair value estimated?

Common methods include DCF, Graham’s formula, and peer multiples. Use our intrinsic value calculator for Graham + DCF fair value, then enter the result here.

What is Warren Buffett's margin of safety?

Buffett describes buying below estimated intrinsic value with room for error — a DCF mindset plus business quality judgment. This calculator applies the arithmetic MOS once you supply fair value and price.

Is margin of safety the same as profit margin?

No. Profit margin is profit ÷ revenue on a product or business. Margin of safety here is the discount of stock price to your fair value estimate.

Is this the same as safety stock in inventory?

No. Safety stock is extra inventory to buffer demand variability. This tool is for investment margin of safety. For inventory, see our safety stock calculator.

What is the difference between intrinsic value and margin of safety?

Intrinsic (fair) value is your per-share worth estimate. Margin of safety measures how far price sits below that estimate. Compute fair value with our intrinsic value calculator; compute MOS here.

Is 20% margin of safety enough?

It can be reasonable for established businesses with predictable earnings — but “enough” depends on model risk, debt, and cyclicality. Many investors demand more MOS for speculative names.

What is margin of safety in dollars?

MOS ($) = Fair value − Market price per share. A positive number means price sits below your fair value; negative means price is above your estimate. This calculator shows the dollar cushion alongside MOS %.

What is a 30% margin of safety on a $100 fair value?

For stock valuation, a 30% MOS on $100 fair value means you would pay at most $70 per share (100 × (1 − 0.30)). That is different from a 30% retail markup on $100 cost — use this tool only for investing MOS, not product pricing.

Is this investment advice?

No. This calculator is for education and planning only. Verify inputs and consult qualified professionals before investing.