NPV and IRR: how to tell if something pays for itself
Net present value (NPV) tells you whether something you pay for today is worth what it brings back later: bring each future amount back to today at the rate your money could earn elsewhere, add them up and subtract the cost. Positive means it pays. The internal rate of return (IRR) is the break-even rate where NPV is exactly zero; if it beats the rate your money could earn instead, the decision pays.
Updated October 20, 2026 · 11 min read · Plain math, no product pitches
On this page
What are NPV and IRR?
They are two ways of asking one question: is this worth what it costs? Both apply whenever you pay something now and get money back over the following years: an upgrade that cuts a bill, a course that raises your pay, a pricier car that lasts longer, a tool for a side business.
- Net present value (NPV) is what everything you get back is worth today, minus what you pay today. A dollar arriving in five years is worth less than a dollar now, because today’s dollar could be earning something in the meantime. NPV shrinks each future dollar to its value today before adding them up. Positive NPV: it pays. Negative: your money would do better elsewhere.
- Internal rate of return (IRR) is the yearly rate the decision earns you. Put another way, it is the rate at which NPV is exactly zero: the break-even rate. If the IRR beats what your money could earn instead, the decision pays.
Both rest on the time value of money. If shrinking future dollars to today’s value is new to you, the present value guide covers it from the start; this page picks up where it leaves off.
Present value: what future money is worth today →The basic formula, choosing a discount rate, and a lump sum against payments.Is it worth it? NPV and IRR calculator
Type what it costs today and what it brings back each year after, separated by commas. The calculator shows the NPV at your rate, the IRR, the simple payback time, and each year shrunk to today’s value. The four buttons load made-up examples to play with; the numbers in them are illustrations, not real prices, savings or raises.
NPV and IRR calculator
A cost today, money back each year after it, and the rate your money could earn instead.
Try an example
NPV at 7%
$74
Worth more than it costs
Break-even rate (IRR)
7.40%
Where NPV is zero
Payback
7.8 years
Before counting time
At 7% a year, the money back is worth $74 more today than the $3,500 it costs. It pays off only if your other option earns less than 7.4% a year.
| Year | Cash flow | ÷ (1 + r)year | Worth today |
|---|---|---|---|
| Today | -$3,500 | 1.0000 | -$3,500 |
| 1 | $450 | 1.0700 | $421 |
| 2 | $450 | 1.1449 | $393 |
| 3 | $450 | 1.2250 | $367 |
| 4 | $450 | 1.3108 | $343 |
| 5 | $450 | 1.4026 | $321 |
| 6 | $450 | 1.5007 | $300 |
| 7 | $450 | 1.6058 | $280 |
| 8 | $450 | 1.7182 | $262 |
| 9 | $450 | 1.8385 | $245 |
| 10 | $450 | 1.9672 | $229 |
| 11 | $450 | 2.1049 | $214 |
| 12 | $450 | 2.2522 | $200 |
| Net present value | $74 | ||
| Rate | 0% | 3% | 5% | 7% | 10% | 15% |
|---|---|---|---|---|---|---|
| NPV | $1,900 | $979 | $488 | $74 | -$434 | -$1,061 |
The “same flows at other rates” row is worth a look every time. If the answer flips from yes to no between 5% and 10%, the decision depends heavily on the rate you pick, which is the next section.
What discount rate should you use for a personal decision?
Use the rate the money would earn if you did not spend it, at a similar level of risk. That rate is called the discount rate, and it is the most important number you choose. For a person it is usually one of these:
- Money that would sit in savings: what your savings account actually pays.
- Money that would be invested for the long run: a cautious planning figure such as 7% a year before inflation. That is not a promise; the S&P 500 compounded about 10.0% a year from 1928 to 2025, but individual years swing widely and the future can be worse.
- Money that would pay off debt: the debt’s interest rate. Paying off a 22% card is a sure 22% return, so an upgrade has to beat 22% to be worth more than the payoff.
Here are the four example decisions from the calculator, every number invented, at four different rates:
| Example (invented) | NPV at 4% | NPV at 7% | NPV at 10% | NPV at 22% | IRR |
|---|---|---|---|---|---|
| Upgrade: $3,500, then $450 a year for 12 years | $723 | $74 | −$434 | −$1,643 | 7.4% |
| Course: $4,000, then $1,000 rising to $1,800 over 5 years | $2,163 | $1,630 | $1,163 | −$215 | 19.7% |
| Car: $5,000 more, $600 a year for 8 years, $1,500 more at resale | $136 | −$544 | −$1,099 | −$2,523 | 4.6% |
| Tool: $2,500, then $1,200, $1,000, $800, $500 | $717 | $529 | $360 | −$178 | 17.5% |
The same upgrade is a good deal for someone whose cash sits in savings and a poor one for someone carrying a 22% card balance. None of the four beats paying off that card. And the cheapest wins never need this math at all: cancelling a subscription you don’t use costs nothing up front, so there is nothing to earn back. The leak check looks for those first.
How do you calculate NPV?
Divide each year’s amount by (1 + r) raised to the number of years away, add the results, and subtract what you pay today.
- C₀
- what you pay today
- C₁ … Cₙ
- what you get back at the end of years 1 to n (negative if it costs you)
- r
- your discount rate per year, as a decimal (7% = 0.07)
How do you calculate IRR?
IRR is the rate that makes NPV exactly zero. There is no formula you can solve directly once there are more than a couple of years, so you find it by trying rates until NPV crosses zero. Calculators and spreadsheets do the trying for you.
IRR vs NPV: which should you trust?
Trust NPV for the decision, and use IRR as a feel for the margin. They agree on a simple yes-or-no question (IRR above your rate means NPV above zero), but IRR can mislead in three ways.
1. IRR ignores size
A percentage says nothing about how many dollars you end up with. Say you have $8,000 and two choices (numbers invented):
| Option | IRR | NPV at 7% | Payback |
|---|---|---|---|
| A: $1,000 now, $400 a year for 5 years | 28.6% | $640 | 2.5 years |
| B: $8,000 now, $2,200 a year for 5 years | 11.6% | $1,020 | 3.6 years |
A has the shinier rate, but it only puts $1,000 to work; the other $7,000 just earns your 7%, which adds nothing beyond it. B leaves you $380 better off in today’s money. When options are either-or, pick the higher NPV.
2. IRR quietly assumes you can keep earning the IRR
Option A’s 28.6% describes $1,000 growing to $3,524 in five years. That only shows up in your account if each $400 you get back is also put to work at 28.6%. Put the $400s in something earning 7% and they grow to $2,300.30 by year 5, which is $1,000 growing at 18.1% a year. That more honest figure is the modified internal rate of return (MIRR).
- FV of money back
- each amount you get back, grown to the last year at the rate you can reinvest at
- PV of costs
- each amount you pay, brought back to today at your borrowing or finance rate
- n
- number of years
For the course example, the IRR is 19.7% but the MIRR at 7% is 14.6%. Both say yes; the MIRR is the more realistic size of the win.
3. IRR can have two answers, or none
That happens when money flows out, then in, then out again. It gets its own section next.
When IRR breaks: cash flows that change sign twice
If the flows switch from negative to positive and back to negative, there can be two break-even rates, or none at all. A cost at the end is the usual cause: a cleanup, a repair, a tax bill, a deposit you must return.
The calculator above, like a spreadsheet’s IRR, reports a single break-even rate, so for flows like these, trust the NPV row and the “other rates” table instead of the IRR. Most everyday decisions (pay once, get money back) have one sign change and one IRR, and this trap does not apply.
Does it pay for itself? Payback period vs NPV
The payback period is how long until the money back adds up to the cost. It is easy to work out, and it answers “how soon do I get my money back?”, not “is it worth it?” It misses two things: the time value of money, and everything after the payback date.
A middle step is the discounted payback period: the same count, using each year shrunk to today’s value. At 7%, Y pays back in about 6.4 years instead of 5, and X never does. It still ignores what happens after, so use it as a risk check (how long before I’m safe if things go wrong?) next to NPV, not in place of it.
How do you calculate NPV and IRR in Excel or Google Sheets?
Both have the same five functions. Put the cost as a negative number and the money back as positive numbers. Here the course example is in B1:B6 (−4000 in B1, then 1000 to 1800), the stall in C1:C3, and the tool with real dates in D1:E5.
| Formula | Result | What it does |
|---|---|---|
| =NPV(7%, B2:B6) + B1 | 1,629.53 | NPV of the course, with today’s cost added outside |
| =NPV(7%, B1:B6) | 1,522.93 | Wrong: discounts today’s cost by a year |
| =IRR(B1:B6) | 19.7% | The course’s break-even rate |
| =MIRR(B1:B6, 7%, 7%) | 14.6% | IRR with money back reinvested at 7% |
| =IRR(C1:C3) | 10% | One of the stall’s two IRRs; a guess of 25% can land on 20% |
| =XNPV(7%, D1:D5, E1:E5) | 156.67 | NPV with actual dates |
| =XIRR(D1:D5, E1:E5) | 12.2% | IRR with actual dates, as a yearly rate |
XNPV and XIRR: when money moves on real dates
NPV and IRR assume one amount per evenly spaced period. XNPV and XIRR take a date for each amount and count time in days (on a 365-day year), with the first date as today. Say the tool costs $2,500 on 15 January 2027 and brings in $600 on 30 June 2027, $700 on 15 December 2027, $900 on 1 August 2028 and $700 on 1 March 2029 (invented). XNPV at 7% is $156.67 and XIRR is 12.2%. Treat the same four amounts as if they came a full year apart and you get an NPV of −$59.15 and an IRR of 6.0%: the money really came back sooner, and that is worth something.
XIRR is also how you measure what your own investment account has earned with deposits on irregular dates. That use has its own guide.
Time-weighted vs money-weighted return, and XIRR →How to measure your own return when you add or withdraw money.What is a good IRR?
A good IRR is one comfortably above your discount rate. There is no single number: 9% is good if your money would otherwise sit at 4%, and poor if you are paying 22% on a card.
Two cautions make “comfortably” matter:
- The money back is a guess. A raise you hope for, a saving an installer promised, a resale value years away. The less certain those are, the bigger the cushion you want. A 7.4% IRR against a 7% rate, like the upgrade example, leaves almost no room for the saving to come in a bit low.
- Compare like with like. A long-run stock planning figure of 7% comes with years that lose money. A bill saving you are fairly sure of is closer to a safe return, so measuring it against 7% can make it look worse than it is. The rate should match the risk.
Common mistakes
- Adding up the savings without discounting. $450 a year for 12 years is $5,400 on paper but only about $3,574 today at 7%.
- Putting today’s cost inside the spreadsheet NPV range. Add it outside the function.
- Choosing between options by IRR. The higher rate is not always the bigger win. Compare NPVs.
- Counting too many years. Only count savings for as long as the thing will really last, and include repairs and replacement costs as negative years.
- Using pre-tax numbers. A raise is worth what reaches your account. Rebates and credits go in the year you receive them.
- Forgetting the free option. Paying down high-interest debt, or simply not spending, is often the decision every other option has to beat.
Questions people ask
What does an NPV of zero mean?
It means the decision earns exactly your discount rate, no more and no less. You would end up in the same place putting the money where it would otherwise go. At that rate the decision is a coin toss, so the reasons that are not money decide it.
Can IRR be negative?
Yes. If you get back less in total than you put in, the IRR is below zero. If you get back exactly what you put in, spread over time, the IRR is 0%, which is still a loss against any rate your money could have earned.
Why does Excel's IRR return #NUM!?
Excel's IRR searches for the answer, starting from a guess of 10%, and gives up with #NUM! if it has not found it after 20 tries. Check that your values include at least one negative and one positive number, then try a different guess as the second argument.
Should I use NPV or IRR to choose between two options?
Use NPV. IRR is a percentage, so it can favor a small option with a high rate over a bigger option that leaves you with more money. Pick the option with the higher NPV at your discount rate, and use IRR only as a sense of how much room for error you have.
What is the difference between IRR and ROI?
ROI is the total gain divided by the cost, with no time in it: $4,000 that brings back $7,000 over five years is a 75% ROI. IRR spreads that gain over the years it took and gives a yearly rate, so you can compare it with what your money could earn elsewhere.
Does NPV account for inflation?
Only if you set it up that way. Either write the future amounts in today's dollars and use an after-inflation rate (about 4% if you plan with 7% and 3% inflation), or let the amounts rise with prices and use the full rate. Do not mix the two.
What is a hurdle rate?
The lowest return a decision has to beat to be worth doing. For a business it is usually its cost of money. For you, it is your discount rate: what the money would earn otherwise, or the interest you would save by paying off debt with it.
Do taxes change NPV and IRR?
Yes. Use after-tax amounts throughout. A raise is worth what reaches your account after tax, and a tax credit or rebate on an upgrade belongs in the year you actually receive it.