XIRR Calculator
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free XIRR calculator. Enter dated deposits and withdrawals to get the annualized return, the same way Excel's XIRR works. Nothing is uploaded.
- Net gain
- 0
- Money multiple
- 0
- Period
- 0
- Cash flows
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the XIRR calculator
- List each cash flow on its own line as a date and an amount, for example 2024-01-15, -10000. Use the format YYYY-MM-DD for dates.
- Enter money you put in as negative numbers: purchases, deposits and contributions.
- Enter money you get back as positive numbers: withdrawals, dividends taken as cash, sale proceeds, and the current value of anything you still hold, dated today.
- Read the result as you type.
The XIRR calculator shows the annualised return, the net gain, the money multiple (total out divided by total in), the length of the period and the number of cash flows.
What is XIRR?
XIRR stands for extended internal rate of return. It's the annual rate of return that makes the net present value of a set of dated cash flows equal to zero. In plain terms, it answers: "What steady yearly return would have produced exactly these cash flows on these dates?"
XIRR is the right measure when money goes in and out at irregular times. A simple percentage gain ignores when the money was invested. If you put in 10,000 at the start and 10,000 halfway through, and end with 22,000, your gain is 2,000 either way, but the second 10,000 was only invested for half the time, so the true annual return is higher than a simple calculation suggests. XIRR accounts for exactly how long each amount was invested.
How XIRR is calculated
XIRR finds the rate r that solves:
Σ cash flow ÷ (1 + r)^(days since first cash flow ÷ 365) = 0
There's no simple formula for r, so the XIRR calculator finds it numerically, narrowing the range until the result is accurate to a tiny fraction of a percent. It uses actual days divided by 365, the same convention as Excel's and Google Sheets' XIRR functions, so results should match theirs.
For example, investing 1,000 on 1 January 2020 and receiving 1,100 on 1 January 2021 gives an XIRR of about 9.97%, slightly under 10% because 2020 was a leap year with 366 days.
A worked example
You invest 10,000 on 15 January 2024, add 2,500 on 30 June 2024, take out 1,500 on 1 March 2025, and your holding is worth 14,200 on 15 January 2026.
- Enter the cash flows:
- 2024-01-15, -10000
- 2024-06-30, -2500
- 2025-03-01, 1500
- 2026-01-15, 14200
- Net gain: (1,500 + 14,200) − (10,000 + 2,500) = 3,200.
- XIRR: about 13.3% a year.
The money multiple is 15,700 ÷ 12,500 = 1.256. Because the extra 2,500 was invested for less time than the first 10,000, the annual return is higher than you'd get by spreading the 25.6% gain evenly over two years. Enter these lines in the XIRR calculator to check.
XIRR versus IRR
The ordinary IRR assumes cash flows are evenly spaced, such as one per year or one per month. XIRR uses the actual dates, so it handles irregular timing correctly. If your cash flows really are evenly spaced, IRR and XIRR give almost the same answer; if not, XIRR is more accurate. The IRR calculator handles evenly spaced cash flows.
XIRR versus CAGR
The compound annual growth rate (CAGR) measures the growth from a single starting value to a single ending value. It's ideal when there are no deposits or withdrawals in between. As soon as you add or remove money, CAGR gives a misleading answer, and XIRR is the better measure. The CAGR calculator is for the simple case.
Money-weighted versus time-weighted returns
XIRR is a money-weighted return: it reflects both the performance of your investments and the timing and size of your own deposits and withdrawals. If you happened to add a lot of money just before a strong period, your XIRR will be higher than the fund's own performance. Fund managers usually report a time-weighted return instead, which removes the effect of cash flows so you can judge the manager's performance. Both are useful: XIRR shows what you actually earned; the time-weighted return shows how the investment itself performed.
Who uses an XIRR calculator
Individual investors use it to measure the real return on portfolios with regular contributions, such as monthly investment plans. Property investors use it for deals with uneven costs and income. Private equity and venture investors use it to report fund performance, and business owners use it to evaluate projects with irregular cash flows.
Treat ad spend like any other investment
A Google Ads budget should be judged the way you judge any investment: by what it returns, in dollars. That is the whole job of DeepRit: a PPC-only agency that sets up and runs Google Ads accounts so every click is accounted for. You keep full ownership of your account, get a written report every week, and can stop at any time. See our pricing or ask for a free audit.
Tips for accurate results
- Include every cash flow, including fees you paid separately and dividends you took as cash.
- Use the current market value as a final positive cash flow, dated today, if you still hold the investment.
- Don't include reinvested dividends as separate cash flows; they stay inside the investment and show up in its value.
- Check the signs. Money in is negative, money out is positive. Getting a sign wrong changes the answer completely.
- Use the same currency for all amounts.
Very short periods
XIRR annualises returns, which can make results over short periods look extreme. A 5% gain in one month annualises to roughly 80% a year. That's mathematically correct but rarely meaningful, because short-term returns don't repeat reliably. For periods under a year, it's often clearer to report the simple percentage gain alongside the XIRR.
Multiple solutions
When cash flows change sign several times, for example invest, receive, invest again and receive again, there can occasionally be more than one rate that makes the net present value zero, or none at all. The XIRR calculator reports an error if it can't find a solution. If that happens, check the cash flows, and consider using the modified internal rate of return or simply the money multiple instead.
Common mistakes
- Leaving out the current value of an investment you still hold.
- Entering contributions as positive numbers.
- Mixing up date formats. Use YYYY-MM-DD.
- Comparing XIRR with a fund's time-weighted return as if they measured the same thing.
XIRR for monthly investment plans
Monthly investment plans, such as systematic investment plans (SIPs) in mutual funds or regular contributions to a retirement account, are the classic case for XIRR. Each monthly contribution is invested for a different length of time: the first for the whole period, the last for only a month. Dividing the total gain by the total contributed would understate the return, because much of the money hasn't been invested for long. To measure the return properly, enter every contribution as a negative amount on its date, then the current value as a positive amount dated today. Fund platforms and account statements often list each contribution with its date, which makes this straightforward. Many fund platforms report XIRR for exactly this reason, and the XIRR calculator lets you check their figures.
XIRR in a spreadsheet
In Excel or Google Sheets, put the amounts in one column and the dates in the next, then use =XIRR(amounts, dates). You can add an optional guess as a third argument if the function struggles to find an answer. The XIRR calculator uses the same Actual/365 convention, so for the same cash flows the two should agree to within rounding. If they don't, the most common causes are dates stored as text rather than real dates in the spreadsheet, or a missing or mis-signed cash flow.
Comparing investments with XIRR
Because XIRR is an annual rate, you can compare investments held for different lengths of time with different patterns of deposits. A property bought five years ago with renovation costs along the way can be compared with a share portfolio built up over three years. Make sure each calculation includes every cost and every receipt, and compare like with like on risk: a higher XIRR from a much riskier investment isn't necessarily better.
Sources and further reading
- Internal rate of return on Wikipedia: definition, calculation and limitations.
- Microsoft Support: XIRR function, Excel's documentation for the same calculation.
- Time-weighted return on Wikipedia: how it differs from money-weighted returns.
Frequently asked questions
What does XIRR mean?
Extended internal rate of return: the annual return implied by cash flows on specific dates.
How do I enter deposits and withdrawals?
Deposits (money in) as negative numbers, withdrawals and current value (money out) as positive numbers.
Is the XIRR calculator the same as Excel's XIRR?
It uses the same Actual/365 convention, so results should match Excel and Google Sheets.
What is a good XIRR?
It depends on the investment's risk and the period. Compare it with a suitable benchmark over the same dates.
Why is my XIRR very high?
Short periods annualise small gains into large yearly figures. Check the simple gain too.
Is the XIRR calculator free?
Yes. It's free, needs no sign-up, and works in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.