XIRR Calculator
Calculate the annualized return for irregular investments with dates. Use negative numbers for investments/outflows and positive numbers for redemptions/current value.
Input Error
Convention
Results
For information only. Not financial advice. Results are estimates.
How the XIRR calculator works
The Extended Internal Rate of Return (XIRR) measures the annualized performance of an investment portfolio that experiences irregular deposits, sporadic withdrawals, or fluctuating dividend payouts. Unlike the standard Internal Rate of Return (IRR) which assumes cash flows arrive at uniform annual or monthly intervals, XIRR calculates the exact fractional day count for every individual transaction.
XIRR uses the Newton-Raphson numerical iterative method to discover the discount rate r that sets the Net Present Value (NPV) of all historic cash flows to exactly zero:
NPV = Σ [ Ci / (1 + r)(di − d0) / 365.25 ] = 0
- Ci — Cash flow amount at event i (negative for outflows/investments, positive for inflows/redemptions)
- di — Date of transaction i
- d0 — Date of the initial transaction
- r — Annualized internal rate of return (XIRR)
Worked example: 4 irregular cash flow events
Consider an investor managing an active portfolio over a two-year period with the following transactions:
| Date | Nature of Flow | Amount | Elapsed Days |
|---|---|---|---|
| 2023-01-01 | Initial Investment (Outflow) | -₹1,00,000 | 0 days |
| 2023-07-01 | Follow-on Investment (Outflow) | -₹50,000 | 181 days |
| 2024-01-01 | Partial Profit Booking (Inflow) | +₹20,000 | 365 days |
| 2025-01-01 | Current Valuation (Terminal Inflow) | +₹1,85,000 | 731 days |
1. Aggregate Cash Outlays: ₹1,00,000 + ₹50,000 = ₹1,50,000
2. Aggregate Recoveries & Valuation: ₹20,000 + ₹1,85,000 = ₹2,05,000
3. Net Absolute Gain: ₹2,05,000 − ₹1,50,000 = ₹55,000 (+36.67% absolute return)
4. Newton-Raphson Solving: Finding discount rate r such that NPV = 0:
-100000 + [-50000 / (1 + r)0.496] + [20000 / (1 + r)0.999] + [185000 / (1 + r)2.001] = 0
5. Resulting Annualized Return: XIRR = 19.73%
Interpreting your XIRR results
Money-Weighted Rate of Return: XIRR is fundamentally a money-weighted return metric. It is sensitive to both the magnitude and the timing of your deposits. Deploying large sums just before an asset surge boosts your XIRR, while investing right before a correction depresses it.
Distortion Over Short Horizons: Because XIRR annualizes all rates, short holding durations can produce misleadingly high numbers. For instance, making 3% profit over 5 days equates to an annualized XIRR exceeding 700%, even though the actual cash gain was modest. Always evaluate XIRR alongside the net absolute monetary gain.
Key assumptions and limitations
- Reinvestment Rate Assumption: Mathematically, XIRR presumes that all intermediate positive cash flows (such as dividend payouts) are reinvested in instruments earning the same internal rate of return until the terminal date.
- Sign Variation Required: The calculation requires at least one negative outflow (purchase) and at least one positive inflow (sale or current valuation). If all flows share the same sign, the internal rate cannot be computed.
- Exclusion of Taxes and Friction: Figures represent gross internal performance and do not incorporate capital gains taxes, trading slippage, brokerage fees, or exit loads.
Frequently asked questions
When should I use XIRR instead of CAGR?
Why does XIRR require both negative and positive numbers?
What does a negative XIRR mean?
How does XIRR differ from IRR?
What algorithm is used to compute XIRR?
Related calculators
SIP Calculator
Calculate maturity value and wealth gain for Systematic Investment Plans with monthly compounding.
InvestmentsLump Sum Calculator
Calculate the future value of a one-time investment with compound interest.
InvestmentsCompound Interest Calculator
Calculate compound interest for any principal, rate, time, and compounding frequency.
Annualised XIRR
19.73%