Going Stellar

Home/Google Sheets reference

Google Sheets function · Financial

IRR in Google Sheets: syntax and examples

IRR finds the rate at which the net present value of a series of cash flows is zero. The flows must be evenly spaced, and the first one is usually the negative investment.

Syntax

IRR(cashflow_amounts, [rate_guess])

Arguments

ArgumentTypeRequiredWhat it does
cashflow_amountsrangeyesCash flows at regular intervals. Needs at least one negative and one positive value.
rate_guessnumbernoStarting estimate for the solver. Default is 0.1.

Examples

The examples use this table, starting in A1:

-1000
300
400
500
=ROUND(IRR(A1:A4) * 100, 2)

Result: 8.9

Rate of return in percent for 1000 invested and three payments back.

Run in a Google Sheet (English US locale) on .

=ROUND(IRR(A1:A4, 0.2) * 100, 2)

Result: 8.9

Same flows with another starting guess. The answer is unchanged.

Run in a Google Sheet (English US locale) on .

=IRR({-100, 110})

Result: 10%

One period, 10% return. The flows can be an array literal.

Run in a Google Sheet (English US locale) on .

=ROUND((1 + IRR(A1:A4)) ^ 12 - 1, 4)

Result: 1.7807

If the flows are monthly, compound the periodic rate to an annual one.

Run in a Google Sheet (English US locale) on .

=ROUND(NPV(IRR(A1:A4), A2:A4) + A1, 6) = 0

Result: TRUE

At the IRR the net present value is zero.

Run in a Google Sheet (English US locale) on .

Common errors

  • Without at least one negative and one positive value, IRR returns #NUM!.
  • The rate is per period, as a fraction: 0.1 means 10%. With monthly flows, compound it to get a yearly rate.
  • The flows must be evenly spaced in time. For irregular dates use XIRR.
  • rate_guess is only the starting point of the solver. In the second example, a guess of 0.2 gives the same answer as the default.

Compared with Excel

Same syntax in Excel.

Sources

  1. IRR (Docs Editors Help)

Markdown version · All functions