Home / Guides / How to Build a DCF Model in Excel

How to Build a DCF Model in Excel

Valuation · Updated June 2026

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).

  1. Lay the forecast years across C5:G5 and put each year's unlevered FCF in C6:G6.
  2. Build a discount factor row with =1/(1+$B$2)^C5 where $B$2 holds WACC and C5 holds the period number.
  3. Multiply FCF by its factor: =C6*C7 to get the present value of each year, then sum them with =SUM(C8:G8).
  4. Compute terminal value at year 5: =G6*(1+$B$3)/($B$2-$B$3) where $B$3 holds g.
  5. Discount the terminal value back with the year 5 factor: =TV*G7.
  6. Enterprise value is the sum of discounted FCFs plus the discounted terminal value.
YearFCFFactor at 10%PV
11000.90990.9
21100.82690.9
31210.75190.9
41330.68390.9
51460.62190.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.

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.

Do it in one click

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 works

FAQ

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.