Row 1

From 1 January 1900 to 31 December 2100.

$

Money you put in, 0 or more.

$

Money you received, 0 or more.

Row 2

From 1 January 1900 to 31 December 2100.

$

Money you put in, 0 or more.

$

Money you received, 0 or more.

More options: net present value
%

From -99% to 100% a year. Empty: no net present value.

Enter each cash flow and press Calculate. The IRR, the totals paid in and got back and the net present value appear here.

IRR for common cash flows

The first flow in each row is on 1 January 2020, and the others fall whole years later. The net present value is at 5% a year. Amounts are in any currency.

Cash flowsIRR a yearTotal paid inTotal got backNet present value at 5%
Pay 10,000, get back 12,000 two years later9.53%10,00012,000883
Pay 10,000, get back 15,000 five years later8.44%10,00015,0001,750
Pay 10,000, then 10,000 a year later; get back 25,000 three years after the first9.29%20,00025,0002,071
Pay 10,000; get back 500 a year for five years, plus 10,000 in the fifth4.99%10,00012,500−2
Pay 10,000, get back 9,000 a year later−9.97%10,0009,000−1,430

IRR vs NPV

IRR and NPV use the same cash flows and answer different questions. Net present value (NPV) is what all the flows are worth at the first date, at a rate you choose. The internal rate of return (IRR) is the one rate at which that NPV is zero.

For flows with one change of sign, such as money paid in first and money back later, NPV is above zero at rates below the IRR. It is below zero at rates above it. In the example, paying 10,000 and getting back 500 a year for five years, plus 10,000 in the fifth, gives an IRR of 5%. The table shows the NPV at three rates and at the IRR.

RateNPV
3%916
5%0
7%−820
5% (the IRR)0

Amounts are in any currency.

IRR with uneven cash flows

Uneven cash flows differ in size, in timing, or both. IRR handles them by discounting each flow for its own time from the first date. With dates, the calculator counts days and uses a 365-day year, as Excel's XIRR does.

The example pays in twice and gets money back twice, on irregular dates. Its IRR is 7.23% a year. At that rate, the values of the four flows at the first date add up to zero, which is what makes it the IRR.

DateAmount (paid in shown as minus)Years from the first dateValue at the first date
2020-01-01−10,0000.00−10,000.00
2021-07-01−5,0001.50−4,503.59
2022-01-013,0002.002,608.76
2024-03-3116,0004.2511,894.83

Amounts are in any currency.

IRR vs CAGR

CAGR, the compound annual growth rate, uses only a start value, an end value and the years between. IRR uses every flow and its date. With one payment in and one amount back, the two give the same rate. When money goes in or comes out in between, they differ, because CAGR does not see when the extra money arrived.

Cash flowsIRR a yearCAGR on the totals
Pay 10,000, get back 15,000 five years later8.45%8.45%
Pay 10,000, then 10,000 a year later; get back 25,000 three years after the first9.29%7.72%
About this calculation
What it calculates
The yearly rate at which the amounts you paid in and got back, each valued at the first date, add up to zero (the IRR), and the net present value at a yearly rate you set.
Formula
The sum of each amount ÷ (1 + rate)days from the first date ÷ 365 is zero at the IRR, the day count the spreadsheet XIRR uses. Even periods are solved per period, then (1 + rate)periods a year − 1.
Inputs
2 to 30 cash flows, each an amount paid in or got back, with a date or one per month, quarter or year; optional yearly rate for the net present value. Any currency.
Data
Only your inputs. Page updated 4 December 2026.
Leaves out
Taxes, fees you do not enter and a reinvestment rate (the modified IRR, or MIRR). The flows are the ones you enter, not a projection.
Example
Paying 10,000 on 1 Jan 2020 and getting back 14,000 on 30 Jun 2026 works out to 5.31% a year, in any currency.
Reproduce
Open this example with every input

The common cases, the questions and the PDF and PNG downloads are on the full calculator.

Worked out from the flows you enter. Not financial advice. smartfin.fyi →