Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceStochastic ModelsGuide
Guide
Derivatives pricing
01Forwards, calls and puts02Combining positions03Arbitrage and the forward price04Put–call parity05The one-step binomial model06Risk-neutral probabilities07Multi-step trees and backward induction08American options and early exercise09Delta and hedging10Geometric Brownian motion11The Black–Scholes formula12The Greeks: gamma, vega, theta and rho13Implied volatility and the volatility smile14Stochastic volatility and the Heston model15Static replication: Breeden–Litzenberger and Carr–Madan16Exotic options: barriers, Asians and digitals
Portfolio & risk
01Returns and volatility02Diversification and correlation03The efficient frontier and the capital market line04Risk aversion and the optimal complete portfolio05CAPM, beta and the security market line06Performance measures: Sharpe, Treynor, Jensen and information ratio07Factor models and systematic risk08Value at Risk and expected shortfall
Fixed income
01Bond prices and yields02Duration and convexity03Immunization and duration matching04Spot rates, forward rates and the yield curve05Bond futures and the cheapest-to-deliver06Interest rate swaps07Callable bonds and negative convexity08Credit risk: default probabilities and credit spreads
Corporate finance
01Interest, compounding and discounting02Annuities, perpetuities and loan amortization03Net present value and internal rate of return04The weighted average cost of capital05Capital structure and the Modigliani–Miller theorems06Discounted cash flow valuation07Relative valuation with multiples08Real options: the value of flexibility
Stochastic models
01Random walks and Brownian motion02Probability spaces, σ-algebras and random variables03Filtrations, adapted processes and stopping times04Conditional expectation and martingales05Properties of Brownian motion06The reflection principle and first passage times07The Brownian bridge08The Itô integral09Itô's lemma10Kolmogorov equations and the Feynman–Kac formula11Change of measure and Girsanov's theorem12Monte Carlo option pricing13Simulating SDEs: the Euler–Maruyama scheme14Mean reversion: Ornstein–Uhlenbeck and Vasicek15Jumps and the Merton jump-diffusion model
Knowledge graph

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Guide/Corporate finance

Discounted cash flow valuation

Lesson 6 of 8 · 1 min read

The lesson "Net present value and internal rate of return" valued a single project by discounting its cash flows. A whole firm can be valued the same way: it is a collection of projects that keeps producing cash. This lesson builds a discounted cash flow (DCF) valuation from the firm's free cash flows, the WACC from "The weighted average cost of capital", and a formula for cash flows that continue forever.

Free cash flow

The cash flow to discount is the free cash flow (FCF): the cash the firm's operations generate in a year after paying taxes and making the investments needed to keep growing, but before any payments to lenders or shareholders. With ttt the corporate tax rate,

FCF=EBIT (1−t)+depreciation−capital expenditure−ΔNWC.\text{FCF} = \text{EBIT}\,(1 - t) + \text{depreciation} - \text{capital expenditure} - \Delta\text{NWC}.FCF=EBIT(1−t)+depreciation−capital expenditure−ΔNWC.

Each term has a reason. EBIT (earnings before interest and taxes) is operating profit; EBIT(1−t)\text{EBIT}(1-t)EBIT(1−t) is that profit after the tax the operations would pay with no debt, so financing is kept out of the cash flow, as "The weighted average cost of capital" required. Depreciation is an accounting charge, not a cash payment, so it is added back. Capital expenditure is cash spent on new equipment and buildings. ΔNWC\Delta\text{NWC}ΔNWC is the increase in net working capital (inventories plus receivables minus payables), cash tied up in day-to-day operations.

Example: EBIT of 200, t=25%t = 25\%t=25%, depreciation of 40, capital expenditure of 60 and an increase in working capital of 10 give FCF=150+40−60−10=120\text{FCF} = 150 + 40 - 60 - 10 = 120FCF=150+40−60−10=120.

Enterprise value

Free cash flow belongs to all investors together, lenders and shareholders. Discounting it at the WACC therefore gives the value of the whole firm, its enterprise value:

EV=∑k=1∞FCFk(1+WACC)k.\text{EV} = \sum_{k=1}^{\infty} \frac{\text{FCF}_k}{(1 + \text{WACC})^k}.EV=k=1∑∞​(1+WACC)kFCFk​​.

The sum has no end, because a firm has no fixed maturity. In practice it is split in two: an explicit forecast of the next few years, usually five, where the analyst projects each cash flow, and a terminal value that summarises everything after.

Growing perpetuity

To value the cash flows beyond the forecast, assume that from some point they grow at a constant rate ggg forever: FCFk+1=FCFk (1+g)\text{FCF}_{k+1} = \text{FCF}_k\,(1+g)FCFk+1​=FCFk​(1+g). Write WWW for the WACC. The present value of such a stream, starting with FCF1\text{FCF}_1FCF1​ in one year, is a geometric series with ratio (1+g)/(1+W)(1+g)/(1+W)(1+g)/(1+W):

∑k=1∞FCF1(1+g)k−1(1+W)k=FCF11+W∑j=0∞(1+g1+W)j=FCF1W−g.\sum_{k=1}^{\infty} \frac{\text{FCF}_1 (1+g)^{k-1}}{(1+W)^k} = \frac{\text{FCF}_1}{1+W} \sum_{j=0}^{\infty} \Big(\frac{1+g}{1+W}\Big)^j = \frac{\text{FCF}_1}{W - g}.k=1∑∞​(1+W)kFCF1​(1+g)k−1​=1+WFCF1​​j=0∑∞​(1+W1+g​)j=W−gFCF1​​.

The series converges only when g<Wg < Wg<W. This is the Gordon growth formula. A growth rate at or above the discount rate would give an infinite value, which signals an impossible assumption: no firm can outgrow the economy forever.

Terminal value

Apply the formula at the end of the forecast. If the forecast covers years 1 to 5, the terminal value at year 5 is the value then of all cash flows from year 6 on:

TV5=FCF6W−g,EV=∑k=15FCFk(1+W)k+TV5(1+W)5.\text{TV}_5 = \frac{\text{FCF}_6}{W - g}, \qquad \text{EV} = \sum_{k=1}^{5} \frac{\text{FCF}_k}{(1+W)^k} + \frac{\text{TV}_5}{(1+W)^5}.TV5​=W−gFCF6​​,EV=k=1∑5​(1+W)kFCFk​​+(1+W)5TV5​​.

The terminal value is itself a future amount, so it is discounted back five years like any other cash flow.

A worked example

Take FCF1=10\text{FCF}_1 = 10FCF1​=10, growing at g=2%g = 2\%g=2% per year forever, and W=9%W = 9\%W=9%. The forecast cash flows are 10, 10.20, 10.40, 10.61 and 10.82; discounted at 9% they are worth 9.17, 8.59, 8.03, 7.52 and 7.04.

Worked example

Enterprise value with a five-year forecast and a terminal value

  1. Present value of the five forecast years.

    ∑k=15FCF1(1+g)k−1(1+W)k\displaystyle \sum_{k=1}^{5} \frac{\text{FCF}_1 (1+g)^{k-1}}{(1+W)^k}k=1∑5​(1+W)kFCF1​(1+g)k−1​=40.35
  2. The first cash flow after the forecast.

    FCF6=FCF1(1+g)5\displaystyle \text{FCF}_6 = \text{FCF}_1 (1+g)^5FCF6​=FCF1​(1+g)5=11.04
  3. Terminal value at year 5, from the Gordon formula.

    TV5=FCF6W−g\displaystyle \text{TV}_5 = \frac{\text{FCF}_6}{W - g}TV5​=W−gFCF6​​=157.73
  4. Discount the terminal value back five years.

    TV5(1+W)5\displaystyle \frac{\text{TV}_5}{(1+W)^5}(1+W)5TV5​​=102.51
  5. Enterprise value: the forecast years plus the discounted terminal value.

    EV=∑k=15FCFk(1+W)k+TV5(1+W)5\displaystyle \text{EV} = \sum_{k=1}^{5} \frac{\text{FCF}_k}{(1+W)^k} + \frac{\text{TV}_5}{(1+W)^5}EV=k=1∑5​(1+W)kFCFk​​+(1+W)5TV5​​=142.86

Since one growth rate applies to every year here, this equals the Gordon formula for the whole stream, 10/0.07≈142.8610/0.07 \approx 142.8610/0.07≈142.86, which is a useful check.

Most of a DCF value usually sits in the terminal value. In the example it is 102.51/142.86≈71.8%102.51/142.86 \approx 71.8\%102.51/142.86≈71.8% of the total, so the long-run assumptions on ggg and the WACC matter more than the detailed forecast.

Sensitivity to the assumptions

Because W−gW - gW−g sits in a denominator, small changes in either have large effects. Raising ggg from 2% to 4% lifts the value from 142.86 to 10/0.05=20010/0.05 = 20010/0.05=200; lowering the WACC from 9% to 8% lifts it to 10/0.06≈166.6710/0.06 \approx 166.6710/0.06≈166.67. The present value of the five forecast years barely moves in either case. A DCF valuation should therefore always be reported with a range of ggg and WACC values, not as a single number.

The figure shows this split. It plots, against ggg, the present value of years 1 to 5, the present value of the terminal value, and their total, for a firm with FCF1=10\text{FCF}_1 = 10FCF1​=10 and a five-year forecast. Sliders set the WACC and ggg; the readouts give the total value, the terminal value's share and the present value of the forecast years at the chosen ggg; ggg can be raised up to 5%, and at most to one point below the WACC. The defaults (WACC 9%, g=2%g = 2\%g=2%) reproduce the example: 142.86, about 71.8% from the terminal value. Raise ggg and note that the terminal part grows steeply while the forecast part stays almost flat; lower the WACC and both rise.

DCF value: forecast years and terminal valueOpen in Valuation (DCF) →
9.00%
0.060.14
2.00%
00.05
PV of years 1–5PV of terminal valueTotal value
Total value
142.86
Terminal value share
71.8%
PV of years 1–5
40.35

From enterprise value to equity value

Enterprise value belongs to lenders and shareholders together. The shareholders' part, the equity value, is what remains after subtracting net debt (debt minus cash):

equity value=EV−(debt−cash),value per share=equity valuenumber of shares.\text{equity value} = \text{EV} - (\text{debt} - \text{cash}), \qquad \text{value per share} = \frac{\text{equity value}}{\text{number of shares}}.equity value=EV−(debt−cash),value per share=number of sharesequity value​.

Example: with EV=142.86\text{EV} = 142.86EV=142.86, debt of 45, cash of 5 and 10 shares, the equity value is 142.86−40=102.86142.86 - 40 = 102.86142.86−40=102.86, or about 10.29 per share. Comparing this with the market price is how an analyst decides whether a share looks cheap or expensive.

Summary

  • Free cash flow is the cash operations produce after tax and investment, before any financing payments.
  • Discounting free cash flow at the WACC gives the enterprise value of the firm.
  • A stream growing at g<Wg < Wg<W forever is worth FCF1/(W−g)\text{FCF}_1/(W - g)FCF1​/(W−g); applied at the end of the forecast, this is the terminal value.
  • The terminal value usually dominates, so results are very sensitive to ggg and the WACC.
  • Equity value is enterprise value minus net debt.
Try itBuild a DCF valuation and test the terminal value assumptions in the Valuation lab →
2 questions on this lesson at the end of the series →
← PreviousCapital structure and the Modigliani–Miller theoremsNext →Relative valuation with multiples
Connections
Discounted cash flow valuation
Open the full graph →
Labs for this lesson
Valuation (DCF)