MoneyFinancial Math

NPV
calculator.

Money later is worth less than money now, so judge a project at today's value.

Before you rely on this result.This is an estimate for planning. Banks, lenders and other providers apply their own rules, fees and rounding, so confirm figures with them before you commit to a financial decision. Sources used on this page.

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.

NPV\displaystyle \text{NPV}=−C0+∑t=1nCt(1+r)t\displaystyle {}= -C_0 + \sum_{t=1}^{n} \frac{C_t}{(1+r)^t}

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.

NPV of the machine at other discount rates
Discount rateNPV
0%$45,000.00
5%$26,141.47
10%$10,857.74
15%−$1,686.64
20%−$12,101.34

Open this example in the tool

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.

Open this example in the tool

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.

Open this example in the tool

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

Excel's NPV function treats its first value as arriving one period from now, so a cost placed inside the list gets discounted too. Microsoft says to add a cost paid today to the result, outside the list. On its own example at 8%, the right form gives $1,922.06, while putting the $40,000 cost inside gives $1,779.69.

Sources