XIRR Calculator
Find the annualized return of investments and receipts on their actual dates. Add or remove rows, sort by date, and load a worked example.
Your data stays in your browser. This tool processes your input locally and does not upload it to a server.
Cash flow 1
Cash flow 2
Cash flow 3
Cash flow 4
Cash flow 5
Annualized XIRR
37.34%
Solved from the dated cash flows. Not a projected return.
Cash flows
5
Sorted by date before solving.
Disclaimer: Results are estimates based on the inputs and assumptions provided. Actual returns, interest rates, tax benefits, and scheme conditions may vary. This calculator is for informational purposes only and does not constitute financial, investment, or tax advice.
Signed cash flows
- Cash flow
Cash flows in date order
| Date | Type | Amount entered | Signed amount |
|---|---|---|---|
| 2008-01-01 | Investment | ₹10,000.00 | -₹10,000.00 |
| 2008-03-01 | Receipt | ₹2,750.00 | ₹2,750.00 |
| 2008-10-30 | Receipt | ₹4,250.00 | ₹4,250.00 |
| 2009-02-15 | Receipt | ₹3,250.00 | ₹3,250.00 |
| 2009-04-01 | Receipt | ₹2,750.00 | ₹2,750.00 |
Formula
Find r where Σ amount / (1 + r)^(days / 365) = 0. Investments are negative. Receipts are positive.
- Day counts use actual days divided by 365, including in a leap year.
- The solver tries Newton–Raphson, then bisection. Same-sign flows and a failed search are reported instead of a rate.
- Rows are sorted by date for the schedule. Amounts stay on this page and are not put in the link.
How is XIRR different from a simple percentage?
XIRR is the annual rate that sets the present value of dated cash flows to zero. Money you invest is an outflow. Money you receive is an inflow. This calculator signs those amounts, sorts the dates, and solves the rate with actual days divided by 365. If the solver cannot finish, it says so instead of showing a rate.
Signs, dates, and the 365-day year
Enter every amount as a positive number and mark it as an investment or a receipt. Investments are stored as negative cash flows. Receipts stay positive. The schedule is sorted by date before it is solved, so the order of the rows does not change the rate. The time for each row is the actual number of days from the earliest date, divided by 365. A leap day adds a day to the count. The denominator stays 365.
The solver starts with Newton–Raphson and falls back to bisection. Excel’s published description of XIRR uses the same idea: at least one positive and one negative value, a 365-day year, and an iterative search that can fail.
When there is no rate
Two flows are the minimum. A list that is only investments, or only receipts, has no rate that makes the present value zero, because the values never change sign. Some schedules change sign more than once and still have no rate the search can find. The page explains that failure. It does not substitute CAGR or a guessed percent. Sample data loads a published five-row example you can clear and replace.
Examples
Microsoft’s published XIRR sample
Input
Investment ₹10,000 on 1 Jan 2008
Receipts: ₹2,750 on 1 Mar 2008, ₹4,250 on 30 Oct 2008, ₹3,250 on 15 Feb 2009, ₹2,750 on 1 Apr 2009Output
Annualized XIRR about 37.34%This is the worked example in Microsoft’s XIRR article. Loading sample data on the page uses these rows.
A leap-year holding period
Input
Investment ₹1,000 on 1 Jan 2020
Receipt ₹1,100 on 1 Jan 2021Output
Annualized rate slightly under 10%The span is 366 days. The rate is 1.1 raised to 365/366, minus 1, which is a little below the 10% you would get from a 365-day year.
Common mistakes and edge cases
- Typing the investment as a negative number is rejected. Choose Investment and enter a positive amount. The sign is applied for you.
- A schedule of only investments, or only receipts, cannot produce an XIRR. Add the missing side.
- More than one change of sign can make the search fail, or can make more than one rate mathematically possible. Read the error instead of forcing a figure.
- XIRR is not CAGR. CAGR uses one start value, one end value, and a single duration. XIRR uses every dated amount.
- Rows are not saved in the browser, and the share link does not include the amounts. Copy the summary if you need a record.
How to use this tool
- Add a row for each investment or receipt, with its date and a positive amount.
- Use sample data to see a worked example, or clear the rows and start again.
- Read the annualized rate. If the cash flows are all one sign, or the solver cannot finish, the page explains why.
Frequently asked questions
Why must investments be negative inside the formula?
An internal rate of return compares money leaving you with money coming back. If every amount had the same sign, the present value could not cross zero and there would be no rate to solve. The form still asks for a positive rupee amount, because a minus key is easy to miss and easy to double. Choosing Investment stores the outflow. Choosing Receipt stores the inflow. The sorted table shows the signed amount so you can check the direction before you trust the rate.
Does a leap year change XIRR?
Yes, through the day count, not through a change of the year length in the denominator. From 1 January 2020 to 1 January 2021 is 366 days because 2020 had a leap day. Those days are divided by 365, so the year fraction is 366/365 rather than 1. A gain that would be exactly 10% over 365 days is a slightly smaller annualized rate over 366 days. The same rule is what Excel documents for XIRR. A non-leap anniversary, such as 2021 to 2022, is 365/365 and lines up with the simple one-year rate.
What does “did not converge” mean?
The search tried Newton–Raphson and then a bisection over a wide range of rates, and it did not find a rate that sets the present value to zero within its limits. That is an answer, not a broken page. It shows up when cash flows reverse direction more than once, and sometimes when the amounts and dates have no real root. A single investment that is tiny next to the receipts is different: the rate is above 1,00,000%, and the result shows that cap instead of this message. Check for a missing closing value, a duplicated receipt, or a sign chosen on the wrong row. The cash-flow table still lists what you entered so you can fix a row without starting over.
How should I record a SIP in this calculator?
Add one investment row for each installment, on the date it was debited, and one receipt row for the value on the date you are measuring. Do not collapse the installments into a single starting amount unless they really were invested on one day. Collapsing them is the lumpsum case, and it will not match the XIRR of the real dates. If the dates are perfectly regular and you only want a projection, the SIP calculator is shorter. This page is for the dates you actually have.
Is the sample rate a return I should expect?
No. The sample is Microsoft’s documentation example, with an investment of 10,000 and four later receipts, and it solves to about 37.34% a year. It is there so you can see a known result and then clear it. Your own rows will produce your own rate. A high sample rate is not a forecast, a benchmark, or a fund return. Reset or clear when you want the sample gone. Nothing is written to the page address.
References
Last reviewed
Related tools
SIP Calculator
Estimate the future value of a monthly SIP.
Finance & Investment CalculatorsCAGR Calculator
Find compound annual growth between two values.
Finance & Investment CalculatorsMutual Fund Returns Calculator
Compare a projection with an entered value.
Finance & Investment CalculatorsLumpsum Calculator
Estimate growth of a one-time investment.
Finance & Investment Calculators