Skip to content

IRR

Returns the internal rate of return of a series of cash flows at regular intervals: the rate at which their net present value is zero.

Syntax

=IRR(, )

Financial

All versions of Excel.

Try it

Edit the formula in B7 or change the inputs. The sheet recalculates as you type.

B7
A
B
C
1
Year
Cash flow
2
0
-1,000
3
1
0
4
2
0
5
3
1,331
6
7
IRR
10.00%

B7 =ROUND(IRR(B2:B5),4) returns 10.00%

How IRR works

IRR returns the discount rate at which a series of cash flows has a net present value of zero. It is the return the project earns, expressed as a rate per period. =IRR(B2:B6) on -70,000 followed by five years of inflows gives 8.66%: the investment earns about 8.7% a year. Compare it with the return you need, the hurdle rate, to decide whether to go ahead.

Cash flows and signs

The first value is normally the investment, so it is negative. IRR needs at least one negative and one positive value, otherwise there is no rate that makes the net present value zero and the result is #NUM!. A range of only positive numbers, or only negative ones, gives no IRR.

IRR assumes the values are equally spaced: yearly, monthly or quarterly, as long as the gap is the same. The result is a rate per period. Monthly cash flows give a monthly IRR, and (1+IRR(...))^12-1 converts it to an effective annual rate. For uneven dates, use XIRR.

Timing: the first value is time zero

Unlike NPV, IRR treats the first value as happening now. So the initial outlay belongs inside the range, as the first value. This is easier than NPV, where the outlay has to be kept outside.

How IRR works

Excel searches for the rate by trial, starting at the guess and refining up to 20 times. If it hasn't settled to within 0.00001% by then, it returns #NUM!. Most normal cash flows converge from the default guess. For unusual flows, try a guess close to what you expect, such as 0.05 or 0.3.

When IRR can mislead

  • Several sign changes (money in, out, in again) can give more than one IRR. Excel returns one of them, which may not be the one you want.
  • Reinvestment assumption: IRR assumes interim cash flows are reinvested at the IRR itself, which is optimistic for a high IRR. MIRR lets you set the reinvestment rate.
  • Size is hidden: a small project with a high IRR may add less value than a large project with a lower one. Compare NPV as well.

Patterns

  • Hurdle test: =IF(IRR(B2:B6)>=hurdle,"Accept","Reject").
  • Annualise monthly flows: =(1+IRR(B2:B25))^12-1.
  • Protect against #NUM!: =IFERROR(IRR(B2:B6),"No IRR").

The result is a decimal, so format the cell as a percentage.

Arguments

values
A range or array of cash flows, in time order, at equal intervals. It must contain at least one negative and one positive value. Text, logical values and empty cells in a range are ignored.
guessoptional
Your estimate of the IRR, used as the starting point for the search. The default is 10%. Supply a closer figure if IRR returns #NUM!.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

A simple investment: 1,000 grows to 1,331 in three years

B7 =ROUND(IRR(B2:B5),4)

Result: 10.00%

1,000 compounding at 10% for three years is 1,331, so the IRR is exactly 10%.

B7
A
B
C
1
Year
Cash flow
2
0
-1,000
3
1
0
4
2
0
5
3
1,331
6
7
IRR
10.00%

B7 =ROUND(IRR(B2:B5),4) returns 10.00%

Example 2

Five years of inflows (Excel's own example)

B9 =ROUND(IRR(B2:B7),4)

Result: 8.66%

The project earns about 8.66% a year. If you stopped after year 4, the IRR would be negative (-2.12%), because the first four inflows total less than the outlay.

B9
A
B
C
1
Year
Cash flow
2
0
-70,000
3
1
12,000
4
2
15,000
5
3
18,000
6
4
21,000
7
5
26,000
8
9
IRR
8.66%

B9 =ROUND(IRR(B2:B7),4) returns 8.66%

Example 3

Hurdle test

B8 =IF(IRR(B2:B6)>=D2,"Accept","Reject")

Result: Accept

The IRR is 14.95%, above the 12% hurdle.

B8
A
B
C
D
1
Year
Cash flow
Hurdle
2
0
-50,000
12.0%
3
1
12,000
4
2
18,000
5
3
22,000
6
4
20,000
7
8
Decision
Accept

B8 =IF(IRR(B2:B6)>=D2,"Accept","Reject") returns Accept

Example 4

No IRR when every cash flow is positive

B6 =IFERROR(IRR(B2:B4),"No IRR")

Result: No IRR

With no outlay, no rate can bring the net present value to zero, so IRR returns #NUM!. IFERROR turns that into a message.

B6
A
B
C
1
Year
Cash flow
2
1
100
3
2
110
4
3
50
5
6
IRR
No IRR

B6 =IFERROR(IRR(B2:B4),"No IRR") returns No IRR

Your turn.

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In B8, return the internal rate of return of the project, from the year 0 outlay to year 4.

Answer in B8.

B8
A
B
C
D
E
1
Year
Cash flow
Hurdle rate
12.0%
2
0
-50,000
3
1
12,000
4
2
18,000
5
3
22,000
6
4
20,000
7
8
IRR
9
Decision

Common mistakes

  • IRR needs at least one negative and one positive value. All positive or all negative gives #NUM!.
  • The outlay goes inside the range as the first value. Don't leave it out, or there is nothing negative to balance the inflows.
  • The result is per period. Monthly flows give a monthly rate, so convert with (1+IRR)^12-1 for a yearly one.
  • Flows that change sign more than once can have several IRRs. Excel returns one of them without warning, so check the answer with NPV.
  • IRR assumes equal spacing. For flows on specific dates, use XIRR.

Questions people ask

What is a good IRR?

It is good when it exceeds the return you require, the hurdle rate. A project with an IRR above the cost of capital adds value.

Why does IRR return #NUM!?

The cash flows may lack both a positive and a negative value, or Excel couldn't find a rate from its starting guess. Check the signs and try a guess closer to the answer.

What is the difference between IRR and XIRR?

IRR assumes equal gaps between cash flows and returns a rate per period. XIRR takes a date for each flow and returns an annual rate.

Does IRR need the initial investment in the range?

Yes. Include it as the first value, as a negative number. IRR treats the first value as time zero.

How do I get an annual IRR from monthly flows?

Use `=(1+IRR(B2:B25))^12-1` for the effective annual rate, or `IRR(...)*12` for a nominal one.

Learn IRR in a real sheet.

IRR is taught in Dates and financial modelling, lesson 20: Internal rate of return with IRR and XIRR. Each lesson is a short, graded exercise like the one above.