Home›Stock fair value

XIRR calculator: IRR with irregular dates

XIRR is the annual rate of return on deposits and withdrawals made on irregular dates. It takes the exact day of each movement into account instead of assuming fixed intervals between them.

Enter each contribution and withdrawal with its date and amount and find the annual rate of return, the monthly equivalent, the NPV at a discount rate, the total invested and received, and the multiple. Educational estimate.

Educational simulation. Not investment advice. Results are estimates based on the data you enter and do not replace advice from a qualified professional.

Updated on Dec 1, 2026

Example: an investment with contributions in 2024 and 2025 and withdrawals in 2025 and 2026. Use a negative amount for money going out (contribution) and a positive one for money coming in (withdrawal, dividend, sale). Edit, add or remove rows freely.

Cash flows
Date and amount of each cash flow

Type in a cell: Tab moves on, Enter goes down, arrows move; paste several rows from Excel (Ctrl+V).

To paste from Excel: two columns, date and amount (accepts mm/dd/yyyy, yyyy-mm-dd and numbers with commas or periods). Rows without a date or an amount are ignored and listed in the notice.

Benchmark (optional)

Leave blank to skip the NPV. The rate is an effective annual rate, on the same 365-day basis.

Your inputs stay only on this browser and are not sent anywhere. Untick to delete them.

——
—

Cash flows by date

Each bar is one entry, placed on its actual date. Below zero, money that went out; above, money that came in.

Tap the chart to see the values.

NPV as a function of the rate

Where the curve crosses zero is the IRR (XIRR). The dashed line marks the discount rate you entered, if any.

Tap the chart to see the values.

Cash flows and multiple

Next step

Take this page’s results to another calculator with the fields already filled in.

The summary lists your inputs, results, formulas, assumptions and sources. The full report also includes the charts and interpretations, in color. In the print dialog, choose Save as PDF.

Method, assumptions and sources

Formulas

Present value: Σ amount_i ÷ (1 + r)^(days_i ÷ 365) = 0, with days_i counted from the first date
Newton: r₊₁ = r − PV(r) ÷ PV′(r), starting at 10%; if it does not converge, bisection on ln(1 + r)
NPV = Σ amount_i ÷ (1 + discount rate)^(days_i ÷ 365)
Monthly equivalent = (1 + r)^(1/12) − 1; multiple (MOIC) = total received ÷ total invested

Assumptions and limits

  • Calendar days over 365, with no leap-year adjustment (same as spreadsheet XIRR). Negative amounts are outflows and positive ones are inflows.
  • Taxes, fees and inflation only count if you put them into the amounts. With more than one sign change there can be several rates; the one closest to zero is shown.
  • Educational estimate, not investment advice.

Official sources and references

  • XIRR definition used by spreadsheets (Excel, LibreOffice, Google Sheets): cash flows discounted by days ÷ 365.
  • Newton-Raphson and bisection methods for finding roots of equations (numerical analysis).

Frequently asked questions

What is XIRR and when should I use it?

It is the annual rate of return of a series of contributions and withdrawals on irregular dates. Use it when entries are not regular monthly ones: one-off contributions, partial withdrawals, dividends, the sale of a property or a business. For regular monthly flows, the ordinary IRR gives a very similar result.

How do I read the example result?

In the example, $15,000 was invested and $17,000 received over 1,019 days. The XIRR is 5.84% a year (0.474% a month) and the multiple is 1.13x. At 8% a year, the NPV is −$641.16: the flows earned less than that benchmark rate.

Why does it say there is no sign change?

A rate of return only exists if there is at least one negative amount (money out) and one positive amount (money in). If everything is positive or everything negative, the present value cannot be set to zero. Check the signs, especially if you pasted data from a spreadsheet.

Is the result the same as the spreadsheet XIRR?

Yes, the calculation is the same: each amount is discounted by (days since the first date) ÷ 365. Tiny differences can appear around the tenth million, because programs stop the search at different tolerances. The calculator uses Newton’s method and, if it does not converge, bisection.

Can I use the result to decide on an investment?

It is an educational estimate of the return of a cash flow you entered, not a recommendation. It ignores taxes, fees and risk unless you include them in the amounts, and past returns do not guarantee future returns.

XIRR: how to calculate the rate of return with irregular dates

The ordinary IRR assumes cash flows at equal intervals, such as one per month. In real life, contributions and withdrawals fall on any date. XIRR handles that: it counts the calendar days between each entry and the first date and looks for the annual rate that makes the present value of the outflows equal to that of the inflows. It is the same function as in spreadsheets (Excel, LibreOffice, Google Sheets), on a 365-day basis.

Example

Contributions of $10,000 on 2024-01-15, $2,000 on 2024-06-03 and $3,000 on 2025-02-10; withdrawals of $4,500 on 2025-08-20 and $12,500 on 2026-10-30. That is $15,000 invested and $17,000 received over 1,019 days.

ResultValue
XIRR (annual rate)5.84%/yr
Monthly equivalent0.474%/mo
Multiple (MOIC)1.13x
NPV at 8%/yr−$641.16

The flows returned 13.3% more than went out, but over almost three years that is 5.84% a year, below the 8% benchmark, so the NPV is negative.

Things to watch

Use opposite signs for inflows and outflows: without at least one negative and one positive amount there is no rate. When the flows change sign more than once, there can be more than one possible rate. Very short periods produce huge annualized rates. The result is an educational estimate, not investment advice, and it does not include taxes or fees unless you put them into the amounts.