XIRR Calculator (Extended Internal Rate of Return)
Calculate exact annualized returns for irregular investment cash flows, SIPs, dividends, and portfolio valuations using the authoritative Newton-Raphson algorithm.
Cash Flow Transactions
5 Transactions| # | Date | Flow Direction | Amount | Description / Label | |
|---|---|---|---|---|---|
| 1 |
$
|
||||
| 2 |
$
|
||||
| 3 |
$
|
||||
| 4 |
$
|
||||
| 5 |
$
|
Performance Summary
| Total Capital Invested (Outflows) | $20,000.00 |
| Total Realized & Portfolio Valuation | $27,500.00 |
| Net Wealth Gain | +$7,500.00 |
| Absolute Return | +37.50% |
| Annualized XIRR (Compounded Yield) | 22.20% |
| Real XIRR (Inflation-Adjusted at 3.0%) | 18.64% |
| Simple Annualized Return (Absolute / Yrs) | 18.72% |
| Investment Duration | 731 Days (2.00 Yrs) |
| Discounted NPV Balance at Solved Rate | $0.00 |
Visual Analysis
0 = ∑ [ Ci / (1 + r)(di - d0)/365 ]r = 0.222031 → 22.20% p.a.$0.00 (Equilibrium reached)Note: Calculations use exact day counts (Actual/365 convention) via numerical Newton-Raphson iteration.
Discounted Cash Flow Verification Schedule
Every transaction discounted back to start date at the solved XIRR rate (22.20%). The sum of all Present Values equals exactly $0.00.
| Date | Days Elapsed | Time (Years) | Direction | Cash Flow | Discount Factor | Present Value (PV) | Cumulative Flow |
|---|---|---|---|---|---|---|---|
| 2023-01-15 | 0 | 0.0000 | Outflow | -$10,000.00 | 1.000000 | -$10,000.00 | -$10,000.00 |
| 2023-07-15 | 181 | 0.4959 | Outflow | -$5,000.00 | 0.905351 | -$4,526.75 | -$15,000.00 |
| 2024-01-15 | 365 | 1.0000 | Outflow | -$5,000.00 | 0.818310 | -$4,091.55 | -$20,000.00 |
| 2024-07-15 | 547 | 1.4986 | Inflow | +$3,000.00 | 0.740450 | +$2,221.35 | -$17,000.00 |
| 2025-01-15 | 731 | 2.0027 | Inflow | +$24,500.00 | 0.669263 | +$16,396.95 | +$7,500.00 |
| Total / Balance | 731 Days | 2.00 Yrs | - | +$7,500.00 | - | $0.00 | +$7,500.00 |
Understanding XIRR: The Gold Standard for Investment Returns
In real-world wealth management, investments rarely follow clean, uninterrupted trajectories. You deposit money when you receive a bonus, start a monthly Systematic Investment Plan (SIP), skip a month during an emergency, reinvest quarterly dividends, or withdraw partial profits for major expenses. Standard compound annual growth rate (CAGR) formulas break down because they assume a single deposit at day zero. XIRR (Extended Internal Rate of Return) solves this by assigning an exact date to every single cash inflow and outflow, calculating the true money-weighted annualized return.
The XIRR rate r is the discount rate that drives the Net Present Value (NPV) of all irregular transactions to zero:
$$\sum_{i=0}^{N-1} rac{C_i}{(1 + r)^{rac{d_i - d_0}{365}}} = 0$$
Where:
- Ci = Cash flow amount at step i. Negative (-) for capital invested (outflow); positive (+) for dividends, partial sales, or terminal portfolio value.
- di = The calendar date of transaction i.
- d0 = The baseline date of the very first investment.
- r = The annualized internal rate of return (XIRR).
- (di - d0) / 365 = The exact fractional years elapsed since inception.
Step-by-Step Numerical Root Finding (Newton-Raphson Algorithm)
Because the exponent (di - d0)/365 contains irregular fractions, equation f(r) = 0 is a non-linear polynomial that cannot be solved with elementary algebra. Our calculator utilizes the industrial-standard Newton-Raphson iteration:
- Initial Guess Selection: An initial interest rate guess r0 = 0.10 (10%) is established.
- Derivative Evaluation: Compute the first derivative f'(r) = ∑ [ -ti × Ci / (1 + r)ti + 1 ], which represents the rate of change of the portfolio's present value relative to the discount rate.
- Tangent Iteration: Update the rate via rk+1 = rk - f(rk) / f'(rk).
- Convergence Verification: The loop repeats until |f(r)| < 10-7. If derivative slope approaches zero or boundary thresholds are breached, the solver automatically falls back to an ultra-stable bracketed bisection algorithm.
Metric Comparison: XIRR vs. IRR vs. CAGR vs. Absolute Return
Selecting the wrong financial metric can severely distort your perception of investment performance. The table below delineates the key differences:
| Metric | Cash Flow Timing | Best Used For | Key Limitation |
|---|---|---|---|
| XIRR | Irregular dates & variable amounts | Mutual fund SIPs, portfolio tracking, real estate flips, active trading | Requires terminal valuation date; sensitive to short horizons (<30 days) |
| IRR | Strictly periodic (annual/monthly) | Fixed annuity bonds, corporate capital budgeting, regular loans | Distorts yields if transaction dates fluctuate or skip intervals |
| CAGR | Start date and end date only | Single lump sum investments, benchmark index comparison | Completely blind to intermediate top-ups, dividends, or withdrawals |
| Absolute Return | Ignores time entirely | Quick point-in-time profit percentage (Gain / Invested) | A 50% gain over 1 year is stellar; 50% over 20 years loses to inflation |