Should you buy the machine, open the shop or fund the project? The net present value (NPV) answers that by bringing every future cash flow back to today’s money at the return you require, then subtracting what you invest now. A positive NPV means the project earns more than your required return and adds value; a negative NPV means your money would do better elsewhere at the same risk.
This NPV calculator takes the initial investment, a list of yearly net cash flows and your discount rate. Alongside the NPV it reports the internal rate of return (IRR) — the discount rate at which the NPV is exactly zero — the profitability index, which measures value created per unit invested, and both the simple and discounted payback periods. A table shows every year’s discount factor and present value, and a bar chart compares nominal and discounted cash flows.
You can add a negative cash flow in any year, for example a later refurbishment or a clean-up cost at the end. The calculator then checks whether the flows change sign more than once and warns you when several IRRs exist, a classic trap. For a single sum, the present value calculator is quicker; for a return on money already invested, see the rate of return calculator.
How to use this calculator
- Enter the initial investment paid today (year 0) as a positive number.
- Enter the discount rate: your cost of capital or the return you could earn elsewhere at similar risk.
- Add one row per year with the net cash flow received at the end of that year — revenue minus costs, after tax if you are comparing after-tax returns. Use negative numbers for years with net outflows.
- Read the NPV first: above zero, the project beats your required return. Then check the IRR, profitability index and payback.
- Open the table and chart to see how much each year contributes once discounted. Use Solve for → discount rate with an NPV of 0 to confirm the IRR.
The formula
With an initial investment , cash flows at the end of years and a discount rate :
The internal rate of return is the rate that sets the NPV to zero:
It has no closed form; the calculator scans the NPV profile for sign changes and refines each one by bisection, so it finds every IRR rather than just the one nearest a starting guess.
The profitability index is , so . The discounted payback is the time until the cumulative discounted cash flows reach zero, interpolating linearly within the year it happens; the simple payback does the same without discounting.
Worked example
A project costs 40,000 today and is expected to bring 8,000, 9,200, 10,000, 12,000 and 14,500 at the end of the next five years. At an 8% discount rate, year 1 is worth today and year 5 is worth . The five present values add up to 41,922.06, so
The project creates 1,922.06 of value, its IRR is 9.63% (above the 8% hurdle), its profitability index is 1.048, and it pays back in 4.06 years undiscounted or 4.81 years discounted. This is the Microsoft Excel NPV documentation example, where the result is also 1,922.06.
If the project also required a 9,000 clean-up cost in year 6, the NPV would fall by 5,671.53 to -3,749.47: the project would no longer be worth doing at 8%.
NPV, IRR, profitability index and payback: which to use?
| Measure | Decision rule | Strength | Weakness |
|---|---|---|---|
| NPV | Accept if NPV > 0 | Measures value created in money; adds up across projects | Depends on choosing the right discount rate |
| IRR | Accept if IRR > required return | Intuitive percentage | Several IRRs when flows change sign twice; misleading when ranking projects of different size |
| Profitability index | Accept if PI > 1 | Ranks projects when capital is limited | Ignores the absolute size of the gain |
| Payback (simple or discounted) | Accept if shorter than a cut-off | Shows liquidity and risk of long waits | Ignores everything after the payback date |
Corporate finance textbooks recommend NPV as the primary rule because it is the only one that directly measures the increase in wealth. Use the others as complements: IRR to communicate, PI to ration capital, payback to gauge how long your money is exposed.
Choosing the discount rate
The discount rate is the opportunity cost of capital: the return you could earn on an investment of similar risk. For a company it is often the weighted average cost of capital, raised for riskier projects; for a private investor it can be the rate of a savings account for a safe project or the expected return of a stock index for a risky one. Because NPV is sensitive to this rate, try a few values — the IRR tells you the rate at which the decision would flip.
Frequently asked questions
What does a negative NPV mean?
That the project returns less than the discount rate you chose. It may still make a profit in plain cash, but it destroys value compared with investing the same money at your required return.
What is the difference between NPV and IRR?
NPV is an amount of money created in today’s terms at a given discount rate. IRR is the discount rate at which that amount would be zero. For a normal project — one outflow followed by inflows — both lead to the same accept or reject decision.
Why does the calculator show no IRR?
An IRR only exists if the cash flows change sign, typically an outflow followed by inflows. If every flow is positive or every flow is negative, no discount rate can make the NPV zero, and the calculator says so instead of showing a number.
Can a project have more than one IRR?
Yes, when the cash flows change sign more than once, for example a large closure cost at the end. The calculator lists every IRR it finds; in that case base the decision on the NPV at your discount rate.
Should cash flows include financing costs?
Usually not. Standard capital budgeting discounts operating cash flows at the cost of capital; interest is already reflected in the discount rate. Counting loan payments as well would double-count the cost of financing.
Sources
- R. A. Brealey, S. C. Myers, F. Allen & A. Edmans, Principles of Corporate Finance, 14th ed., McGraw-Hill — ch. 2 and 5 (NPV, IRR, payback, profitability index)
- OpenStax, Principles of Finance — 16.2 Net Present Value (NPV) Method
- OpenStax, Principles of Finance — 16.3 Internal Rate of Return (IRR) Method
- Microsoft Support — NPV function (worked examples)
Last updated: