DCF explained: formula, worked example and common mistakes
Estimate the intrinsic value of a stock using discounted cash flow and Graham Number. Two valuation methods, one calculator. Free, no sign-up, your numbers stay in your browser.
Updated
What is a DCF (discounted cash flow) valuation?
A discounted cash flow (DCF) valuation is a method of estimating what a business is worth today, based on the cash it is expected to generate in the future. The core idea is that a unit of cash generated 10 years from now is worth less than a unit of cash today — because you could invest today’s dollar and earn a return on it. The DCF applies a discount rate to future cash flows to bring them back to present-day dollars, then sums them up to arrive at an estimate of the company’s intrinsic value.
DCF is the valuation method favored by most professional investors, including Warren Buffett, because it is grounded in the fundamental economics of the business rather than in market sentiment or relative valuation multiples. A DCF says: this business is worth the present value of all the cash it will ever throw off to its owners. If the market price is below that intrinsic value, the stock is undervalued; if above, it is overvalued.
The challenge with DCF is that it requires you to forecast the future — specifically, the company’s free cash flow for the next 5-10 years, the long-term (terminal) growth rate after that, and an appropriate discount rate that reflects the riskiness of those cash flows. Each of these inputs is uncertain, and small changes in assumptions produce large changes in the calculated intrinsic value. This is why DCF is often described as much an art as a science: the math is straightforward, but the inputs require judgment.
The standard DCF process has three steps. First, project the company’s free cash flow (FCF) for an explicit forecast period, typically 5-10 years. Free cash flow is the cash the business generates after operating expenses and capital expenditures — the cash that could theoretically be distributed to shareholders. Second, estimate a terminal value representing all cash flows beyond the explicit forecast period, using either the perpetuity growth method (FCF grows at a constant rate forever) or the exit multiple method (apply a multiple to the final year’s FCF). Third, discount all projected cash flows and the terminal value back to present value using a discount rate — typically the company’s weighted average cost of capital (WACC), which is the blended return required by debt and equity investors.
The Graham Number is a simpler alternative developed by Benjamin Graham, Warren Buffett’s teacher. It is a heuristic rather than a true DCF: it estimates intrinsic value as the square root of (22.5 × earnings per share × book value per share). The 22.5 constant embeds Graham’s view that a fair P/E for a no-growth company is 15 and a fair P/B is 1.5, so 15 × 1.5 = 22.5. The Graham Number is useful as a quick screen, but it ignores growth, capital efficiency, and most of the inputs that a proper DCF considers.
The reason both methods exist in the same calculator is that they answer different questions. DCF is rigorous but sensitive to assumptions; Graham Number is crude but robust. Running both on the same stock gives you a sanity check — if they agree, you have reasonable confidence in the valuation; if they disagree wildly, you know your assumptions need revisiting.
The DCF formula
The DCF intrinsic value is calculated as:
Intrinsic value = Σ [FCF_t / (1 + r)^t] + [TV / (1 + r)^N]
Where:
- FCF_t = free cash flow in year t
- r = discount rate (as a decimal — 0.10 for 10%)
- N = number of years in the explicit forecast period
- TV = terminal value at the end of year N
- Σ = sum over all years from t=1 to t=N
The terminal value is most commonly calculated using the perpetuity growth method:
TV = FCF_(N+1) / (r - g)
Where:
- FCF_(N+1) = free cash flow in year N+1 (the year after the explicit forecast period)
- r = discount rate
- g = terminal growth rate — the rate the cash flows grow at for ever, which has to stay below the growth of the economy
Worked example: A company generates 1,000 in FCF this year, expected to grow at 12% for the next 5 years, then 3% per year forever. Discount rate is 10%. Shares outstanding: 100.
Year 1 FCF = 1,000 × 1.12 = 1,120
Year 2 FCF = 1,120 × 1.12 = 1,254
Year 3 FCF = 1,254 × 1.12 = 1,405
Year 4 FCF = 1,405 × 1.12 = 1,574
Year 5 FCF = 1,574 × 1.12 = 1,763
Present value of each year’s FCF: PV1 = 1,120 / 1.10 = 1,018 PV2 = 1,254 / 1.21 = 1,036 PV3 = 1,405 / 1.331 = 1,056 PV4 = 1,574 / 1.464 = 1,075 PV5 = 1,763 / 1.611 = 1,094
Sum of explicit PVs = 5,279
Terminal value at year 5:
FCF6 = 1,763 × 1.03 = 1,816
TV = 1,816 / (0.10 - 0.03) = 1,816 / 0.07 = 25,943
PV of TV = 25,943 / 1.611 = 16,107
Total intrinsic value (firm value) = 5,279 + 16,107 = 21,386
Per share = 21,386 / 100 shares = 213.86 per share
If the stock currently trades at 150, the DCF suggests it is undervalued by about 30%. If it trades at 300, it is overvalued by about 40%.
The Graham Number formula:
Graham Number = √(22.5 × EPS × BVPS)
Where:
- EPS = earnings per share (trailing 12 months)
- BVPS = book value per share (most recent quarter)
- 22.5 = Graham’s constant (15 × 1.5)
Worked example: A company has EPS of 8 and BVPS of 40.
Graham Number = √(22.5 × 8 × 40) = √(7,200) = 84.85 per share
If the stock trades at 70, Graham Number suggests undervaluation. If it trades at 120, overvaluation.
The calculator runs both methods. Open the calculator and enter your own numbers to see how the two valuations compare.
When to use a DCF calculator (and when not to)
Use this calculator when:
- You are evaluating whether to buy a stock and want to estimate its intrinsic value.
- You already own a stock and want to reassess your buy/sell/hold decision as the business evolves.
- You want to compare two companies in the same industry and see which offers more value at the current price.
- You are stress-testing your investment thesis by running different growth and discount rate assumptions.
- You want a quick valuation sanity check using the Graham Number alongside the more rigorous DCF.
When NOT to use this calculator:
- If the company is not yet profitable (negative or unstable free cash flow), DCF produces unreliable results. Use a revenue multiple or other growth-stage valuation method instead.
- If the company is a financial institution (banks, insurance companies), free cash flow is not a meaningful metric for them due to regulatory capital requirements. Use dividend discount model or excess return on equity instead.
- If you are valuing a private startup with no historical cash flow data, your growth and discount rate assumptions will be guesses. Use comparable company multiples or a venture capital method instead.
- If you want a relative valuation (P/E, EV/EBITDA, price-to-sales), use the Company Ratio Scorecard instead. DCF gives you an intrinsic value; the scorecard gives you a relative valuation.
- If you want to know the company’s financial health (solvency, profitability), use the Altman Z + Piotroski F-Score calculator. DCF tells you the value; Z and F tell you whether the company will survive.
Common mistakes people make
1. Using an unrealistic growth rate. The single most common error. If you assume a company will grow FCF at 20% per year for 10 years, your intrinsic value will be enormous — and almost certainly wrong. Very few companies hold a high growth rate for a decade. Pick a rate you can defend from the company’’s own record, then run the model again a few points either side and see how much of the answer was the assumption.
2. Using a too-low discount rate. The discount rate reflects how risky the cash flows are, which is what the company’s cost of capital measures. Discounting a company’s cash flows at a government bond rate says they are as certain as a government’s, and they never are.
3. Using a terminal growth rate above the GDP growth rate. The terminal growth rate is supposed to be the perpetual growth rate of the company’s cash flows — forever. If you set it at 5% when long-term GDP growth is 3%, you are implicitly assuming the company will eventually become larger than the entire economy, which is impossible. Cap the terminal growth rate at 2-3% (the long-term GDP growth rate plus inflation).
4. Using accounting earnings instead of free cash flow. Earnings (net income) is an accounting concept that includes non-cash items like depreciation and amortization. Free cash flow is the actual cash the business generates. DCF requires cash, not earnings. Always use FCF — operating cash flow minus capital expenditures.
5. Forgetting to subtract net debt. The DCF calculation above produces enterprise value (the value of the entire business, including debt). To get equity value (what shareholders own), you have to subtract net debt (total debt minus cash). A company with 100 of enterprise value and 40 of net debt has equity value of only 60. Many DCF calculations skip this step and dramatically overstate per-share intrinsic value.
6. Confusing intrinsic value with market price. DCF gives you an estimate of intrinsic value — what the business is fundamentally worth. Market price is what investors are currently paying. The two can diverge for years at a time. A DCF that says “intrinsic value 100” when the market price is 80 does not guarantee the price will rise to 100 — it only suggests the stock is undervalued by your assumptions.
Frequently asked questions
What is a DCF valuation?
A discounted cash flow (DCF) valuation estimates a company's intrinsic value by projecting its future free cash flows and discounting them back to present value. The method is grounded in the idea that a business is worth the present value of all the cash it will ever generate for its owners.
What is free cash flow?
Free cash flow (FCF) is the cash a company generates after operating expenses and capital expenditures — the cash that could theoretically be distributed to shareholders. It is calculated as operating cash flow minus capital expenditures. FCF is the input DCF requires because it reflects actual cash generation, not accounting earnings.
Which discount rate goes in?
The company's weighted average cost of capital — the blended return its lenders and its owners require. It rises with the risk of the cash flows, and it never sits below the return on a government bond, because that is what the money could earn without taking the risk at all. Work it out for the company in front of you rather than borrowing a figure.
Which terminal growth rate goes in?
It is the rate the cash flows are assumed to grow at for ever, once the forecast years run out. It has to stay below the long-run growth of the economy itself: anything higher says the company eventually becomes the whole economy, which cannot happen.
What is the Graham Number?
The Graham Number is a simpler valuation heuristic developed by Benjamin Graham. It estimates intrinsic value as the square root of (22.5 × earnings per share × book value per share). The 22.5 constant embeds Graham's view that a fair P/E for a no-growth company is 15 and a fair P/B is 1.5, so 15 × 1.5 = 22.5. It is a quick screen, not a true DCF.
Why does my DCF give a very different value from the Graham Number?
DCF and Graham Number use different inputs and assumptions. DCF uses free cash flow, growth rates, and a discount rate; Graham Number uses earnings and book value with a fixed multiplier. The Graham Number ignores growth (it treats all companies the same), while DCF explicitly models growth. If they agree, you have reasonable confidence in the valuation; if they disagree wildly, your assumptions need revisiting.
How accurate is DCF?
DCF is only as accurate as its inputs. With realistic assumptions (conservative growth, appropriate discount rate, capped terminal growth), DCF gives a defensible estimate of intrinsic value within ±20-30%. With aggressive assumptions, DCF can produce any intrinsic value you want. The value of DCF is not in the precise number but in the discipline of articulating your assumptions.
DCF or relative valuation — what does each answer?
Both have their place. DCF gives you intrinsic value based on the company's own cash generation; relative valuation tells you how the market is pricing the company compared to peers. Smart investors use both: a DCF to identify undervalued companies, then relative valuation to confirm the discount isn't justified by some fundamental weakness the DCF missed.
This tool shows math, not advice.
Cite this page
Copy this line into a reference list, a report or a spreadsheet note.
Investment Math Calculator. “DCF Calculator”. Updated 2026-10-27. https://investmentmathcalculator.com/guides/dcf-calculator/
Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.