Financial function

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])
ArgumentWhat it means
valuesRequiredA range or array of cash flows in time order, with at least one negative (money out) and one positive (money in) value.
guessOptionalA 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

D2fx=IRR(B2:B7)
ABCD
1YearCash flow
20-5000012.05%
3112000
4215000
5318000
6414000
7510000

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

D2fx=IRR(B2:B5)
ABCD
1YearCash flow
20-50000-4.78%
3112000
4215000
5318000
6414000
7510000

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

D2fx=(1+IRR(B2:B8))^12-1
ABCD
1MonthCash flow
20-600018.32%
311050
421050
531050
641050
751050
861050

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 %).

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 16 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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 resultCash 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)+B2 should 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.

LanguageFunction name
CzechMÍRA.VÝNOSNOSTI
DanishIA
DutchIR
FinnishSISÄINEN.KORKO
GermanIKV
HungarianBMR
ItalianTIR.COST
Norwegian (Bokmål)IR
Portuguese (Brazil)TIR
Portuguese (Portugal)TIR
RussianВСД
SpanishTIR
SwedishIR
TurkishİÇ_VERİM_ORANI