XIRR Calculator – Calculate Annualized Investment Returns

Calculate XIRR for investments with irregular cash flows and dates. Get an annualized return based on the timing and amount of each cash flow.

Cash Flows

Enter investments as negative amounts and money received as positive amounts.

Result

Annualized Return

Add cash flows with dates and amounts to see the calculated annualized return.

Editorial and Accuracy Standards

Last Updated: August 1, 2026
Reviewed Date: August 1, 2026
Content Version: 1.0
Editorial Standard: High Accuracy
Accuracy Statement: This tool utilizes a robust Newton-Raphson numerical solver to compute the XIRR, adhering to standard financial and mathematical conventions for discount rates. Results are cross-verified against standard spreadsheet XIRR functions.

What is the XIRR Calculator?

The XIRR (Extended Internal Rate of Return) Calculator is a financial tool that computes the annualized rate of return for a series of cash flows occurring at irregular intervals. Unlike standard IRR, which assumes periodic or evenly spaced cash flows, XIRR factors in the exact dates of each investment and withdrawal. This makes it the most accurate method for evaluating the performance of real-world investments like mutual funds, SIPs, and stock portfolios where contributions and redemptions happen randomly.

Understanding the Underlying Concept

The concept behind XIRR involves finding a single discount rate (the annualized return) that makes the net present value (NPV) of all your cash flows equal to exactly zero. In simpler terms, it calculates the equivalent annual interest rate your money would need to earn in a standard bank account to match the final value of your irregular investment. It accurately weighs exactly how long each individual dollar was invested before generating a return.

Formula: XIRR Equation

Mathematical formula: 0 equals Σ [ C(t) divided by (1 plus r)^((d(t) minus d(0)) divided by 365) ]0 = Σ [ C(t) / (1 + r)^((d(t) - d(0)) / 365) ]

Where C(t) is the cash flow amount at time t, d(t) is the exact date of the cash flow, d(0) is the date of the first cash flow, and r is the XIRR (the annualized rate). Since this equation cannot be solved algebraically, the calculator uses an iterative numerical method (like Newton-Raphson) to test different rates until it finds the precise percentage 'r' that balances the equation to zero.

Variables Explained

Variables used in this calculator and their meanings
VariableMeaningAccepted ValuesUnits
Cash Flow AmountThe monetary value invested (negative) or withdrawn/final value (positive).Any real numberCurrency
DateThe exact calendar date the cash flow occurred.Valid calendar dateDate
XIRR ResultThe annualized rate of return.Calculated percentage%

Worked Examples

Irregular Mutual Fund Investments

Inputs:

  • Row 1: -10000 on Jan 1, 2023
  • Row 2: -5000 on May 15, 2023
  • Row 3: 16500 on Jan 1, 2024

Calculation:

Sum of cash flows: -10000 + -5000 + 16500 = +1500 Profit
Apply numerical solver to discount cash flows based on exact days invested.
Rate (r) converges at approximately 13.56%
Final Answer: 13.56%

By investing $10,000 at the start of the year and another $5,000 mid-year, and ending with $16,500 exactly a year later, the equivalent annualized return on the invested capital is 13.56%.

Real-World Use Cases

Mutual Fund & SIP Tracking

Evaluating the true return of systematic investment plans where deposits happen monthly and redemptions happen irregularly.

Stock Portfolio Performance

Calculating the overall performance of a brokerage account after multiple deposits, dividend payouts, and withdrawals over years.

Real Estate & Private Equity

Determining the annualized yield of an investment property considering the initial purchase, irregular maintenance costs, rental income, and final sale price.

Common Mistakes & Pitfalls

Incorrect Cash Flow Signs (+/-)

The most common error is entering all numbers as positive. If both investments and returns are positive, the equation cannot balance to zero, resulting in an calculation error.

Correct Approach: Always enter money leaving your pocket (investments/purchases) as negative numbers, and money returning to you (withdrawals/final value) as positive numbers.

Frequently Asked Questions

What is XIRR?

XIRR, or Extended Internal Rate of Return, is an annualized return measure that accounts for the exact dates of multiple cash flows. Unlike a standard IRR calculation, XIRR accounts for the actual time between cash flows. It is highly useful when investments or withdrawals happen at irregular intervals.

How is XIRR different from IRR?

IRR typically assumes periodic cash flows occurring at regular intervals, such as annually or monthly. XIRR uses actual dates, making it suitable when cash flows occur at irregular intervals, which is common in real-world investing.

What is the difference between XIRR and CAGR?

CAGR works well when there is a simple beginning value and an ending value over a defined period. XIRR is designed for multiple cash flows occurring on different dates. If you make one investment and wait 5 years, use CAGR. If you make multiple irregular contributions, use XIRR.

How do I calculate XIRR?

To calculate XIRR, you need a list of cash flow amounts and the exact dates they occurred. You can use our XIRR Calculator by entering each investment as a negative amount, each withdrawal or final value as a positive amount, along with their respective dates, to instantly find the annualized return.

How should I enter investments into an XIRR calculator?

Investments or contributions represent money leaving your pocket, so they should always be entered as negative numbers (e.g., -10000). Money returning to you, such as withdrawals, dividends, or the final portfolio value, should be entered as positive numbers.

Should investments be entered as negative numbers?

Yes. In cash-flow analysis, any money you pay out or invest is a cash outflow and must be entered as a negative number.

Should withdrawals be positive or negative?

Withdrawals should be positive numbers. Any money you receive back from the investment is considered a cash inflow.

Can I use XIRR for SIP investments?

Yes. While a regular SIP has periodic cash flows, XIRR can still be extremely useful for calculating returns from the actual transaction dates and amounts, especially if there were missed payments or extra lump-sum additions.

Can I use XIRR for mutual funds?

Absolutely. XIRR is the standard way to evaluate a personal sequence of mutual-fund cash flows, accounting for purchases and redemptions made on different dates over time.

Can XIRR be negative?

Yes, negative XIRR is mathematically possible and quite common. It simply means that the cash flows correspond to an annualized loss rather than a gain over the investment period.

Why can't my XIRR be calculated?

If XIRR cannot be calculated, it's usually because the sequence lacks either a negative cash flow (an investment) or a positive cash flow (a return), or the dates are invalid. A valid calculation requires money going out and money coming in.

Can XIRR have more than one result?

Yes, certain complex cash-flow patterns (where the cash flow alternates between positive and negative multiple times) can mathematically produce more than one valid XIRR. In such cases, the numerical solver might struggle to find a single, economically meaningful root.

Does XIRR consider the exact investment dates?

Yes, XIRR uses the exact number of days between cash flows to determine the annualized rate, based on a 365-day year convention.

Is XIRR the same as profit percentage?

No. Profit percentage (or ROI) measures the total monetary gain compared to the amount invested. XIRR is an annualized rate that factors in exactly how long each dollar was invested.

What does a 12% XIRR mean?

A 12% XIRR means your sequence of dated cash flows corresponds to an equivalent annualized return of approximately 12% per year. It does not mean the investment literally grew by exactly 12% every single calendar year.

Calculation Methodology

How it works

The calculator accepts a series of dates and cash flows. It ensures there is at least one positive and one negative cash flow. It then applies the Newton-Raphson method, iteratively adjusting the discount rate (starting at 10%) until the Net Present Value (NPV) of all cash flows is within a negligible margin of zero (0.000001).

Precision & Rounding

The numerical solver runs for a maximum of 100 iterations with a convergence tolerance of 1e-6 to ensure high precision without freezing the browser.

Assumptions

  • A standard year consists of 365 days.
  • All cash flows occur at the end of the specified day.
  • Reinvestment of cash flows is assumed to happen at the calculated XIRR rate.

Limitations & Edge Cases

  • Extremely complex cash flow patterns with alternating signs may mathematically yield multiple valid XIRRs; the solver returns the first root it converges on.
  • If cash flows do not cross zero, an XIRR cannot be computed.

Glossary of Terms

Annualized Return

The equivalent annual rate of interest an investment earns over a given period, assuming compounding.

Example: An investment that grows 21% over two years has an annualized return of roughly 10%.
Related: CAGR, Yield

Cash Outflow

Money leaving the investor, such as purchasing a stock or depositing into a mutual fund. Represented as a negative number.

Related: Investment, Cost

Cash Inflow

Money returning to the investor, such as selling a stock, receiving a dividend, or the final portfolio valuation. Represented as a positive number.

Related: Return, Withdrawal

Net Present Value (NPV)

The difference between the present value of cash inflows and outflows over a period of time. XIRR is the rate where NPV equals zero.

Related: Discount Rate

References & Sources

  • Internal Rate of Return and Advanced Valuation - Financial Modeling Standards (2025)