Skip to main content

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
$
Annualized Return (XIRR)
22.20%
Net Wealth Gain: +$7,500.00 (+37.50% Absolute)

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
🎯
Benchmark Comparison: Your annualized return of 22.20% outperforms your 12.0% equity hurdle rate by +10.20% p.a.
⏱️
Timing Advantage: Because later deposits were deployed closer to peak valuation, XIRR (22.20%) exceeds simple annualized yield (18.72%), accurately rewarding cash flow timing.
⚖️
Mathematical Equilibrium: At a 22.20% discount rate, the discounted sum of all future inflows equals your invested capital to the penny (NPV = $0.00).

Visual Analysis

22.20% XIRR p.a. Invested: $20,000 72.7% of throughput Net Gain: $7,500 27.3% profit share
Live Mathematical Formula
0 = ∑ [ Ci / (1 + r)(di - d0)/365 ]
Solved root: r = 0.222031 → 22.20% p.a.
Current verification NPV at 22.20%: $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 Governing Mathematical Formula:
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:

  1. Initial Guess Selection: An initial interest rate guess r0 = 0.10 (10%) is established.
  2. 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.
  3. Tangent Iteration: Update the rate via rk+1 = rk - f(rk) / f'(rk).
  4. 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

Key Financial Terms Glossary

Money-Weighted Return (MWR)
A measure of portfolio performance that weights periods according to the amount of capital invested. XIRR is the standard implementation of MWR.
Net Present Value (NPV)
The sum of all cash inflows and outflows discounted to today's value. When NPV equals zero, the chosen discount rate is the exact XIRR.
Hurdle / Benchmark Rate
The minimum acceptable rate of return (such as the 10-year S&P 500 average or sovereign bond yield) an investment must achieve to justify its capital risk.
Inflation-Adjusted (Real) Return
The real purchasing-power growth after stripping out annual inflation: Real Rate = [(1 + XIRR) / (1 + Inflation)] - 1.

Frequently Asked Questions (FAQ)

❓ Why do investment cash flows need negative and positive signs?
In financial accounting, cash flows represent the direction of physical money movement from your personal balance sheet. When you deposit capital into a mutual fund or stock, money leaves your pocket, requiring a negative (-) sign. When you receive dividends or liquidate shares, money enters your pocket, requiring a positive (+) sign. Without at least one negative and one positive cash flow, the mathematical equation has no solution.
❓ How does XIRR handle the "Current Portfolio Value"?
To evaluate your return today while keeping the investment active, your current portfolio value is treated as an assumed liquidation today. You enter today's date and enter your portfolio's total current balance as a positive inflow (+). This gives you the exact annualized performance up to the present moment.
❓ Why does XIRR show an absurdly high number (e.g., +400%) for recent investments?
XIRR always annualizes returns over 365 days. If you invest $10,000 and it rises to $10,500 (+5%) in just 7 days, annualizing that 5% gain over 52 weeks produces an astronomical figure: (1.05)(365/7) - 1 ≈ 1,180%. XIRR is mathematically rigorous, but annualizing periods shorter than 30 to 90 days creates compounding distortions. Always review Absolute Return alongside XIRR for short-term trades.
❓ What is the difference between XIRR and Time-Weighted Return (TWR)?
XIRR measures how your personal dollars performed, giving more weight to periods when you had larger balances. Time-Weighted Return (TWR) strips out the timing and magnitude of your personal cash deposits to evaluate how the fund manager performed. If you add capital right before a market drop, your personal XIRR drops significantly, even if the fund's TWR remains positive.
❓ Does this calculator match Microsoft Excel's and Google Sheets' =XIRR() function?
Yes. Our client-side JavaScript engine implements the identical standard Actual/365 day-count convention and Newton-Raphson root-finding criteria utilized by Excel and Google Sheets, matching down to the basis point and decimal fraction.
❓ Can XIRR be negative?
Yes. If the total inflows (withdrawals + current market value) are less than your total invested principal, your XIRR will be negative. A return of -15% p.a. indicates your portfolio has eroded purchasing power at a compounded rate of 15% per year over the investment lifespan.
✓ Copied to Clipboard!