XIRR: Definition, Formula and Irregular Cash Flows

XIRR is an annualized internal rate of return calculated for a series of cash flows that occur on irregular dates. It finds the discount rate that makes the date-adjusted net present value of those cash flows equal to zero.
Advertisement

For unevenly timed investment cash flows, XIRR can provide a more realistic annualized rate. Ordinary IRR assumes equally spaced periods, which can distort the result when actual cash-flow dates vary materially.

Key Takeaways

  • Actual dates matter: Each cash flow is discounted according to when it occurs.
  • Annualized output: Spreadsheet implementations such as Excel use a 365-day basis.
  • Positive and negative cash flows are required: A valid calculation needs at least one of each.
  • IRR-style limits remain: Multiple sign changes can create multiple solutions or an economically misleading result.

XIRR Formula

The calculation solves for the rate r that makes the present value of dated cash flows equal to zero.

0 = Σ [Ci / (1 + r)^((di – d0) / 365)]

In the formula, Ci is each cash flow, di is its date, and d0 is the initial date. Because the rate cannot usually be isolated algebraically, spreadsheet software solves it iteratively.

XIRR Example

Example: An investor contributes $10,000 on January 1, adds $2,000 on May 15, and receives $13,500 on December 20. The calculation evaluates the actual number of days between those cash flows instead of pretending they occurred at equal intervals.

Its output is an annualized rate. It should not be interpreted as the simple percentage gain on the account balance.

XIRR in Excel

=XIRR(values, dates, [guess])

Microsoft Excel requires corresponding arrays of cash-flow values and dates. Values must include at least one positive and one negative cash flow.

An optional guess gives Excel a starting estimate for the iterative calculation. When the function cannot converge on a valid solution, it can return an error rather than a meaningful return.

XIRR vs. IRR

XIRRIRR
Uses actual cash-flow datesAssumes cash flows occur at equal intervals
Useful for irregular contributions and withdrawalsUseful for periodic cash-flow schedules
Annualizes using date differencesReturns a rate per modeled period unless interpreted or converted appropriately

Both calculations share the internal rate of return concept; XIRR changes the timing treatment rather than the economic idea.

XIRR vs. CAGR

CAGR uses a beginning value, ending value, and time period to calculate a smoothed growth rate. It does not explicitly account for multiple deposits and withdrawals along the way.

Irregular contributions and distributions are better handled with XIRR because their actual timing is reflected. For a single value with no intermediate cash flows, CAGR can be more appropriate.

XIRR vs. NPV

Net present value asks what dated cash flows are worth after discounting them at a chosen required rate. Instead of choosing a discount rate, the XIRR calculation solves for the rate that makes NPV equal zero.

A project can therefore have a positive net present value at the investor’s hurdle rate even though XIRR is reported as a different percentage.

Limitations of XIRR

Multiple sign changes can cause the calculation to produce more than one mathematically valid rate. Some patterns have no economically meaningful solution at all.

Like IRR, the measure compresses a complex cash-flow path into one annualized percentage and carries similar reinvestment assumptions. Comparing investments solely by XIRR can therefore hide scale, risk, liquidity, and total wealth created.

Important: A higher XIRR does not automatically make an investment better. Compare the cash-flow pattern, amount invested, risk, time horizon, liquidity, and NPV alongside the annualized rate.

When XIRR Is Useful

Private investments, real estate, portfolios with irregular contributions, and business projects can all benefit from date-specific return analysis.

For market portfolios with frequent external deposits and withdrawals, XIRR is closely related to money-weighted return because the investor’s cash-flow timing affects the result.

Frequently Asked Questions (FAQs)

Is XIRR an annual return?

It is an annualized internal rate of return based on the dated cash flows used in the calculation.

Why can XIRR differ from IRR?

Actual dates distinguish XIRR from ordinary IRR, which assumes equal spacing between cash flows.

Can XIRR have more than one answer?

Yes. Cash-flow patterns with multiple sign changes can produce multiple mathematical solutions or make the result difficult to interpret.

Sources