XIRR Calculator

Calculate the Extended Internal Rate of Return (XIRR) for Mutual Fund SIPs, multiple lump sums, and irregular cash flows.

Latest portfolio valuation or total amount redeemed as of valuation date.
Annualized Return (XIRR) Above Nifty 50

+14.82%

Annualized compound rate over 3.0 years (1,096 days)

Total Invested ₹ 3,60,000
Current Value ₹ 4,50,000
Absolute Gain +25.00%
Capital Gain Breakdown Net Profit: +₹ 90,000
Principal Outflow: ₹ 3,60,000 Wealth Gain: +₹ 90,000

Cash Flow Schedule

37 Transactions
# Date Type Cash Flow (₹)

What is XIRR (Extended Internal Rate of Return) and Why is It Essential for Investors?


When evaluating an investment where you make a single lump-sum deposit on day one and redeem it years later, measuring your return is straightforward using CAGR (Compound Annual Growth Rate).

However, real-world investing is rarely a single lump-sum event. In mutual fund SIPs, stock portfolios, and retirement accounts, you make periodic monthly contributions, irregular bonus top-ups, dividend reinvestments, and occasional partial redemptions.

Because each individual cash flow is invested at a different date and held for a different period of time, traditional formulas fail:

  • Why Absolute Return Fails: Absolute return simply divides total profit by total invested capital without considering time. Earning 20% over 1 year is extraordinary, but earning 20% over 10 years is barely 1.8% per year.
  • Why Standard CAGR Fails: CAGR assumes all capital was invested at the very beginning (d0). If you invest ₹10,000 every month for 3 years, applying CAGR to your total ₹3,60,000 principal drastically understates your true performance, because your 36th installment was only invested for 30 days!
  • Why XIRR Succeeds: XIRR assigns an exact time-weighted discount factor to every individual cash inflow and outflow, calculating the true consolidated annualized growth rate across your entire portfolio lifecycle.
Key Takeaway: XIRR is the standard performance metric displayed on all major Indian investment platforms (such as Groww, Zerodha, Kuvera, and AMFI) because it accurately normalizes irregular, multi-date transactions into a single annualized rate.

The Mathematical Formula for Calculating XIRR


XIRR calculates the annualized internal rate of return (r) by finding the exact discount rate that sets the Net Present Value (NPV) of all past and present cash flows to zero:

∑ [ Ci ÷ ( 1 + r )( di − d0 ) ÷ 365 ] = 0

Where:

  • Ci: The cash flow amount for transaction i. Outflows (money leaving your bank to invest) are entered as negative numbers (e.g. −₹10,000), while inflows (redemptions, dividends, or latest portfolio valuation) are positive numbers (+₹4,50,000).
  • di: The calendar date of transaction i.
  • d0: The reference start date (date of the very first investment).
  • (di − d0) ÷ 365: The exact fractional holding period in years for that specific installment.
  • r: The annualized XIRR return rate to be solved.

The Newton-Raphson Numerical Iteration Method

Because this equation contains non-linear fractional exponents across dozens of dates, it cannot be solved with standard elementary algebra. Financial calculators solve it numerically using the Newton-Raphson iteration:

  1. An initial estimate (guess rate r0, usually 10% or 0.10) is chosen.
  2. The function f(r) = NPV(r) and its first derivative f'(r) are computed.
  3. The rate is refined in successive loops: rk+1 = rk − [ f(rk) ÷ f'(rk) ] until the difference between iterations is less than 0.00001 (0.001%).

Step-by-Step Practical Example: Calculating XIRR for a Staggered Investment


Consider an investor who makes 3 separate investments into an equity fund, receives 1 dividend payout, and evaluates their total portfolio balance on January 1, 2026:

Transaction Date Description Cash Flow Type Amount (₹) Holding Days
01-Jan-2024 Initial Lump-sum Deposit Outflow (-) -₹1,00,000 0 Days (Base)
01-Jul-2024 Mid-year Top-up Outflow (-) -₹50,000 182 Days
01-Jan-2025 Annual Top-up Outflow (-) -₹50,000 366 Days
01-Jul-2025 Dividend Received Inflow (+) +₹8,000 547 Days
01-Jan-2026 Current Portfolio Valuation Inflow (+) +₹2,60,000 731 Days

Analysis of Results:

  • Total Capital Invested: ₹1,00,000 + ₹50,000 + ₹50,000 = ₹2,00,000.
  • Total Realized Value: ₹8,000 (Dividend) + ₹2,60,000 (Valuation) = ₹2,68,000.
  • Absolute Net Profit: ₹2,68,000 − ₹2,00,000 = +₹68,000 (+34.00%).
  • Calculated XIRR: Solving the NPV equation yields an exact annualized return of +18.74% p.a.

XIRR vs CAGR vs IRR vs Absolute Return: The Master Comparison Matrix


Choosing the wrong return metric can distort your financial assessment. Here is when to use each formula:

Return Metric Multiple Cash Flows? Considers Dates & Time? Annualized? Best Used For
XIRR (Extended IRR) Yes (Irregular) Yes (Exact Calendar Days) Yes (% p.a.) Mutual Fund SIPs, STPs, SWPs, Stock Portfolios, Real-world Multi-cashflow Assets.
CAGR (Compound Annual Growth) No (Single Lump-sum) Yes (Years) Yes (% p.a.) Fixed Deposits, Gold/SGB, Single Buy-and-Hold Stocks, Index Benchmarks.
IRR (Internal Rate of Return) Yes (Strictly Periodic) Fixed intervals only (Yearly/Monthly) Yes (% p.a.) Private Equity, Real Estate Projects with uniform annual cash flows.
Absolute Return No No (Time Ignored) No (Total %) Short-term trades (< 6 months) to see raw profit percentage.

The Short-Term Skew Warning: Why XIRR Can Be Misleading Under 1 Year


A common misconception among beginner investors occurs when reviewing XIRR for a fresh SIP that has only been active for 1 to 3 months.

The Annualization Skew Phenomenon: Because XIRR projects any short-term gain across a full 365-day year, small short-term movements create inflated annualized numbers:
  • If you invest ₹10,000 and the market rallies +4% in 15 days, XIRR will annualize that 15-day burst across all twenty-four 15-day periods, displaying an astronomical +156% XIRR!
  • Conversely, if the market dips -3% in your first week, XIRR may display an alarming -80% XIRR.

Best Practice: For investment tenures under 12 months, rely primarily on Absolute Return (%) and Net Gain in Rupees. Once your SIP crosses 12 months, XIRR becomes the single most accurate reflection of your portfolio's compounding rate.

How to Benchmark Your XIRR Return in India


An XIRR number only has meaning when compared against relevant opportunity costs and asset class benchmarks:

Long-Term Portfolio XIRR Performance Rating Context & Comparison
> 15.0% p.a. Outstanding Significantly outperforms the broader market (Nifty 50 TRI ~12.5%). Top-quartile active equity funds.
12.0% to 15.0% p.a. Very Healthy In line with historical Indian equity market long-term averages. Wealth doubles every 5 to 6 years.
9.0% to 12.0% p.a. Moderate Typical for conservative hybrid/balanced funds or debt-heavy portfolios. Beats inflation by 4%–6%.
6.0% to 9.0% p.a. Conservative Comparable to Fixed Deposits and Debt Funds. Capital protection focus with modest real growth.
< 6.0% p.a. Underperforming Fails to beat Indian retail inflation (CPI ~5%–6%). Portfolio requires asset rebalancing.

How to Calculate XIRR in Microsoft Excel and Google Sheets


Both Microsoft Excel and Google Sheets have a built-in financial function for computing XIRR:

=XIRR( Cash_Flow_Values_Range, Transaction_Dates_Range, [Optional_Guess_Rate] )

Step-by-step setup:

  1. In Column A, list your calendar dates in chronological order (e.g. A2:A13).
  2. In Column B, list your cash flows (e.g. B2:B13). Enter all investments as negative numbers (e.g. -10000) and your current portfolio valuation or final redemption as a positive number (e.g. 140000).
  3. In cell B14, enter the formula: =XIRR(B2:B13, A2:A13).
  4. Format cell B14 as a Percentage (%) to view your annualized return.
Fixing the `#NUM!` Error: If Excel returns a #NUM! error, verify that: (1) You have at least one negative value and at least one positive value, (2) The earliest date is in the first row, and (3) All dates are formatted as valid calendar dates rather than text strings.

Frequently Asked Questions


What is XIRR and how does it differ from CAGR and Absolute Return?

XIRR (Extended Internal Rate of Return) is an annualized return metric designed for investments involving multiple cash inflows and outflows occurring on irregular dates. While CAGR only measures point-to-point growth between a single start date and end date, and Absolute Return measures simple un-annualized profit percentage, XIRR calculates the exact internal rate of return by accounting for the precise date and rupee magnitude of every deposit, withdrawal, and current portfolio valuation.

What is the mathematical formula used to calculate XIRR?

XIRR solves for the annual discount rate (r) that sets the Net Present Value (NPV) of all cash flows to zero: Sum of [ C_i / (1 + r)^((d_i - d_0) / 365) ] = 0. In this equation, C_i represents each cash flow amount (investments are entered as negative values and redemptions or current valuations are positive), d_i is the transaction date, and d_0 is the initial investment date. Because this polynomial equation cannot be solved algebraically, it is calculated using the Newton-Raphson numerical iteration method.

Why is XIRR considered the gold standard for measuring Mutual Fund SIP returns?

In a mutual fund SIP, each monthly installment is invested at a different date and different market NAV price. The first installment remains invested for the full tenure, while the most recent installment has only been invested for a single month. Applying simple CAGR would erroneously treat all installments as if they were invested on day one. XIRR accurately annualizes the return of each individual installment based on its exact holding duration, providing the true composite performance of your SIP.

Why does XIRR sometimes show extreme or unrealistic percentage returns on short-term investments?

XIRR always annualizes returns over a 365-day basis. If you invest ₹10,000 and make a ₹500 gain in just 10 days (a 5% absolute return), the mathematical formula projects that 5% gain over all thirty-six 10-day periods in a year, producing an astronomical annualized XIRR of over +400%. For investment durations under 12 months, Absolute Return and Net Gain in rupees are more practical metrics, while XIRR becomes highly reliable for durations exceeding 1 year.

How do you calculate XIRR in Microsoft Excel or Google Sheets?

In Microsoft Excel or Google Sheets, use the native formula: =XIRR(values_range, dates_range, [guess]). The values range must contain at least one negative cash flow (investment outlay) and at least one positive cash flow (redemption or current valuation), while the dates range must contain valid corresponding calendar dates.

What is a good benchmark XIRR return for mutual fund investors in India?

A good XIRR depends on the underlying asset class. For Indian broad-market equity mutual funds (such as Flexi-cap, Large-cap, or Nifty 50 Index funds), a long-term 5 to 10-year XIRR between 12% and 15% p.a. is considered excellent as it comfortably outpaces inflation (5%–6%) and fixed deposits (6.5%–7.5%). For hybrid/balanced funds, a 10%–12% XIRR is typical, while debt mutual funds target 6.5%–8% XIRR.

Can XIRR be negative, and what does a negative XIRR mean?

Yes, XIRR can be negative. A negative XIRR indicates that your overall portfolio's current market value plus any realized redemptions is less than the total sum of money you invested, resulting in an annualized net loss. For example, an XIRR of -8.5% means your invested capital has contracted at an annualized pace of 8.5% across your holding period.

Does XIRR account for mutual fund expense ratios, exit loads, and taxes?

Mutual fund NAVs (Net Asset Values) are published daily after deducting the fund management expense ratio, so XIRR automatically factors in all fund management fees. However, XIRR does not automatically deduct investor-level transaction exit loads or capital gains taxes (LTCG / STCG) unless you explicitly input your net post-tax, post-exit-load redemption amounts into the cash flow table.