To find NPV from cash flow, list every cash flow by period, choose a discount rate that matches the risk and timing of those flows, divide each future cash flow by (1 + r) raised to its period number, sum the discounted values, and subtract the initial investment. The result is net present value: the dollar amount the project or investment adds (if positive) or destroys (if negative) relative to earning that discount rate elsewhere. That's the whole method. Everything below is about doing it without the four mistakes that quietly wreck the number: mixing timing conventions, using a rate that doesn't match the cash flows, dropping the terminal flow, and forgetting that NPV is a dollar figure, not a percentage.
The Core Formula and What Each Piece Means
NPV = CF0 + CF1/(1+r)^1 + CF2/(1+r)^2 + ... + CFn/(1+r)^n
Here CF0 is the cash flow at time zero, usually the initial outlay and therefore negative. CF1 through CFn are the expected net cash flows at the end of each period. The letter r is the discount rate per period, and n is the number of periods.
Three conventions matter more than the algebra.
First, the exponent counts periods, not dollars. A cash flow arriving in year 3 is divided by (1+r)^3 regardless of how large it is.
Second, the sign convention is yours to keep straight. Outflows negative, inflows positive. If you enter the initial investment as a positive number, your NPV sign flips and the decision rule inverts with it.
Third, NPV is expressed in today's dollars. A $50,000 NPV means the investment adds $50,000 of value measured in money you'd have right now, above and beyond the return implied by your discount rate. It does not mean a 50% return.
Step 1: Assemble the Cash Flow Schedule Before Touching a Calculator
Prerequisites: a defined time horizon, a consistent period length, and cash flows that are net (inflows minus outflows) within each period.
1: Fix the period length. Annual is simplest; monthly is common for loans and leases. Pick one and never mix. 2: Draw a timeline from period 0 to period n. Period 0 is today and holds the initial outlay. 3: Enter each period's net cash flow with its sign. Operating costs, taxes, and working capital changes belong inside the flow, not outside it. 4: Decide where the final flow sits. If a project ends in year 5 with a salvage value or a terminal sale, that amount is added to year 5's operating cash flow, not placed in year 6. 5: Total the undiscounted flows as a sanity check. The sum should equal your rough sense of total cash in minus cash out.
Check for success: the schedule's period count matches the exponent range you'll use, and the period-0 line contains the full initial cost.
The most common failure here is a "year 0" that actually spans twelve months of construction spending, or a project life described as "five years" where the last operating flow lands in year 6. Both shift every exponent by one and change NPV materially at high discount rates. If the timing is genuinely mid-period, the theoretically cleaner fix is fractional exponents—a flow at 18 months uses (1+r)^1.5—but most practical models just place flows at period ends and disclose that assumption.
Step 2: Choose a Discount Rate That Matches the Cash Flows
The discount rate is where NPV stops being arithmetic and starts being a judgment. It represents the return you could earn on capital of comparable risk. Common anchors:
The company's weighted average cost of capital, for projects of average business risk. The cost of debt or an incremental borrowing rate, for a financing decision viewed from the lender's side. A hurdle rate set by management, often above WACC to account for execution risk. A risk-free rate plus a risk premium, when you're building the rate from scratch.
Two consistency rules are non-negotiable. The rate must be per period, matching your cash flow periods—a 12% annual rate with monthly flows requires a monthly rate, and the exact conversion is (1.12)^(1/12) − 1 ≈ 0.9489% per month, not 1% (12% ÷ 12). The rate must also be nominal if the cash flows are nominal, or real if the flows are stated in constant dollars. Mixing a nominal rate with inflation-stripped flows overstates NPV, and the error compounds over long horizons.
A quick check: if your discount rate is 10% and your cash flows grow 3% per year forever, a growing-perpetuity shortcut (CF next year ÷ (r − g)) should roughly match a long explicit forecast plus terminal value. If the two disagree wildly, one of your inputs has a units or timing problem.
Step 3: Discount Each Cash Flow and Sum
Work through the timeline one period at a time. For a 10% rate:
Period 0: −$100,000 stays −$100,000 (anything to the power zero is 1). Period 1: $30,000 ÷ 1.10 = $27,272.73 Period 2: $35,000 ÷ 1.21 = $28,925.62 Period 3: $40,000 ÷ 1.331 = $30,052.59 Period 4: $25,000 ÷ 1.4641 = $17,075.34
Sum: −100,000 + 27,272.73 + 28,925.62 + 30,052.59 + 17,075.34 = $3,326.28.
So this project clears a 10% hurdle by about $3,300 in present-value terms. Note the sensitivity: the same $130,000 of undiscounted inflows is worth $3,326 at 10% but would be worth $11,336 at 8% and would turn negative around 11.5%. That breakeven rate is the IRR, and it's the natural companion to NPV—but it answers a different question (percentage return vs. dollar value added).
Check for success: recompute one period by hand and confirm it matches your spreadsheet cell.
Step 4: Read the Result With the Right Decision Rule
NPV greater than zero: accept, if the discount rate genuinely reflects opportunity cost and risk. NPV equal to zero: the investment earns exactly the required return—acceptable but not value-creating. NPV less than zero: reject, unless there are strategic or option-value reasons outside the model.
When comparing mutually exclusive projects, choose the higher NPV, not the higher IRR. A small project can have a spectacular IRR and a tiny NPV; a larger project can have a modest IRR and add far more value. NPV ranks by dollars added, which is usually what shareholders care about.
One caveat on scale: NPV assumes you can actually deploy capital at the discount rate elsewhere. A $3,326 NPV on $100,000 committed for four years is a thin margin—about 0.8% of the outlay—and would not survive small errors in the cash flow forecast.
Worked Example: A Five-Year Equipment Purchase
A bakery considers a $120,000 oven with a five-year life, no salvage value, and these projected net cash flows after operating costs and taxes: $20,000; $35,000; $40,000; $35,000; $25,000. The owner's discount rate is 9%, reflecting a mix of a small-business loan at 7.5% and an equity return expectation.
Discount factors at 9%: year 1 = 0.91743, year 2 = 0.84168, year 3 = 0.77218, year 4 = 0.70843, year 5 = 0.64993.
Discounted flows: $18,348.62; $29,458.80; $30,887.36; $24,794.88; $16,248.25. Sum of discounted inflows ≈ $119,737.91. NPV = $119,737.91 − $120,000 = −$262.09.
The project is essentially breakeven at 9%, marginally negative. Two honest readings: the oven is not worth buying on pure financial grounds at this hurdle rate, or the forecast is too pessimistic to be decisive. A useful next check is IRR—here it's just under 9%—and a sensitivity pass on year 3, the largest flow. If year 3 comes in at $45,000 instead of $40,000, NPV rises by about $3,861 to roughly +$3,599. That tells the owner exactly which assumption the decision hinges on.
This is also where NPV's real value shows up: it forces the argument onto specific numbers. "The oven pays for itself" becomes "the oven pays for itself only if year 3 beats $40,000 by a few thousand dollars," which is a testable claim.
Common Errors and How to Catch Them
Forgetting the initial outlay. Easy to do when the outlay sits in a separate cell or a different tab. Check: your NPV should be lower than the sum of discounted inflows by exactly the outlay.
Using a percentage rate as a decimal. Typing 10 instead of 0.10 divides every flow by 11 in year 1. Check: the year-1 discount factor should be 0.909 at 10%, not 0.091.
Shifting the timeline by one period. A flow labeled "year 1" that actually arrives at time zero gets no discount; one that arrives at the end of year 1 should. Check: period 0 holds only the outlay and any immediate costs.
Discounting the terminal value twice. If you compute a terminal value at the end of year 5 and then discount it five more years as if it were a year-10 flow, you'll understate it badly. Terminal values belong in the period they're measured.
Mismatched rate and period. Covered above, and the single most common spreadsheet error in monthly models.
Ignoring working capital and taxes. NPV from pre-tax operating cash flow overstates value. If you're building a business case rather than a classroom exercise, taxes and working capital changes are part of the cash flow.
Treating a negative NPV as a math error. It's information. The correct response is to examine which assumptions drive the sign, not to lower the discount rate until the number turns positive.
Stop condition: if the decision is large, regulated, or tax-sensitive—a capital project with complex depreciation, a lease-vs-buy comparison, an acquisition—the mechanics above are still right, but the cash flow definitions and the appropriate discount rate need review by someone qualified in your jurisdiction's tax and accounting rules. Don't extrapolate a classroom model into a filing or a board resolution without that review.
NPV vs. IRR vs. Payback: Which to Report
| Criterion | What it measures | Units | Best use | Key weakness |
|---|---|---|---|---|
| NPV | Value added above the discount rate | Dollars today | Go/no-go and ranking projects of different sizes | Depends entirely on the chosen rate |
| IRR | The rate at which NPV equals zero | Percent per period | Communicating return; comparing to a hurdle | Can mislead with unusual cash flow patterns or scale differences |
| Payback | Time to recover the outlay | Periods | Liquidity and risk screening | Ignores all cash flow after the cutoff and the time value of money |
Report NPV as the primary number and IRR as context. If a project has negative cash flows late in its life—say, remediation costs in year 7—IRR can produce multiple solutions, while NPV stays well-defined for any single discount rate. That's a mechanical advantage of NPV, not a stylistic preference.
Handling Uneven Timing, Mid-Year Conventions, and Perpetuities
Real cash flows don't politely arrive on December 31. Two practical adjustments:
Mid-year convention. If flows arrive roughly evenly through each year, discount year-1 flows by (1+r)^0.5, year-2 by (1+r)^1.5, and so on. This raises NPV relative to end-of-year discounting—by roughly half a year of return on the whole stream—and is a common practice in valuation work.
Fractional periods. For a flow at month 7, use an exponent of 7/12. The math is identical; only the exponent changes.
Perpetuities and terminal values. If cash flows continue indefinitely at a constant amount, the present value is CF ÷ r. If they grow at a constant rate g, it's CF next year ÷ (r − g), valid only when r exceeds g. A growing-perpetuity terminal value is sensitive to small changes in the spread: at r = 9% and g = 3%, the multiple is about 16.7 times the next year's flow; at g = 4%, it's 20 times. That leverage is why terminal-value assumptions deserve explicit disclosure.
Uneven early flows. When a project has a large outflow in year 2—a major maintenance cycle, for example—don't average it into neighboring years. Discount it in place with a negative sign.
Putting It Together in a Spreadsheet
Columns: period, description, cash flow, discount factor, present value. Rows: period 0 through n, then a total row.
Discount factor formula for period k in a cell: =1/(1+$B$1)^A5, where B1 holds the rate and A5 holds the period number. Present value: =C5*D5. Total: =SUM(E5:E10).
Two checks worth building in. First, a cell that recomputes the rate conversion if periods are monthly: monthly rate = (1+annual)^(1/12)−1. Second, a sensitivity block: rerun the total at rate minus 2%, rate, and rate plus 2%. A project whose sign flips across that range is a coin toss dressed as a calculation, and saying so is more useful than reporting a single precise-looking number.
If you're computing NPV from a bank or loan statement rather than a project forecast, the same logic applies but the perspective flips: from the borrower's side, the initial inflow is the loan proceeds (positive) and the repayments are outflows (negative). A positive NPV at the borrowing rate would mean the loan is cheaper than the alternative financing you're comparing it to—an unusual result that should prompt a check of whether the rate you used really reflects your alternative.
The method itself is stable and doesn't change with software. What changes is the quality of the two inputs you can't derive from arithmetic: the cash flow forecast and the discount rate. Get those defensible, and the NPV falls out in a few minutes.