How to Calculate the Intrinsic Value of a Stock (DCF + Margin of Safety)
9 min read·
A plain-English guide to estimating a stock's intrinsic value with a discounted cash flow model, including the formula, a step-by-step worked example, and how to apply a margin of safety.
What intrinsic value actually means
Intrinsic value is an estimate of what a business is fundamentally worth based on the cash it can generate for owners over time, independent of today's market price. The core idea, formalised by John Burr Williams and popularised by Buffett and Graham, is that a stock is worth the present value of all future free cash flows it will produce. Price is what you pay; value is what you get. When your estimated intrinsic value sits meaningfully above the market price, the stock may be undervalued. The honest caveat: intrinsic value is not a fact, it is a model output. Change the assumptions and the answer changes, so treat it as a disciplined range, never a precise number.
The discounted cash flow (DCF) formula
A DCF discounts each year's projected free cash flow (FCF) back to today using a discount rate (r), then adds a terminal value for everything beyond the forecast window. The formula is: Intrinsic Value = Σ [ FCF_t / (1 + r)^t ] + [ Terminal Value / (1 + r)^n ] Terminal Value (Gordon Growth) = FCF_n × (1 + g) / (r − g) Here t is each year, n is the final forecast year, g is the perpetual growth rate, and r is your discount rate (often WACC, or a required return such as 9-11% for a diversified retail investor). Divide the resulting equity value by shares outstanding to get per-share intrinsic value. The mechanics are simple; the assumptions are where the work lives.
Worked example: a 5-year DCF
Assume a company with $100M free cash flow this year, FCF growing 8% per year for 5 years, a discount rate r = 10%, and terminal growth g = 3%. Projected FCF: Y1 $108.0M, Y2 $116.6M, Y3 $126.0M, Y4 $136.0M, Y5 $146.9M. Discounted: Y1 98.2, Y2 96.4, Y3 94.7, Y4 92.9, Y5 91.2 → sum ≈ $473.4M. Terminal Value = 146.9 × 1.03 / (0.10 − 0.03) = $2,161.5M, discounted back 5 years (÷1.61) ≈ $1,342M. Enterprise/equity value ≈ 473 + 1,342 = $1,815M. With 50M shares outstanding, intrinsic value ≈ $36.30 per share. Notice the terminal value is roughly 74% of the total, which is typical and exactly why your r and g assumptions dominate the result.
Choosing your inputs honestly
Free cash flow = operating cash flow − capital expenditures; use a normalised figure, not a one-off boom or bust year. Growth (g in the forecast) should be grounded in revenue history, margins, and reinvestment, and usually fade toward GDP-like rates over time. Perpetual growth must stay below long-run nominal economic growth (use 2-3%); a g near r produces absurd valuations. The discount rate reflects risk: higher for small, leveraged, or cyclical firms. Because outputs are so sensitive, run a sensitivity table: vary r by ±1% and g by ±0.5% and look at the range of values rather than a single point estimate. A DCF is only as trustworthy as its least defensible assumption.
Applying a margin of safety
Because every DCF is uncertain, Benjamin Graham insisted on a margin of safety: only buy when price is well below your estimated value, so errors in your assumptions don't sink you. Margin of safety = (Intrinsic Value − Price) / Intrinsic Value. If intrinsic value is $36.30 and the stock trades at $25, the margin of safety is (36.30 − 25) / 36.30 ≈ 31%. Many disciplined investors require 25-50% for higher-uncertainty businesses and less for stable, predictable ones. The margin isn't a guarantee of profit; it's a buffer against being wrong, and a reason to pass when the discount is thin.
Where DCF falls short (and what to pair it with)
DCF struggles with companies that have unpredictable cash flows, heavy reinvestment, or no profits yet, and it can't price optionality or regime shifts well. Garbage-in assumptions produce confident-looking garbage out. That's why a single intrinsic-value number is fragile in isolation. Cross-check it against relative valuation (P/E, EV/EBITDA versus peers and history), reverse-DCF (what growth is the current price implying?), and balance-sheet quality. Quality and solvency screens such as the Piotroski F-Score and Altman Z-Score tell you whether the cash flows you're discounting are durable in the first place. Triangulate; never anchor on one model.
Turning valuation into a repeatable process
Intrinsic value is most useful as one input in a consistent, comparable framework rather than a stand-alone verdict. The practical workflow: estimate value with a DCF and a sanity-check multiple, score the company's fundamental quality and solvency, confirm the technical and macro backdrop aren't fighting you, then demand an adequate margin of safety before acting. Doing this the same way for every candidate removes the biggest enemy of valuation work, which is moving the goalposts to justify a stock you already like. StoqPulse's composite score is built for exactly this: it normalises fundamental and technical inputs into a single 0-100 figure so your valuation work plugs into a disciplined, repeatable comparison.
FAQ
What is the difference between intrinsic value and market price?
Market price is what the stock currently trades for; intrinsic value is your estimate of what the business is fundamentally worth based on the present value of its future cash flows. When intrinsic value is meaningfully above price, the stock may be undervalued, and vice versa, though both depend on your assumptions.
What discount rate should I use in a DCF?
Use a rate that reflects the riskiness of the cash flows. Professionals often use the weighted average cost of capital (WACC); individual investors frequently use their required return, commonly 9-11% for a diversified equity, higher for small, leveraged, or cyclical companies. Test the result at ±1% to see how sensitive your valuation is.
Why is the terminal value such a large part of a DCF?
The terminal value captures every cash flow beyond your explicit forecast window, which is most of a company's life, so it routinely makes up 60-80% of the total. That's why the perpetual growth rate (keep it 2-3%, below long-run economic growth) and discount rate matter so much, and why a sensitivity range beats a single point estimate.
How big should my margin of safety be?
There's no universal number, but many value investors look for 25-50% below intrinsic value, demanding a wider margin for businesses with less predictable cash flows and a narrower one for stable, high-quality firms. The margin protects you against errors in your assumptions rather than guaranteeing a gain.
Is a DCF reliable for every stock?
No. DCF works best for businesses with relatively stable, predictable free cash flow. It's unreliable for early-stage, deeply cyclical, or non-profitable companies. For those, pair it with relative valuation multiples, a reverse-DCF, and quality and solvency checks like the Piotroski F-Score and Altman Z-Score rather than trusting one number.
Put this to work in StoqPulse
Composite scoring is included in your free 14-day trial — no credit card required.