How to Use a DCF Calculator: Step-by-Step Guide for Value Investors
A DCF calculator takes the guesswork out of stock valuation. Instead of relying on market sentiment or price multiples alone, discounted cash flow analysis anchors every estimate in the cash a business is expected to generate over its lifetime. This guide walks through every input, explains what each one means, and shows a worked example with Apple so you can replicate the process on any stock.
What Is Discounted Cash Flow (DCF) Analysis?
Discounted cash flow is a method for estimating the present value of a business by projecting its future free cash flows and then discounting them back to today at a rate that reflects the risk of those cash flows materializing. The core idea is that a dollar of cash received five years from now is worth less than a dollar received today, because you could invest that dollar and earn a return in the interim.
The result of a DCF analysis is an intrinsic value estimate -- a fair price per share based on fundamentals rather than what the market happens to be paying. When the current stock price sits meaningfully below the intrinsic value, a value investor calls that gap the margin of safety.
DCF analysis is not a crystal ball. The output is only as good as the inputs, and any projection of future cash flows involves uncertainty. That is why Warren Buffett and Charlie Munger always emphasized wide margins of safety -- the model needs room to be wrong.
The Four Key Inputs in Any DCF Calculator
1. Free Cash Flow (FCF)
Free cash flow is the cash a company generates after paying for capital expenditures needed to maintain and grow the business. It is the purest measure of how much money the owners of a business can actually take out of it.
Formula: Free Cash Flow = Operating Cash Flow - Capital Expenditures
Most DCF calculators start from the most recent trailing twelve months (TTM) FCF as the baseline. You can find this on any financial data provider or on the ValueMarkers stock screener, which surfaces FCF alongside 120+ other indicators for every covered ticker.
For Apple (AAPL) in fiscal year 2024, operating cash flow was approximately $118 billion and capital expenditures were roughly $9 billion, yielding a free cash flow of approximately $109 billion.
2. FCF Growth Rate
The growth rate determines how fast free cash flow is expected to compound during the projection period, typically five to ten years. This is the most judgment-intensive input. Analysts look at historical FCF growth, the competitive position of the business, the size of the addressable market, and the sustainability of margins.
A few rules of thumb:
- Conservative estimates use the lower bound of the historical three-to-five year FCF growth rate.
- No company can grow faster than the overall economy forever. Growth rates above 15% for a decade require exceptional justification.
- For mature, large-cap companies, 5-10% annual FCF growth is often a reasonable starting point.
Apple has compounded FCF at roughly 10-12% annually over the past five years. A conservative assumption for a DCF model might use 8% for years one through five and then step it down to 5% for years six through ten.
3. Discount Rate (WACC)
The discount rate is the required rate of return that makes you indifferent between receiving a dollar today versus receiving it in the future. For a company financed entirely with equity, this is the cost of equity. For companies that also carry debt, the blended rate is called the Weighted Average Cost of Capital (WACC).
A typical range for large-cap US equities is 8-12%. Riskier companies with volatile cash flows, high debt, or uncertain business models warrant higher discount rates. Stable, wide-moat businesses can justify lower rates.
Using a 10% discount rate for Apple is a defensible starting point given its strong balance sheet, recurring revenue from services, and predictable cash generation.
4. Terminal Value
No DCF model projects cash flows to infinity year by year. After the explicit projection period (usually five to ten years), analysts estimate a terminal value that captures all cash flows beyond that horizon. The terminal value often represents 60-80% of the total calculated value, which is why the terminal growth rate assumption matters enormously.
The most common approach is the Gordon Growth Model:
Terminal Value = Final Year FCF x (1 + g) / (WACC - g)
Where g is the perpetuity growth rate -- typically 2-3%, roughly in line with long-term nominal GDP growth. Assuming a growth rate higher than the economy will grow is unrealistic for any established business.
Step-by-Step: Running a DCF on Apple (AAPL)
Let us walk through a simplified DCF for Apple using the ValueMarkers DCF calculator.
Inputs:
- Base FCF (TTM): $109 billion
- FCF growth rate, years 1-5: 8%
- FCF growth rate, years 6-10: 5%
- Discount rate (WACC): 10%
- Terminal growth rate: 2.5%
- Shares outstanding: ~15.2 billion
Projection:
| Year | FCF ($ billions) | Discount Factor | Present Value ($ billions) |
|---|---|---|---|
| 1 | 117.7 | 0.909 | 107.0 |
| 2 | 127.1 | 0.826 | 105.0 |
| 3 | 137.3 | 0.751 | 103.1 |
| 4 | 148.2 | 0.683 | 101.2 |
| 5 | 160.1 | 0.621 | 99.4 |
| 6 | 168.1 | 0.564 | 94.8 |
| 7 | 176.5 | 0.513 | 90.5 |
| 8 | 185.3 | 0.467 | 86.5 |
| 9 | 194.6 | 0.424 | 82.5 |
| 10 | 204.3 | 0.386 | 78.8 |
Sum of discounted FCFs: ~$948.8 billion
Terminal Value:
- Year 10 FCF: $204.3 billion
- Terminal Value = $204.3B x 1.025 / (0.10 - 0.025) = $2,792 billion
- Present Value of Terminal Value = $2,792B x 0.386 = $1,077.7 billion
Total Enterprise Value: $948.8B + $1,077.7B = $2,026.5 billion
Adjusting for net cash (Apple held roughly $50 billion in net cash as of mid-2024):
Equity Value: ~$2,076.5 billion
Intrinsic Value per Share: $2,076.5B / 15.2B shares = approximately $137 per share
This is a simplified model. The ValueMarkers DCF calculator handles the math automatically and lets you adjust each assumption to run sensitivity scenarios.
How to Read DCF Sensitivity Tables
One intrinsic value number from a DCF model is not the whole story. The most valuable output is a sensitivity table that shows how the fair value estimate changes across a range of growth and discount rate assumptions.
| Discount Rate / Growth Rate | 6% | 8% | 10% |
|---|---|---|---|
| 9% | $172 | $189 | $208 |
| 10% | $137 | $151 | $166 |
| 11% | $110 | $121 | $133 |
Reading across the table, you can see that the answer changes dramatically with the assumptions. A disciplined investor identifies the price at which the stock looks cheap even under the conservative column, not just the optimistic one.
Common DCF Mistakes to Avoid
1. Using net income instead of free cash flow. Net income includes non-cash items and can be manipulated through accounting choices. Free cash flow is harder to fake. Always use FCF as your starting point.
2. Using a single growth rate for the entire period. Real businesses do not grow at a constant rate forever. Use a two-stage or three-stage model with declining growth rates over time.
3. Setting the terminal growth rate too high. A 5% perpetual growth assumption means the company will eventually be larger than the entire global economy. Stick to 2-3% unless you have a very compelling reason.
4. Ignoring debt. Enterprise value is the value of the whole business (equity + debt - cash). To get equity value, you must subtract net debt from enterprise value before dividing by shares outstanding.
5. Not stress-testing assumptions. Run the model at least three ways: base case, bear case, and bull case. If the stock only looks attractive under the most optimistic scenario, the margin of safety may be insufficient.
6. Forgetting dilution. If the company grants significant stock options or convertible notes, the fully diluted share count may be materially higher than the basic share count. Use fully diluted shares when calculating intrinsic value per share.
When DCF Works Best (and When to Use Other Tools)
DCF analysis is most reliable for:
- Mature businesses with stable, predictable free cash flow
- Capital-light businesses with high returns on invested capital
- Companies with long track records of consistent financial performance
DCF analysis is less reliable for:
- Early-stage companies with no current positive FCF
- Cyclical businesses where FCF swings dramatically with the economy
- Financial companies (banks, insurers) where free cash flow is not the right measure
For financial companies, book value and return on equity multiples are typically more informative. For high-growth companies with negative FCF, revenue multiples or scenario-based analysis may be more appropriate.
The ValueMarkers screener complements DCF analysis with the Piotroski F-Score, Altman Z-Score, and 120+ other indicators so you can validate the quality of the underlying business before building a DCF model.
Margin of Safety: The Final Step
Once you have an intrinsic value estimate, the final step is to apply a margin of safety. Benjamin Graham recommended buying only when the price was at least 30-50% below intrinsic value. The margin of safety protects against errors in your assumptions, deterioration in the business, or unforeseen events.
If your DCF model estimates intrinsic value at $137 per share for Apple, a 30% margin of safety would mean waiting for a price at or below approximately $96 before buying.
The ValueMarkers Margin of Safety Calculator lets you input any intrinsic value estimate and your desired safety buffer to find the target buy price automatically.
Ready to build your first DCF model? Use the ValueMarkers DCF Calculator to value any stock in minutes, with built-in sensitivity tables and automatic share count lookups.
Written by Javier Sanz, Founder of ValueMarkers Last updated May 2026
Start valuing stocks with confidence
ValueMarkers tracks 120+ fundamental indicators across 100,000+ stocks on 73 global exchanges. Run a DCF in seconds with our DCF Calculator, check the margin of safety with our Margin of Safety Calculator, or screen the full universe on the leaderboard.
Related tools: DCF Calculator · Margin of Safety Calculator · Stock Screener
Disclaimer: Educational content -- not investment advice. This content is for informational and educational purposes only and does not constitute investment advice, a recommendation, or an offer to buy or sell any security. Past performance does not guarantee future results. Consult a licensed financial advisor before making investment decisions.