XIRR (annualised)

Total invested
Total received
Net gain
Cashflows read

How it works

Ordinary return calculations assume money went in once and came out once. Real portfolios are not like that — you invest at odd intervals, sometimes withdraw, and every one of those flows has spent a different length of time invested.

XIRR handles this by finding the single annual rate at which every dated cashflow, discounted back to the first date, sums to zero. It is the same calculation as a spreadsheet XIRR function, and it is the number to use when comparing a messy real portfolio against a benchmark.

Solve for r: Σ amountᵢ ÷ (1 + r)^(daysᵢ ÷ 365) = 0

  • Negative amounts — money leaving you — purchases and investments
  • Positive amounts — money coming back — redemptions, dividends, and the current value at the end
  • r — the annualised rate the calculator solves for

Worked example

Three investments and a closing value

Inputs

2024-01-15−100,000
2024-07-10−50,000
2025-03-01−75,000
2026-08-01+280,000

Results

XIRR11.1%
Net invested225,000
Net gain55,000

A simple total-return calculation would report 24.4% here. XIRR reports 11.1% a year, because most of the money was invested for only part of the period.

Frequently asked questions

How do I enter my data?

One cashflow per line: the date, then the amount. Investments are negative, money you receive is positive. The final line should be today’s date with the current value of the holding as a positive amount.

Why does it say no solution?

XIRR needs at least one negative and one positive amount. If everything is negative — money invested but no closing value entered — there is no rate that balances the equation. Add the current value as a final positive line.

How does XIRR differ from CAGR?

CAGR assumes a single lump sum invested once. XIRR handles any number of flows on any dates. For a single investment held throughout, they give the same answer.

Is my data sent anywhere?

No. The calculation runs entirely in your browser. Nothing you type is transmitted to us or stored.

More in Savings & Investing