Skip to content

Saving & investing

XIRR Calculator

The true annualised return of irregular investments and withdrawals, the same XIRR Excel computes, explained and done in your browser.

Private · on device. Calculated in your browser, nothing you type is sent anywhere

Quick answer

XIRR finds the single annual rate that makes all your dated cash flows net to zero. It is the right measure for SIPs, top-ups and partial withdrawals, CAGR only works for one lump sum in and one out.

Copy any block containing a date and an amount, extra columns are ignored, and the order does not matter. Nothing you paste is uploaded; parsing happens in this browser.

XIRR (annualised)
24.64%
Simple CAGR for comparison
21.14%
Off by 3.5%, CAGR ignores when each amount moved
Total invested
₹1,00,000
Total value out
₹1,20,000
Net gain
₹20,000
Period
347 days
1.0 years
Ignored 1 row that looked like headers or notes.
Used the transaction-type column to work out which amounts are money in and money out.
Cash flows read (3 rows)
DateAmountDirection
3/4/2023₹50,000Money in
3/7/2023₹50,000Money in
15/3/2024₹1,20,000Money out

Formulas last verified 2026-10-10. Results are estimates, not financial advice. How we calculate.

The question XIRR answers

Real investing is messy: a SIP here, a lump-sum top-up there, a partial withdrawal for an emergency. Ask "what return did I actually make?" and simple formulas fall apart, because every rupee has been invested for a different length of time. XIRR resolves the mess with one clean definition, it is the annual rate r for which

Σ CFᵢ / (1 + r)^(dᵢ/365) = 0

where each cash flow CFᵢ is weighted by dᵢ, its exact number of days from the first flow (the actual/365 convention). Money you put in is negative, money you received, plus the current value of what you still hold, is positive. There is no algebraic solution; the calculator, like Excel, iterates until the equation balances.

The canonical example

Excel's documentation uses this cash-flow set, and it is a good test case:

DateCash flowMeaning
1 Jan 2008−10,000Investment
1 Mar 2008+2,750Return
30 Oct 2008+4,250Return
15 Feb 2009+3,250Return
1 Apr 2009+2,750Return

13,000 came back on 10,000 invested, a 30% total gain, but compressed into about 15 months, which annualises to 37.34%. That compression is the whole point: XIRR prices the calendar, not just the amounts.

XIRR vs CAGR: when each applies

CAGR is valid for exactly one pattern, a single lump sum in, a single value out. For that pattern, XIRR and CAGR agree. Add even one intermediate flow and CAGR loses its meaning, because "the" holding period no longer exists. Practical rule:

  • Lump sum, held untouched → CAGR (or XIRR, they match).
  • SIP, top-ups, withdrawals, dividends reinvested by you → XIRR, no substitute.
  • Comparing your result to a fund factsheet → your XIRR vs their point-to-point return measures your timing as well as their management; the two legitimately differ.

This is why every serious SIP platform reports XIRR. Your monthly instalments, modelled cleanly in the SIP calculator, each carry a different holding period, and only XIRR aggregates them honestly. The same logic applies in reverse to withdrawals: a SWP is a stream of dated positive flows, and XIRR is again the right yardstick.

Reading the number

A negative XIRR means the dated flows lost money at that annual pace, common and not alarming early in a SIP, when a market dip hits instalments that have barely had time to grow, and annualisation stretches a small loss into a scary rate. Symmetrically, a huge positive XIRR over a few months (a 5% gain in 30 days is ~80% annualised) is arithmetic, not prophecy. XIRR earns its keep on periods of a year or more, where annualising describes rather than extrapolates. And remember it reports a nominal rate: at 6% inflation, a 10% XIRR is roughly 4% real, the usual haircut applies before celebrating.

Frequently asked questions

What exactly does XIRR compute?

The single annual rate that makes all your dated cash flows discount to a net present value of zero, money out as negatives, money in (including the current value) as positives, each weighted by its exact date on an actual/365 basis. It is the same XIRR function Excel and Google Sheets provide, and the de facto standard for mutual fund and SIP returns.

How is XIRR different from CAGR?

CAGR handles exactly two cash flows: one lump sum in, one value out. XIRR handles any number, each on its own date. If you invested ₹10,000 monthly for 3 years, CAGR computed from “₹3.6 lakh in, final value out” is simply wrong, most of your money was not invested for the full 3 years. XIRR weights every instalment by its actual time in the market.

What is a worked XIRR example?

Excel’s own documented example: invest 10,000 on 1 Jan 2008, then receive 2,750 (1 Mar), 4,250 (30 Oct), 3,250 (15 Feb 2009) and 2,750 (1 Apr 2009). Total received is 13,000, a 30% gain, but because the money came back within about 15 months, the annualised rate is 37.34%. Enter the same flows above and the calculator reproduces it.

Why do SIP returns need XIRR?

Each SIP instalment has a different holding period, the first has been invested for years, the latest for weeks. Any single-period formula misprices that. XIRR is how AMCs and platforms report SIP performance, so it is also the only number you can fairly compare against a fund’s published returns. The fund’s point-to-point CAGR and your personal XIRR will usually differ, because your money arrived on your dates.

What does a negative XIRR mean?

Your dated cash flows lost money at that annual rate, the current value of what you hold plus what you took out is worth less than what you put in, after accounting for timing. A recently started SIP in a dipping market often shows a sharply negative XIRR; with little time elapsed, annualisation magnifies small losses. It describes the past, not the destination.

Why does XIRR sometimes fail or give odd answers?

XIRR has no closed-form solution, it is found by iteration, and needs at least one negative and one positive flow to make sense. Cash flows that change sign several times can admit more than one mathematically valid rate, and very short periods produce huge annualised figures (a 5% gain in a month is roughly an 80% XIRR) that no one should extrapolate. Sanity-check anything extreme.

Related calculators