Sub topic 7
What IRR Measures
This chapter assumes you can build a cash flow timeline, you know that a discount rate converts future cash flows to present value, and you can compute NPV in Excel with the t=0 cash flow added outside the function. If any of that is unfamiliar, review the NPV chapters first.
The definition
The internal rate of return (IRR) is the discount rate at which a project's NPV equals zero. NPV answers the question "given this discount rate, how much value does the project create in today's money?" IRR reverses it: "what discount rate would make the project create exactly zero value?"
For cash flows CF₀, CF₁, ..., CFₙ at equally spaced periods, IRR is the rate r that solves:
0 = CF₀ + CF₁/(1+r) + CF₂/(1+r)² + ... + CFₙ/(1+r)ⁿ
There is no algebraic formula for r once n is larger than about four, so Excel finds it by trial and error. That is covered in a later chapter. For now, treat IRR as a number you can look up and verify.
A worked example
Use the same project as in the NPV chapters. You pay 10,000 today and receive 3,000, 4,000, 4,000 and 3,000 at the end of years 1 to 4.
| Period | Cash flow |
|---|---|
| 0 | -10,000 |
| 1 | 3,000 |
| 2 | 4,000 |
| 3 | 4,000 |
| 4 | 3,000 |
The total inflow is 14,000, so the project returns 4,000 more than it costs in undiscounted terms. Because the money arrives over time, the rate of return is well below 4,000/10,000 = 40%. IRR measures it properly, with timing included.
You can see what IRR means by looking at how NPV changes with the rate. At a low rate, the future inflows are barely discounted and NPV is large and positive. As the rate rises, NPV falls. IRR is the rate where NPV crosses zero.
Computing IRR in Excel
With the cash flows in B3:B7 and B3 as the t=0 outflow, the formula is:
=IRR(B3:B7)Unlike NPV, IRR takes the t=0 cash flow inside the range. This is not an inconsistency. IRR treats the first value as period 0 and discounts it by nothing. NPV treats the first value in its range as one period away. The two functions therefore expect different ranges for the same cash flows.
| Function | Range includes t=0 cash flow? | Reason |
|---|---|---|
| `NPV(rate, values)` | No. Add it separately. | The first value is discounted one full period. |
| `IRR(values)` | Yes. | The first value is treated as period 0. |
Verify the result
An IRR is only trustworthy if NPV at that rate is zero. Substitute it back into NPV, keeping the t=0 flow outside:
=NPV(IRR(B3:B7), B4:B7) + B3The result should be extremely close to zero, such as 1E-10 rather than exactly 0. Excel's iterative solver stops when it is within a tiny tolerance, so a very small residual is normal. A residual of 5 or 50 means something is wrong with the ranges, usually the t=0 flow being included inside NPV.
What the number means
IRR is a rate per period. For annual cash flows, it is an annual rate. For monthly cash flows, it is a monthly rate, and you must compound it to get an annual figure. The next chapters cover that.
Read IRR as the break-even cost of capital. If you could borrow money at exactly the IRR and fund the project with it, you would repay the loan in full with nothing left over. If your actual cost of capital is below the IRR, the project earns more than it costs to finance. If your cost of capital is above the IRR, it does not.
This is why IRR is often compared with a hurdle rate, which is the minimum return a company requires before it accepts a project. Under the simple rule, you accept when IRR exceeds the hurdle rate. The rule has limits, which a later chapter on IRR limitations addresses.
Requirements for IRR to exist
IRR needs a sign change in the cash flows. This is where the sign convention from the timeline chapter matters.
- At least one cash flow must be negative and at least one must be positive. If every flow has the same sign, no discount rate can make the sum zero, and Excel returns
#NUM!. - Cash flows must be spaced at equal intervals. IRR has no dates, so it assumes each position in the range is one period after the previous one.
- Blank cells and text in the range are ignored, not treated as zero. If a period has no cash flow, enter 0 explicitly. Otherwise the following cash flows shift one period earlier, and the result is wrong with no error shown.
The last point is a common silent error. Consider flows in B3:B7 where year 2 is empty:
| Layout | Effect on IRR |
|---|---|
| Year 2 cell contains 0 | Timing is correct. |
| Year 2 cell is blank | Later flows are treated as arriving one period sooner. IRR is overstated. |
Seeing IRR in the NPV profile
An NPV profile is a table or chart of NPV across many discount rates. The rate where the profile crosses zero is the IRR. Build it with trial rates in A3:A13 and this formula filled down in C3:C13:
=NPV($A3, $B$4:$B$7) + $B$3The profile for a conventional project, with one outflow followed by inflows, slopes downward and crosses zero once. That single crossing is why IRR is unambiguous for this kind of project. If the profile crossed zero more than once, there would be more than one IRR. That case is covered later.
The profile also shows how sensitive the project is to the discount rate. A steep profile means that a small error in the discount rate changes NPV a lot. A flat profile means the decision depends little on the rate you chose.
Common mistakes at this stage
- Including the t=0 flow inside NPV while checking IRR. The check will not return zero.
- Reading a monthly IRR as an annual rate. A monthly IRR of 2% is not 2% a year.
- Leaving gaps in the range. Blank cells are skipped and shift timing.
- Entering cash flow signs inconsistently. If the investment is entered as a positive number, the project looks like it has no outflow, and IRR returns an error or a meaningless rate.
- Using IRR for flows on uneven dates. IRR ignores dates. Use XIRR when the dates are irregular.
Exercise
A project has cash flows in B3:B6 of -5,000, 0, 0 and 7,000, where B3 is at t=0 and each later cell is one year later. Write a formula that returns the IRR, and a second formula that checks it by returning approximately zero. What goes wrong if you delete the two zeros and shift the 7,000 up to B4?
Show answer
IRR: =IRR(B3:B6). Check: =NPV(IRR(B3:B6), B4:B6) + B3. The IRR is (7000/5000)^(1/3) - 1, about 11.9%. If you delete the zeros and leave the range as B3:B4, the 7,000 is treated as arriving after one year instead of three, so the IRR becomes 40%, far higher than the true rate. The zeros are needed to keep the timing correct.