Skip to content
Investment Math
Investment Math

Currency and number style

Only changes how amounts look. There is no currency conversion.

CAGR and XIRR Calculator: Calculate Annualized Investment Returns

What is my yearly return when I added money on different days?

What this tells you: This finds your yearly return when you put money in or took it out on different dates.

Go to the calculator

Also called: annualised return calculator · CAGR calculator · irregular cash flow return Read the guide Last updated

What are you starting from?

Pick dated amounts if money went in or out on different days.

One line for each date and amount.

2 rows read Saved on this device as you type.

Result

Your yearly return is 21.0%.

Method: XIRR is the single yearly rate that makes every dated amount, moved to its own date, add up to zero; money paid in is negative and money received or the value now is positive.

This tool shows math, not advice.

Details

Yearly return (XIRR)21.00%
Total money in1,000
Total money out and value now1,210
Gain210
Simple return (not yearly)21.0%
Years covered1
Years to double at this rate3.64
Value of the money and money put in, by year

Use the left and right arrow keys to read the values.

Chart data as a table
xValue at this yearly rateMoney put in
0.0 years01,000
1.0 years1,2101,000

How we got this

  1. 2 amounts: 1,000 went in, 1,210 came out or is the value now.
  2. XIRR is the one yearly rate that makes all the amounts, moved to their dates, add up to zero: 21.00%.
  3. Simple return = 210 ÷ 1,000 = 21.0%.

About this answer

  • XIRR uses the exact dates. Each year counts as 365 days.

Did this calculator help?

Keep this calculator. Your numbers are in the address, so a bookmark brings them back exactly as you left them. Press Ctrl + D · ⌘ + D

What to do next

Calculators that usually come after this one.

Not quite what you need?

Type your question in plain words and get the calculators that answer it.

    Two lines between the same two points, five years apart. One wanders up and down, falling below the starting amount in the first year and dipping again in the third, the way a real holding moves. The other is a smooth curve that climbs at the same rate every year and finishes in exactly the same place. That smooth rate is the compound annual growth rate. 10,000 at the start 15,000 at the end What actually happened 8.4% a year, every year Year 0 Year 5
    A real path wanders; CAGR is the one steady rate that joins its two ends.

    How to use it

    1. Add each date and amount. Money you put in is a minus. Money you take out, and today's value, is a plus.
    2. Press Calculate.
    3. Read the yearly return (XIRR) and compare it with the benchmark.

    Example

    You put in 1,000 on 1 Jan 2025. On 1 Jan 2026 it is worth 1,210. Your yearly return is 21%.

    Type these numbers into the boxes

    What are you starting from?
    Dated amounts (XIRR)
    Dates and amounts
    2025-01-01, -1000 2026-01-01, 1210

    What you get: Your yearly return is 21.0%.

    Put this example into the calculator

    What your answer means

    XIRR is a yearly rate that counts the dates. If it is more than 2 points below the benchmark you typed, the page shows a note.

    Why dates change the return

    CAGR measures growth between one starting amount and one ending amount. XIRR handles money arriving and leaving on different dates. It weights each amount by how long it was actually there. An amount invested five years ago cannot count the same as one from last month.

    Most real portfolios need the second. Regular contributions, the odd withdrawal and partial sales all break the single-purchase assumption. XIRR has no closed-form answer. It gets solved by iteration, the same way spreadsheet functions do it.

    Words explained

    XIRR
    a yearly return that uses the exact dates.
    CAGR
    the yearly growth rate between two amounts.

    How we calculate · the conventions behind every answer, in one place.

    CAGR and XIRR calculator: annualized return and ROI

    Use this CAGR and XIRR calculator to work out investment returns, annualized growth and overall profit or loss. This online CAGR calculator measures the compound annual growth rate of a single investment from its starting value, ending value and investment period. For investments with several deposits or withdrawals on different dates, use the XIRR calculator to estimate your annualized return from the timing of each cash flow.

    Whether you are calculating stock investment returns, evaluating mutual fund performance, analyzing SIP investments or comparing your portfolio's performance against a benchmark, this investment return calculator shows how your money has performed over time. Enter your dated investment amounts, withdrawals and current portfolio value, or switch to the single-investment CAGR calculation. Review the annualized return, the total money invested, the total value, the profit or loss and the simple return to read the results. This tool also explains the difference between ROI, CAGR and XIRR so you can pick the right return calculation for your investment. Results are based on the figures and dates you provide and do not predict future performance or recommend specific investments.

    Questions about return on investment

    What does XIRR work out?

    XIRR is the one yearly rate that makes all your dated amounts add up to zero once each is moved to its date. Money in is typed as a minus, money out or today's value as a plus. In the default run, 1,000 goes in on 2025-01-01 and 1,210 is the value on 2026-01-01, so the yearly return is 21%.

    What is the difference between ROI, CAGR and XIRR?

    ROI (return on investment) is the gain over the money in, with no time in it. CAGR (the compound annual growth rate) turns one start value and one end value into a yearly rate. XIRR does the same for many amounts on different dates. Over exactly one year with one amount in, all three agree: the default run shows a simple return of 21% and an XIRR of 21%.

    Why does XIRR differ from the simple return over longer periods?

    The simple return ignores time, while XIRR spreads the gain over the years the money was invested. Over the default run's 1 year they match: 210 ÷ 1,000 = 21% either way. Over more than a year, the same simple gain gives a lower yearly rate, and amounts added part-way through are weighted by how long each was invested.

    Can I calculate the return of my whole portfolio?

    Yes, if you type every amount you put in and took out with its date, then today's total value as the last line. XIRR then gives one yearly rate for the whole record. The page also shows the totals: in the default run, 1,000 went in and 1,210 came out or is the value now, a gain of 210.

    What does years to double show?

    It is how long money takes to double if it keeps growing at the yearly return found. At the default run's 21%, doubling takes 3.64 years. It is a reading of the rate, not a forecast: past returns say nothing certain about future ones.

    What happens if all the amounts have the same sign?

    XIRR needs at least one amount going in and one coming out, or there is no rate that brings the total to zero. Type money you paid in with a minus, as in the default run's -1000 on 2025-01-01, and money received or today's value as a plus, as with 1,210 on 2026-01-01.

    Ask about this calculator

    Something the page does not answer? Ask it here. A person reads every question, and the useful ones are answered on this page.

    Your question goes to the site owner by email and is not stored on this site. If you add an email it is used only to reply.

    Embed this calculator

    Put this calculator in your own post. Copy the code, paste it into your page, and it works straight away — nothing to sign up for.

    Size

    Code to paste

    The line under the frame is a plain link on your own page, so readers and search engines both see where the calculator came from. Keep it, change the wording, or drop it — the widget works either way.

    Cite this page

    Copy this line into a reference list, a report or a spreadsheet note.

    Investment Math Calculator. “CAGR and XIRR Calculator: Calculate Annualized Investment Returns”. Updated 2026-11-29. https://investmentmathcalculator.com/tools/xirr-cagr/

    This tool shows math, not advice.

    Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.