IRR function
Returns the internal rate of return of a series of evenly spaced cash flows — the rate at which their NPV equals zero.
Available in All versions of Excel (Windows and Mac), Excel for Microsoft 365, Excel for the web
In every Excel versionWorks in Google Sheets
Syntax
IRR(values, [guess])| Argument | What it means | |
|---|---|---|
values | Required | A range or array of cash flows in time order, with at least one negative (money out) and one positive (money in) value. |
guess | Optional | A starting estimate for the iteration. Default 10%. Only needed if IRR returns #NUM! or an unexpected result. |
Returns: The rate per period (format the cell as a percentage).
How IRR works
IRR gives the return an investment earns, expressed as a single percentage. Technically it is the discount rate that makes the net present value of all cash flows exactly zero. In practice you compare it with your hurdle rate or cost of capital: a project returning 12% beats one returning 9%, and both beat a 7% loan.
Unlike NPV, IRR includes the first value as time 0 — so you pass the whole range, initial investment included. Excel finds the rate by trial and error (iteration), starting from the guess (10%) and refining until the result is accurate to 0.00001%. If it cannot converge in 20 tries you get #NUM!; a different guess usually fixes that.
The rate is per period. With monthly cash flows IRR returns a monthly rate; convert it to an annual rate with (1+IRR)^12-1. For cash flows on irregular dates use XIRR.
Examples
1Return on a five-year project
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Year | Cash flow | ||
| 2 | 0 | -50000 | 12.05% | |
| 3 | 1 | 12000 | ||
| 4 | 2 | 15000 | ||
| 5 | 3 | 18000 | ||
| 6 | 4 | 14000 | ||
| 7 | 5 | 10000 |
Result: 12.05%
The rate that discounts the five inflows back to exactly 50,000 is 12.05% (cell formatted as % with 2 decimals). With an 8% cost of capital the project is attractive.
2Return if the project stops after year 3
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Year | Cash flow | ||
| 2 | 0 | -50000 | -4.78% | |
| 3 | 1 | 12000 | ||
| 4 | 2 | 15000 | ||
| 5 | 3 | 18000 | ||
| 6 | 4 | 14000 | ||
| 7 | 5 | 10000 |
Result: -4.78%
With only three years of inflows (45,000 in total) the investment is not recovered, so the IRR is negative: −4.78%.
3Monthly cash flows converted to an annual rate
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Month | Cash flow | ||
| 2 | 0 | -6000 | 18.32% | |
| 3 | 1 | 1050 | ||
| 4 | 2 | 1050 | ||
| 5 | 3 | 1050 | ||
| 6 | 4 | 1050 | ||
| 7 | 5 | 1050 | ||
| 8 | 6 | 1050 |
Result: 18.32%
An equipment rental pays back 1,050 a month on a 6,000 outlay. IRR returns a monthly rate of 1.41%; compounding it over 12 months gives an effective annual return of 18.32% (cell formatted as %).
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | IRR could not find a rate in 20 iterations, or all cash flows have the same sign. | Make sure there is at least one negative and one positive value; try a guess such as -10% or 30%. |
Strange result | Cash flows change sign several times, so more than one rate makes NPV zero. | Use MIRR, which gives one unambiguous answer. |
Tips
- Use 0 for periods without cash flow; blank cells are ignored and would shift the timing.
- IRR assumes cash thrown off by the project is reinvested at the IRR itself, which flatters high-IRR projects; MIRR lets you set a realistic reinvestment rate.
- Check an IRR by plugging it back in:
=NPV(IRR(B2:B7),B3:B7)+B2should be 0.
Questions
What is a good IRR?
One that is higher than your cost of capital or the return on the next-best alternative of similar risk.
Why does IRR return #NUM!?
Either there is no sign change in the cash flows or Excel could not converge. Check the signs and supply a different guess.
IRR or XIRR?
Use IRR when cash flows are exactly one period apart; use XIRR when you have actual dates.
Google Sheets
IRR also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
IRR in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | MÍRA.VÝNOSNOSTI |
| Danish | IA |
| Dutch | IR |
| Finnish | SISÄINEN.KORKO |
| German | IKV |
| Hungarian | BMR |
| Italian | TIR.COST |
| Norwegian (Bokmål) | IR |
| Portuguese (Brazil) | TIR |
| Portuguese (Portugal) | TIR |
| Russian | ВСД |
| Spanish | TIR |
| Swedish | IR |
| Turkish | İÇ_VERİM_ORANI |