Extended Internal Rate of Return (XIRR) Calculator
Fast XIRR calculator for uniform or irregular cash flows that annualizes return by solving NPV = 0 with date-based discounting.
XIRR Calculator
Compute Extended Internal Rate of Return (irr with actual dates) for uniform or irregular cash flows.
Same contribution amount on a fixed schedule between start and maturity dates.
$
$
Results
XIRR (annual)%
Number of Flows
Days Span
Total Invested$
Total Returned$
NPV at XIRR (~0)$
This XIRR Calculator computes the annualized internal rate of return (XIRR) from dated cash flows plus an optional final value at maturity. It solves the discount rate that sets net present value (NPV) of all flows to zero, using actual day gaps.
Introduction
XIRR is the annual rate r that makes the present value of irregularly dated amounts sum to zero. Two modes are available: Uniform Contributions (same contribution on a fixed schedule between Start Date and Maturity Date) and Irregular Cash Flows (you enter specific dates and amounts).
Sign convention: investments/outflows are negative; withdrawals/returns are positive. Calculations use day-count based exponents (actual days ÷ 365) and are solved numerically.
How to Use the XIRR Calculator
Follow these steps to enter cash flows correctly and interpret the results.
Pick a Mode.
Choose Uniform Contributions for equal investments on a set schedule, or Irregular Cash Flows to input arbitrary dates and amounts. This determines how flows are created.
Uniform Contributions setup.
Select Contribution Frequency, Start Date, and Maturity Date; enter Contribution Amount (treated as an outflow) and Final Value (at maturity) (a positive return). This builds dated flows automatically.
Irregular Cash Flows setup.
Enter each Date and Amount in Cash Flows. Use negative values for investments and positive for returns; click + Add Cash Flow for more entries. Add Final Value (at maturity) if applicable.
Precision.
Toggle Show decimals to switch the display precision; it does not change the underlying math.
Calculate.
Click Calculate to solve for XIRR (annual). Review Number of Flows, Days Span, Total Invested, Total Returned, and NPV at XIRR (~0) to sanity-check your inputs.
Interpret the rate.
A positive XIRR indicates overall gain; negative means loss. Remember it is annualized based on actual-day timing, not just a simple average.
Adjust and compare.
Modify dates or amounts (or Contribution Frequency in uniform mode) to test scenarios; use Clear to reset.
Formulas used
General definition (all flows, including final value as the last positive amount):
Uniform contributions (contribution amount each period; final value at maturity):
Tip:XIRR vs IRR vs CAGR: XIRR handles dated, uneven flows; IRR assumes equal-period spacing; CAGR is a single-investment start–end rate with no interim flows.
Frequently Asked Questions
XIRR is the annualized internal rate of return for cash flows that occur on irregular dates. It is the single effective annual rate that makes the net present value (NPV) of all dated cash flows equal to zero.
IRR assumes equal time spacing between cash flows (e.g., monthly or yearly). XIRR uses the actual calendar dates between flows, weighting time by days, so it handles uneven timing and leap years.
Enter investments (money you pay in) as negative amounts and withdrawals/ending value as positive amounts. XIRR requires at least one negative and one positive cash flow.
Common implementations use an Actual/365 day-count where each cash flow is discounted by the exact number of days divided by 365. This tool follows that convention.
If cash flows change sign more than once, the NPV equation may have multiple roots or none in the meaningful range. Also, if all flows have the same sign or 1+r ≤ 0, no valid annual rate exists.
CAGR assumes one deposit at the start and one value at the end. XIRR accounts for the size and timing of each deposit/withdrawal, which can materially change results.
Include them as dated cash flows: fees as negative amounts, tax refunds as positive. This keeps XIRR an apples-to-apples, cash-on-cash measure.
Yes—compute XIRR for each set of cash flows under the same assumptions (currency, dates, fees). Higher XIRR indicates a higher annualized cash return, but also review risk and cash-flow patterns.
Currency is rounded to 2 decimals. XIRR is shown as an annual percentage to 1–2 decimals by default.
Duplicate dates, missing a final value, reversed signs, or mismatched time zones. If two flows occur on the same date, combine them into one amount.
Methodology & Sources
Type: Finance (return metric).
Goal: Solve for the annual effective rate \(r\) such that the dated cash-flow NPV equals zero.
Modes supported:
- Uniform Contributions: Builds a schedule of equal contributions on a fixed frequency (e.g., monthly) from Start Date to Maturity Date, plus a final value at maturity.
- Irregular Cash Flows: User supplies any number of pairs and an optional final value.
We use cookies to enhance your browsing experience, serve personalized content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.
Privacy Policy
Necessary cookies are required for the website to function properly. These cookies ensure basic functionalities and security features of the website.
Analytics cookies help us understand how visitors interact with our website by collecting and reporting information anonymously.
Marketing cookies are used to track visitors across websites to display relevant and engaging advertisements.
Preference cookies enable the website to remember information that changes the way the website behaves or looks.