XIRR Calculator
Enter an initial investment and up to three cash flows with their day offsets to compute the annualised return.
What XIRR is
XIRR is the annualised return on a series of cash flows that land on irregular dates. It is the same idea as an internal rate of return, but each flow is discounted by its exact day count rather than by a whole number of years. At the defaults — $10,000 invested, then $4,000 at day 180, $4,000 at day 365 and $5,000 at day 730 — the XIRR is 24.82% a year on $13,000 of inflows.
di is the number of days between the initial investment and cash flow i, and the exponent di/365 turns that into a fraction of a year. A flow at day 180 has an exponent of 0.4932, so it is discounted by 1.24820.4932 rather than by a full year. That fractional exponent is the only structural difference between XIRR and plain IRR.
The equation has no closed-form solution, so the calculator brackets r between −99.9% and 1,000% and bisects the interval until the residual NPV falls below a billionth of a dollar. The result is the rate at which the dated inflows, discounted back to day zero, exactly repay the initial outlay.
Worked example at the defaults
Discount each flow at 24.82% using its own exponent. The first arrives at day 180, or 0.4932 years, and is worth about $3,586 today. The second arrives at day 365, an exponent of exactly 1, and is worth about $3,205. The third arrives at day 730, an exponent of 2, and is worth about $3,209. The three present values sum to roughly $10,000, which is what makes 24.82% the answer.
| Day | Years (d ÷ 365) | Cash flow | Present value at 24.82% |
|---|---|---|---|
| 0 | 0.0000 | −$10,000 | −$10,000 |
| 180 | 0.4932 | $4,000 | $3,586 |
| 365 | 1.0000 | $4,000 | $3,205 |
| 730 | 2.0000 | $5,000 | $3,209 |
| Total | — | $3,000 net | $0 |
The undiscounted picture is a $3,000 gain on $10,000, or 30% in total over two years. Annualising that naively gives 1.300.5 − 1 = 14.02% a year. XIRR reports 24.82% instead, because the first $4,000 came back after only six months and is assumed to be put to work again for the remaining eighteen. Money-weighted return rewards getting your capital back early, which is exactly what the day counts capture.
XIRR versus IRR on identical dollars
Take the same three inflows but assume they arrive at the end of years 1, 2 and 3 — $4,000, $4,000 and $5,000. Plain IRR on that sequence comes out near 13.8%. The dollars never changed; only the dates did, and the annualised return moved by eleven percentage points. That is the entire case for using XIRR whenever the actual transaction dates are known.
| Method | Timing assumption | Result |
|---|---|---|
| XIRR (defaults) | Day 180, 365, 730 | 24.82% |
| IRR, annual periods | End of years 1, 2, 3 | ≈13.8% |
| Simple annualised return | Ignore timing entirely | 14.02% |
IRR and the simple annualised return land close to each other here only because the IRR series happens to be back-loaded. Change the day offsets to 90, 180 and 270 and XIRR climbs further, while the IRR on annual spacing would not move at all. A spreadsheet that uses IRR on irregular flows is not wrong about the dollars, it is answering a question nobody asked.
The same logic explains why a portfolio’s reported return depends on when money arrived. Two investors holding the same fund for the same two years can report different XIRRs if one added money before a rise and the other after, and neither is wrong. The fund returned one thing; the investor experienced another.
What moves XIRR
- Earlier cash flows. Moving the first $4,000 from day 180 to day 90 lifts XIRR from 24.82% to roughly 27%.
- A later final flow. Pushing the $5,000 from day 730 to day 1095 (three years) drops XIRR to about 19%.
- A larger early flow. Shifting $1,000 from the day-730 flow to day 180 adds roughly three points of annualised return.
- An interim outflow. Injecting another $2,000 at day 365 as a follow-on investment cuts XIRR to about 8%.
- Total size. Doubling every cash flow including the initial outlay leaves XIRR unchanged, because the ratio of inflows to outflows is what the rate measures.
Day-count conventions
Actual/365 and its variants
This calculator uses actual/365: the exact number of days between dates divided by 365, with no leap-year adjustment. Excel’s XIRR function uses the same convention, so results match to the cent if you enter identical dates. Some bond markets use actual/360 or 30/360, which shifts the answer by a few hundredths of a percent over a two-year span and more over long horizons.
The calendar effect
The practical consequence is that XIRR is path-dependent on the calendar. An investment from 1 March to 1 March spans 365 or 366 days depending on the leap year, which changes the exponent slightly. For a multi-year private investment the difference is immaterial; for a 30-day trade it can matter, and that is when you should quote the holding-period return instead.
Where XIRR earns its keep
- Rental property with a purchase date, irregular repairs and a sale years later: XIRR handles every dated flow in one number.
- Private equity or angel investing, where capital is called and distributions arrive on no particular schedule.
- A brokerage account with deposits on random paydays and withdrawals for expenses, where a simple return on average balance is misleading.
- Comparing a lump-sum investment against a dollar-cost-averaged one, since the contribution dates differ by construction.
- Loan or note investments with interest paid on the 15th and principal repaid early.
Limits worth knowing
XIRR assumes every interim cash flow is reinvested at the same rate it reports. At 24.82% that is an aggressive assumption; if you actually park the day-180 $4,000 in a money market paying 4%, the realised annualised return will be lower. Modified IRR exists to separate the reinvestment rate from the project rate, and it is the honest tool when the spread between the two is wide.
The measure also assumes a single initial outlay at day zero and needs at least one sign change to be solvable. Multiple sign changes can produce multiple roots, and a series that never turns positive has no real solution at all — the bisection will still return a number, but it will not describe your investment. Nothing here is investment advice; it is the arithmetic behind a return figure.
Frequently asked questions
How is XIRR calculated?
By solving for the annual rate that makes the present value of the dated cash flows equal the initial outlay. At the defaults, $4,000 at day 180, $4,000 at day 365 and $5,000 at day 730 against $10,000 invested gives 24.82%.
How is XIRR different from IRR?
IRR assumes cash flows are exactly one year apart; XIRR uses actual day counts. On the same $13,000 of inflows, annual spacing gives about 13.8% while the real dates give 24.82%.
What day-count convention is used?
Actual/365 — each flow is discounted by its exact day count divided by 365, matching Excel’s XIRR function. A flow at day 180 uses an exponent of 0.4932.
What is a good XIRR?
Anything above your required return for that level of risk. Over 2026’s rate environment, a private investment clearing 12%–15% is solid, 20% or more is strong, and 24.82% at the defaults would be an excellent two-year result.
Why is my XIRR higher than my total return?
Because it is annualised and money-weighted. A $10,000 investment returning $13,000 over two years is a 30% total gain, which is 14.02% a year compounded, but XIRR reports 24.82% because $4,000 came back after six months and is assumed to be reinvested.
Can XIRR be negative?
Yes. If the total inflows are smaller than the outlay, XIRR falls below zero. $10,000 invested with $4,000 back at day 365 and $5,000 at day 730 gives roughly −6.5% a year.
Does XIRR handle an extra contribution partway through?
Yes, enter it as a negative cash flow on its date. A $2,000 follow-on at day 365 turns the series into outflows of $10,000 and $2,000 against $13,000 of inflows, and XIRR drops to about 8%.
What happens if two cash flows share the same date?
Add them together and enter the sum once. Two $2,000 flows on day 180 behave identically to a single $4,000 flow on that day, since the discount factor is the same.
Is XIRR the same as CAGR?
Only when there is a single outflow and a single inflow. With one contribution and one exit, XIRR equals the compound annual growth rate. With interim flows, CAGR cannot be computed at all and XIRR is the correct measure.
Method and sources
- XIRR definition with actual/365 day-count convention (standard finance method).
For educational purposes only — not financial, tax, or legal advice. Verify figures with a qualified professional before acting.