XIRR: how to calculate the rate of return with irregular dates
The ordinary IRR assumes cash flows at equal intervals, such as one per month. In real life, contributions and withdrawals fall on any date. XIRR handles that: it counts the calendar days between each entry and the first date and looks for the annual rate that makes the present value of the outflows equal to that of the inflows. It is the same function as in spreadsheets (Excel, LibreOffice, Google Sheets), on a 365-day basis.
Example
Contributions of $10,000 on 2024-01-15, $2,000 on 2024-06-03 and $3,000 on 2025-02-10; withdrawals of $4,500 on 2025-08-20 and $12,500 on 2026-10-30. That is $15,000 invested and $17,000 received over 1,019 days.
| Result | Value |
|---|---|
| XIRR (annual rate) | 5.84%/yr |
| Monthly equivalent | 0.474%/mo |
| Multiple (MOIC) | 1.13x |
| NPV at 8%/yr | −$641.16 |
The flows returned 13.3% more than went out, but over almost three years that is 5.84% a year, below the 8% benchmark, so the NPV is negative.
Things to watch
Use opposite signs for inflows and outflows: without at least one negative and one positive amount there is no rate. When the flows change sign more than once, there can be more than one possible rate. Very short periods produce huge annualized rates. The result is an educational estimate, not investment advice, and it does not include taxes or fees unless you put them into the amounts.