Blog
Model First Margin of Safety Calculation for Self Directed Investors
Compute and defend a margin of safety using a model first workflow. Learn the formulas, run sensitivity and scenario tests, and apply TickerWorth's...

The margin of safety is the buffer between a stock’s estimated intrinsic value and its market price, expressed either as a percentage, (intrinsic value minus market price) divided by intrinsic value times 100, or as a dollar figure, intrinsic value minus market price. Both numbers come from a completed valuation model, not from the market price alone, and neither guarantees an outcome: they quantify a buffer against estimation error, nothing more.
TL;DR:
- Use intrinsic value as the percentage denominator and report the dollar buffer per share; a negative result means market price exceeds estimated value.
- Use matching valuation and quote dates, subtract net debt, divide by diluted shares, and keep cash flows and discount rates both nominal or both real.
- Set a wider required margin for volatile cash flows, high leverage, weak disclosure, or dependence on terminal assumptions; stable, transparent businesses may warrant less.
- Vary growth and discount rates separately, then require positive margins in central and mild downside scenarios; a negative result exposes dependence on favorable assumptions.
Table of Contents
- Exact formulas and quick reference
- Step-by-step workflow: from your valuation model to a usable margin-of-safety number
- How to choose a required margin percentage
- Scenario and sensitivity testing to validate the margin
- Worked hypothetical example
- Practical workflow using TickerWorth data and models
- Author perspective: why margins matter, and their limits
- Where to run these calculations: try TickerWorth’s fair values and Pro model
- FAQ
- Sources
Exact formulas and quick reference
The percentage version is the one most practitioners quote first: margin of safety (%) equals (intrinsic value minus market price) divided by intrinsic value, multiplied by 100. The dollar buffer is simpler: intrinsic value minus market price, stated per share so it lines up with the price you see on a quote screen. When intrinsic value sits below market price, the formula returns a negative number, a useful flag rather than an error, according to CFA Institute’s overview of the practice.

Screeners and watch lists often work backward from a required margin to a threshold price: threshold price equals intrinsic value multiplied by (1 minus required margin percentage). That rearrangement, confirmed in the same CFA Institute discussion, turns a margin policy into a single number you can compare against a live quote.
A few conventions worth fixing before you build a model:
- Decide whether the percentage denominator is intrinsic value or market price; intrinsic value is the more common and defensible choice for reporting.
- State whether the dollar buffer is per share or on a total equity basis; mixing the two inside one model is a common source of error.
- Keep the sign convention consistent, a negative margin always means market price exceeds intrinsic value, never the reverse.
Step-by-step workflow: from your valuation model to a usable margin-of-safety number
A margin-of-safety figure is only as reliable as the model feeding it, so the mechanical steps matter as much as the formula itself.
- Confirm the valuation date on your model matches the timestamp on the market price you are comparing against; a stale price or a model built on last quarter’s numbers will distort the margin.
- If your model produces enterprise value, subtract net debt and other claims to reach equity value, then divide by a fully diluted share count, not basic shares outstanding.
- Apply the percentage and dollar formulas from the section above using that per-share intrinsic value and the current market price.
- Check that your cash flows and discount rate are matched on a nominal or real basis; discounting nominal cash flows with a real WACC (or the reverse) silently inflates or shrinks the margin.
- Re-run the comparison after any material model update, since a margin calculated on stale assumptions is not a margin at all.
The most common errors are mechanical rather than conceptual. Using basic share count instead of diluted shares overstates per-share intrinsic value. Comparing an equity-value model’s output against an enterprise-value benchmark, or vice versa, produces a margin that has no real meaning. Mismatched valuation and price dates can make a margin look wider or narrower than it actually is on any single day. Aswath Damodaran’s valuation notes stress that cash flow, life, and discount-rate inputs should each be checked individually rather than folded into one cosmetic adjustment, which is exactly what a sloppy share-count or date mismatch does without anyone noticing, as explained in Damodaran’s introduction to valuation.
Pro Tip: Keep a dated snapshot of the market price alongside every valuation run; a margin recalculated six months later without that snapshot is not comparable to the original figure.
How to choose a required margin percentage
The right starting point is the model’s own uncertainty: how volatile the cash flows are, how much the valuation depends on a terminal-growth assumption decades out, and how transparent the company’s reporting is. Damodaran’s valuation notes draw a useful line between estimation uncertainty, meaning a bad model or weak inputs, and economic uncertainty, meaning genuine unpredictability in the business itself; a margin of safety is meant to address the second only after the first has been tested, a point made directly in his valuation notes.
Several factors tend to push the required margin higher or lower:
- Thin disclosure, high leverage, or governance concerns argue for a wider margin.
- Volatile or cyclical cash flows widen the error bars on any discounted cash flow output, which argues for more buffer.
- Stable, well-covered cash flows with transparent reporting can justify a narrower margin.
- A heavy reliance on a single terminal-growth or multiple assumption calls for extra caution regardless of the business’s apparent stability.
Some practitioners use rough bands, a smaller margin for low-uncertainty names and a substantially larger one for speculative or thinly covered companies, but these bands are illustrative starting points, not fixed rules. Whatever number you land on, write down the reasoning next to the model so a future reread of your own notes explains why that margin, not a different one, applied at the time.
Scenario and sensitivity testing to validate the margin
A margin calculated once, under one set of assumptions, tells you less than a margin that survives being pushed around. Sensitivity testing on the two inputs that move intrinsic value the most, growth and discount rate, shows how fragile or durable the buffer actually is.
- Hold every other input fixed and vary the growth assumption up and down by a percentage point or two, recording the resulting margin at each step.
- Repeat the exercise for the discount rate, since a WACC that is off by even half a point can swing intrinsic value meaningfully in a long-duration model.
- Build three to five discrete scenarios, a central case, a mild downside, and an extreme downside, and track the margin under each rather than relying on a single point estimate.
- Flag any case where the margin turns negative or collapses toward zero; that is the model telling you the buffer depends on optimistic assumptions holding.
One of the more consistent findings in trading and strategy research is that a handful of outcomes tells you very little: reliable conclusions about a method generally require a much larger sample of trials than most individual investors run, a caution that applies just as directly to scenario testing a single valuation as it does to evaluating a trading strategy.
A workable acceptance rule for many investors is to require the margin to stay positive in both the central and mild-downside cases, treating any exception as something to document explicitly rather than quietly override. That standard will not suit every situation, but it gives a model-driven rationale, rather than a gut feeling, for how big a margin deserves to be and when it breaks down.
Worked hypothetical example
Hypothetical company, illustrative numbers only, not a real business and not a forecast.
- Dollar margin: $50 minus $38 equals a $12 per-share buffer.
- Percentage margin: $12 divided by $50, multiplied by 100, equals a 24% margin of safety.
- Threshold price for a 20% required margin: $50 multiplied by (1 minus 0.20) equals a $40 threshold, meaning the stock would need to trade at or below $40 to clear that particular policy.
That swing from 24% to 7% on two modest assumption changes is the entire point of running the sensitivity: a margin that only looks comfortable under one set of inputs was never as wide as the headline number suggested.
Practical workflow using TickerWorth data and models
We publish fair value, market price, and the resulting valuation gap for each covered stock, with a time stamp on every figure so the inputs behind a margin calculation are never a mystery, starting from a stock’s own intrinsic-value page. Every assumption behind that fair value, the model type, the growth and discount-rate inputs, the filing or feed it came from, is documented on the same page rather than buried behind a single opaque number, a structure we explain in full in our methodology.
- Pull a stock’s published fair value and timestamp, then subtract the live market price to get your starting dollar and percentage margin.
- Use an editable model to adjust growth and WACC assumptions and watch the margin recalculate under your own scenario assumptions.
- Note that we decline to publish a fair value at all for businesses, including many banks, insurers, REITs, and regulated utilities, where the underlying data cannot support one, which keeps a missing number from being mistaken for a safe one.
- Keep in mind that none of this is investment advice; document your own assumptions and required margin alongside whatever figures you pull from the site.
Author perspective: why margins matter, and their limits
A margin of safety is discipline made explicit: it forces you to write down how much estimation error you are willing to tolerate before the math starts working against you. It is not protection against being wrong about the business itself, only against being slightly wrong about the model. Keep dated records of every margin you calculate, re-test them on a fixed schedule, and disclose your assumptions as plainly as you would want a model built by someone else to disclose theirs.
— Miraaj Patel
Where to run these calculations: try TickerWorth’s fair values and Pro model
We built TickerWorth so every fair value comes with the full calculation behind it, the model type, the data source, and a timestamp, rather than a single number you have to take on faith. That transparency is what makes a margin-of-safety figure something you can actually defend later, not just a number that looked reassuring the day you calculated it.

- Look up a covered company’s published fair value and gap on its intrinsic-value page as a starting point for your own margin calculation.
- Compare the Free tier against Pro, priced at $99 per year or $14.99 per month, if you want the editable model, full screener, and downloadable workbook for running your own scenario tests.
- Browse our screen of stocks trading below published fair value to see how a threshold-price approach applies across a watch list.
This article is general information, not a substitute for advice from a qualified financial advisor. Consult a qualified financial professional about your own circumstances before acting on anything here.
FAQ
What is the difference between margin of safety and intrinsic value?
Intrinsic value is a model’s estimate of what a company is worth per share; margin of safety is the gap between that estimate and the current market price, expressed as a dollar amount or a percentage. One is an output of a valuation model, the other is a comparison between that output and the market.
Is there a standard required margin-of-safety percentage?
No single percentage applies universally. Practitioner discussion from CFA Institute frames the required margin as a judgment call tied to model uncertainty and confidence in the inputs, not a fixed industry standard.
Does a large margin of safety mean a stock is a safe buy?
A large calculated margin reflects the gap in one model under one set of assumptions, not a guarantee about the business or the stock’s future price. Damodaran’s valuation notes stress stress-testing the underlying cash flow and discount-rate assumptions separately, since the market price may reflect information the model does not capture.
How does TickerWorth calculate the fair value used in a margin-of-safety calculation?
We combine multiple valuation approaches, including discounted cash flow, peer multiples, and asset or dividend-based models depending on the company, with every input and data source documented on the stock’s own page, as described in our methodology. We do not publish a fair value for companies, such as many banks, insurers, and REITs, where the underlying data cannot reliably support one.
Sources
Recommended
- Stocks priced for perfection: implied growth vs reality
- Stocks trading below our fair value
- Canadian stocks trading below our fair value
- Best businesses below fair value, by TickerWorth Score
This article was written with AI assistance and edited for TickerWorth. It is educational only and is not investment advice, a recommendation or a price target. Figures are as of the publish date; for the live, sourced valuation of any company, see tickerworth.com.
Fair value
Check any ticker’s fair value
Type a ticker for today’s estimate of what the business is worth, with every assumption and where it came from. When the data can’t support a number, the page says why.