Skip to content

How NPV and IRR work

NPV and IRR are the same equation asked two ways. Spend $10,000, collect $3,000 a year for five years: NPV is $1,978.13 at 8 percent and the IRR is 15.24 percent. They agree on accept or reject. Ranking several projects is a different question, and NPV decides.

Net present value

$1,978.13

At 8.00% the cash covers the cost and the return you asked for, with this much left over in today's money.

5 years of cash, valued today
$11,978.13
Cost today, not discounted
-$10,000.00
Net present value
$1,978.13

What each year is worth today

YearCash flowValue today
0-$10,000.00-$10,000.00
1$3,000.00$2,777.78
2$3,000.00$2,572.02
3$3,000.00$2,381.50
4$3,000.00$2,205.09
5$3,000.00$2,041.75
$
$
yr
%

What the same money could earn in its next best use.

In short

  • NPV and IRR are the same present-value equation asked in opposite directions: NPV fixes a discount rate and returns a value in today's money, IRR fixes that value at zero and returns the rate.
  • For a conventional project, money out and then money in, accept when NPV is positive at your hurdle rate, which is the same decision as accept when IRR beats that rate.
  • Cash at time zero is not discounted. At t=0t = 0 the divisor is 1, so the outlay enters the sum at full size with a minus sign.
  • The discount rate is an argument, not a quote the project comes with. The same $10,000 outlay and five $3,000 receipts are worth $1,978.13 at 8 percent and $814.33 at 12 percent.
  • The IRR of that series is 15.24 percent, found by searching. From degree 5 there is no general radical formula, which is the Abel-Ruffini theorem, and a five-year project is degree 5.
  • Non-conventional cash flows, those that change sign more than once, can have several genuine IRRs or none. NPV still returns one number.
  • A rate is silent on size and does not add across projects. When projects compete, rank them by NPV at the rate your money actually costs, and read IRR as headroom on that decision.
  • The usual reinvestment complaint is a reading of IRR as a holding-period yield, not something sitting in the present-value arithmetic. Modified IRR makes that reading explicit by using rates you name.

One equation, asked two ways

Net present value and internal rate of return look like rival tests. They are not. Both start from the same list of dated cash flows and the same present-value sum. What changes is which side of the equation you hold still.

NPV fixes a discount rate rr and solves for a value in today's money:

NPV=t=0nCFt(1+r)tNPV = \sum_{t=0}^{n} \frac{CF_t}{(1+r)^t}

IRR fixes that value at zero and solves for the rate:

0=t=0nCFt(1+IRR)t0 = \sum_{t=0}^{n} \frac{CF_t}{(1 + IRR)^t}

That is one equation. Ask it for a number of dollars and you have NPV. Ask it for a rate and you have IRR. The calculator above does the first. The IRR calculator does the second on the same series.

The ordinary shape is money out at the start and money in afterwards: a conventional cash flow series with one sign change. For that shape the two tests cannot disagree on accept or reject. Discount below the IRR and NPV is positive. Discount above it and NPV is negative. At the IRR, NPV is zero by construction. So "accept when NPV is above zero at your hurdle rate" and "accept when IRR is above your hurdle rate" are the same sentence, spoken in money and in percent.

A machine that costs $10,000 today and returns $3,000 at the end of each of the next five years is the series this page works throughout. At 8 percent its NPV is $1,978.13, so it clears an 8 percent hurdle. Its IRR is 15.24 percent, so it also clears that hurdle read as a rate. Those are not two facts. They are one fact stated two ways.

Turn the series around, money in first and out afterwards, and the picture inverts. That shape is a borrowing rather than an investment. Its NPV rises as the discount rate rises, and the rule becomes accept when your cost of capital sits above the IRR rather than below it. A rate quoted without the shape of the series does not tell you which case you are in. Write the signs down first.

Ranking several projects is not that test. A rate is silent on size, timing and how long the money is tied up. The NPV vs IRR comparison is the at-a-glance version of the split. The engine underneath is the time value of money: discounting is compounding run backwards.

Year zero is already today's money

The sum starts at t=0t = 0 for a reason. At time zero the divisor is (1+r)0=1(1+r)^0 = 1. Money that moves today is already in today's units. It is not discounted, not because it is special, but because there is no wait to price.

That is the outlay. It enters the sum at full size, with a minus sign. Discount it anyway, at 8 percent, and you shrink the cost by about 7.4 percent. Every dollar taken off the cost lands straight in NPV, so on the machine above the surplus would swell by about 37 percent: enough, on a close project, to flip a rejection into an acceptance. Year zero means no discounting at all.

The receipts are the opposite. Each is divided by (1+r)t(1+r)^t, once for every year of waiting. At 8 percent the factor for year 1 is 1/1.08=0.92591/1.08 = 0.9259, for year 2 it is 1/1.082=0.85731/1.08^2 = 0.8573, and by year 5 it is down to 0.68060.6806. The same $3,000 counts for less every year further out.

YearCash flowFactor at 8 percentPresent value
010000-100001.00001.000010000-10000
1300030000.92590.92592777.782777.78
2300030000.85730.85732572.022572.02
3300030000.79380.79382381.502381.50
4300030000.73500.73502205.092205.09
5300030000.68060.68062041.752041.75

Add the five present values and the receipts are worth $11,978.13 today. The cost is at year zero, so it is not discounted. Subtract it whole: $11,978.13 minus $10,000 leaves an NPV of $1,978.13. Every year of cash has already been charged 8 percent for the waiting, and a surplus is still left in today's money, so the machine clears the bar.

When every year pays the same amount there is a shortcut, the annuity factor 1(1+r)nr\frac{1 - (1+r)^{-n}}{r}. At 8 percent over five years that factor is 3.992710, and $3,000 times 3.992710 is the same $11,978.13 the year-by-year sum produces. Round the factor to 3.9927 first and the product comes out three cents light, which is why the digits you carry are part of the answer.

Cash is assumed to arrive at the end of each year. Money arriving at the start of a year is discounted one period less. Write the series out with a year number against every figure, year zero included, before you divide anything.

The rate is the argument, not a quote

The rr in the NPV formula is an argument you supply. It is not a market quote the project comes with. It is the return the same money could earn in its next best use at similar risk, which is why two people can study one project, do the arithmetic correctly, and still disagree.

A company often takes that rate from its weighted average cost of capital, which the WACC calculator works out from the mix of equity and debt. A person might use the rate on a debt they would otherwise pay down. Riskier cash flows deserve a higher rate, and the choice matters more the longer the project runs. The cost of capital is the long form of that choice.

Raise the rate and NPV falls on any project that spends first and collects later, because every future receipt is divided by a bigger number, and the far years take most of the damage. The machine worth $1,978.13 at 8 percent is worth $814.33 at 12 percent, less than half as much, without a cent of the cash flows changing. At 12 percent the five receipts are worth $10,814.33 today, so the room above the $10,000 cost is much thinner, and year 5 is now being divided by 1.121.12 five times over.

Discount rateNPV of the machine
8 percent$1,978.13
10 percent$1,372.36
12 percent$814.33
15.24 percent0

NPV is a function of the rate. Push the argument up and the value falls, crosses zero at the IRR, and turns negative beyond it. That crossing is not a second test. It is the same curve read at a different point.

The exception is a project carrying a large cost in a late year, a mine to fill in or a plant to strip out. The higher rate discounts that cost too, so it can lift the NPV rather than cut it.

Match the rate to the cash flows. Amounts written in today's prices need a rate with inflation stripped out; amounts that already include price rises need a rate that still contains it. Mix the two and you charge for inflation on the way out without adding it on the way in. The real return calculator converts between the two versions of a rate.

Finding the rate that drives NPV to zero

IRR is defined by an equation rather than computed by one. For the machine you are looking for the rate rr at which the discounted receipts add back to the outlay:

10000=t=153000(1+r)t10000 = \sum_{t=1}^{5} \frac{3000}{(1+r)^t}

There is no rearrangement that isolates rr for this series. Substitute x=1/(1+r)x = 1/(1+r) and the equation becomes an ordinary polynomial of degree 5 in xx. The Abel-Ruffini theorem says a general polynomial equation of degree 5 or higher has no solution in radicals: no finite combination of roots, plus, minus, times and divide that works for every such equation the way the quadratic formula works for every degree 2 equation. Degree 5 is not an exotic case. It is five yearly receipts after an outlay, the series this page opened on.

Shorter series can have closed forms. Degree 2, 3 and 4 have general radical formulas, unused in practice because searching is a better way to get a number. The one shape worth writing down is a single amount out and a single amount back, which collapses to a growth rate: the CAGR calculator is that special case, and the last worked example on this page is exactly that shape.

So in practice every IRR is found by searching. Guess a rate, price the series, adjust. At 10 percent the five receipts of $3,000 are worth $11,372.36 today, more than the $10,000 outlay, so 10 percent is too low and the NPV is $1,372.36. At 20 percent the receipts are worth less than the outlay, so 20 percent is too high. At 15 percent the NPV is a little above zero; at 16 percent it is a little below. Keep halving the gap. It settles at r=0.1524r = 0.1524, which is 15.24 percent a year, or 15.238237 percent before rounding. At the unrounded rate the NPV is 0 by definition.

Against a 10 percent cost of capital the same project is worth $1,372.36 in today's money. The IRR of 15.24 percent and that positive NPV are one fact: the project beats 10 percent. For a conventional series, accept when the IRR is above your cost of capital. That is the NPV rule, spoken in percent.

Where a single rate stops being the answer

IRR breaks as a ranking tool on size and on the reinvestment reading, and it can fail as a number when the series changes sign more than once.

Several roots, or none. A polynomial of degree nn has up to nn roots. Descartes' rule of signs bounds how many of them are positive: at most the number of sign changes in the cash-flow series, and short of that only by an even number. One sign change leaves one positive root, so a conventional project has one IRR above minus 100 percent.

Series that change sign more than once are ordinary. A mine restored at the end of its life, a plant needing a mid-life rebuild, a job paid in advance that then spends and collects at handover: the money turns over twice. Two sign changes allow two rates that each set NPV to zero, both genuine, with nothing in the mathematics to rank them. The same shape can leave no real rate at all. NPV still returns one number, because it evaluates an expression rather than searching for a root. A non-conventional series is a question to put to NPV.

Size. A rate says nothing about how much money is at stake. Scale every cash flow by two and NPV doubles while IRR does not move. A 15.83 percent return on $5,000 is not more money than a 15.24 percent return on $10,000. At a 10 percent cost of capital the larger project is worth $1,372.36 in today's money. Rank by IRR and the small project wins. Rank by NPV and the large one wins, because NPV is denominated in money. The last worked example is that smaller series: $5,000 out today, $9,000 back at the end of year four.

Reinvestment. The usual complaint is that IRR assumes every interim receipt is put back to work at the IRR itself, while NPV assumes the same at the discount rate. Neither assumption sits in the arithmetic. Both measures are present-value sums, and discounting states an equivalence between money at two dates, not a forecast about where a receipt ends up.

What is true is narrower. Read an IRR as the compound return you will actually earn across the whole life of the project and you have made that reinvestment assumption yourself. If the project earns 15.24 percent and everything else you own earns 8 percent, treating 15.24 percent as a holding-period yield flatters it. The modified internal rate of return, MIRR, makes the assumption explicit: outflows discounted at your cost of capital and inflows compounded at a reinvestment rate you name.

Rates also do not add. Two NPVs of independent projects can be summed. Two IRRs cannot be averaged into anything meaningful unless the outlays and the lives happen to match, which they rarely do.

Ranking is not accept or reject

For a single conventional project judged on its own, the two measures agree and the choice between them is which unit you want to read. Disagreement on ranking surfaces once you are choosing between things.

Three questions decide whether the rankings can split. Are the projects mutually exclusive, so that taking one rules out the other? Do they differ in size? Do they differ in timing or in length? Any yes, and IRR is silent on all three. Independent projects stay easy: take every one whose NPV is positive at the rate your money costs, which is the same list as those whose IRR beats that rate, provided each series is conventional. Conflict starts when you can take only one of them.

The split has a location. The crossover rate is the discount rate at which two projects have equal NPV. For a pair whose profiles cross once, that rate sits below both IRRs. Above the crossover the project with the higher IRR also has the higher NPV, so the rankings agree. Below it they part, and the higher rate belongs to the project worth less. IRR does not misrank at random: it ranks the pair the way NPV would if your discount rate sat above the crossover, whatever rate you actually face.

When they split, follow the NPV. NPV measures what a decision adds to your wealth at the rate you actually pay for money, and a rate cannot be spent. The 15.83 percent project puts $5,000 to work; the 15.24 percent project puts $10,000 to work. At 10 percent the larger one adds $1,372.36 in today's money. Doubling every cash flow of either project would double that contribution and leave the IRR where it was.

Where capital is genuinely rationed, so that you cannot take every project worth taking, what maximises value is NPV per unit of the scarce resource rather than NPV alone. That is still an NPV rule, and it is still not an IRR rule.

IRR earns its keep even so. It states a return without a discount rate having to be agreed first, and it measures headroom: a project whose IRR sits 5.24 points above a 10 percent hurdle can absorb just over five points of increase in that rate before the decision turns over. Compute both, decide on the NPV, quote the IRR.

The calculator above is the NPV tool, because ranking is the decision this page is for once accept or reject has been settled. For the rate on a single series, use the IRR calculator. For the hurdle a company actually faces, use the WACC calculator. For the side-by-side in a table, see NPV vs IRR.

Worked examples

A \$10,000 machine paying \$3,000 a year for five years

A machine costs $10,000 today and brings in $3,000 at the end of each of the next five years. You want 8 percent a year on money tied up like this. Is it worth buying?

  1. Write the series with the cost at time zero: minus $10,000 now, then $3,000 in each of years 1 to 5.
  2. Discount each receipt by (1.08)t(1.08)^t: 3000/1.08=2777.783000/1.08 = 2777.78, 3000/1.082=2572.023000/1.08^2 = 2572.02, 3000/1.083=2381.503000/1.08^3 = 2381.50, 3000/1.084=2205.093000/1.08^4 = 2205.09, 3000/1.085=2041.753000/1.08^5 = 2041.75.
  3. Add the five present values: $11,978.13.
  4. The cost is at year zero, so it is not discounted. Subtract it whole: $11,978.13 minus $10,000.

The NPV is $1,978.13. Every year of cash has already been charged 8 percent for the waiting, and $1,978.13 of value is still left over in today's money, so the machine clears the bar you set.

The same machine at a 12 percent required return

Same $10,000 cost, same five receipts of $3,000, but the money could now earn 12 percent elsewhere. What happens to the answer?

  1. Only the divisor changes. Each receipt is divided by (1.12)t(1.12)^t rather than (1.08)t(1.08)^t.
  2. Every year pays the same amount, so use the annuity factor: 3000×11.1250.12=3000×3.6047763000 \times \frac{1 - 1.12^{-5}}{0.12} = 3000 \times 3.604776.
  3. That values the five receipts at $10,814.33 today.
  4. Subtract the same undiscounted $10,000 cost.

The NPV falls to $814.33. Four points on the discount rate cut the surplus by more than half, from $1,978.13 to $814.33, and the late years take most of the damage: year 5 now gets divided by 1.12 five times over. The project still clears the bar, with much less room.

The IRR of the same \$10,000 series

You spend $10,000 now on equipment, and it brings in $3,000 at the end of every year for five years. What rate of return does that series earn?

  1. Write the series with signs: $10,000 out at time zero, then five payments of $3,000 in.
  2. The IRR is the rate rr at which the discounted payments add back to the outlay: 10000=t=153000(1+r)t10000 = \sum_{t=1}^{5} \frac{3000}{(1+r)^t}.
  3. There is no way to rearrange that for rr, so search for it. At 10 percent the right side is worth more than $10,000, so 10 percent is too low. At 20 percent it is worth less, so 20 percent is too high.
  4. Keep halving the gap between the two guesses. It settles at r=0.1524r = 0.1524.
  5. Check it the other way round: discount all five payments at that rate, add them up, take off the $10,000, and the net present value is 0.

The IRR is 15.24 percent a year, or 15.238237 percent before rounding. That is the rate the money earns while it is tied up in this project, and at the unrounded rate the NPV is 0 by definition. Discount at the rounded 15.24 percent instead and the NPV lands just under 0, which is what rounding a rate costs.

The same project at a 10 percent cost of capital

Your money costs 10 percent a year. What is that same $10,000 project worth at 10 percent, and how does that square with an IRR of 15.24 percent?

  1. Discount each $3,000 payment back to today at 10 percent: divide the first by 1.1, the second by 1.121.1^2, and so on out to 1.151.1^5.
  2. Add the five discounted payments together. They come to $11,372.36 of present value.
  3. Take off the $10,000 paid at time zero.
  4. The net present value is $1,372.36.

At a 10 percent cost of capital the project is worth $1,372.36 in today's money. The IRR of 15.24 percent and that positive NPV are one fact said two ways: the project beats 10 percent, so discounting at 10 percent leaves a surplus. Push the discount rate up to the IRR and the $11,372.36 falls back to the $10,000 paid at the start, leaving nothing over.

\$5,000 now for \$9,000 in four years

A different shape. You put $5,000 in today, nothing happens for three years, and $9,000 comes back at the end of year four. What is the IRR?

  1. With one payment out and one payment back, the equation is short: 5000(1+r)4=90005000(1+r)^4 = 9000.
  2. Divide both sides by 5000: (1+r)4=1.8(1+r)^4 = 1.8.
  3. Take the fourth root: 1.814=1.15831.8^{\frac{1}{4}} = 1.1583.
  4. Subtract the 1: r=0.1583r = 0.1583 to four places, and at the unrounded rate the NPV is 0.

The IRR is 15.83 percent a year, 15.829219 percent before rounding. Notice what that means next to the first series: this project earns the better rate of the two, 15.83 percent against 15.24 percent, on half the outlay. A higher rate is not the same thing as more money. At a 10 percent cost of capital the $10,000 machine was worth $1,372.36; this one puts $5,000 to work at a higher rate and still cannot be ranked above it by IRR.

Common questions

If NPV and IRR disagree, which one should I follow?

NPV. It is measured in money, so it can be compared and added across projects of different sizes and lengths, which a rate cannot. Disagreement is also narrower than it sounds. On a single project whose cash flows change sign once the two cannot conflict on accept or reject, provided the IRR rule runs the right way round: accept above the hurdle when money goes out first, and below it when money comes in first. They part company mainly when you rank mutually exclusive projects that differ in scale or timing. The NPV vs IRR comparison lays that split out in a table.

Why can a project have more than one IRR, or none?

Because IRR is the root of a polynomial rather than a value you evaluate. How many roots are available is tied to how often the cash-flow series changes sign, so a project that takes money, returns it, then takes money again can have two rates that each drive the value to zero. Both are true IRRs and nothing in the mathematics ranks them. The same shape can instead produce no real rate at all, when the roots come out complex. From degree 5 there is no general radical formula either, which is the Abel-Ruffini theorem, but that is about how the number is found rather than how many of them there are. NPV returns a single number in every one of these cases, which is why a series with more than one sign change is a question to put to NPV.

Does a negative NPV mean the project loses cash?

No. It means the cash does not come back fast enough or large enough to earn the rate you asked for. A project can return more cash than it cost and still show a negative NPV, because the surplus is smaller than what the money would have earned elsewhere over the same years. Zero is the boundary where the project earns your rate exactly. The net present value calculator shows that boundary move as you change the rate.

Keep reading

This page is educational material, not financial advice. The figures come from the formula shown and assume the inputs you enter hold for the whole term. Your own rate, fees, taxes and timing will differ, so treat the output as arithmetic to check a decision against, not as a recommendation.