FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

XIRR in Google Sheets

XIRR with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the XIRR Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Three dated flows

AB
1DateCash flow
21/1/2024-1000
37/1/2024600
41/1/2025600

Formula: D2: =ROUND(XIRR(B2:B4,A2:A4),4)

Result: 0.2782

The payments of 600 after six and twelve months produce an annual return of about 27.8%.

One year in, one year out

AB
1DateCash flow
21/1/2024-1000
31/1/20251100

Formula: D2: =ROUND(XIRR(B2:B3,A2:A3),4)

Result: 0.0997

A 10% gain over 366 days is slightly under 10% on a 365-day year.

Uneven calendar

AB
1DateCash flow
21/15/2024-1000
36/1/2024400
42/1/2025800

Formula: D2: =ROUND(XIRR(B2:B4,A2:A4),4)

Result: 0.251

The three flows are spaced unevenly, which IRR could not handle.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in D2: =XIRR(B2:B5,A2:A5)

Example spreadsheet for XIRR
ABCD
1DateCash flowResult
21/1/2026-100000.247820893036
36/1/20263000
41/1/20274500
56/1/20275000
Result in D2: 0.247820893036
Practice this in a lesson: RATE, NPER and XIRR

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.