How the calculator works out NPV
The calculator discounts every cash flow back to today at the discount rate r and subtracts the initial investment: NPV = −C0 + CF1/(1 + r) + CF2/(1 + r)2 + … + CFn/(1 + r)n. A positive NPV means the project returns more than r; a negative NPV means it returns less.[1] The NPV formula guide works the same sum by hand, in Excel and with the annuity shortcut.
Each term is a present value, the same discounting as the present value calculator applies to one sum. For the OpenStax example at 9%:
| Year | Cash flow | Discount factor 1 ÷ 1.09t | Present value | Cumulative |
|---|---|---|---|---|
| 0 | −$16,000.00 | 1.0000 | −$16,000.00 | −$16,000.00 |
| 1 | $2,000.00 | 0.9174 | $1,834.86 | −$14,165.14 |
| 2 | $4,000.00 | 0.8417 | $3,366.72 | −$10,798.42 |
| 3 | $5,000.00 | 0.7722 | $3,860.92 | −$6,937.50 |
| 4 | $5,000.00 | 0.7084 | $3,542.13 | −$3,395.37 |
| 5 | $5,000.00 | 0.6499 | $3,249.66 | −$145.72 |
| 6 | $5,000.00 | 0.5963 | $2,981.34 | $2,835.62 |
The present values of the inflows add up to $18,835.62; less the $16,000 cost, the NPV is $2,835.62. OpenStax prints $2,835.63 in section 16.2 and $2,835.62 in 16.4: the cent is rounding.[1][3]
NPV and IRR
The internal rate of return (IRR) is the discount rate at which NPV is exactly zero. If the IRR is above your required return, NPV at that return is positive, and the two methods agree on accepting a single project.[2] The machine's IRR is 14.09%, which is why its NPV at 14% is only $42.29: almost zero. The calculator finds every IRR between −99% and 1,000% by checking where the NPV changes sign; for monthly or dated cash flows and separate MIRR rates, use the IRR calculator.
Two cautions from the textbook. First, cash flows that change sign more than once can have more than one IRR: −350, +950, −620 has IRRs of 9.18% and 62.25%, so "accept if IRR is above the cost of capital" gives no clear answer (try the "Two IRRs" example).[2] Second, when you must pick one of two projects, choose the higher NPV, not the higher IRR, because NPV measures the dollars a project adds and IRR ignores scale.[4]
MIRR, profitability index and discounted payback
The calculator also reports three measures from OpenStax section 16.4, each checked against its worked example:[3]
| Measure | How it is calculated | OpenStax example | This calculator |
|---|---|---|---|
| Profitability index | PV of inflows ÷ PV of outflows; accept above 1 | 18,836 ÷ 16,000 = 1.18 | 1.18 |
| Discounted payback | Years until the cumulative discounted cash flow turns positive | 5 + 145.72 ÷ 2,981.34 = 5.05 years | 5.05 years |
| Simple payback | Same, without discounting (shorter, so it flatters the project) | 4 years | 4.00 years |
| MIRR | Grow inflows to year n at r, then the rate that turns the outlay into that sum | 12% | 12.00% |
For MIRR the inflows compounded to year 6 at 9% total $31,589.22 (OpenStax prints $31,595.22; adding its own five compounded terms gives $31,589.22). Either way ($31,589 ÷ $16,000)1/6 − 1 rounds to 12.00%. MIRR assumes inflows are reinvested at the discount rate instead of at the IRR, which is why it is lower than the 14.09% IRR.
Choosing the discount rate
The discount rate is the return you give up by putting money into this project instead of an alternative with similar risk. For a business it is usually the cost of capital. For money that is nearly certain, a Treasury yield for the same term is a floor: the latest 52-week bill auction (October 27, 2026) gave 4.496%.[6] Riskier cash flows deserve a higher rate. The table under the result shows NPV at other rates, so you can see how sensitive the decision is.
Common mistakesPutting the year-0 outlay inside Excel's NPV() range: the function treats its first value as one period away, so =NPV(9%, -16000, 2000, …) returns $2,601.49 instead of $2,835.62. Use =NPV(9%, year 1 … year n) − 16000. Also: mixing monthly cash flows with an annual rate, and counting money already spent (a sunk cost) as part of C0.
Related calculators
To discount a single future sum use the present value calculator; to solve any of N, rate, PV, payment or FV, the time value of money calculator; to measure what an investment actually returned, the rate of return calculator; for growth between two values, the CAGR calculator.
- IRR calculatorInternal rate of return for yearly, monthly or dated cash flows, with XIRR and MIRR
- NPV formulaNet present value worked by hand, in Excel (NPV, XNPV) and for equal cash flows
- Present value calculatorWhat a future sum or payment stream is worth today
- Time value of money (TVM) calculatorSolve N, I/Y, PV, PMT or FV like a financial calculator
- Rate of return calculatorTotal, annualized and real return with dividends and fees
- CAGR calculatorCompound annual growth rate between two values
Frequently asked questions
How do you calculate NPV?
Discount each future cash flow by (1 + r)t, add them up and subtract the initial investment. $16,000 returning $2,000, $4,000 and four years of $5,000 has an NPV of $2,835.62 at 9%.
What does a negative NPV mean?
The project returns less than the discount rate you required. It may still make money in total, but less than the alternative the rate stands for.
What is the difference between NPV and IRR?
NPV is a dollar amount at a rate you choose; IRR is the rate at which NPV is zero. They agree on a single project with normal cash flows. For competing projects, OpenStax recommends the higher NPV.
What is a good profitability index?
Above 1: the present value of what comes in exceeds the present value of what goes out. The example's index is 1.18, so each dollar invested returns $1.18 in today's money.
Why does Excel give a different NPV?
Excel's NPV function assumes the first value in its range comes one period from now. Leave the year-0 outlay out of the range and subtract it separately.
Sources
- Principles of Finance, 16.2 Net Present Value (NPV) Method
- Principles of Finance, 16.3 Internal Rate of Return (IRR) Method
- Principles of Finance, 16.4 Alternative Methods (profitability index, discounted payback, MIRR)
- Principles of Finance, 16.5 Choosing between Projects
- Principles of Finance 2e, 7.3 Methods for Solving Time Value of Money Problems
- Auctioned securities: Treasury bills, last 60 days (auction results)