What is XIRR?
XIRR stands for Extended Internal Rate of Return. It is a financial function widely used to calculate the annualized return of a series of irregular cash flows over time. Unlike the regular IRR, which assumes all cash flows are spaced equally (like monthly or annually), XIRR handles actual dates for each cash flow — making it ideal for real-world scenarios such as investments with multiple deposits and withdrawals at different points in time.
Why is it useful?
XIRR gives investors and analysts a precise way to measure the true annualized performance of an investment when contributions and redemptions do not occur at regular intervals. For example, if you invest different amounts at different dates and withdraw parts of your investment later, XIRR calculates the single annual rate of return that equates your total inflows and outflows over time.
How is it used for single and multiple stocks?
When calculating the XIRR for a single stock...