NPV and IRR in Excel, explained with one example

This is not tax, legal, or lending advice. The sheet is one project, not a forecast and not a loan offer.

Spend $10,000 today. Receive $3,000 at the end of each of the next four years. Ask whether that beats 8% a year. NPV and IRR answer the same question from opposite ends, and they use the same cash. The numbers are the ones already on those two function pages.

The workbook that holds a longer set of projections is the business plan financials.

The receipts are worth $9,936.38

NPV discounts each later cash flow by one more period. The first value in the list is one period away, not today.

NPV
=NPV(B1,B3:B6)
=NPV(B1,B3:B6)B7
Four receipts at 8%
AB
1Rate8%
2Today-$10,000
3Year 1$3,000
4Year 2$3,000
5Year 3$3,000
6Year 4$3,000
7Receipts$9,936.38
8Net-$63.62
A picture of the NPV page, not a live calculator. B2 is today, so it stays outside NPV. B3 is one year away. The four receipts are worth $9,936.38. The unrounded value is about 9,936.38052.

8% of a year is the rate, so the periods are years. Year 1 is 3,000 / 1.08. Year 4 is 3,000 / 1.08^4. The four terms add to about 9,936.38052, which a currency format shows as $9,936.38. Add today’s -$10,000 outside the function and the project is about -$63.62. It does not clear 8%.

A blank year is not a zero. NPV skips blanks and pulls the later receipts forward. A year with no cash is a 0 in the cell.

IRR wants the outlay in the list

IRR is the rate that makes that net zero. The list has to change sign, so the -$10,000 belongs inside it. That is the opposite of the NPV habit.

IRR
=IRR(B1:B5)
=IRR(B1:B5)B6
The rate that sets the net to zero
AB
1Today-$10,000
2Year 1$3,000
3Year 2$3,000
4Year 3$3,000
5Year 4$3,000
6IRR7.7138%
A picture of the IRR page. The outlay is inside the list. Format B6 as a percent. The stored rate is about 7.713847%, and a four-decimal percent format shows 7.7138%.

The rate is about 7.713847% a year. That is under 8%, which is why the NPV at 8% was short about $63.62. The two answers agree.

If every value has the same sign, IRR returns #NUM!. Twenty guesses that do not settle also return #NUM!. The optional second argument is a starting guess. Excel uses 10% when you leave it out.

A second sign change, money out then in then out again, can have more than one rate. IRR returns one of them and does not say there is another.

Leaving the outlay inside NPV

The usual mistake is to hand NPV the outlay as the first value. That treats the $10,000 as if you spent it a year from now.

NPV
=NPV(B1,B2:B6)
=NPV(B1,B2:B6)B7
The outlay discounted by a year
AB
1Rate8%
2Today-$10,000
3Year 1$3,000
4Year 2$3,000
5Year 3$3,000
6Year 4$3,000
7Wrong net$677.12
A picture of the usual mistake. Putting today's -$10,000 inside NPV discounts it. The cell shows $677.12 instead of -$63.62.

10,000 / 1.08 is about 9,259.25926. Subtract that from the $9,936.38 of receipts and the cell shows $677.12. The project looks as if it clears 8%. It does not. The undiscounted comparison is still 4 × 3,000 − 10,000 = $2,000 of undiscounted profit, and that $2,000 is not the same question as an 8% hurdle.

Dates that are not one year apart

NPV and IRR both assume equal steps. Cash on odd dates is XNPV. The schedule on that page is -$10,000 on January 15, 2026, then $2,500 on June 1, 2026, $4,000 on November 1, 2026, and $5,000 on March 15, 2027. At 8% those flows are worth about $763.95. The unrounded value is about 763.948. The first amount sits on the first date, so XNPV does not discount it. That is the reverse of NPV, which refuses to have today’s cash in the list.


Template for this article

Business Plan Financials

More from the blog