Real investments rarely pay on a tidy yearly schedule. XIRR calculates the annualized return when cash flows land on specific, uneven dates — the right tool whenever the gaps between flows aren’t equal.
The example
An investment with cash flows on irregular dates.
| A | B | |
|---|---|---|
| 1 | Date | Cash flow |
| 2 | 1/15/2025 | -$1,000 |
| 3 | 3/02/2025 | $300 |
| 4 | 9/20/2025 | $400 |
| 5 | 2/10/2026 | $450 |
| 6 | XIRR: | ~13.4% |
The formula
The date-aware annualized return:
How it works
XIRR is IRR with real dates:
- Give it two ranges: the cash flows (first one negative) and the matching dates.
- It finds the annual rate that discounts every flow to a net present value of zero — weighting each by its actual date, not an assumed equal period.
- Because timing is exact, XIRR is more accurate than IRR for sporadic investments, dividends, or capital calls.
- Its sibling
XNPV(rate, values, dates)gives the date-aware net present value at a rate you choose.
XIRR vs IRR: use IRR only when flows are exactly one period apart; use XIRR whenever the dates are irregular (the common real-world case). XIRR returns an annualized rate regardless of how short or long the gaps are.
Try it: interactive demo
Adjust the final inflow; watch the annualized XIRR.
Variations
Date-aware NPV
XNPV at a chosen rate:
Provide a guess
Help convergence:
Equal periods? Use IRR
Simpler when flows are evenly spaced:
Pitfalls & errors
#NUM! without a sign change. Like IRR, XIRR needs at least one negative and one positive flow; add a guess for hard cases.
Dates must be real dates and align one-to-one with the values. Text dates or mismatched counts error.
First date is the baseline. XIRR measures everything relative to the earliest date; it doesn’t need to be sorted, but the first cash flow is usually the investment.
Practice workbook
Frequently asked questions
How do I calculate return for cash flows on irregular dates?
What's the difference between IRR and XIRR?
How do I get the present value with specific dates?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class