XIRR Function
XIRR estimates the annualized return that makes the XNPV of irregularly dated cash flows equal zero. It uses actual day intervals rather than assuming equal periods.
| Excel XIRR Function | |||||||||||
| XIRR estimates the annual rate that makes the XNPV of irregularly dated cash flows equal zero. | |||||||||||
| Source data, editable | Examples | ||||||||||
| Date | Cash flow | Input | Value | Example | Formula syntax | Result | |||||
| Jan 1, 2024 | $-1,000 | Guess | 10.0% | Default guess | =XIRR(B12:B16,A12:A16) | 37.1% | |||||
| May 15, 2024 | $300 | Period basis | Actual dates | Editable guess | =XIRR(B12:B16,A12:A16,D12) | 37.1% | |||||
| Dec 31, 2024 | $400 | XNPV at result | =XNPV(H12,B12:B16,A12:A16) | $-0.00 | |||||||
| Jul 1, 2025 | $500 | Periodic IRR | =IRR(B12:B16) | 16.7% | |||||||
| Feb 1, 2026 | $250 | ||||||||||
| Reliability checks | |||||||||||
| The calculated XIRR makes XNPV approximately zero | OK | ||||||||||
| Default and explicit guesses converge to the same rate | OK | ||||||||||
Overview
XIRR calculates an annualized internal rate of return from cash flows that occur on specific dates.
Quick reference
Syntax: =XIRR(values, dates, [guess])
Returns: An annual internal rate of return based on actual dates. (percentage)
Arguments:
values(required) — Cash flows containing at least one positive and one negative value.dates(required) — Dates aligned one-for-one with the cash flows.guess(optional) — Starting estimate for iteration; defaults to 10%.
The values and aligned dates are required. The optional guess defaults to 10% and supplies a starting point for Excel’s iterative calculation.
Common uses
- Measuring annualized returns from irregular payments
- Comparing dated cash-flow schedules
- Finding the break-even rate for an XNPV calculation
Calculations
Excel searches iteratively for the annual rate that makes XNPV equal zero. Actual day differences are evaluated on a 365-day basis, so the result is not constrained to evenly spaced monthly, quarterly, or annual periods.
The value and date ranges must be the same size. The first date anchors the calculation, and the values require at least one sign change.
Function behavior
Situation | Behavior |
|---|---|
Actual dates | Result is annualized from day intervals. |
No sign change | XIRR cannot find a conventional solution. |
Mismatched ranges | Excel returns an error. |
Failed convergence | Excel returns |
Multiple sign changes | More than one mathematical solution may exist. |
Common errors
Using IRR for irregular dates
What happens: Timing is treated as equally spaced.
Better approach: Use XIRR with a date for every cash flow.
Reading a convergence error as a final answer
What happens: A poor starting guess or ambiguous cash-flow pattern may prevent iteration.
Better approach: Check signs, dates, and range sizes, then test a reasoned alternative guess.
Example
Example 1
=XIRR(B12:B16,A12:A16)
The workbook's irregular schedule returns 37.1% annually.
Example 2
=XIRR(B12:B16,A12:A16,D12)
With the editable 10% guess, Excel converges to the same 37.1% result.
Example 3
=XNPV(H12,B12:B16,A12:A16)
Using the calculated XIRR as the discount rate produces XNPV of approximately $0.00.
Example workbook
The workbook compares XIRR with and without a guess, validates the result with XNPV, and contrasts it with periodic IRR.
Key takeaway
XIRR is an annualized return from actual dates; validate it by checking that XNPV at the result is approximately zero.