Home / Finance Calculators / XIRR Calculator
XIRR Calculator
Find the true annualized return of investments made on different dates. Enter every cash flow with its date, and this free XIRR calculator solves for the single annual rate that makes the present value of all your inflows and outflows equal to zero.
XIRR is the standard way to measure returns on SIPs, irregular deposits, and staged investments, because unlike a simple return it accounts for exactly how long each dollar was invested.
Your information is not stored. Calculations are done in your browser.
XIRR Calculator
Enter amounts as negative for money you put in (outflows) and positive for money you got back (inflows). Dates must be in order.
| Date | Amount ($) |
|---|
Advanced options
The guess only helps the solver start. It does not change the final answer when a valid XIRR exists. Day count is actual/365: each cash flow is discounted by the exact number of days since the first cash flow, divided by 365. The default guess of 10% is already included in the result above.
Key takeaways
- XIRR is an annualized rate for irregular cash flows. It answers: what single yearly return explains every deposit and withdrawal on its actual date?
- Worked example: invest $10,000 on January 1, 2020, add $5,000 on July 1, 2020, and receive $18,000 on June 1, 2021. Total invested $15,000, total returned $18,000, net gain $3,000 over 517 days, and the XIRR is 15.65% per year.
- Timing matters as much as amounts. The same $3,000 gain earned in 517 days beats the same gain earned over three years, and XIRR captures that difference.
- Signs are everything. Money you put in is negative, money you get back is positive. Flip a sign and the answer changes completely.
- No solution is a real answer. If all cash flows have the same sign, or the present value never crosses zero, XIRR does not exist and the calculator says so instead of showing a fake number.
Contents
Related tools
The complete guide to XIRR
What XIRR means
XIRR is the extended internal rate of return. It is the annual discount rate r that makes the net present value of a dated series of cash flows equal to zero:
XNPV = sum of amount / (1 + r)^((date - first date) / 365) = 0
Each cash flow is discounted by the exact number of days since the first cash flow, divided by 365. That is the actual/365 day-count convention used by spreadsheet XIRR functions and by this calculator.
Worked example 1: two cash flows and a leap year
Invest $10,000 on January 1, 2020 and receive $11,000 on January 1, 2021. The simple gain is 10%, but 2020 was a leap year, so the money was invested for 366 days, not 365. The XIRR is therefore slightly lower: (1.10)^(365/366) - 1 = 9.97%. This is the case most calculators get wrong when they ignore the extra day.
Worked example 2: staged investing (the preset example)
Invest $10,000 on January 1, 2020, invest another $5,000 on July 1, 2020, and receive $18,000 on June 1, 2021. Total invested is $15,000, total returned is $18,000, the net gain is $3,000, and the holding period is 517 days. Solving XNPV = 0 gives an XIRR of 15.65% per year (15.6464% unrounded). The second deposit counts less than the first because it was invested for a shorter time.
Worked example 3: XIRR versus regular IRR
Invest $10,000 on January 1, 2021, then receive $3,000 on January 1, 2022, $4,000 on January 1, 2023, and $5,000 on January 1, 2024. Because each interval is exactly 365 days, the XIRR of 8.90% (8.8963% unrounded) matches the classic IRR of the same yearly cash flows exactly. When intervals are irregular, only XIRR gives the right answer.
XIRR vs IRR vs CAGR vs ROI
- IRR assumes cash flows arrive at regular intervals. Use it for yearly or monthly schedules.
- XIRR handles any dates. Use it for SIPs, lump sums plus top-ups, and withdrawals at odd times.
- CAGR only looks at the start value, end value, and total years. It ignores everything in between.
- ROI is a total percentage gain with no time adjustment at all. A 20% ROI over one year and over ten years look identical, which is why ROI alone can mislead.
Common mistakes
- Wrong signs: entering every amount as positive. Outflows must be negative, or the solver reports no solution.
- Forgetting a withdrawal: partial redemptions are inflows on the date they happened. Leaving them out overstates the return.
- Comparing XIRR across different periods: a 15% XIRR over six months is not directly comparable to a 15% XIRR over five years without considering risk and consistency.
- Assuming XIRR predicts the future: it only describes past cash flows. It says nothing about what comes next.
How the solver works
The calculator uses the Newton-Raphson method starting from your guess rate (default 10%), refining the rate until XNPV is effectively zero. If Newton-Raphson stalls, it falls back to bisection between -99% and 1000%. If neither method finds a sign change, it reports that no XIRR exists rather than inventing a number.
How it works in 3 steps
List every cash flow with its real date. Use negative amounts for money invested and positive amounts for money received.
Click Calculate My XIRR. The solver finds the annual rate that discounts all cash flows to a net present value of zero.
Read your annualized return, totals, net gain, and holding period. Change any date or amount and the result updates instantly.
Frequently asked questions
What is XIRR in simple terms?
XIRR is the single annual return that explains a series of dated investments and withdrawals. If you earned exactly that rate every year on the money actually invested, you would end up with the same result.
How is XIRR different from IRR?
IRR requires evenly spaced cash flows, such as one per year. XIRR accepts any dates and discounts each cash flow by its exact day count, so it is the right tool for SIPs and irregular deposits.
Why is my XIRR different from my simple gain?
A simple gain ignores time. In the preset example the simple gain is $3,000 on $15,000, or 20%, but the money was invested for only 517 days on average, so the annualized XIRR is 15.65%. Timing changes everything.
Can XIRR be negative?
Yes. If you get back less than you put in, the rate that makes XNPV zero is negative. A negative XIRR means the investment lost money on an annualized basis.
What does it mean when there is no XIRR?
XIRR needs at least one outflow and one inflow, and the present value must cross zero as the rate changes. All-positive or all-negative cash flows have no XIRR, and the calculator reports that instead of a misleading number.
Does XIRR account for fees and taxes?
Only if you include them as cash flows. Enter fees as negative amounts on the dates you paid them, and enter after-tax proceeds as the inflows, to get a net-of-fee, after-tax XIRR.
Related calculators
Disclaimer: This calculator is for general information and education only. It is not financial advice, and it does not predict future returns. Investment values can fall as well as rise. Consult a qualified financial adviser before making investment decisions.