NPV and IRR in Excel: is it worth paying for?
NPV says what money coming in later is worth today. If you pay £1,000 now and get £500, £400 and £300 back over three years, =NPV(10%,B5:B7)+B4 gives £10.52. That's more than 0, so it beats a 10% return. IRR gives the return itself: =IRR(B4:B7) is 10.7%. Both work the same in every version of Excel on Windows and Mac, in Excel for the web and in Google Sheets.
NPV and IRR at a glance
| You want | Formula | What it tells you |
|---|---|---|
| What later cash is worth today, less the cost | =NPV(B1,B5:B7)+B4 | More than 0: it beats the rate in B1 |
| The return it works out at | =IRR(B4:B7) | The rate where the NPV is exactly 0 |
| Which of two options to pick | =NPV(B1,C5:C8)+C4 for each | The bigger NPV, at the same rate |
| When you get your money back | =C2+B3, a running total copied down | The payback year: the first year the total is above 0 |
Year 0, the cost today, is always a minus, because it's money you pay. Each case is worked through below.
Why money later is worth less
£100 today could be earning 10% somewhere else, so in a year it would be £110. That means £110 in a year's time is only worth £100 today. The 10% is called the discount rate: the return you could get elsewhere, or the return you need.
NPV does that sum for every year and adds them up:
- £500 in 1 year: 500 ÷ 1.1 = £454.55
- £400 in 2 years: 400 ÷ 1.1 ÷ 1.1 = £330.58
- £300 in 3 years: 300 ÷ 1.1 ÷ 1.1 ÷ 1.1 = £225.39
Together that's £1,010.52 in today's money. Take off the £1,000 it costs today and you're left with £10.52.
NPV in Excel
=NPV(B1,B5:B7)+B4
| A | B | |
|---|---|---|
| 1 | Discount rate | 10% |
| 2 | ||
| 3 | Year | Cash |
| 4 | 0 | -£1,000.00 |
| 5 | 1 | £500.00 |
| 6 | 2 | £400.00 |
| 7 | 3 | £300.00 |
| 8 | ||
| 9 | NPV | £10.52 |
| 10 | IRR | 10.7% |
Year 0, the cost, goes outside NPV. NPV treats the first amount you give it as one year away, and the cost is paid today. B4 is already a minus, so adding it takes the cost off.
IRR: the return it works out at
IRR finds the discount rate where the NPV comes out at exactly 0. Give it all the cash, year 0 included: =IRR(B4:B7) gives 10.7%. If that's more than the rate you need, it's worth doing. Here 10.7% beats 10%, which matches the NPV being just over 0.
To see how the two fit together, work the NPV out at a few rates. At 0% it's simply the cash added up, £200. The higher the rate, the less the later cash is worth today, and somewhere between 10% and 15% the NPV drops below 0. That crossing point is the IRR.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Year | Cash | Rate | NPV | |
| 2 | 0 | -£1,000.00 | 0% | £200.00 | |
| 3 | 1 | £500.00 | 5% | £98.15 | |
| 4 | 2 | £400.00 | 10% | £10.52 | |
| 5 | 3 | £300.00 | 15% | -£65.51 | |
| 6 | IRR | 10.7% |
If you need IRR to work out a loan or finance rate with the same payment every month, RATE does that more simply.
Choosing between two options
A firm can buy one of two machines and needs an 8% return. Machine A costs £5,000 and saves £1,500, £1,800, £2,000 and £1,500 over four years. Machine B costs £8,000 and saves £2,500, £2,800, £3,000 and £2,800. Work the NPV of each out at the same rate, side by side:
| A | B | C | |
|---|---|---|---|
| 1 | Discount rate | 8% | |
| 2 | |||
| 3 | Year | Machine A | Machine B |
| 4 | 0 | -£5,000.00 | -£8,000.00 |
| 5 | 1 | £1,500.00 | £2,500.00 |
| 6 | 2 | £1,800.00 | £2,800.00 |
| 7 | 3 | £2,000.00 | £3,000.00 |
| 8 | 4 | £1,500.00 | £2,800.00 |
| 9 | |||
| 10 | NPV | £622.31 | £1,154.94 |
| 11 | IRR | 13.4% | 14.2% |
Both beat 8%, so both are worth doing. If you can only have one, pick the bigger NPV: Machine B adds £1,154.94 in today's money, against A's £622.31. When the NPV and the IRR point different ways, which can happen when two options cost very different amounts, go with the NPV. The Unit 9 project, Lease or buy the minibus?, compares two options just like this.
When you get your money back: payback
Payback is the number of years until the cash coming in covers the cost. It doesn't use a discount rate, but people often ask for it next to the NPV. A running total of the cash shows it: Machine A is still £1,700 down after year 2, then £300 up after year 3, so it pays back in its third year.
| A | B | C | |
|---|---|---|---|
| 1 | Year | Cash | Running total |
| 2 | 0 | -£5,000.00 | -£5,000.00 |
| 3 | 1 | £1,500.00 | -£3,500.00 |
| 4 | 2 | £1,800.00 | -£1,700.00 |
| 5 | 3 | £2,000.00 | £300.00 |
| 6 | 4 | £1,500.00 | £1,800.00 |
| 7 | |||
| 8 | Pays back in year | £3.00 |
Common mistakes
Year 0 inside NPV
=NPV(B1,B4:B7) treats the £1,000 as paid in a year's time, and gives £9.56 instead of £10.52. Keep year 0 out and add it on.
The cost as a plus
Money you pay is a minus. With the cost as +1000, IRR gives #NUM!, because the money never goes the other way.
Taking the cost off twice
The cost is already a minus number, so +B4 takes it off. -B4 adds it back on and makes the project look £2,000 better than it is.
Uneven dates
NPV and IRR assume the cash comes once a year, at the same time each year. For real dates, Excel has XNPV and XIRR, which take a column of dates as well. Our practice sheets don't have those two yet.
Try it now
Year 0 (B4) is what a new van costs now, and the rest is what it saves each year. In B11, work out the net present value: NPV of years 1 to 5, plus the year 0 cost.
| A | B | |
|---|---|---|
| 1 | Discount rate | 8% |
| 2 | ||
| 3 | Year | Cash |
| 4 | 0 | -£12,000.00 |
| 5 | 1 | £3,500.00 |
| 6 | 2 | £4,000.00 |
| 7 | 3 | £4,000.00 |
| 8 | 4 | £3,000.00 |
| 9 | 5 | £2,000.00 |
| 10 | ||
| 11 | Net present value |
Open this in Try a formula: the same sheet with the answer filled in, to change or share by link.
Part of Excel financial functions practice: every lesson on the topic, with a project in Excel.
Where it works
NPV and IRR are in every version of Excel on Windows and Mac, in Excel for the web, and in Google Sheets, with the parts in the same order. For the payment on a loan, see PMT, and for what savings grow to, FV and PV.
Questions
What is the difference between NPV and IRR?
NPV gives an amount of money: what the cash coming in is worth today, less the cost. More than 0 means it beats your discount rate. IRR gives a rate: the return the cash works out at. They agree on whether one project is worth doing, because the NPV is above 0 exactly when the IRR is above the discount rate. To choose between two options, compare their NPVs at the same rate.
Why is Excel's NPV different from my calculation?
Excel's NPV treats the first amount you give it as one year away. If you include year 0, the cost paid today, inside the range, it gets discounted too, and the answer comes out a little low. Leave year 0 out and add it on: =NPV(B1,B5:B7)+B4. With the cost already a minus number, the plus takes it off.
What discount rate should I use for NPV?
Use the return you could get by putting the money somewhere else, or the rate the money costs you to borrow. Many organisations set one rate for every project, so ask your finance team if there is one. If you're not sure, work the NPV out at two or three rates side by side, such as 5%, 8% and 10%, and see whether the answer changes.
How do I calculate NPV with monthly cash or uneven dates?
For monthly cash, use a monthly rate, such as 8%/12, with one cell for each month. For cash on real dates that aren't evenly spaced, Excel has XNPV and XIRR, which take the cash and a column of dates. NPV and IRR on their own assume every amount is the same time apart, so they can be out when the gaps vary.