Skip to content

Free tool, runs in your browser

XIRR Calculator

XIRR (Extended Internal Rate of Return) is the single annualised return rate that accounts for money moving in and out of an investment on different, irregular dates: SIP instalments, lump-sum top-ups, partial withdrawals and a final redemption or current value. This calculator matches the result of Excel and Google Sheets' XIRR() function. Choose a regular SIP schedule or add your own dated cash flows below, and get your annualised return in seconds. All calculations run locally on your device; nothing is uploaded or stored.

Cash flow type Regular investments (SIP)

Builds installments internally, then solves for XIRR.

Total invested
Total returned / current value
Net gain
Time span
XIRR (annualised return) Enter your cash flows to see your XIRR.
Was this tool helpful?
Give feedback

How to use this XIRR calculator

Pick whichever mode matches how you actually invested, then enter your amounts. The calculator recalculates live as you type. Every calculation runs locally in your browser; see the privacy policy for details on what is never sent anywhere.

  1. Regular investments (SIP): enter the date you started, how often you invest (every 14 days, monthly, quarterly, half-yearly or yearly), the amount per instalment, the end or valuation date, and the maturity or current value of the investment.
  2. Irregular cash flows: add a row for every actual transaction, with its date, whether it was an investment (money in) or a withdrawal or value received (money out), and the amount.
  3. Read the result: the calculator shows your annualised XIRR, total invested, total returned or current value, net gain, and the time span the calculation covers.

What is XIRR and how is it different from CAGR?

XIRR (Extended Internal Rate of Return) is the annualised return that makes the present value of every cash flow you entered, discounted back to the date of the first one, sum to zero. It is the correct return metric whenever money moves in or out of an investment more than once, on dates that are not evenly spaced: SIP instalments, an occasional top-up, a partial withdrawal, or simply checking the current value of an ongoing investment.

CAGR (Compound Annual Growth Rate) only compares a single starting amount to a single ending amount over a fixed period. It has no way to account for money added or removed partway through, so applying CAGR to a SIP or to a portfolio with multiple transactions understates or overstates the real return, depending on when the extra cash flows happened. If your investment has exactly one inflow and one outflow, XIRR and CAGR give the same answer; the moment a third dated cash flow appears, they diverge. See XIRR vs CAGR for worked numeric examples of exactly where the two part ways.

A simple absolute return (final value minus invested amount, divided by invested amount) is even less useful for comparison purposes: it ignores time entirely, so a 20 percent gain over six months and a 20 percent gain over five years would look identical, even though the first is a dramatically better result on an annualised basis.

This matters most for anyone investing through a Systematic Investment Plan, because every SIP instalment is, by definition, a separate cash flow on its own date. An instalment from three years ago has had far longer to compound than one from last month, and XIRR automatically gives it more weight in the final annualised figure, exactly as a real investor's experience would suggest it should. A statement that simply divides total gain by total invested, without accounting for when each rupee went in, cannot make that distinction.

Worked example: a SIP with a lump-sum top-up

Suppose you invest 5,000 rupees on the first of every month starting in April 2022, add a 50,000 rupee lump-sum top-up in October 2023, and check the value of the investment on 1 April 2024 to find it is worth 2,50,000 rupees. Because the instalments and the top-up happened on different dates, a plain CAGR calculation cannot be applied directly. Entered as irregular cash flows, the calculation looks like this:

DateTypeAmount
1 Apr 2022Investment₹5,000 (repeated monthly)
1 Oct 2023Investment (top-up)₹50,000
1 Apr 2024Withdrawal / value received₹2,50,000

Enter each monthly instalment as its own row, plus the top-up and the final value, and the calculator solves for the single annualised rate that reconciles all of them. This is exactly the scenario the regular investments mode above automates: instead of typing 24 individual monthly rows by hand, you can enter the start date, frequency, instalment amount and final value once, and add the one-off top-up as an extra manual row when needed.

The XIRR formula, explained

XIRR solves for the rate r in the equation below, where each cash flow is discounted back to the date of the very first one using the actual number of days between the two dates, divided by 365:

Σ ( cashFlowi ÷ (1 + r)daysi ÷ 365 ) = 0

Investments are entered as negative cash flows (money leaving your hand) and withdrawals or a final value are entered as positive cash flows (money you receive). Because the dates are irregular, there is no algebraic shortcut: the equation is solved numerically, by searching for the rate that makes the sum of all discounted cash flows equal zero. This calculator does that search itself, so you never need to open a spreadsheet or guess a starting rate.

XIRR vs IRR vs CAGR vs absolute return

MetricHandles irregular datesHandles multiple cash flowsTypical use
XIRRYesYesSIPs, top-ups, partial withdrawals, ongoing portfolios
IRRNo (assumes evenly spaced periods)YesProject cash flows on a fixed schedule, e.g. yearly
CAGRNoNo (one start value, one end value)A single lump-sum investment held for a fixed period
Absolute returnN/ANoQuick, non-annualised snapshot only

If your money moved on more than two dates, or the dates are not evenly spaced apart, XIRR is the metric to use.

Common XIRR mistakes to avoid

XIRR is sensitive to both the sign and the timing of every cash flow, so small entry mistakes can move the result noticeably.

When should you actually check your XIRR?

There is no fixed schedule; checking too often mostly adds noise, since a recent instalment has barely had time to grow and can drag a short-term XIRR reading down even when the underlying investment is performing normally. A more useful habit is to check XIRR at meaningful milestones: once a year on the same date, whenever you consider a large top-up or withdrawal, or when comparing two different investments over the exact same start and end dates so the comparison is fair.

It is also worth recalculating whenever your cash flow history changes, for example after a top-up, a partial redemption, or a switch between fund options, since each of those is a new dated cash flow that changes the underlying calculation, not just the ending value.

How to calculate XIRR in Excel or Google Sheets

If you would rather check your numbers in a spreadsheet, both Excel and Google Sheets provide a built-in XIRR() function that uses the same calculation as this page. See the full step-by-step Excel and Google Sheets walkthrough for a worked example and fixes for the common #NUM! error.

Frequently asked questions

What is a good XIRR for mutual funds or SIPs?
There is no single fixed number, because it depends on the asset class, the time period and the market conditions during that period. A more useful check is to compare your XIRR against a relevant benchmark index over the exact same start and end dates, rather than against a fixed target percentage.
Can XIRR be negative?
Yes. A negative XIRR simply means the current or final value is lower than the total amount invested at the time you are measuring. It does not necessarily mean a mistake was made; it often reflects normal market movement or an investment measured too soon after it was made.
Does XIRR already account for tax?
No. XIRR is calculated purely from the cash flow amounts and dates you enter. Capital gains tax on withdrawals is a separate consideration and depends on the fund type and how long each instalment was held; enter your post-tax withdrawal amount if you want a post-tax XIRR.
Why does Excel sometimes show a #NUM! error for XIRR?
This usually means the cash flows do not contain both a negative and a positive amount, or the solver could not find a rate within its search range. Check that at least one row is an outflow (negative) and at least one is an inflow (positive).
Is XIRR the same as CAGR for a single lump-sum investment?
Yes. If there is exactly one investment and one final value, XIRR and CAGR produce the same annualised rate. The two only diverge once a third dated cash flow, such as a top-up or a partial withdrawal, is added.
Do the cash flow dates need to be entered in order?
No. This calculator sorts every row by date automatically before solving, so you can add rows in whatever order you happen to have the information.
What is the minimum number of cash flows needed?
At least two: one investment (negative) and one withdrawal or final value (positive), on two different dates. A single cash flow has no return to measure.
Is this calculator free, and does it store my data?
Yes, it is free with no sign-up. Every calculation runs locally in your browser using JavaScript; your dates and amounts are never sent to or stored on a server.
Can I use this for a SIP that is still ongoing?
Yes. Enter today's date and the current value of the investment as your final cash flow, marked as a withdrawal or value received. The resulting XIRR reflects your return up to today, even though you have not actually redeemed anything.
Does the regular investments (SIP) mode work for a stopped or paused SIP?
The regular mode assumes an unbroken schedule from the start date to the end date. If your SIP was paused, skipped an instalment, or changed amount partway through, switch to irregular cash flows and add each actual instalment as its own row instead.

Ready to see your own XIRR?

Add your real dates and amounts above to get your annualised return instantly.

Go to the calculator

Free. No sign-up.