Skip to main content

XIRR Calculator — True Annualised Return for SIP, Lumpsum, or Any Irregular Investment

Enter each cashflow: negative = buy / invest, positive = sell / redeem. Same convention as Excel XIRR.

Date Amount (₹)

What XIRR computes

XIRR — Extended Internal Rate of Return — answers the question: at what annualised rate did my investment actually grow, given the exact dates and amounts of every cashflow?

The mathematical definition: XIRR finds the rate r that satisfies the equation

Σ CF_i / (1 + r)^(t_i / 365) = 0

where CF_i is each cashflow (negative for outflows, positive for inflows) and t_i is the number of days elapsed since the first cashflow date.

This is the same equation used by Excel’s XIRR function and by SEBI’s mutual fund return-disclosure standards for reporting investor returns.

XIRR vs CAGR

MetricWorks forLimitation
Absolute returnAnyNo time dimension — 50% over 5yr ≠ 50% over 1yr
CAGRSingle lumpsum, single exitOnly two cashflows at two dates
XIRRAny number of cashflows at any datesRequires both buys and sells

The key practical difference: if you ran a ₹10,000/month SIP for 3 years and then redeemed, the “total invested” is ₹3.6L and the maturity value might be ₹4.5L — but the CAGR formula gives you a misleading 25% because it ignores that the first instalment was invested for 3 years while the last was invested for just 1 month. XIRR correctly weights each cashflow by its actual holding period and gives the true annualised return.

How to use the row-based input

  1. Each row = one event in your investment history.
  2. Negative amounts = money leaving your account (SIP instalment, lumpsum purchase, additional top-up).
  3. Positive amounts = money returning to your account (partial redemption, full redemption, dividend received in cash).
  4. For an ongoing investment you haven’t redeemed yet: add a final row with today’s date and the current market value of your holding as a positive number. This gives you the XIRR as of today.
  5. Use Add row to add as many cashflows as needed. Use the × button to remove a row.

Important: at least one negative and one positive cashflow are required — otherwise there is no rate that satisfies the equation and the calculator will show a convergence warning.

Convergence and edge cases

The Newton-Raphson solver starts from a 10% initial guess and refines over up to 100 iterations until the rate change falls below 1×10⁻⁷ (tolerance). For typical mutual fund patterns this converges in under 20 iterations.

Patterns that may not converge:

  • All-negative (all buys, no sells) — mathematically undefined XIRR
  • All-positive (all sells, no buys) — same problem
  • Extremely tiny amounts (sub-rupee) — numerical precision issues
  • Unusual alternating large positive/negative flows — multiple roots possible

If the calculator shows “Could not converge”, check that you have at least one negative and one positive cashflow, and that the amounts are reasonable (≥ ₹1 per row).

Note: A rate floor of −99% is applied to prevent the Newton-Raphson solver from diverging into negative territory below which the formula becomes undefined.

Worked examples

Example 1 — SIP-like pattern

DateAmountNote
2024-01-01−10,000Month 1 SIP
2024-02-01−10,000Month 2 SIP
2024-03-01−10,000Month 3 SIP
… (12 rows)−10,000 eachMonthly SIPs
2025-12-31+1,50,000Final redemption

Result: XIRR ≈ 19–21% (depends on exact redemption value). Total invested ₹1.2L, redeemed ₹1.5L.

Example 2 — Simple lumpsum

DateAmount
2024-01-01−1,00,000
2025-01-01+1,10,000

Result: XIRR ≈ 10.0%. This matches CAGR exactly because there are only two cashflows.

Example 3 — Multi-buy multi-sell

DateAmountNote
2022-04-01−50,000First buy
2023-01-01−30,000Top-up
2023-10-15+40,000Partial redemption
2024-07-01−20,000Additional buy
2025-03-31+75,000Final redemption

Result: XIRR correctly weights each cashflow by its exact holding period — something neither CAGR nor simple absolute return can handle.

Bridges

Related

Concepts and calculators referenced here.

Concepts

Other calculators

Frequently Asked Questions

What is XIRR and how is it different from CAGR?
CAGR (Compound Annual Growth Rate) assumes a single lumpsum investment and a single redemption: CAGR = (End Value / Start Value)^(1/years) − 1. It works only for point-to-point two-date investments. XIRR generalises this: it handles any number of cashflows at irregular dates (multiple SIP instalments, partial withdrawals, dividend reinvestments). XIRR is always the right metric when cashflows are irregular — as they are in most real investments.
When should I use XIRR instead of absolute return or CAGR?
Use XIRR whenever: (a) you invested at multiple dates (e.g., monthly SIP), (b) you made partial withdrawals before the final redemption, (c) you received dividends that were re-invested or paid out, or (d) you want to compare two funds with different investment histories on an apples-to-apples annualised basis. For a simple single-date lumpsum with one redemption, CAGR and XIRR produce the same number.
How does Newton-Raphson convergence work in XIRR?
XIRR finds the rate r that makes Σ(CF_i / (1+r)^(t_i/365)) = 0 — the NPV equation. Newton-Raphson starts from an initial guess of 10%, then iteratively refines: r_new = r − NPV(r) / NPV'(r). It stops when the rate change is smaller than 1×10⁻⁷ (our tolerance), or after 100 iterations. Convergence is guaranteed for well-behaved cashflow patterns with at least one sign change.
Why might the XIRR calculation fail to converge?
Non-convergence happens when: (a) all cashflows are the same sign (all buys or all sells — mathematically impossible to have a rate), (b) cashflows are extremely small (numerical precision issues), or (c) the pattern is pathological (e.g., alternating large positive/negative flows). The calculator shows a warning if it does not converge. Check that your cashflows include at least one negative (buy) and one positive (sell/redemption) amount.
How does XIRR compare to a SIP calculator's return estimate?
A SIP calculator uses a constant assumed annual return and projects a future value — it is forward-looking and hypothetical. XIRR works backward from actual historical cashflows to compute the annualised return that was realised. Use the SIP calculator to plan; use XIRR to measure the performance of a completed or ongoing investment.
Can I use XIRR for non-mutual-fund investments?
Yes — XIRR works for any investment with dated cashflows: stocks, bonds, fixed deposits (with multiple top-ups), real estate (rent receipts + eventual sale), or even insurance policies with annual premiums and a maturity/surrender value. The formula is agnostic to the asset class; it only requires dates and amounts.
Does this calculator give the same result as Excel's XIRR?
Yes. This calculator implements the identical equation (Σ(CF_i / (1+r)^(t_i/365)) = 0) and Newton-Raphson algorithm used by Excel's XIRR function. Differences of ±0.01% may appear due to rounding in date arithmetic, but for typical investment horizons (1–30 years) the results match Excel to 4 decimal places.
Compliance disclaimer

Mutual fund investments are subject to market risks. Read all scheme related documents carefully before investing. Past performance is not indicative of future returns. The information on this page is for educational purposes only and does not constitute investment advice. Distribution by Jayesh Jain (AMFI ARN-286359). No advisory fees are charged.