Blog
Model Deep-Dives14 min4 May 2026

How to Build a DCF (Discounted Cash Flow) Model in Excel

Alex Tapio

By Alex Tapio

Key Takeaways

  • UFCF is the foundation: It represents cash available to all investors and must account for changes in working capital and CapEx, not just NOPAT.
  • WACC matters enormously: A 1% error in the discount rate can swing the valuation by 15-20%. Estimate it carefully using CAPM, and use reasonable market data.
  • Terminal value dominates: Often 60-80% of your DCF value comes from the terminal value. Use realistic assumptions (2-3% perpetual growth or market-based exit multiples) and always test both methods.
  • Sensitivity analysis is non-negotiable: Never present a single-point DCF valuation. Build a two-way table showing outcomes across different WACC and terminal growth scenarios, and frame your answer as a range.
  • Sanity-check against peers: If your DCF valuation is far outside the range of trading multiples for comparable companies, investigate the discrepancy. A DCF should inform market value, not contradict it blindly.
  • Build for flexibility: Centralise all assumptions on a dedicated sheet. Use formulas, not hardcoded numbers. This lets you run scenarios in seconds and makes the model auditable for investors, lenders, or advisors.
  • Common mistakes are all deadly: Over-optimistic growth assumptions, forgetting working capital changes, and unrealistic terminal growth rates are the top reasons DCF valuations fail. Be conservative in your assumptions and transparent in your sensitivity analysis.

For more on financial modelling fundamentals, see our guide to building a 3-statement financial model. To deepen your understanding of valuation, explore our NPV calculator and WACC calculator.

A DCF (Discounted Cash Flow) model is the gold standard for company valuation. By projecting free cash flows over a forecast period, calculating a terminal value, and discounting everything back to present value using your company's cost of capital, you arrive at its intrinsic equity value. This guide walks you through the full model structure, the math, a worked example, and the sensitivity analysis that separates a credible DCF from a numbers-game fiction.

The DCF model is the most theoretically rigorous valuation method in finance. Unlike relative valuation (comparing a company to trading multiples of its peers), a DCF builds a bottom-up forecast of the company's ability to generate cash and anchors valuation in that fundamental economic reality. For investment professionals, DCF is the default tool for merger analysis, private equity underwriting, and long-term equity research.

But the DCF is also deceptively sensitive to assumptions. A 1% change in the discount rate or a 0.5% change in the terminal growth rate can swing your valuation by 20-30%. This is why the best DCF models are built with flexibility, transparency, and sensitivity analysis baked in from the start.

flowchart TD A["Forecast Period Years 1-5"] --> B["Unlevered Free Cash Flow UFCF"] B --> C["Terminal Value Gordon Growth or Exit Multiple"] C --> D["Sum of Discounted UFCF + Discounted Terminal Value"] D --> E["Enterprise Value"] E --> F["Less: Net Debt"] F --> G["Equity Value"]

The DCF Valuation Framework: From Free Cash Flow to Equity Value


Structuring the Model

A professional DCF in Excel follows a clear sheet architecture:

  1. Assumptions: All input drivers (revenue growth, tax rate, WACC, terminal growth rate, etc.).
  2. Income Statement Forecast: Revenue, operating margins, EBIT, and net income for the forecast period.
  3. Balance Sheet Forecast: Working capital, CapEx, and depreciation schedules.
  4. Free Cash Flow: Calculation of unlevered free cash flow.
  5. DCF Valuation: Discount factors, present values, terminal value, and final equity value.
  6. Sensitivity Analysis: Tables showing valuation across WACC and terminal growth scenarios.

The golden rule: never hardcode an assumption. Every input must live on the Assumptions sheet, and every formula on the other sheets must reference it. This allows you to run scenarios in seconds and makes the model auditable.


Forecasting Free Cash Flow (UFCF)

Unlevered Free Cash Flow (UFCF) represents the cash available to all investors—both debt and equity holders—before financing costs. The formula is:

UFCF = EBIT × (1 - Tax Rate) + Depreciation - CapEx - Change in Net Working Capital

Let's break each component:

EBIT (Earnings Before Interest and Taxes)

Your income statement forecast must project revenue, gross margin, and operating expenses (S&M, R&D, G&A) for the forecast period (typically 5 years).

Key assumptions:

  • Revenue growth rate (often declining over time, e.g., 25% Year 1 → 15% Year 2 → 10% Year 3 → 5% Year 4–5).
  • Gross margin % (typically stable unless there's a structural shift in the business).
  • Operating expense ratios as a % of revenue (or fixed growth rates for mature costs).
// Year 1 Revenue (from Assumptions sheet)
= Assumptions!$B$3

// Year 2 Revenue (assuming growth rate in Assumptions B4)
= Year1_Revenue * (1 + Assumptions!$B$4)

// Gross Profit
= Revenue - (Revenue * Assumptions!$B$5)

// EBIT
= Gross_Profit - SandM - RandD - GA

Tax Rate

Apply the statutory or normalized tax rate to EBIT. For multi-jurisdictional companies, use a blended rate.

= EBIT * (1 - Assumptions!$B$10)

Depreciation & Amortization

Depreciation is a non-cash expense. It reduces taxable income but does not reduce cash. For simplicity, you can assume depreciation as a percentage of opening PP&E (e.g., 10% per year) or link it to a detailed PP&E schedule.

// Simple approach: Depreciation as % of opening PP&E
= PP&E_Opening * Assumptions!$B$15

CapEx (Capital Expenditures)

CapEx is cash spent on acquiring or maintaining fixed assets. It's typically driven as a percentage of revenue (e.g., 8% for a capital-intensive manufacturing business, 3% for a software company).

// CapEx as % of Revenue
= Revenue * Assumptions!$B$16

Change in Net Working Capital (NWC)

Working capital includes Accounts Receivable (AR), Inventory, and Accounts Payable (AP). As revenue grows, a company typically needs more AR and inventory to support sales, which ties up cash. Conversely, an increase in AP generates cash.

// Net Working Capital
= (AR + Inventory) - AP

// Change in NWC (use of cash if positive)
= NWC_Current - NWC_Prior

If the company is growing, increases in NWC are typically positive (a use of cash). In mature or declining businesses, NWC can decrease (a source of cash).

Putting It Together: UFCF

Here's a worked numerical example. Assume we're valuing a SaaS company with the following assumptions:

Assumption Value
Year 1 Revenue $50M
Revenue Growth Rates (Y2–Y5) 30%, 20%, 15%, 10%
Gross Margin 75%
S&M as % of Revenue 18%
R&D as % of Revenue 15%
G&A as % of Revenue 8%
Tax Rate 25%
Depreciation as % of Revenue 2%
CapEx as % of Revenue 3%
NWC as % of Revenue 10%

Forecast:

Metric Year 1 Year 2 Year 3 Year 4 Year 5
Revenue $50.0M $65.0M $78.0M $89.7M $98.7M
Gross Profit $37.5M $48.8M $58.5M $67.3M $74.0M
Gross Margin % 75% 75% 75% 75% 75%
S&M $9.0M $11.7M $14.0M $16.1M $17.8M
R&D $7.5M $9.8M $11.7M $13.5M $14.8M
G&A $4.0M $5.2M $6.2M $7.2M $7.9M
EBIT $17.0M $22.1M $26.6M $30.5M $33.5M
EBIT Margin % 34% 34% 34% 34% 34%
Tax (25%) $4.3M $5.5M $6.7M $7.6M $8.4M
NOPAT $12.8M $16.6M $20.0M $22.9M $25.1M
+ Depreciation (2% Rev) $1.0M $1.3M $1.6M $1.8M $2.0M
- CapEx (3% Rev) $1.5M $2.0M $2.3M $2.7M $3.0M
- Δ NWC (10% Rev) $0M $1.5M $1.3M $1.2M $0.9M
UFCF $12.3M $14.4M $18.0M $20.8M $23.2M
UFCF Margin % 24.6% 22.2% 23.1% 23.2% 23.5%

Calculating WACC

WACC (Weighted Average Cost of Capital) is the blended return required by all investors. It is the discount rate in the DCF.

WACC = (E / V) × Cost of Equity + (D / V) × Cost of Debt × (1 - Tax Rate)

Where:

  • E / V: Market value of equity as a % of total firm value.
  • Cost of Equity: Return required by shareholders (typically 8-12% for public companies, higher for private or early-stage).
  • D / V: Market value of debt as a % of total firm value.
  • Cost of Debt: Interest rate paid on the company's debt (e.g., 4% for an investment-grade company).
  • Tax Rate: Reduces the effective cost of debt because interest is tax-deductible.

Cost of Equity (Using CAPM)

The Capital Asset Pricing Model (CAPM) is the standard method:

Cost of Equity = Risk-Free Rate + Beta × Market Risk Premium
  • Risk-Free Rate: Yield on a 10-year government bond (e.g., 4.5% in 2026).
  • Beta: Measure of the stock's sensitivity to market movements (1.0 = moves with the market; 1.5 = 50% more volatile).
  • Market Risk Premium: Expected return above the risk-free rate (typically 5-6% for equities).

Example: If the risk-free rate is 4.5%, Beta is 1.2, and the market risk premium is 5.5%:

Cost of Equity = 4.5% + 1.2 × 5.5% = 4.5% + 6.6% = 11.1%

Cost of Debt

Use the weighted average interest rate on the company's debt, or for a private company, estimate based on credit rating or comparable company yields.

Example: If a company has $200M of debt with an average interest rate of 4.2%:

Cost of Debt = 4.2%

After tax (25% tax rate):

After-Tax Cost of Debt = 4.2% × (1 - 0.25) = 3.15%

Putting It Together

Assuming the SaaS company has $500M in equity and $100M in debt:

Component Value
Market Value of Equity (E) $500M
Market Value of Debt (D) $100M
Total Firm Value (V) $600M
E / V 83.3%
D / V 16.7%
Cost of Equity 11.1%
After-Tax Cost of Debt 3.15%
WACC (83.3% × 11.1%) + (16.7% × 3.15%) = 9.6%

Terminal Value (Gordon Growth vs. Exit Multiple)

The terminal value represents the company's value at the end of the forecast period, extending to infinity. This is often 60-80% of the total DCF value, so getting it right is critical.

Gordon Growth Method

The Gordon Growth formula assumes the company grows at a constant rate forever:

Terminal Value = UFCF_Year5 × (1 + Terminal Growth Rate) / (WACC - Terminal Growth Rate)

For the SaaS example (Year 5 UFCF = $23.2M, WACC = 9.6%, terminal growth = 2.5%):

Terminal Value = $23.2M × (1 + 0.025) / (0.096 - 0.025) = $23.2M × 1.025 / 0.071 = $336.6M

Key insight: The terminal growth rate must be realistic. For mature companies, 2-3% (roughly GDP growth) is standard. Do not use high terminal growth rates (>5%) unless there's a compelling structural reason.

Exit Multiple Method

Alternatively, assume the company is sold at a future date at a market multiple:

Terminal Value = UFCF_Year5 × Exit Multiple

Or using a more common metric (EBITDA):

Terminal Value = EBITDA_Year5 × EV/EBITDA Multiple

If the SaaS company is projected to have $35.5M EBITDA in Year 5 (EBIT + Depreciation) and you assume a 12x EV/EBITDA exit multiple (typical for SaaS):

Terminal Value = $35.5M × 12 = $426M

Which Method to Use?

Both are defensible. The Gordon Growth method is more conservative and theoretically sound for mature companies. The Exit Multiple method is useful if you have strong market comparables. The best practice is to calculate both and present a range.

Terminal Value Method Gordon Growth Exit Multiple Range
Assumption 2.5% perpetual growth 12x EV/EBITDA
Terminal Value $336.6M $426M $336.6M–$426M

Discounting to Present Value

Each year's free cash flow is discounted back to present value using the WACC:

Present Value of UFCF = UFCF_Year / (1 + WACC) ^ Year

The discount factor for Year 5 at 9.6% WACC is:

Discount Factor Year 5 = 1 / (1.096) ^ 5 = 0.6568
PV of Year 5 UFCF = $23.2M × 0.6568 = $15.2M

Complete Discounting Schedule:

Year UFCF Discount Factor (9.6%) Present Value
1 $12.3M 0.9124 $11.2M
2 $14.4M 0.8324 $12.0M
3 $18.0M 0.7593 $13.7M
4 $20.8M 0.6927 $14.4M
5 $23.2M 0.6321 $14.7M
Sum of PV (Years 1–5) $66.0M

Terminal Value at End of Year 5 (Gordon Growth): $336.6M

PV of Terminal Value = $336.6M × 0.6321 = $212.8M

Enterprise Value:

Enterprise Value = PV of UFCF (Years 1-5) + PV of Terminal Value
Enterprise Value = $66.0M + $212.8M = $278.8M

Alternatively, using the Exit Multiple terminal value:

PV of Terminal Value = $426M × 0.6321 = $269.3M
Enterprise Value = $66.0M + $269.3M = $335.3M

Bridge from Enterprise Value to Equity Value

Enterprise Value is the value of the entire firm, available to all investors. To arrive at equity value (per shareholders), adjust for net debt:

Equity Value = Enterprise Value - Net Debt

Where:

Net Debt = Total Debt - Cash and Cash Equivalents

For the SaaS company, assume:

  • Total Debt: $100M
  • Cash: $25M
  • Net Debt: $100M - $25M = $75M

Gordon Growth Scenario:

Equity Value = $278.8M - $75M = $203.8M

Exit Multiple Scenario:

Equity Value = $335.3M - $75M = $260.3M

Valuation Range: $203.8M–$260.3M (or a mid-point of ~$232M).

If the company has 10M fully diluted shares outstanding:

Implied Valuation per Share (Gordon Growth) = $203.8M / 10M = $20.38
Implied Valuation per Share (Exit Multiple) = $260.3M / 10M = $26.03

Live example: DCF Model in Excel

Loading...

Sensitivity Analysis

A single DCF valuation is not credible without sensitivity analysis. Create a two-way sensitivity table that shows how the valuation changes with different WACC and terminal growth rate assumptions.

The WACC–Terminal Growth Sensitivity Matrix

WACC (%) \ Terminal Growth (%) 1.5% 2.0% 2.5% 3.0% 3.5%
8.6% $381M $415M $455M $503M $561M
9.1% $316M $337M $362M $392M $429M
9.6% $266M $279M $294M $311M $331M
10.1% $227M $237M $247M $259M $272M
10.6% $195M $203M $211M $221M $231M

Each cell shows the enterprise value at that intersection. The highlighted row/column represents your base-case WACC (9.6%) and terminal growth (2.5%), yielding ~$294M enterprise value.

Interpreting the Sensitivity Table

  • High WACC (10.6%), Low Terminal Growth (1.5%): Conservative scenario, $195M valuation.
  • Low WACC (8.6%), High Terminal Growth (3.5%): Optimistic scenario, $561M valuation.
  • Base Case (9.6% WACC, 2.5% terminal growth): $294M valuation.

The range from conservative to optimistic is nearly 3x, which illustrates why sensitivity analysis is essential. Always present your valuation as a range, not a single point estimate.


Common Mistakes to Avoid

  1. Over-Optimistic Revenue Growth: Projecting 40% revenue growth indefinitely. Real companies eventually mature. Use declining growth rates (e.g., 25% → 15% → 10% → 5%).
  2. Inconsistent Margin Assumptions: Growing revenue 20% but keeping operating margins at 30% in perpetuity. As companies scale, some costs become fixed (G&A), so margins typically expand or stabilize, not balloon indefinitely.
  3. Forgetting Changes in Working Capital: If your company is growing, AR and inventory grow proportionally, tying up cash. Failing to account for this understates CapEx and overstates UFCF.
  4. Circular Reasoning on WACC: Using an excessively low WACC (e.g., 6%) based on a hypothetical capital structure the company doesn't actually have. Estimate WACC based on real, current market conditions or the target capital structure post-acquisition.
  5. Unrealistic Terminal Growth Rates: Assuming 4-5% terminal growth in a developed market (GDP growth is 2-3%). High terminal growth rates overstate valuation significantly.
  6. Ignoring Comparable Valuations: Getting a $500M DCF valuation for a company trading at $100M EV/Revenue when peers trade at 5x revenue. Sanity-check your DCF against trading multiples. If you get a significantly different answer, investigate why.
  7. Static Terminal Value: Using only the Gordon Growth method without testing an Exit Multiple scenario. Both methods are valid; showing a range is more credible.

Alex Tapio, founder of Finamodel and ex-Deloitte financial modelling expert

Alex Tapio

Founder of Finamodel • Professional Financial Modeller • Ex-Deloitte

Frequently asked questions

A DCF (Discounted Cash Flow) model is a valuation method that projects a company's future free cash flows and discounts them to their present value using a discount rate (WACC). The sum of these discounted cash flows plus a terminal value represents the company's intrinsic equity value. It's the most theoretically sound valuation method but requires careful assumptions about growth, margins, and capital intensity.

Unlevered Free Cash Flow (UFCF) is the cash available to all investors (debt and equity holders) before accounting for debt repayment or interest. It is calculated as EBIT × (1 - Tax Rate) + Depreciation - CapEx - Change in NWC. Levered Free Cash Flow (LFCF) subtracts interest and debt repayments, leaving only cash available to equity holders. DCF models typically use UFCF and discount it by WACC (a blended cost of both debt and equity), which is theoretically cleaner.

WACC (Weighted Average Cost of Capital) is the average return required by all investors (debt and equity holders). It reflects the cost of borrowing (after-tax), the cost of equity, and their relative weights in the company's capital structure. A higher WACC reduces the present value of future cash flows, leading to a lower valuation. WACC is the 'discount rate' in the DCF formula and is critical to getting the valuation right.

The two most common methods are the Gordon Growth Method (assumes perpetual growth at a constant rate, typically 2-3% for mature companies) and the Exit Multiple Method (assumes the company is sold at a future date at a market multiple like EV/EBITDA). The Gordon Growth Method is more conservative; the Exit Multiple Method requires an assumption about future market multiples. Most models use both and present a range.

Very sensitive. The final equity value is highly dependent on the discount rate (WACC), revenue growth rates, and terminal growth rate. Small changes in any of these inputs can swing the valuation by 20-30% or more. This is why sensitivity analysis—a table showing valuation across different WACC and terminal growth rate scenarios—is essential for any DCF model. Always present a range, not a single point estimate.

The top mistakes are: (1) Over-forecasting revenue growth or margins; (2) Using an inappropriate discount rate (too low WACC overstates valuation); (3) Failing to account for changes in working capital; (4) Using inconsistent assumptions (e.g., revenue growth but constant margins); (5) Calculating terminal value with unrealistic perpetual growth rates; and (6) Not stress-testing the model with sensitivity analysis. Always sanity-check your final valuation against trading multiples of comparable companies.

Build this model with Finamodel

Describe your model in plain words. Get a fully dynamic Excel file in minutes.

Try Finamodel free