What is xirr

Last updated: April 1, 2026

Quick Answer: XIRR (Extended Internal Rate of Return) is an Excel function that calculates the actual rate of return on investments with irregular, non-periodic cash flows. It accounts for the exact dates of deposits and withdrawals to determine precise investment performance.

Key Facts

Overview

XIRR stands for Extended Internal Rate of Return and is a powerful financial function primarily available in Microsoft Excel and Google Sheets. Unlike the standard IRR function which assumes periodic cash flows, XIRR handles irregular and non-periodic transactions. This makes it essential for analyzing real-world investments where deposits and withdrawals occur at unpredictable intervals.

How XIRR Works

XIRR calculates the discount rate at which the Net Present Value (NPV) of all cash flows equals zero. The function requires two inputs: an array of cash amounts and an array of corresponding dates. By matching each transaction with its exact occurrence date, XIRR provides a precise annualized return percentage that accounts for timing.

Formula and Syntax

In Excel, the XIRR function uses the syntax: =XIRR(values, dates, [guess]). The 'values' parameter contains all cash flows (negative for investments, positive for returns), 'dates' contains the corresponding transaction dates, and 'guess' is an optional starting estimate. The function iteratively calculates the rate that satisfies the NPV equation.

Practical Applications

XIRR is widely used to measure portfolio returns, mutual fund performance, and venture capital investments. Financial advisors use XIRR to compare investment returns fairly across different time periods and investment amounts. It's particularly useful for investors who make periodic contributions at varying intervals.

XIRR vs. Other Return Metrics

Unlike simple return percentages that ignore timing, XIRR accounts for when money enters and exits an investment. This makes it more accurate than basic ROI calculations. Simple Dietz method is faster but less precise. XIRR provides the most accurate representation of actual investment performance for irregular cash flows.

Related Questions

What is the difference between XIRR and IRR?

IRR calculates returns assuming periodic cash flows at regular intervals, while XIRR handles irregular, non-periodic transactions with specific dates. XIRR is more precise for real-world investments with variable timing.

How do I calculate XIRR in Google Sheets?

Google Sheets uses the same XIRR function syntax as Excel. Simply enter =XIRR(cash_flows, dates) with your transaction amounts and their corresponding dates in separate columns.

What does a negative XIRR mean?

A negative XIRR indicates that your investment has lost money overall. The negative rate shows the annualized percentage loss when accounting for all cash flows and their timing.

Sources

  1. Microsoft Office - XIRR FunctionCC-BY-4.0
  2. Wikipedia - Internal Rate of ReturnCC-BY-SA-4.0