IRR Calculator: Internal Rate of Return (XIRR)

The internal rate of return (IRR) is the constant yearly return at which your deposits, each from its own date, would have grown into what you took out plus what your investment is worth today. Unlike a simple percentage gain, it accounts for when each sum was invested, which makes it the right measure when you add money over time. Enter your cash flows below to calculate it with the XIRR method.

Enter each deposit and withdrawal with its date, then what the investment is worth today. Amounts are positive: the type gives the direction. Any currency works, as long as every row uses the same one.

Annual return

9.68%

Internal rate of return (IRR)

Simple return

15.00%

Gain divided by the money put in, whatever the timing

Gain or loss

+300

2,000 put in, 2,300 taken out or still invested

How it works

1

Enter your cash flows

Add each deposit and withdrawal with its date and amount. Amounts are always positive: the type gives the direction.

2

Add the current value

Add what the investment is worth today as a "Current value" row, as if you sold everything on that date.

3

Read your annual return

The calculator finds the yearly rate at which all the flows, discounted to the same date, add up to zero, and shows the simple return beside it.

Frequently asked questions

What is the internal rate of return (IRR)?

The IRR is the annual rate of return at which the present value of all an investment's cash flows is zero: the money you put in, the money you took out and what the investment is worth today. Put simply, it is the constant yearly rate a savings account would have needed to pay to turn your deposits into the same result, on the same dates.

How do you calculate IRR?

Write each cash flow with its date: deposits as negative amounts, withdrawals and the current value as positive ones. The IRR is the rate r for which the sum of each amount divided by (1 + r) raised to its age in years equals zero. There is no direct formula, so it is found by successive approximation: try a rate, see whether the sum is above or below zero, and adjust. This calculator does that for you.

What does an IRR of 9.7% mean? A worked example

€1,000 is invested on 1 January 2024, another €1,000 on 1 January 2025, and the investment is worth €2,300 on 1 January 2026. The simple gain is 15%, but the second €1,000 was only invested for one year. The IRR is about 9.7% a year: at that rate, the first €1,000 grows to about €1,203 and the second to about €1,097, which makes €2,300. It is the example the calculator opens with.

IRR or TWR: which return should I use?

The IRR (money-weighted return) measures what you earned, including the effect of when you added or withdrew money. The time-weighted return (TWR) removes that effect and measures only how the investments performed, which is how funds report their returns. Use the IRR to judge your own results, and the TWR to compare your choice of investments with a fund or an index.

Can you average the IRRs of several investments?

No: neither a simple nor a weighted average of IRRs gives the IRR of the whole, because each rate weighs different sums over different periods. Put the cash flows of all the investments into one list and calculate a single IRR. The portfolio tracker's overview does this when you combine several portfolios.

Why does Excel's IRR function give a different result?

Excel's IRR function assumes the cash flows are evenly spaced, one per period. XIRR uses the actual date of each flow, as this calculator does. With irregular dates, as with most real investments, use XIRR: the two agree only when the flows are exactly one year apart.

Why is there no result, or a strange one?

An IRR needs at least one deposit and one amount coming back: a withdrawal or a current value. Over a few days, annualising magnifies small moves, so a 2% gain in a week becomes a very large yearly rate. And when withdrawals come between deposits, several rates can fit the same flows; the calculator then picks the one closest to zero that agrees with whether you gained or lost money.

Is what I enter saved?

No. The calculation runs in your browser: nothing you enter is sent or stored, and it is gone when you leave the page.

Get your IRR without typing your cash flows

The free portfolio tracker computes your IRR from your transactions, along with your return by year, quarter and month, benchmarks and the sector and country mix of your holdings.

Discover the portfolio tracker

How Mon Petit Portfolio calculates IRR in your portfolios: IRR methodology

Partner offers

Wise

Transfer and convert money at the best exchange rates. Welcome offer for new customers.

Open an account

Affiliate link: we may receive a commission if you open an account, at no extra cost to you. Not investment advice. Learn more

Found this useful? Support the project

Mon Petit Portfolio is free. Your support helps pay for hosting and new features.

Make a donation