How to Build a DCF Model in Excel
A discounted cash flow model values a business as the present value of the cash it will generate. You project unlevered free cash flow for a forecast horizon, discount each year at the weighted average cost of capital, add a terminal value for the years beyond, and sum to enterprise value. From there you bridge to equity value and divide by shares to reach a per share figure.
The structure of a DCF
A DCF has four moving parts: a free cash flow forecast, a discount rate, a terminal value, and a bridge from enterprise value to equity value. The core present value relationship is PV = FCF / (1 + WACC) ^ t, where t is the number of years from the valuation date.
Use unlevered free cash flow so the cash flows match the discount rate. Unlevered FCF is EBIT * (1 - tax) + D&A - capex - change in NWC. Because it is before financing, you discount it at WACC, which blends the cost of equity and the after tax cost of debt.
Worked example: a five year forecast
Assume unlevered free cash flow grows from 100 in year 1 to 146 in year 5, a WACC of 10 percent, and a terminal growth rate of 2.5 percent. The terminal value uses Gordon growth: TV = FCF5 * (1 + g) / (WACC - g).
- Lay the forecast years across
C5:G5and put each year's unlevered FCF inC6:G6. - Build a discount factor row with
=1/(1+$B$2)^C5where$B$2holds WACC andC5holds the period number. - Multiply FCF by its factor:
=C6*C7to get the present value of each year, then sum them with=SUM(C8:G8). - Compute terminal value at year 5:
=G6*(1+$B$3)/($B$2-$B$3)where$B$3holds g. - Discount the terminal value back with the year 5 factor:
=TV*G7. - Enterprise value is the sum of discounted FCFs plus the discounted terminal value.
| Year | FCF | Factor at 10% | PV |
|---|---|---|---|
| 1 | 100 | 0.909 | 90.9 |
| 2 | 110 | 0.826 | 90.9 |
| 3 | 121 | 0.751 | 90.9 |
| 4 | 133 | 0.683 | 90.9 |
| 5 | 146 | 0.621 | 90.7 |
Sum of discounted FCF is about 454. Terminal value is 146*1.025/(0.10-0.025) = 1996, discounted at 0.621 to about 1239. Enterprise value is roughly 1693.
Bridging to equity value and per share
Enterprise value belongs to all capital providers. To reach the value of common equity, subtract net debt and other claims that rank ahead of common shareholders.
- Equity value = enterprise value - net debt - preferred - minority interest + investments in associates.
- Net debt is total debt minus cash and equivalents; pull it from the latest balance sheet, not the forecast.
- Divide equity value by diluted shares outstanding to get value per share.
- Keep WACC and growth in a clearly labeled assumptions block so a sensitivity table can flex them.
- Add a two way data table on WACC and g to show the value range rather than a single point estimate.
Common DCF errors
The most frequent mistake is discounting the wrong cash flow with the wrong rate. Unlevered FCF pairs with WACC; levered FCF pairs with the cost of equity. Mixing them double counts or omits the financing effect.
A second trap is a terminal growth rate above long run nominal GDP. A perpetual 5 percent grower eventually exceeds the whole economy, so keep g near expected long run inflation plus modest real growth, often 2 to 3 percent.
Formula Trace
Formula Trace follows the precedents behind your enterprise value cell so you can confirm each discounted cash flow and the terminal value feed the sum correctly.
Get ModelMint See how it worksFAQ
What discount rate do I use in a DCF?
Use the weighted average cost of capital when you discount unlevered free cash flow, because unlevered cash flows belong to both debt and equity holders. If you forecast levered free cash flow instead, discount at the cost of equity.
How many years should I forecast in a DCF?
Most DCFs use a five to ten year explicit forecast, long enough for the business to reach a steady state where growth and margins stabilize. The terminal value then captures everything beyond the explicit horizon.
Why is my enterprise value mostly terminal value?
A terminal value that is 60 to 80 percent of enterprise value is normal for a five year forecast. If it is above that, lengthen the explicit period or lower the terminal growth rate so more value comes from cash flows you actually modeled.