Build a DCF in Excel from the Formula Up
A business unit is up for sale and the board wants a view of value before the bankers arrive. The DCF template from the last deal has 14 tabs, a WACC tab nobody can explain, and an enterprise value that moved by 4 million when someone changed a cell on the tax tab. Nobody can say which assumptions matter most.
A discounted cash flow valuation is a single formula: the present value of forecast free cash flows plus the present value of a terminal value. Building it from that formula, in a few rows of Excel 2021 or 365, makes every number traceable and makes it obvious where the answer comes from. This post builds a five-year DCF in millions, with a 10% discount rate and 2.5% long-term growth.
The formula
Enterprise value = Σ FCF(t) / (1+WACC)^t + TV / (1+WACC)^N
FCF(t) is free cash flow in year t, WACC the discount rate, N the last forecast year, and TV the terminal value at the end of year N. Everything else in a DCF model exists to produce those inputs.
Free cash flow
Unlevered free cash flow is cash generated by operations after the investment needed to sustain them, before any financing:
FCF = EBIT × (1 - tax rate) + depreciation - capex - increase in working capital
Build it in rows, one per component, so each can be checked against the operating model. For the example, the five years come to 1.20, 1.40, 1.60, 1.75 and 1.90.
The components come from the forecast, not from the DCF tab. Depreciation from the fixed asset schedule, capex from the capex plan, working capital from the DSO, DIO and DPO schedules. If the DCF tab is calculating any of these itself, there are now two versions of the forecast. The depreciation schedule post covers why capex and depreciation should converge by the final forecast year.
Discount the forecast years
With FCF in B10:F10:
=NPV(WACC, B10:F10)
NPV discounts the first value by one year, which is right here: the valuation date is today and year one’s cash arrives over the coming year. The result is 5.83. If you use a mid-year convention, multiply by (1+WACC)^0.5; the NPV vs XNPV post covers the convention and the period-zero error that catches most inherited templates.
The terminal value
Beyond year five, assume free cash flow grows at a constant long-term rate forever. The Gordon growth formula gives its value at the end of year five:
=F10 * (1 + g) / (WACC - g)
1.90 × 1.025 / (10% – 2.5%) = 25.97. Discount it back five years:
=TV / (1+WACC)^5
That is 16.12. Enterprise value is 5.83 + 16.12 = 21.95.
Look at where the answer comes from
The terminal value is 73% of enterprise value. That is typical, and it is the most important number on the page. Three quarters of the valuation rests on two assumptions about the period after the forecast: the growth rate and the discount rate. The five years of detailed forecasting contribute about a quarter.
Show the split on the summary. A reader who sees “73% from terminal value” asks the right questions about g and WACC instead of debating year-three gross margin.
Sensitivity: WACC and growth
Because the terminal value is sensitive to the gap between WACC and g, put both in a grid:
| WACC \ g | 2.0% | 2.5% | 3.0% |
|---|---|---|---|
| 9% | 25.46 | ||
| 10% | 20.87 | 21.95 | 23.18 |
| 11% | 19.26 |
A one-point change in WACC moves value by 2.7 to 3.5 million; half a point of growth moves it by 1.1 to 1.2 million. Fill the grid with a data table or, better, with the formula written directly for each cell, which avoids the calculation-time and refresh issues data tables bring.
Sanity checks that catch bad assumptions
Implied exit multiple. Terminal value over final-year FCF is 13.7 times. Convert it to a multiple of EBITDA and compare with what similar businesses trade at. If the DCF implies a multiple far above the market, the growth or WACC assumption is generous.
Growth below the economy. g is growth forever. Above long-run nominal GDP growth, the business eventually becomes the economy. Most practitioners keep it at or below long-run inflation plus a little real growth.
Steady state in the final year. The terminal formula assumes year five is a normal year that can grow at g. If year five still has heavy growth capex, a working capital build, or margins that are still expanding, the terminal value capitalizes a year that is not steady. Extend the forecast until it is.
Reinvestment consistent with growth. Growth needs investment. A terminal value that grows at 2.5% with capex equal to depreciation and no working capital increase assumes growth for free.
From enterprise value to equity value
Enterprise value is the value of the operations to all capital providers. Equity value subtracts net debt (debt less cash) and other claims such as leases, pension deficits and minority interests:
Equity value = Enterprise value - Net debt - Other claims
With 4.0 of net debt, equity value is 17.95. Use the balance sheet at the valuation date, and make sure the cash flows and the claims are consistent: if lease payments are excluded from FCF, lease liabilities are deducted here.
Where it breaks
WACC below g. The terminal formula returns a negative or infinite value. If the inputs allow it, add a check that flags g ≥ WACC.
Levered cash flow at an unlevered rate. FCF after interest discounted at WACC double-counts financing. Unlevered FCF goes with WACC; flows to equity go with the cost of equity.
Nominal and real mixed. Nominal cash flows need a nominal discount rate and a nominal g. A real growth rate on nominal flows understates value; the reverse overstates it.
One scenario. A DCF presented as one number hides the range. Show the sensitivity grid and at least a downside case next to the base.
