Finance

IRR vs XIRR in Excel (with dates)

IRR assumes every cash flow is one period apart. XIRR uses actual dates and returns an annual rate.

All Excel versions and Google Sheets

The formula

XIRR (annual, uses dates)ExcelGoogle Sheets
=XIRR(B2:B6,A2:A6)
In D2 → 21.35%
IRR (per period: here, per half-year)ExcelGoogle Sheets
=IRR(B2:B6)
In D3 → 10.14%
IRR annualizedExcelGoogle Sheets
=(1+IRR(B2:B6))^2-1
In D4 → 21.32%
✓ Tested. All 3 Excel results in this example were recalculated in LibreOffice Calc 25.2 and matched the values shown.

Worked example

Paste the data below into a blank sheet starting at cell A1 (or download the cheat sheet, where every example is set up). Highlighted cells hold the formulas and show the expected results.

ABCD
1DateCash flow
2Jan 1, 2026-10,00021.35%
3Jul 1, 2026200010.14%
4Jan 1, 2027300021.32%
5Jul 1, 20274000
6Jan 1, 20284000

How it works

B2:B6
Cash flows: at least one negative (investment) and one positive.
A2:A6
Dates for XIRR. The first date is the start.
^2
Cash flows here are six months apart, so (1+IRR)^2−1 converts a half-year IRR to an annual rate.

Common errors and fixes

Why does the formula return #NUM!?

No sign change in the cash flows, or the solver didn't converge. Add a guess, e.g. XIRR(B2:B6,A2:A6,0.1).

IRR looks too small?

Your periods aren't years. Annualize, or use XIRR.

Does this work in Google Sheets?

Yes. The formulas on this page work the same way in Google Sheets.