Function · Financial

Excel XIRR function

The Excel XIRR function returns an annual rate for cash flows that are not equally spaced. A $10,000 outlay on January 15, 2026 and three later receipts come to about 17.75%.

Excel 2007 and later. Also in Excel for the web and Google Sheets.

Syntax =XIRR(values, dates, [guess])

XIRR
=XIRR(B2:B5,A2:A5)

Arguments

NameRequiredWhat to pass
valuesRequiredThe cash flows. The first is usually the outlay. At least one must be negative and one positive.
datesRequiredA date for each value, the same length as values. The first date is the start.
guessOptionalStarting guess. The default is 10%.

Examples

Uneven receipts after a January investment

=XIRR(B2:B5,A2:A5)

Result 17.7486%

=XIRR(B2:B5,A2:A5)B6
Cash
AB
1DateCash
21/15/2026-10000
36/1/20262500
411/1/20264000
53/15/20275000
6Rate17.7486%
A picture of the sheet, not a live calculator. The dates are real dates. Format B6 as a percent.

XIRR is IRR for dates that are not one period apart. Invest $10,000 on January 15, 2026, then receive $2,500 on June 1, $4,000 on November 1, and $5,000 on March 15, 2027. The annual rate that sets the present value to zero is about 17.7486%. Excel measures each gap in days and uses a 365-day year.

IRR cannot see those dates. It would treat the four amounts as four equal periods and return a different number. The first date is the start. Later dates should fall after it. A text date that your locale reads backwards moves the rate without an obvious error. Store the dates with DATE, or as real date serials, the same way the other date pages on this site do. A coupon bond, with a settlement date, a maturity date, and a price per $100 of face, uses YIELD.