DCF Analysis - A Complete Walkthrough

Discounted cash flow analysis is the foundation of intrinsic valuation. It answers a deceptively simple question: what is a business worth based on the cash it will generate in the future? The logic is straightforward. A dollar received five years from now is worth less than a dollar received today, because today's dollar can be invested and compounded. A DCF model projects a company's future cash flows, then discounts them back to the present at a rate that reflects the riskiness of those cash flows. The sum of those discounted cash flows is the company's estimated intrinsic value.

Every major investment bank, private equity firm, and hedge fund uses DCF analysis as a core valuation tool. Goldman Sachs analysts build DCF models for every company they cover. Berkshire Hathaway's investment decisions rest on estimates of intrinsic value that are, at their core, discounted cash flow calculations. The method is not perfect, and its sensitivity to assumptions is both its greatest strength and its greatest weakness. But no serious investor can afford to skip it.

The Core Formula

The present value of a company's future cash flows is expressed as:

Enterprise Value = FCF1 / (1+r)^1 + FCF2 / (1+r)^2 + ... + FCFn / (1+r)^n + Terminal Value / (1+r)^n

Where:

  • FCF = free cash flow in each projected year
  • r = the discount rate (typically the weighted average cost of capital)
  • n = the number of years in the projection period
  • Terminal Value = the value of all cash flows beyond the projection period

This formula captures the two phases of a DCF: the explicit forecast period, where the analyst projects cash flows year by year, and the terminal value, which captures everything beyond that horizon.

Step 1: Project Revenue

Revenue projection is where the analyst's judgment matters most. Historical growth rates provide a starting point, but blindly extrapolating the past into the future is a common mistake. A company that grew revenue at 25% annually for five years may be entering a maturing market where 10% is more realistic.

Start by examining the company's revenue drivers. For a software company like Salesforce, that means the number of customers, average revenue per customer, and net retention rate. For a retailer like Walmart, it means same-store sales growth, new store openings, and e-commerce penetration. For an industrial company like Caterpillar, it means end-market demand from construction, mining, and infrastructure spending.

Build a three-to-five-year revenue projection based on these drivers. Use management guidance, industry growth estimates, and competitive dynamics as inputs. Be explicit about the assumptions behind each year's growth rate. A DCF model is only as good as the assumptions that feed it, and vague assumptions produce vague results.

Step 2: Project Operating Expenses and Margins

With revenue projected, the next step is estimating how much of that revenue converts to operating profit. Examine historical operating margins and identify trends. Has the company been expanding margins through operating leverage, or have rising costs been compressing them?

For companies with significant economies of scale, margins typically expand as revenue grows. Microsoft's operating margin expanded from roughly 33% in 2017 to over 44% by 2024 as its cloud business scaled. For companies in competitive commodity businesses, margins may remain flat or compress. Airlines, for instance, rarely sustain operating margins above 10% for more than a few years.

Project cost of goods sold, selling and general administrative expenses, and research and development spending as percentages of revenue or as absolute dollar amounts driven by specific factors. Be careful with companies that capitalize significant costs, as this shifts expenses from the income statement to the balance sheet and inflates reported operating margins.

Step 3: Calculate Free Cash Flow

Free cash flow is the cash a business generates after funding its operations and maintaining its asset base. The standard formula is:

Free Cash Flow = EBIT x (1 - Tax Rate) + Depreciation & Amortization - Capital Expenditures - Change in Net Working Capital

This formula starts with after-tax operating income, adds back non-cash charges (depreciation and amortization), subtracts capital expenditures required to maintain and grow the business, and adjusts for changes in working capital.

Working capital changes are often overlooked but can be significant. A rapidly growing retailer needs to invest in inventory before it can sell it, consuming cash even as reported profits rise. A software company that collects annual subscriptions upfront generates deferred revenue, a working capital benefit that boosts free cash flow above reported earnings.

For each year in the projection period, calculate free cash flow using projected revenue, margins, capex, and working capital assumptions. The result should be a series of annual free cash flow estimates: for example, $5.2 billion in year one, $5.8 billion in year two, and so on through year five.

Step 4: Determine the Discount Rate

The discount rate reflects the riskiness of the projected cash flows. For a DCF that values the entire enterprise (debt plus equity), the appropriate discount rate is the weighted average cost of capital (WACC). For a DCF that values only the equity, the cost of equity is used.

WACC combines the cost of equity and the after-tax cost of debt, weighted by their proportions in the company's capital structure:

WACC = (E/V) x Re + (D/V) x Rd x (1 - T)

Where:

  • E/V = equity weight
  • D/V = debt weight
  • Re = cost of equity (typically from the Capital Asset Pricing Model)
  • Rd = cost of debt (yield on the company's bonds or borrowing rate)
  • T = marginal tax rate

The cost of equity is usually the most contentious input. The Capital Asset Pricing Model estimates it as:

Cost of Equity = Risk-Free Rate + Beta x Equity Risk Premium

For a detailed treatment of each input, see the separate article on estimating cost of capital. For now, typical WACC ranges are 7-9% for large, stable companies and 10-14% for smaller or riskier businesses. Using a discount rate that is too low will overstate value; using one that is too high will understate it.

Step 5: Estimate Terminal Value

The terminal value captures the value of all cash flows beyond the explicit projection period. In most DCF models, terminal value accounts for 60-80% of total enterprise value, which makes it the single most influential number in the analysis.

There are two common approaches:

The Gordon Growth Model (perpetuity growth method) assumes cash flows grow at a constant rate forever:

Terminal Value = FCFn x (1 + g) / (WACC - g)

Where g is the perpetual growth rate. This rate should reflect long-term nominal GDP growth, typically 2-3% for a U.S. company. Using a growth rate above WACC produces an infinite value, which is mathematically impossible.

The Exit Multiple Method applies a valuation multiple to the final year's financial metric:

Terminal Value = EBITDAn x Exit EV/EBITDA Multiple

The exit multiple is typically based on the company's current trading multiple, the average multiple for its industry, or the multiple implied by the perpetuity growth method. An enterprise software company trading at 20x EBITDA today might be assigned a 15x exit multiple in year five, reflecting multiple compression as growth slows.

Both methods have weaknesses. The perpetuity growth method is highly sensitive to the assumed growth rate. The exit multiple method is circular, because it uses a market-derived multiple to estimate intrinsic value. The best practice is to use both methods and compare the results.

Step 6: Calculate Enterprise Value and Equity Value

With projected free cash flows, a discount rate, and a terminal value, the calculation becomes mechanical. Discount each year's free cash flow and the terminal value back to the present:

Enterprise Value = PV of Year 1 FCF + PV of Year 2 FCF + ... + PV of Year n FCF + PV of Terminal Value

To convert enterprise value to equity value, make the following adjustments:

Equity Value = Enterprise Value - Net Debt - Minority Interest - Preferred Stock + Associates/Investments

Net debt is total debt minus cash and cash equivalents. If a company has $50 billion in enterprise value, $10 billion in debt, and $5 billion in cash, its equity value is $45 billion.

To arrive at a per-share intrinsic value, divide equity value by the diluted share count:

Intrinsic Value Per Share = Equity Value / Diluted Shares Outstanding

Use diluted shares, not basic shares. Stock options, restricted stock units, and convertible securities all increase the share count and reduce per-share value.

A Worked Example: Starbucks

Consider a simplified DCF for Starbucks as of early 2024. The company generated approximately $3.6 billion in free cash flow in fiscal 2023 on $36 billion in revenue.

Revenue assumptions: 8% growth in year one, declining gradually to 5% by year five as the company's massive store base limits percentage growth. Operating margin: steady at approximately 16.5%, consistent with recent performance. Capital expenditures: approximately 7% of revenue for new stores and renovations. Tax rate: 24%.

These assumptions produce projected free cash flows of roughly $3.9 billion in year one, growing to approximately $4.8 billion by year five. Using a WACC of 8.5% and a terminal growth rate of 2.5%, the terminal value is approximately $82 billion. Discounting all cash flows and the terminal value back to the present produces an enterprise value of approximately $102 billion. Subtracting net debt of roughly $8 billion and dividing by approximately 1.14 billion diluted shares yields an intrinsic value of roughly $82 per share.

This is a simplified illustration. A real DCF would include more granular assumptions about store economics, regional growth rates, and margin drivers. But it demonstrates the mechanical process.

Common Mistakes

Overly optimistic growth assumptions. Projecting 15% revenue growth for a decade is almost always wrong. Among S&P 500 companies, fewer than 5% sustain double-digit revenue growth for ten consecutive years. Mean reversion is powerful.

Ignoring capital intensity. A company that generates $1 billion in operating income but requires $800 million in annual capital expenditures is far less valuable than one that generates the same operating income with $200 million in capex. Free cash flow, not earnings, is what matters.

Terminal value dominance. If the terminal value accounts for more than 80% of total enterprise value, the model is essentially a bet on long-term assumptions rather than near-term cash flows. Consider extending the explicit forecast period or revisiting the terminal growth rate.

Mismatched discount rates and cash flows. Using the cost of equity to discount unlevered free cash flows, or using WACC to discount levered free cash flows, will produce incorrect results. WACC pairs with free cash flow to the firm; cost of equity pairs with free cash flow to equity.

Static assumptions. Real businesses do not grow at constant rates with fixed margins. The best DCF models incorporate phase changes: a high-growth phase, a transition phase, and a mature-growth phase. Amazon looked very different growing at 40% annually than it does growing at 12%.

When DCF Works Best and When It Doesn't

DCF analysis works best for companies with predictable cash flows, stable or improving margins, and a long enough track record to ground projections in reality. Consumer staples companies like Procter & Gamble, regulated utilities like NextEra Energy, and mature technology companies like Microsoft are ideal DCF candidates.

The method struggles with early-stage companies that have no cash flows to project, cyclical businesses where next year's earnings could swing wildly, and financial institutions whose cash flows are difficult to separate from their capital structure. For these situations, other valuation methods, such as comparable analysis, asset-based valuation, or sector-specific approaches, may produce more reliable results.

Despite its limitations, DCF remains the closest thing finance has to a first-principles valuation method. It forces the analyst to think explicitly about what drives a company's value, and it provides a framework for testing how changes in those drivers affect the price an investor should be willing to pay.

Nazli Hangeldiyeva
Written by
Nazli Hangeldiyeva

Co-Founder of Grid Oasis. Political Science & International Relations, Istanbul Medipol University.

View full profile →

Put these principles into practice. Track fundamentals, build portfolios, and analyze stocks with AI-powered insights.

Start Free on GridOasis →