Stocks
DCF Calculator: How to Use One Without Fooling Yourself
One hypothetical company, ten years of cash flow discounted by hand, and the moment you see how much of the answer rests on two numbers you guessed.
A discounted cash flow calculator does four things in order. It projects free cash flow forward for a set number of years, discounts each of those future amounts back to what they are worth today, adds net cash from the balance sheet, and divides by the share count to produce an intrinsic value per share. The DCF calculator on this site runs a ten year forecast. What comes out of it is arithmetic performed faithfully on numbers you supplied. Change one input and the answer moves. You guessed most of those inputs.
Everything below is about the gap between that arithmetic and the confidence people attach to it, because a model that prints a value to the cent invites you to treat two decimal places as knowledge when the guesses underneath them, about growth and risk and the shape of an industry a decade from now, are wide enough to move the answer by half in either direction without anyone involved having been unreasonable.
What each input does to the answer
The calculator asks for nine numbers. Here is what moving each one does.
Current free cash flow is the starting point, and it is the only input you can take from a document. Cash from operations minus capital expenditures, straight off the cash flow statement, which how to read financial statements derives line by line. One year is a weak base if it held a legal settlement, a tax refund or an unusually light year of capital spending, so most people average three years or normalize by hand before typing anything. Double this number and you double the valuation. The relationship is linear and there is nowhere for an error here to hide.
Shares outstanding is the divisor. Use the diluted count, since options and convertibles that have not converted yet still will, and heavy issuance quietly shrinks the per share figure even while the business does fine.
Growth for years 1 to 5 is the input people argue about most and it deserves less of that attention than it gets, because five years of 8 percent compounding lifts the cash flow base by about 47 percent and the discounting claws most of that back before it reaches the total. Growth for years 6 to 10 matters even less. Leave the field empty and the tool runs a five year horizon.
Terminal growth is the rate you assume cash flow grows at forever once the forecast ends. Forever is a long time. Nothing outgrows the economy permanently, so a terminal rate much above 3 percent is a claim that the company eventually becomes the economy. The discount rate is your required annual return, standing in for risk, the time value of money and your own opportunity cost at once. Raising it lowers every present value in the model and shrinks the terminal value twice over, once through the perpetuity denominator and again through the ten year discount factor applied to it.
Net cash is cash minus total debt, added after the discounting because it already sits on the balance sheet. More debt than cash means a negative entry. Current share price changes nothing in the valuation and exists only so the tool can show upside. Margin of safety changes nothing either, and it sets the buy-below price.
A worked valuation, carried to a per share figure
Here is a company that does not exist. Free cash flow of $500m in the last year, 400m shares outstanding, 8 percent growth for five years, 4 percent for the five after that, terminal growth of 2.5 percent, a 9 percent discount rate, $200m of net cash, a current price of $24.00 and a 25 percent margin of safety.
Year one free cash flow is $500m x 1.08 = $540.0m, and discounted back one year at 9 percent that is $540.0 / 1.09 = $495.4m. Year two grows to $540.0 x 1.08 = $583.2m, then comes back two years at $583.2 / 1.1881 = $490.9m, where 1.1881 is 1.09^2. Carry the same two steps out to year ten, switching the growth rate to 4 percent from year six, and you get the table below.
| Year | Free cash flow ($m) | Discount factor | Present value ($m) |
|---|---|---|---|
| 1 | 540.0 | 0.9174 | 495.4 |
| 2 | 583.2 | 0.8417 | 490.9 |
| 3 | 629.9 | 0.7722 | 486.4 |
| 4 | 680.2 | 0.7084 | 481.9 |
| 5 | 734.7 | 0.6499 | 477.5 |
| 6 | 764.1 | 0.5963 | 455.6 |
| 7 | 794.6 | 0.5470 | 434.7 |
| 8 | 826.4 | 0.5019 | 414.7 |
| 9 | 859.5 | 0.4604 | 395.7 |
| 10 | 893.8 | 0.4224 | 377.6 |
Add the right hand column and the ten forecast years are worth $4,510.3m in today’s money. Notice how flat that column is: cash flow grows every year while the discount factor shrinks every year, and the two effects very nearly cancel.
Now the eleventh year, which is where the model stops forecasting and starts assuming. Year eleven free cash flow is year ten grown at the terminal rate, $893.8 x 1.025 = $916.2m, and the perpetuity formula TV = FCF_11 / (r - g) converts that single year into the value of every year that follows it: $916.2 / (0.09 - 0.025) = $916.2 / 0.065 = $14,095m. That figure is measured at the end of year ten, so it still has to travel back to today, $14,095 / 2.3674 = $5,954m, using the same ten year factor of 1.09^10.
Enterprise value is $4,510 + $5,954 = $10,464m. Add the $200m of net cash for an equity value of $10,664m, divide by 400m shares, and the intrinsic value is $10,664 / 400 = $26.66 a share. Against the $24.00 price that is 11.1 percent of upside.
Where the value actually came from
Look at the split. The ten years you modeled contributed $4,510m. The perpetuity you assumed contributed $5,954m, which is 56.9 percent of enterprise value.
The majority of the answer is terminal value. That is normal, it holds across most reasonable setups, and it is the single fact that almost no walkthrough of a DCF calculator bothers to report, which matters because the terminal value is manufactured entirely by the discount rate and the terminal growth rate, so a reader who has just watched ten years of careful arithmetic scroll past tends to believe the output is mostly built from that arithmetic when in truth it is mostly built from two numbers typed in without evidence.
The sensitivity table that matters more than the output
Same company, same cash flows, same growth path. Only the discount rate and the terminal growth rate move.
| Discount rate | g = 1.5% | g = 2.0% | g = 2.5% | g = 3.0% | g = 3.5% |
|---|---|---|---|---|---|
| 8% | $28.50 | $29.93 | $31.63 | $33.66 | $36.14 |
| 9% | $24.55 | $25.53 | $26.66 | $27.98 | $29.54 |
| 10% | $21.54 | $22.24 | $23.03 | $23.93 | $24.97 |
| 11% | $19.17 | $19.68 | $20.25 | $20.90 | $21.62 |
The grid runs from $19.17 to $36.14. The low corner is 47 percent below the high corner, and nothing in that range is indefensible, since an 8 percent required return with 3.5 percent terminal growth describes an optimist while an 11 percent return with 1.5 percent growth describes a pessimist, and both of them are looking at exactly the same company with exactly the same free cash flow history in front of them. This grid is the real output of a DCF calculator. The headline number is one cell of it.
Why r minus g is dangerous
Keep the discount rate at 9 percent and raise terminal growth to 8 percent. The spread narrows to one percentage point. Year eleven cash flow becomes $893.8 x 1.08 = $965.3m, terminal value becomes $965.3 / 0.01 = $96,534m, the present value of that is $40,777m, and the intrinsic value jumps to $113.72 a share with 90 percent of it sitting in the perpetuity. Nothing about the business changed. The denominator collapsed.
Set terminal growth equal to the discount rate and the arithmetic has no answer at all, which is why the calculator stops and says so. Treat any terminal spread under about 4 percentage points with suspicion, and check the terminal share of value every single time you move either input.
Margin of safety
The margin of safety input discounts your own estimate before you compare it to the market. Twenty five percent off $26.66 gives $26.66 x 0.75 = $20.00, so the buy-below price is $20.00 while the stock trades at $24.00. On these assumptions you wait.
How wide that haircut should be follows from the grid. A model whose plausible range spans $19 to $36 is telling you it cannot distinguish a cheap stock from an expensive one with any precision, and the 25 percent discount here lands at roughly the figure the same model produces when the correct discount rate turns out to have been 11 percent, which is an entirely reasonable thing to be wrong about.
Where a DCF stops working
Negative or erratic free cash flow defeats the method. Compounding a guess from a guess is an expensive way to produce a number with no information in it, and a company whose cash flow swings from positive to negative and back across a cycle gives you no credible base year to start from.
Banks and insurers need a different framework. Their balance sheet is the business, borrowing is raw material, and free cash flow has no clean meaning. Price to book and return on equity do more of the work there, as covered in stock valuation basics.
Early-stage companies push every dollar of cash flow past the forecast window, which amounts to saying the entire valuation is terminal value. At that point you have stopped modeling. You are picking a number.
The worst case is the one you do to yourself: opening the calculator with a price you have already decided you like, then nudging growth and the discount rate until the output clears it. Solving backwards feels like analysis and produces nothing you did not already believe. For the honest version, write your assumptions down before you open the tool, check whether compounding at that rate is plausible with the CAGR calculator, cross-read the answer against a simple multiple from the P/E ratio calculator, and put the whole exercise in its place among the other checks in how to analyze a stock.
Frequently asked questions
What does a DCF calculator actually calculate?
It projects a company's free cash flow forward for a fixed number of years, discounts each year back to present value at a rate you choose, adds a terminal value covering everything beyond the forecast window, adds net cash from the balance sheet and divides by the share count. The output is an intrinsic value per share. It is arithmetic applied to your assumptions, so the quality of the answer is capped by the quality of those assumptions.
What discount rate should I use in a DCF?
The discount rate is your required annual return on a company of this risk, which is why there is no single correct figure. Many investors anchor on a long run equity return somewhere around 8 to 10 percent and adjust upward for small, indebted or cyclical businesses. Whatever you pick, run the model again two percentage points either side and look at how far the answer travels before you act on it.
Why is the terminal value so large in a DCF?
The terminal value stands in for every year after the explicit forecast, which is an infinite stretch of time compressed into one number by the perpetuity formula. In the worked example on this page it accounts for about 57 percent of enterprise value, and in many reasonable setups it runs higher still. That means the bulk of your valuation comes from two inputs you estimated, the discount rate and the terminal growth rate.
What terminal growth rate is reasonable?
Long run inflation or a little above it, which in practice means roughly 2 to 3 percent. A terminal rate above about 3 percent assumes the company grows faster than the whole economy forever, which would eventually make it the entire economy. The formula divides by the discount rate minus the growth rate, so pushing terminal growth close to the discount rate makes the value run away to nonsense.
When should you avoid using a DCF model?
Skip it when free cash flow is negative, erratic or still years away, because compounding a guess from a guess does not produce insight. Banks and insurers need a different framework, since their balance sheet is the business and free cash flow carries no clean meaning for them. Valuation multiples on comparable companies are the usual fallback in both cases.