Skip to content
DoItJag

XIRR and CAGR calculator

Paste your purchases, redemptions and today’s value with their dates to find the XIRR, the yearly return that accounts for when each rupee went in. Or find the CAGR from two values.

What do you have?

Money you put in is negative (−5000), money you got back or today’s value is positive. Dates as yyyy-mm-dd or dd-mm-yyyy. You can paste two columns from a spreadsheet.

About the XIRR and CAGR Calculator

Fund statements and apps often show an “absolute return”, which ignores time, and a CAGR, which only works for one purchase. If you invested on many dates, as with a SIP, extra top-ups or partial redemptions, the fair measure is XIRR: the single yearly rate that explains every amount on its own date.

How to enter cash flows

Write one line per transaction: the date, a comma, then the amount. Money you put in is negative. Money you took out, and the value of what you still hold today, are positive. Dates can be 2024-04-15 or 15-04-2024. You can copy two columns from a spreadsheet and paste them.

Worked example

These numbers are an example only. Suppose you invested 50,000 on 10 April 2023 and 25,000 on 15 January 2024, and the holding was worth 98,000 on 20 November 2025. Enter:

2023-04-10, -50000 2024-01-15, -25000 2025-11-20, 98000

The tool finds the rate at which those three amounts, each discounted for its number of days, add up to zero. Open “Show the working” to see each line discounted at that rate. The same definition is used by the XIRR function in spreadsheets, so you can check one against the other.

CAGR

If there is only a starting value and an ending value, switch to CAGR. Growth from 1,00,000 to 2,00,000 over 5 years is a CAGR of about 14.87%, while the absolute return is 100%. CAGR = (end ÷ start)^(1 ÷ years) − 1.

Good to know

  • XIRR needs at least one negative and one positive amount, on at least two dates.
  • Very short periods can give extreme yearly figures; a 3% gain in one month is over 40% a year.
  • For project cash flows with equal periods, the IRR Calculator may suit better. To project a SIP forward, use the SIP Calculator.

How to use XIRR and CAGR calculator

  1. Choose XIRR for several dated amounts, or CAGR for a start and end value.
  2. For XIRR, type or paste one line per cash flow: date, then amount (money in negative, money back or value today positive).
  3. Read the yearly return.
  4. Open "Show the working" to see each flow discounted at that rate.

Privacy: how it works

Calculations run in your browser. The amounts you enter are not sent anywhere.

Frequently asked questions

What is the difference between XIRR and CAGR?

CAGR uses one start value and one end value. XIRR handles many amounts on different dates, such as SIP instalments, so it is the usual measure for SIP returns.

How is XIRR calculated here?

It is the yearly rate r at which the sum of each amount ÷ (1 + r)^(days since the first date ÷ 365) is zero, the same definition spreadsheets use. The rate is found by narrowing a range until it fits.

Why do I need a negative number?

XIRR needs money going in and money coming out. Purchases are negative; redemptions and the current value are positive.