Skip to content

Free calculator

XIRR Calculator

Find the yearly return on an investment you added to or withdrew from along the way. Enter each deposit and withdrawal with its date, then what the investment is worth now, and the calculator gives the annualized return, known as XIRR.

A second tab works out the time-weighted return, which removes the effect of when you added or took out money. The starting values are a fictional example.

Cash flows
Final value

What the investment is worth on that date.

Annualized return (XIRR)
+9.42%
Total deposited
$15,000.00
Total withdrawn
$2,000.00
Final value
$15,500.00
Gain or loss in dollars
Gain of $2,500.00

Runs in your browser. Nothing you enter is sent or stored.

How XIRR is calculated

XIRR is the single yearly rate that makes all your cash flows balance. Money you put in counts as negative, money you took out and the final value count as positive, and each amount is discounted by how long after the first date it happened.

The calculator searches for the rate at which those discounted amounts add up to zero. It counts time in days and treats a year as 365 days, the same convention spreadsheets use, so the result should match the XIRR function in a spreadsheet given the same dates and amounts.

  • Deposits and withdrawals are entered as positive amounts with a type. You do not need to enter minus signs.
  • The final value is what the investment is worth on its date, as if you sold it then.
  • Rows can be in any order; the dates decide the timing.

Time-weighted return

Time-weighted return (TWR) measures how the investments themselves performed, ignoring how much money was in them at each point. The second tab is a time weighted return calculator: it splits the period at every deposit or withdrawal, works out the return of each stretch, and links them together.

For each cash flow it needs the portfolio's value just before the money moved. That is the extra input TWR requires and XIRR does not.

When to use XIRR

Use XIRR for your own result. It reflects your timing: a large deposit just before a rise lifts it, and one just before a fall lowers it. It answers "what yearly return did my money earn?"

When to use time-weighted return

Use TWR to judge the investments or to compare with a fund or an index, which report time-weighted figures. It answers "how did the holdings perform, whatever I added or withdrew?"

Worked example

Fictional example: January 15, 2024 to December 31, 2025
DateWhat happenedValue just before
Jan 15, 2024Deposit of $10,000—
Jul 1, 2024Deposit of $5,000$10,800
Mar 1, 2025Withdrawal of $2,000$16,900
Dec 31, 2025Final value $15,500—
XIRR9.42% a year
Time-weighted return20.17% over 716 days, 9.82% a year

These are the calculator's starting values on each tab. The three periods returned 8.00%, 6.96% and 4.03%: 1.0800 × 1.0696 × 1.0403 = 1.2017. The two measures differ because the second deposit was in the portfolio for only part of the time.

What to keep in mind

  • Short periods exaggerate. A gain over a few weeks turns into a very large yearly figure, because the rate assumes it repeats all year.
  • Dividends count only if you enter them. Dividends paid out to you are withdrawals; reinvested dividends are already in the final value.
  • Fees and taxes are included only as far as they are reflected in your cash flows and final value.
  • Past returns say nothing certain about future ones.

Calculator questions

What is XIRR?

It is the annualized return of an investment with cash flows on irregular dates. It finds the one yearly rate at which your deposits, withdrawals and final value balance out.

What is the difference between XIRR and time-weighted return?

XIRR is money-weighted: it depends on how much you had invested and when. Time-weighted return removes that, so it shows how the investments performed regardless of your deposits and withdrawals.

Will this match XIRR in a spreadsheet?

It uses the same method and the same 365-day year, so with the same dates and amounts the result should agree to the decimals shown.

How do I enter the final value?

Enter what the investment is worth on the last date, as if you had sold it. If you already sold everything, enter the sale as the final value.

Is anything I enter saved?

No. The calculation runs in your browser. Nothing you type is sent to Fillfolio or stored.

This calculator gives estimates from the values you enter. It is not investment or tax advice.