Skip to main content

    Money-weighted return calculator

    XIRR Calculator

    This XIRR calculator finds the yearly return on money you put in and took out on different dates, counting when each amount moved, the same way a spreadsheet XIRR does. Switch to Time-weighted to use it as a time-weighted return calculator, which strips out your deposits and withdrawals, and see both returns side by side.

    Free to use. No account or sign-up needed.

    Your cash flows

    Return type

    Money you put in is positive. Use a minus sign for money you took out.

    Up to 50 cash flows, oldest first. A blank row is skipped.

    The day you value the account.

    What the account is worth on the end date.

    Results

    ResultValue
    Annualized (XIRR)9.40%
    Total return over the period30.95%
    Total deposits$20,000.00
    Total withdrawals$2,800.00
    Ending value$22,000.00
    Net gain or loss$4,800.00
    Time span3.0 years

    You put in $20,000.00, took out $2,800.00 and ended with $22,000.00 on Jan 2, 2025, a net gain of $4,800.00. Counting when each amount moved, that is an XIRR of 9.40% a year.

    How XIRR works

    XIRR, also called the money-weighted or personal return, is the yearly rate at which every deposit, every withdrawal and the ending value, each counted from its own date, add up to $0.00 in today's money. It counts when each amount went in or came out, so money that sat in the account longer counts for more.

    A year is 365 days counted from the first date, the rule spreadsheet XIRR functions use. No formula gives the rate directly, so the calculator finds it by trial, testing rates from -99.99% to 10,000% until the sum equals $0.00.

    The Total return over the period row is that yearly rate compounded over the whole span: (1 + XIRR) raised to the days divided by 365, minus 1.

    A worked example

    Say you open an account with $10,000 on Jan 3, 2022, add $10,000 on Jan 3, 2023, take out $2,800 on Jan 2, 2024 and the account is worth $22,000 on Jan 2, 2025.

    That is $20,000 in, $2,800 out and $22,000 at the end, a net gain of $4,800. Counting each date, the XIRR is 9.40% a year, and the total return over the period, 3.0 years, is 30.95%.

    For the time-weighted return, enter the value just before each later cash flow: $9,000 and $22,800. The three periods returned -10.00%, 20.00% and 10.00%, linked as 0.9 x 1.2 x 1.1 - 1 = 18.80% over 3.0 years, or 5.91% a year.

    The XIRR is higher because the second $10,000 went in just before the two periods that rose.

    Time-weighted return

    The time-weighted return strips out deposits and withdrawals, so it measures only how the investments did. To find it, the calculator needs what the account was worth just before each cash flow, which the Time-weighted mode asks for.

    Each period runs from one cash flow to the next. It starts at the value just before the cash flow plus the cash flow, and ends at the value just before the next one, or the ending value for the last period. The period returns are then linked: add 1 to each, multiply them together and subtract 1.

    The Annualized TWR row spreads that linked return over the same 365-day year. With one deposit and no later cash flows, there is only one period, and the annualized TWR and the XIRR are the same number.

    Which return to use

    The time-weighted return is the one to judge investments by, such as a fund or a manager next to a benchmark, because a manager does not control when your money moves in or out.

    The money weighted return, XIRR, shows what your own money earned with the timing of your deposits and withdrawals included. The gap between the two is the effect of that timing. In the example the XIRR is 9.40% a year and the annualized TWR is 5.91%, because more money was in the account during the periods that rose.

    XIRR in a spreadsheet

    In a spreadsheet, put the dates in one column and the amounts in the next. Money you put in goes in as a negative number, and money you took out and the ending value go in as positive numbers, with the ending value on the end date.

    A spreadsheet XIRR on the same dates and amounts gives the same yearly rate as this calculator when the cash flows have one XIRR. Here money in is positive and the calculator flips the signs for you.

    For cash flows a year apart, with no dates, use the IRR calculator.

    For one amount in and one amount out, use the ROI calculator.

    What the calculator assumes

    • Each cash flow happens on its date, and the ending value is the account's worth on the end date.
    • A year is 365 days counted from the first date, the rule spreadsheet XIRR functions use.
    • The time-weighted return uses the values you enter just before each cash flow.
    • When the cash flows can have more than one XIRR, the one closest to 0% shows, with a note.
    • Spans under a year still get yearly rates, with a note that they stretch a short period into a full year.
    • Taxes, fees and inflation count only if they are built into the amounts you enter. Results are estimates from your numbers, not a forecast.

    XIRR calculator FAQ

    What is XIRR?

    XIRR is the yearly return on cash flows that happen on irregular dates, also called the money-weighted or personal return. It counts when each deposit and withdrawal happened. In the example on this page it is 9.40% a year.

    How do you calculate XIRR?

    List each deposit and withdrawal with its date, then add the ending value on the end date. XIRR is the yearly rate that brings them all to $0.00 in today's money, found by trial. $20,000 in, $2,800 out and $22,000 at the end give 9.40%.

    What is the difference between XIRR and IRR?

    IRR assumes the cash flows are evenly spaced, such as one a year. XIRR uses the actual date of each one and a 365-day year, so it fits deposits and withdrawals made on any dates.

    What is time-weighted return?

    It is the return of the investments with the effect of deposits and withdrawals removed, found by linking the returns of the periods between cash flows. In the example it is 18.80% over 3 years.

    Should I use time-weighted or money-weighted return?

    Use the time-weighted return to judge investments or a manager next to a benchmark, since it ignores when money moved. Use the money-weighted return, XIRR, to see what your own money earned with your timing included.

    Why is my XIRR different from my time-weighted return?

    Timing. Money added just before a rise lifts the XIRR, and money added before a fall pulls it down, while the time-weighted return ignores both. In the example the XIRR is 9.40% a year and the time-weighted return 5.91% a year.

    How do I enter XIRR cash flows in a spreadsheet?

    Put the dates in one column and the amounts in the next: money in as negative, money out and the ending value as positive. A spreadsheet XIRR then gives the same rate as this calculator, which flips the signs for you.

    Is this XIRR calculator free?

    Yes. It runs in your browser with no account and no sign-up. A free GNG account adds the Portfolio Tracker, which follows the returns of your own holdings.

    Track your own holdings and what they return in the Portfolio Tracker with a free GNG account.

    Sign Up Free

    This calculator is for education and is not investment advice. Results are estimates that depend on the numbers you enter, and those numbers can contain errors. Past returns are not a forecast. Read our disclosures.