IRR function in Google Sheets
Calculates the internal rate of return on an investment based on a series of periodic cash flows.
=IRR(cashflow_amounts, [rate_guess])IRR syntax and parameters
Two arguments, one required.
- cashflow_amountsrangeRequired
An array or range containing the income or payments associated with the investment. cashflow_amounts must contain at least one negative and one positive cash flow to calculate rate of return.
- rate_guessnumberOptional
[ OPTIONAL - 0.1 by default ] - An estimate for what the internal rate of return will be.
IRR examples
Formulas you'll actually reuse.
The return of a project: −$50,000 today, then $15,000 a year for five years:
=IRR(B2:B7)Result
0.1524Rising cash flows as an array constant:
=IRR({-50000, 12000, 15000, 18000, 21000})Result
0.1098
IRR in Excel
Same name — your formula ports as-is.
Try IRR in the playground
Edit the example — nothing to install.
Preloaded with the IRR formula from Example 1 — change anything and watch it respond.
IRR errors
What they mean — and the fixes.
#NUM!No sign change in the cash flows, or the search didn't converge — the first value must be negative; pass a guess if the flows are unusual.
Related functions
More ways Google Sheets gets this done.
- ACCRINTCalculates the accrued interest of a security that has periodic payments.FinancialExcel
- ACCRINTMCalculates the accrued interest of a security that pays interest at maturity.FinancialExcel
- AMORLINCReturns the depreciation for an accounting period, or the prorated depreciation if the asset was purchased in the middle of a period.FinancialExcel
- COUPDAYBSCalculates the number of days from the first coupon, or interest payment, until settlement.FinancialExcel
- COUPDAYSCalculates the number of days in the coupon, or interest payment, period that contains the specified settlement date.FinancialExcel
- COUPDAYSNCCalculates the number of days from the settlement date until the next coupon, or interest payment.FinancialExcel