📈 Investments

XIRR Calculator

Enter every investment and withdrawal with its date. XIRR returns the annualised rate that makes all those cashflows balance — the only honest way to measure a SIP.

Your cashflows
One per line: date, amount. Money out is negative, money in is positive.
Your annualised return
Time-weighted for when each rupee actually went in

What XIRR measures, and why your SIP needs it

XIRR — extended internal rate of return — is the annualised return on a series of cashflows that arrive on irregular dates. It answers one question: what constant annual rate, applied to every rupee for exactly as long as that rupee was invested, reproduces the money you actually ended up with?

That "for exactly as long as that rupee was invested" is the whole point. In a SIP, your first instalment has been working for years and last month's has been working for weeks. Any measure that treats them as equal will be wrong.

Why CAGR gives the wrong answer on a SIP

CAGR assumes a single amount invested once and left alone. Feed it a SIP and it silently pretends every instalment went in on day one — which flatters your return badly.

Take ₹10,000 a month for five years. You have invested ₹6,00,000 and the folio is worth ₹8,20,000.

  • Absolute return: ₹2,20,000 on ₹6,00,000 = 36.7%. True, but says nothing about time.
  • CAGR, misapplied: treating ₹6,00,000 as a day-one lumpsum growing to ₹8,20,000 over five years gives about 6.4% — too low, because most of that money was not invested for five years.
  • XIRR: around 12.9%, because it credits each instalment only for the months it was actually in the market.

The mistake runs in both directions depending on the cashflow pattern, which is what makes it dangerous. There is no rule of thumb to correct it — you have to date the cashflows.

Rule of thumb: one investment, one date → CAGR. Many investments on many dates → XIRR. For a single lumpsum the two produce the identical number, which is a useful way to sanity-check any XIRR tool including this one. The CAGR calculator handles the single-lumpsum case.

How XIRR is actually calculated

There is no closed-form formula. XIRR is the rate r that makes the present value of every cashflow sum to zero:

Σ cashflowi ÷ (1 + r)^(daysi ÷ 365) = 0

Because r cannot be isolated, every implementation — Excel, Google Sheets, this page — searches for it numerically. The schedule above shows the search's result: each of your cashflows discounted back to the first date at the rate found. Add that column up and you get zero. That is not a coincidence; it is the definition.

This calculator reproduces Microsoft's own documented XIRR example to the second decimal, so a figure here will match what Excel gives you on the same cashflows.

XIRR, CAGR and absolute return side by side

Absolute returnCAGRXIRR
Accounts for timeNoYesYes
Handles multiple datesYesNoYes
Handles withdrawalsPartlyNoYes
Right tool forA quick "how much did I make?"One lumpsum, one exitSIPs, top-ups, partial redemptions, real portfolios

Getting your cashflows out of a statement

Every mutual fund CAS or broker statement lists dated transactions, which is exactly what this needs. Three rules:

  • Money leaving your pocket is negative. SIP instalments, lumpsum purchases, top-ups.
  • Money coming back is positive. Redemptions, dividends actually paid out, switches out.
  • If you still hold the investment, add today's value as a final positive cashflow dated today. Without it there is nothing for the return to be measured against, and the calculator will tell you so.

Do not include a dividend that was reinvested — no money moved, and counting it double-counts the units you already hold.

What counts as a good XIRR

Judge it against what the same money could have earned elsewhere over the same period, not against a round number. As a rough frame for Indian investors: a fixed deposit sets the risk-free floor at roughly 7%, so an equity SIP returning less than that has not paid you for the risk. Long-run equity index returns have historically landed in the low teens.

Two cautions. A period shorter than a year annualises badly — three months of 4% becomes an eye-catching 17% a year, and it means nothing. And XIRR is backward-looking; it describes what happened, not what will. To project forwards from an assumed rate instead, use the SIP calculator.

Mistakes that produce a wrong number

  • Getting the signs backwards. If everything is positive there is no solution, and the calculator will say so rather than guess.
  • Forgetting the closing value. The most common error. An ongoing SIP with no final positive cashflow looks like a total loss.
  • Using CAGR on a SIP. Covered above, and by far the most common way people overstate — or understate — how they have done.
  • Reading too much into short periods. Under a year, prefer the absolute return.
  • Comparing pre-tax XIRR to a post-tax alternative. Equity gains carry LTCG above the annual exemption; an FD is taxed at slab. Compare like with like.

Frequently Asked Questions

What is XIRR in mutual funds?
XIRR is the annualised return on a series of investments made on different dates. Because a SIP puts money in every month, each instalment has been invested for a different length of time, and XIRR is the only common measure that weights each one by how long it was actually in the market.
What is the difference between XIRR and CAGR?
CAGR assumes one investment on one date. XIRR handles any number of investments and withdrawals on any dates. For a single lumpsum held to a single exit they give exactly the same answer — for a SIP, CAGR is simply the wrong tool and can be off by several percentage points in either direction.
Is a 12% XIRR good?
For an equity mutual fund over a long period, yes — it is around the historical long-run range for Indian equity indices. For a debt fund it would be excellent. The only meaningful comparison is against what the same money could have earned at similar risk over the same period, starting from roughly 7% for a fixed deposit as the risk-free floor.
Does this XIRR calculator match Excel?
Yes. It uses the same definition — the rate at which all cashflows discounted on a 365-day year sum to zero — and reproduces Microsoft's own published XIRR example (37.34%) to the second decimal. Excel's XIRR, Google Sheets' XIRR and this page will agree on the same cashflows.
How do I enter my SIP for XIRR?
One line per instalment: the date, then the amount as a negative number. Then add a final line with today's date and the current value of the holding as a positive number. Dates can be DD-MM-YYYY or YYYY-MM-DD, and ₹ signs and commas are ignored.
Why does my XIRR show an error?
Almost always the signs. You need at least one negative cashflow (money invested) and at least one positive (money returned, or today's value). An ongoing SIP with no closing value is the usual culprit — add the current portfolio value as a final positive entry dated today.
Can XIRR be negative?
Yes. If you have taken out less than you put in, XIRR is negative, and it tells you the annualised rate at which the money shrank. That is genuinely useful information and this calculator reports it rather than hiding it.
Should I use XIRR for a period under one year?
Be careful. XIRR annualises, so a 4% gain over three months is reported as roughly 17% a year — arithmetically correct and practically meaningless, because it assumes that pace continues for nine more months. Under a year, the absolute return is the more honest figure.
Embed this calculator on your website — free

Copy this snippet to add the live XIRR Calculator to your own site. It updates automatically and always stays free.