To calculate discounted cash flow (DCF) for a project, forecast the project's incremental free cash flows period by period, choose a discount rate that reflects the project's risk and financing mix, discount each cash flow by dividing it by (1 + r) raised to the period number, and sum the results to get net present value. The key condition: only cash flows that change because of the project belong in the forecast, and the discount rate must match the currency, timing, and risk of those flows. Everything else in DCF is arithmetic built on those two decisions.
This walkthrough uses a single illustrative project so the mechanics stay visible. The numbers are hypothetical and labeled as such; they are not market data. The method is stable finance, and it applies whether you're screening a new production line, a software migration, a store opening, or an acquisition.
What DCF actually measures — and what it doesn't
DCF answers one question: if this project produces the cash flows I expect, what are they worth today? You convert future money into today's money because a dollar received in three years is worth less than a dollar now — partly because you could invest it, partly because the future dollar is uncertain.
The output, net present value (NPV), is the value created above the return your discount rate already assumes. If NPV is positive, the project earns more than the required return. If it's zero, it earns exactly the required return. If it's negative, it destroys value relative to that hurdle.
Two limits matter from the start. First, DCF is only as good as the forecast; a precise discount rate on a fantasy cash flow produces a precise fantasy. Second, DCF values expected cash flows, so it handles risk mainly through the discount rate rather than by adjusting each flow. A probability-weighted forecast plus a risk-matched rate is the cleaner combination, and you should know which adjustment you're using so you don't double-count risk.
The internal rate of return (IRR) is the discount rate that makes NPV zero. It's a useful companion number, but NPV is the primary decision rule because IRR can mislead when project sizes differ or when cash flows change sign more than once.
Prerequisites before any arithmetic
Get these five items settled first, because each one changes every number downstream.
1: Define the project boundary. Decide whether you're valuing the project alone or the project plus its financing. Standard practice: forecast unlevered free cash flow (before interest) and discount at the weighted average cost of capital (WACC). That keeps financing decisions out of the operating forecast. 2: Set the currency and inflation convention. Use one currency. Either forecast in nominal terms (including expected inflation) and discount at a nominal rate, or forecast in real terms and discount at a real rate. Never mix a nominal rate with real cash flows. 3: Choose the time grid. Annual periods are typical; monthly or quarterly for short projects. Each cash flow must be assigned to the period in which it occurs, and the discounting exponent must match that grid. 4: Fix the horizon and terminal treatment. Decide the explicit forecast length (commonly 5–10 years for projects with a defined life) and what happens at the end: salvage value, working-capital recovery, or a terminal value formula for ongoing businesses. 5: Gather the inputs you can defend. Incremental revenue, operating costs, capital spending, working capital, tax rate, and the cost of capital. If a number is a guess, label it as one and test how much it matters.
A simple success check here: write each assumption on one line with its source or reasoning. If you can't state why a number is what it is, it's a candidate for sensitivity testing, not silent acceptance.
Step 1: Forecast incremental free cash flow
The core formula for each period:
Free cash flow = (Revenue − Operating costs − Depreciation) × (1 − tax rate) + Depreciation − Capital expenditures − Increase in net working capital
Why this shape? Depreciation is subtracted to compute taxable income, then added back because it isn't a cash outflow. Capital expenditures and working-capital increases are real cash uses that don't appear in operating profit. The result is cash available to all capital providers, which pairs with WACC.
Only incremental flows count. Ask of every line: would this cash flow exist if the project didn't? Allocated overhead that continues regardless of the project is not incremental. Interest expense is excluded because it's captured in the discount rate. Sunk costs — money already spent — are excluded entirely; a feasibility study paid last year is irrelevant to whether you proceed now.
Worked example (illustrative). A hypothetical project needs 500,000 in equipment today and 60,000 in initial working capital. It runs five years. Revenue starts at 400,000 and grows 5% annually. Cash operating costs run 55% of revenue. Depreciation is straight-line over five years on the 500,000 equipment, so 100,000 per year. The tax rate is 25%. Working capital is recovered at the end, and the equipment has zero salvage.
Year 1: revenue 400,000; operating costs 220,000; depreciation 100,000; taxable income 80,000; tax 20,000; net income 60,000; add back depreciation 100,000 gives 160,000; no capex after year 0; working capital stays at 60,000 with no further increase, so free cash flow is 160,000.
Year 2: revenue 420,000; costs 231,000; depreciation 100,000; taxable income 89,000; tax 22,250; net income 66,750; plus depreciation gives 166,750.
Year 3: revenue 441,000; costs 242,550; depreciation 100,000; taxable income 98,450; tax 24,612.50; net income 73,837.50; plus depreciation gives 173,837.50.
Year 4: revenue 463,050; costs 254,677.50; depreciation 100,000; taxable income 108,372.50; tax 27,093.13; net income 81,279.37; plus depreciation gives 181,279.37.
Year 5: revenue 486,202.50; costs 267,411.38; depreciation 100,000; taxable income 118,791.12; tax 29,697.78; net income 89,093.34; plus depreciation gives 189,093.34; add working-capital recovery of 60,000 gives 249,093.34.
Year 0 cash flow is negative 560,000 (equipment plus working capital).
Check success: recompute one year by hand from the raw inputs. If your spreadsheet and your hand calculation disagree, find the error before adding complexity.
Step 2: Estimate the discount rate correctly
For an unlevered forecast, the discount rate is WACC:
WACC = (E / V) × Re + (D / V) × Rd × (1 − tax rate)
Here E is equity value, D is debt value, V is E + D, Re is the cost of equity, and Rd is the pre-tax cost of debt. The (1 − tax rate) term reflects that interest is tax-deductible in most jurisdictions — verify the rule where you operate, since tax codes differ.
Cost of equity is commonly estimated with the capital asset pricing model: Re = risk-free rate + beta × equity risk premium. Each of those three inputs is an estimate with real uncertainty, and for a single project you may prefer a risk-adjusted rate built from comparable firms or a project-specific hurdle rather than the company-wide WACC. If the project's risk differs materially from the company's average, using company WACC misprices it.
Match the rate to the flow. A nominal cash flow needs a nominal rate. A cash flow in euros needs a euro rate. A project in a high-inflation currency needs a rate that reflects that currency's conditions. One common error is discounting nominal cash flows at a real rate, which overstates NPV substantially because the exponent compounds the mismatch.
Illustrative rate. Suppose a hypothetical WACC of 10% for this project. That rate isn't a recommendation; it's a placeholder for the arithmetic.
Step 3: Discount each cash flow
The present value of a cash flow in period t is:
PV = CFt / (1 + r)^t
Using the 10% placeholder and the illustrative flows:
Year 0: −560,000 / 1.00 = −560,000.00 Year 1: 160,000 / 1.10 = 145,454.55 Year 2: 166,750 / 1.21 = 137,809.92 Year 3: 173,837.50 / 1.331 = 130,607.06 Year 4: 181,279.37 / 1.4641 = 123,816.35 Year 5: 249,093.34 / 1.61051 = 154,668.60
Sum: −560,000 + 145,454.55 + 137,809.92 + 130,607.06 + 123,816.35 + 154,668.60 = 132,356.48.
So NPV is approximately 132,356 under these hypothetical assumptions. Because it's positive, the project clears a 10% hurdle by that margin in present-value terms.
Timing convention matters. The arithmetic above treats each year's flow as arriving at year-end. If cash arrives evenly through the year, mid-year discounting (exponent t − 0.5) raises present values slightly. For monthly models, use monthly periods and a monthly rate derived from the annual rate as (1 + annual)^(1/12) − 1, not by dividing by 12. State your convention so readers can reproduce the number.
Step 4: Handle the terminal value and horizon
Many projects don't neatly end. For a going concern, the terminal value captures everything after the explicit forecast. The Gordon growth formula:
Terminal value = Final-year free cash flow × (1 + g) / (r − g)
where g is a sustainable long-run growth rate. Discount the terminal value by the same period exponent as the final forecast year.
The formula is sensitive at the boundary. If r is 10% and g is 3%, the denominator is 7%, so the terminal value is roughly 14.7 times the next year's flow. Small changes in either input swing the result a lot, and g must be below r or the formula breaks. A long-run growth rate above the economy's nominal growth rate is rarely defensible.
For finite-life projects, skip the growth formula and use explicit salvage or recovery values instead. A common failure is applying a growth terminal value to a project that actually winds down — that inflates NPV and hides the true economics.
Step 5: Test the answer instead of trusting it
A single NPV number is a point on a range. Two checks make it decision-useful:
Sensitivity analysis. Recompute NPV with one input changed at a time: discount rate ±2 percentage points, revenue growth ±2 points, operating margin ±3 points, capital cost ±10%. In the illustrative case, raising the rate from 10% to 12% would lower NPV because later flows shrink more; the exact new figure is easy to recompute in a spreadsheet and should be, rather than estimated in prose.
Break-even question. Ask what discount rate makes NPV zero — that's the IRR of this forecast. If the IRR is comfortably above your cost of capital, the project has margin for error. If it's barely above, small forecast misses flip the decision.
A third check, scenario analysis, bundles inputs into coherent cases (base, downside, upside) rather than varying them independently. Independent variation understates risk when bad revenue and bad margins tend to arrive together.
Stop condition: if the project's viability depends on assumptions you cannot defend or test — regulatory approval not yet granted, a contract not signed, a cost you can't estimate within a reasonable band — further arithmetic won't resolve the uncertainty. Reframe the question as what would have to be true for the project to work, and seek qualified input on the specific unresolved item.
The trade-offs DCF makes you confront
DCF's strength is that it forces explicit assumptions. Its costs are real too.
Input sensitivity. The discount rate and terminal growth dominate long-horizon valuations. A 1-point change in either can move NPV by double-digit percentages. This isn't a flaw to fix with more decimal places; it's a reason to present ranges. Forecast bias. Optimistic revenue and underestimated working capital are common. Comparing forecast to actuals after launch is the only reliable correction, so build the tracking in from day one. It ignores flexibility. A standard DCF treats the project as a fixed plan. Real projects often include options — to expand, delay, or abandon — that have value a plain DCF misses. If those options are material, say so rather than pretending the number is complete. Comparability across projects. NPV favors larger projects because it's an absolute number. IRR normalizes but misleads on scale. Report both, and use profitability index (NPV divided by initial investment) when capital is rationed.
| Criterion | What to compare | Watch for |
|---|---|---|
| NPV | Sum of discounted flows | Absolute; favors scale |
| IRR | Rate where NPV = 0 | Misleading with mixed-sign flows |
| Payback | Time to recover outlay | Ignores flows after payback |
| Profitability index | NPV / initial investment | Useful under capital limits |
That table compares methods on equivalent terms — same cash flows, same horizon — so a mismatch in horizon or currency would invalidate any cross-method comparison.
Common errors and how to check for them
Mixing nominal and real. Check that inflation appears either in the flows or the rate, not both or neither. Counting financing twice. Interest is in WACC; subtracting it from cash flow and then discounting at WACC double-counts. Ignoring working capital. Growth consumes cash. A revenue-growing project with no working-capital line is usually overstated. Including sunk costs or allocated overhead. Apply the "would this exist without the project" test to every line. Perpetual growth that exceeds the economy. Sanity-check g against long-run nominal GDP growth in the relevant currency area. Reusing company WACC for a differently risky project. Adjust or justify.
A reliable verification routine: build the model in a spreadsheet with each assumption on its own labeled row, compute NPV two ways (formula and manual year-by-year sum), and confirm the two agree. Then change one input and confirm the direction of the change matches expectation.
The reference date for this method is November 13, 2026; the technique is stable, but tax treatment of interest, depreciation rules, and available risk-free rates are jurisdiction- and date-specific, so verify those inputs locally rather than importing them from another context. None of the figures above are market observations — they're illustrative arithmetic you can substitute with your own project's numbers.
For project decisions with material financial consequences, this is general education rather than individualized investment, tax, or legal advice; a qualified finance professional or accountant in your jurisdiction can validate the rate, tax treatment, and assumptions for your specific case.