NPV
calculator.
Money later is worth less than money now, so judge a project at today's value.
| # | Cash flow |
|---|---|
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 |
Up to 50 years. Enter a later cost as a negative number, and 0 for a year with no cash.
- IRR
- 14.27%
- MIRR
- 11.37%
- Payback
- 3.17 yr
So the project earns more than 10% a year, and it clears your rate. NPV reaches zero at 14.27%, the IRR.
| # | Cash flow |
|---|---|
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 |
Up to 50 years. Enter a later cost as a negative number, and 0 for a year with no cash.
NPV at every rate
Drag the handle to try another rateAt 10% the NPV is $10,857.74. It is zero at 14.27%.
NPV at nearby discount rates
| Discount rate | NPV | Result |
|---|---|---|
| 4% | $29,595.47$29,595 | Clears |
| 6% | $22,829.43$22,829 | Clears |
| 8% | $16,601.69$16,602 | Clears |
| 10% (yours) | $10,857.74$10,858 | Clears |
| 12% | $5,549.60$5,550 | Clears |
| 14% | $634.97$635 | Clears |
| 16% | −$3,923.56−$3,924 | Falls short |
Each year's cash and its value today
The gap between the two lines is the discount at 10%, and it widens with time because later money is discounted more.
Discounted cash flow schedule
| Year | Cash flow | Discount factor | Present value | Running total | Running present value |
|---|---|---|---|---|---|
| 0 | −$100,000.00−$100,000× 1.0000 | 1.0000 | −$100,000.00−$100,000 | −$100,000.00−$100,000 | −$100,000.00−$100,000Cash −$100,000 |
| 1 | $25,000.00$25,000× 0.9091 | 0.9091 | $22,727.27$22,727 | −$75,000.00−$75,000 | −$77,272.73−$77,273Cash −$75,000 |
| 2 | $35,000.00$35,000× 0.8264 | 0.8264 | $28,925.62$28,926 | −$40,000.00−$40,000 | −$48,347.11−$48,347Cash −$40,000 |
| 3 | $35,000.00$35,000× 0.7513 | 0.7513 | $26,296.02$26,296 | −$5,000.00−$5,000 | −$22,051.09−$22,051Cash −$5,000 |
| 4 | $30,000.00$30,000× 0.6830 | 0.6830 | $20,490.40$20,490 | $25,000.00$25,000 | −$1,560.69−$1,561Cash $25,000 |
| 5 | $20,000.00$20,000× 0.6209 | 0.6209 | $12,418.43$12,418 | $45,000.00$45,000 | $10,857.74$10,858Cash $45,000 |
How it's worked out
Each cash flow is cut down to what it is worth today, and then the upfront cost comes off. Cash that arrives in year 3 is divided by one plus the rate, three times over. The rate you pick stands for what the same money could earn elsewhere at a similar risk.
Here C₀ is the cost paid today, Cₜ is the net cash in year t, r is the yearly discount rate and n is the number of years. Every cash flow after today lands at the end of its year. A positive NPV means the project earns more than r, and the answer is how many of today's dollars it adds. OpenStax Principles of Finance gives the rule plainly: accept a positive NPV and reject a negative one.
The other figures answer other questions. The internal rate of return, or IRR, is the rate that brings NPV to zero. Microsoft uses the same definition and closes in on it by repeated tries, as this tool does. Modified IRR, or MIRR, swaps in the rates you pay on money you borrow and earn on money you reinvest. The payback is how long it takes for the cash to repay the cost, and the discounted payback does the same with today's dollars.
Worked examples
A workshop buys a $100,000 machine
The owner expects savings of $25,000, $35,000, $35,000, $30,000, $20,000 over five years, and could earn 10% elsewhere at about the same risk. Those savings are worth $110,857.74 today, against a price of $100,000, so the NPV is $10,857.74.
The IRR is 14.27%, so the machine clears the 10% hurdle. The simple payback is 3.17 years. With every dollar discounted it takes 4.13 years, which leaves little room if year 5 comes in short.
| Discount rate | NPV |
|---|---|
| 0% | $45,000.00 |
| 5% | $26,141.47 |
| 10% | $10,857.74 |
| 15% | −$1,686.64 |
| 20% | −$12,101.34 |
A homeowner looks at solar panels
Panels cost $18,000 after credits and save about $2,600 a year, and the owner counts only the next ten years. The money would otherwise pay down a loan at 6%. At that rate the NPV is $1,136.23 and the IRR is 7.31%.
Now suppose the money could earn 10% in a business. The same panels have an NPV of −$2,024.13. Nothing about the panels changed. The rate is the question you are really asking, so test a few of them.
Two projects when you can only pick one
Project A costs $10,000 and returns $8,000, $4,000, $1,000. Project B costs $30,000 and returns $5,000, $15,000, $20,000. A has the higher IRR at 20.2% against 13.05%.
At 8%, B adds more value, with an NPV of $3,366 against $1,631. The two lines meet at the crossover rate of 11.23%. Above that rate A wins: at 15% its NPV is $639 and B's is −$1,160. If your rate is below the crossover, follow NPV and take B. The OpenStax chapter sets the same rule: take the project with the highest NPV.
Reading your result
The sign matters most. A positive NPV beats the alternative you named with your rate. A negative one means that alternative is better, even when the cash adds up to more than the cost. The machine at 20% shows this: total cash beats the price by $45,000, yet the NPV is −$12,101.34.
The rate can flip the answer. OpenStax notes that a firm's cost of capital is hard to estimate, and it suggests an NPV profile to test how the result moves. If the sign flips within a point or two of your rate, the project is closer than a single figure makes it look. The machine stays positive until the rate passes its 14.27% IRR.
The profitability index compares size. It is the value today of the cash flows divided by the cost, and it is above 1 when NPV is positive. At 1.109, the machine returns about $1.11 of today's value per dollar spent. This helps when your budget is tight and you can fund several small projects in place of one big one.
Two assumptions sit behind the figure. Each cash flow lands at the end of its year, so money that arrives through the year is worth a little more than shown. One rate also applies to every year, so if risk or borrowing costs change over the project, the NPV can be too high or too low. Companies often start from their weighted average cost of capital and add a premium for a riskier project.
MIRR is the steadier rate. OpenStax points out that IRR assumes cash is reinvested at the IRR itself. The machine's IRR is 14.27%, but MIRR with cash reinvested at 8% is 11.37%. Quote the MIRR when you doubt you can earn the IRR on money that comes back early.
Common mistakes
- Mixing real and nominal numbers. If your cash flows include future price rises, use a rate that does too. Flat cash flows with a rate that includes inflation will make good projects look bad.
- Counting money already spent. Only cash that changes because of this decision belongs in the list, after tax. A study you paid for last year is gone whichever way you decide.
- Leaving out a late cost. A refit or a removal bill in the last year can turn the answer around. Enter it as a negative cash flow in its own year. Skipping a year would move every later flow one year earlier.
- Reading the payback as the answer. It stops counting once the cost is repaid. Project A pays back in 1.5 years and project B in 2.5 years, yet A adds less value at any rate below the 11.23% crossover.
Questions people ask
Sources
- Microsoft Support, NPV function
- Microsoft Support, IRR function
- Microsoft Support, MIRR function
- Microsoft Support, XNPV function
- OpenStax, Principles of Finance 2e, 16.2 Net Present Value (NPV) Method
- OpenStax, Principles of Finance 2e, 16.3 Internal Rate of Return (IRR) Method
- OpenStax, Principles of Finance 2e, 16.5 Choosing between Projects
- US Treasury, Daily Treasury Bill Rates, October 2026