XIRR Calculator
Annualized internal rate of return for dated, irregular cash flows (Actual/365).
Educational estimate only — not investment, lending, or financial advice. Confirm figures with statements or a qualified professional before you act.
About this tool
Enter each cash flow with its date and get an annualised return that reflects the real gaps between them. It matches the spreadsheet XIRR approach and suits irregular investments and withdrawals.
How to use
How it works
XIRR discounts each flow by the number of days since the first date divided by 365, then finds the annual rate that makes the total zero. Because it uses an actual-day count over 365, a one-year gap in a leap year is 366 days and slightly lowers the rate. At least one flow must be negative and one positive.
find r such that Σ CFᵢ ÷ (1 + r)^((dateᵢ − date₀) ÷ 365) = 0
Worked example
A one-year investment spanning a leap day
- Input
- −10,000 on 2024-01-01; +11,000 on 2025-01-01
- Output
- XIRR 9.9714%
- Walkthrough
- 11,000 ÷ 10,000 is a 10% gain, but the gap is 366 days, so the annualised rate is 1.1^(365/366) − 1 = 9.9714%. The built-in sample of five flows through 2024 gives 66.4886%, because the money comes back within a single year.
Limitations
- Needs a negative and a positive flow.
- Uses an actual/365 day count.
- Several sign changes can give more than one rate; the tool warns when this happens.
Questions
What is the difference between IRR and XIRR?
Why isn't a 10% gain exactly 10%?
How do I enter dates?
Can XIRR be used for a portfolio?
Features
- Dated cash flows
- Actual/365 day count
- Runs in your browser
Guides
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Calculating simple and compound interest
Khan Academy
Worked examples to compare with calculator output.
Watch on YouTubeAmortization
Khan Academy
Principal vs interest breakdown for schedules.
Watch on YouTube
- Mortgage Formulas
Math is Fun
Amortization math behind loan schedule export.
- Finance and capital markets
Khan Academy
Broader finance lessons next to studio calculators.