What is XIRR?
The extended rate of return (XIRR) function is a financial function that calculates the internal rate of return (IRR) for a series of cash flows that occur at irregular intervals.
The XIRR function takes into account both the magnitude and timing of the cash flows and calculates the rate at which the net present value of the cash flows is zero. The function requires two arguments: a range of cash flows and a range of dates that correspond to each cash flow. The function returns the internal rate of return as a percentage.
What is XIRR Used For?
XIRR is particularly useful in analyzing investments or projects where cash flows occur at irregular intervals such as investments with lump-sum investments, regular contributions, and withdrawals. It is used to calculate the effective annual rate of return for investments such as stocks, mutual funds, real estate, and other types of investments that may have irregular cash flows.
By calculating the internal rate of return, XIRR can help determine the profitability of an investment or project, and can be used to compare the returns of different investment opportunities.
Difference Between IRR and XIRR
Both XIRR and IRR are financial metrics used to calculate the internal rate of return (IRR) for a series of cash flows. The main difference between XIRR and IRR is that XIRR can handle cash flows that occur at irregular intervals, whereas IRR assumes that cash flows occur at regular intervals.
Specifically, IRR assumes that cash flows occur at equal time intervals, such as monthly, quarterly or annually. This makes IRR appropriate for analyzing investments with regular cash flows, such as bonds or annuities. IRR calculates the discount rate at which the net present value (NPV) of all cash flows equals zero, which means the investment has a zero net present value. In other words, it occurs at equal intervals.
On the other hand, XIRR can handle cash flows that occur at irregular intervals, such as investments with varying cash flows or projects with unpredictable cash flows. XIRR calculates the discount rate at which the net present value of all cash flows, occurring at different time intervals, equals zero. XIRR is more flexible than IRR in handling cash flows that occur at different times.
XIRR Formula
The formula takes into account both the magnitude and timing of the cash flows, and calculates the rate at which the net present value of the cash flows is zero. The XIRR formula requires two arguments:
- A range of cash flows which represents the amount of money received or paid out at each date.
- A range of dates which corresponds to each cash flow.
The XIRR formula is calculated as follows:
XIRR = (1 + r) ^ (365 / d) – 1
where:
- XIRR = the internal rate of return
- r = the rate of return for a period
- d = the number of days between the initial cash flow and the final cash flow
The rate of return (r) is calculated using a method called iteration which involves repeatedly trying different values for r until the net present value of the cash flows is zero. The XIRR function in spreadsheet software, such as Excel or Google Sheets, automatically performs this iteration process and returns the internal rate of return as a percentage.
XIRR in Excel
You can use the XIRR function in Excel to calculate the internal rate of return for a series of cash flows that occur at irregular intervals. Here are the steps to perform XIRR in Excel:
1. Enter the cash flows in one column and the corresponding dates in another column. The cash flows can be positive for money received and negative for money paid out. The dates must be entered as valid Excel dates, such as “12/31/2022” or “31-Dec-2022”. The first cash flow must be a negative number and the last cash flow must be a positive number.

2. In an empty cell, enter the XIRR function. The syntax of the XIRR function is:
=XIRR(values, dates, [guess])
“values” is the range of cells containing the cash flows.
“dates” is the range of cells containing the corresponding dates.
“guess” is an optional argument that represents your estimate of the internal rate of return. If omitted, the function uses 0.1 (10%) as the default value for the guess.

3. Press Enter. The XIRR function will calculate the internal rate of return and display it as a percentage.

Note: If the XIRR function returns an error value, such as #NUM or #VALUE, try adjusting the guess argument to a different value until the function returns a valid result. The guess argument is the estimated rate of return for the investment, and it affects the accuracy of the XIRR calculation.
In addition, Excel also offers another function that can be used in IRR calculations: the MIRR. The MIRR is a rate-of-return measure that includes the integration of the cost of capital and the risk-free rate.
XIRR Limitations
- XIRR calculations rely on the accuracy and completeness of cash flow estimates. Any inaccuracies in these estimates can significantly affect the XIRR calculation and produce misleading results.
- It assumes that cash flows are reinvested at the same rate as the calculated XIRR. However, this assumption may not reflect real-world conditions, where reinvestment opportunities may not be available at the calculated rate.
- XIRR does not account for market risk, which is a critical consideration when evaluating investment opportunities.
- It is a relative measure of return, and may not be appropriate to compare the XIRR of investments with significantly different risk profiles, durations, or cash flow patterns.
Learn How Datarails Can Help Your Organization Create A More Agile FP&A Team
Datarails can help your company implement automation that can help your FP&A team operate more efficiently and effectively. Datarails is helping FP&A teams all over the globe reduce the time they spend on traditional reporting and planning, including XIRR calculations.
By replacing spreadsheets with real-time data and integrating fragmented workbooks and data sources into one centralized location, you can work in the comfort of Excel with the support of a much more sophisticated data management system behind you.
FAQs for XIRR Article
XIRR is the extended rate of return function that calculates the internal rate of return for a series of cash flows occurring at irregular intervals. It takes into account both the magnitude and timing of cash flows and calculates the rate at which the net present value equals zero. The function requires two arguments: a range of cash flows and corresponding dates.
IRR assumes cash flows occur at regular intervals (monthly, quarterly, or annually), making it appropriate for bonds or annuities. XIRR handles cash flows at irregular intervals, making it more flexible for investments with varying cash flows or projects with unpredictable timing. XIRR is the better choice when cash flow timing is inconsistent.
Enter cash flows in one column and corresponding dates in another. Cash flows should be negative for money paid out and positive for money received. In an empty cell, use the formula =XIRR(values, dates, [guess]) where values are the cash flow range, dates are the date range, and guess is an optional estimate. Press Enter to calculate the internal rate of return as a percentage.
XIRR is used to analyze investments or projects with irregular cash flows, such as stocks, mutual funds, real estate, and investments with lump-sum contributions and withdrawals. By calculating the internal rate of return, XIRR helps determine investment profitability and allows comparison of returns between different investment opportunities with varying cash flow patterns.
XIRR relies on accurate cash flow estimates and assumes reinvestment at the calculated rate, which may not reflect reality. It does not account for market risk and is a relative measure that may not be appropriate for comparing investments with significantly different risk profiles, durations, or cash flow patterns. Any inaccuracies in estimates can significantly affect results.
XIRR solves for the discount rate (r) that makes the net present value of all cash flows equal zero. Each cash flow is discounted by (1 + r) raised to the power of the number of days between that cash flow and the first date, divided by 365. Excel performs this calculation automatically using iteration, trying different values of r until the NPV converges to zero.
If XIRR returns #NUM or #VALUE errors, try adjusting the guess argument to a different value until the function returns a valid result. The guess argument represents your estimated rate of return and affects calculation accuracy. Also, ensure the cash flow range includes at least one positive and one negative value, and that dates are entered as valid Excel dates.