Money and Finance

XIRR Explained: The Real Return on Investments with Uneven Cash Flows

Learn what XIRR measures, how to enter dated cash flows with the right signs, and how to compare a SIP, a rental property and a deposit fairly.

Saizul Amin
Saizul Amin3 Nov 2026 · 3 min read
XIRR Explained: The Real Return on Investments with Uneven Cash Flows

Suppose you invested a little every month for three years and your account is now worth more than you put in. What was your yearly return? Dividing the gain by the total invested gives a number, but it is wrong, because most of the money was not invested for the full three years. The fair answer takes the date of every payment into account, and that is exactly what XIRR does.

What XIRR means

XIRR is the yearly interest rate that would turn all your payments in, on their actual dates, into all the money you got out or still hold, on their actual dates. If a bank account paying that rate had received the same deposits and withdrawals, it would end with the same balance. Because it uses real dates, it works for monthly plans, irregular top-ups, rental income, private loans and anything else with uneven timing.

It is the same calculation as the XIRR function in spreadsheets, using a 365-day year.

Getting the signs right

The most common mistake is the sign of each flow. Money you pay into the investment is negative. Money you take out, such as rent, dividends or a sale, is positive. For something you still hold, add its current value as a positive flow dated today, as if you sold it. You need at least one negative and one positive flow.

Using the calculator

The XIRR Calculator keeps several investments side by side. Pick or add an investment, then enter each flow with its date, signed amount and a note. The summary shows the XIRR, the total paid in, the total received or still held, the money multiple and the number of years covered. A chart traces the running net cash, so you can see when you were most out of pocket.

If you already have the flows in a spreadsheet or a statement export, import a CSV with columns for investment, date, amount and note. Each investment name becomes its own entry.

Comparing investments fairly

The compare tab lists all investments with their XIRR and XNPV at a discount rate you choose. XNPV tells you whether an investment beat that rate: positive means it did. In the example, a monthly SIP returned about 11.8 percent a year, a rental flat bought with a large deposit and a kitchen upgrade returned about 7.8 percent, and a two-year fixed deposit about 6 percent. At an 8 percent hurdle, only the SIP comes out ahead.

SIP versus lump sum

The generator builds a monthly SIP series from a start date, an amount, a number of months and today's value. It can also build a single lump sum of the same total. Comparing the two shows something many investors miss: for the same final value, the SIP has the higher XIRR, because its money was invested for a shorter average time. That does not make SIPs better or worse; it means you should compare returns with XIRR rather than with total gain.

Reading the result sensibly

An XIRR covers only the cash flows you enter. If you leave out fees paid separately, taxes, or the cost of your own time on a rental, the figure will look better than reality. Very short periods can give extreme yearly figures from small gains. Unusual patterns of money in, out and in again can have more than one mathematical answer, so check the XNPV near the result.

Export the flows as CSV or print the comparison for your records. Using one consistent measure across all your investments makes it much easier to decide where the next payment should go.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages