Investing calculator
IRR & XIRR Calculator
Find the true yearly return on a rental, an annuity or your own IRA, counting every dollar that went in or came out and exactly when.
The Return Number That Respects Time
What Is the Internal Rate of Return?
Every investment is a series of cash flows: money leaving your pocket on some dates, money coming back on others. The internal rate of return is the single yearly rate that makes all of those flows balance. Technically, it is the discount rate at which the net present value is zero.
Put more plainly, IRR is the rate a bank account would have had to pay for you to end up in the same place, given the exact deposits and withdrawals you made. The calculator opens on a hypothetical rental condo bought for $285,000 including closing costs, rented for seven years at $14,000 to $17,000 a year after expenses, and sold in year eight for $372,000 net of selling costs. Its IRR is 8.29% a year.
There is no formula you can solve by hand. The rate has to be found by trial and error, which is what Excel's IRR and XIRR functions do, and what this calculator does with Newton's method and a bisection fallback. The Excel template uses Excel's own functions, so the two agree.
Why it matters:
IRR vs. CAGR vs. Simple ROI
These three numbers answer different questions. Pick the one that matches the shape of your cash flows.
| Measure | Accounts for time? | Handles multiple cash flows? | Best for |
|---|---|---|---|
| Simple ROI | No | No | A quick check on total gain |
| CAGR | Yes | No, one in and one out | A single purchase and sale, index comparisons |
| IRR / XIRR | Yes | Yes, any number and timing | Rentals, annuities, private funds, accounts with withdrawals |
When there is exactly one cash flow in and one out, IRR and CAGR give the same answer. The moment a second purchase, a withdrawal or an interim payout appears, only IRR stays honest. For the single-sum case, the ROI & CAGR calculator is the simpler tool.
When You Need XIRR Instead of IRR
Plain IRR assumes every cash flow is exactly one period apart: year one, year two, year three. That fits a bond or an annuity that pays on the same date each year. It does not fit most of what a retiree actually owns.
- A rental property: the purchase, a roof 27 months later, rent through the year, a sale on whatever date closing happens
- A private fund or partnership: capital calls and distributions whenever the manager decides
- An IRA or brokerage account: a rollover, a last catch-up contribution, then withdrawals and required minimum distributions on their own schedule
XIRR takes each flow's calendar date and counts the days between them over a 365-day year, the same convention Excel uses. The Dated (XIRR) mode opens on a hypothetical IRA worth $900,000 at the start of 2020, with a $7,000 contribution in 2021, yearly withdrawals of $45,000 to $52,000 from 2022, and a balance of $1,010,000 on September 1, 2026. Its XIRR is 5.41% a year.
Your own return:
Money-Weighted vs. Time-Weighted Return
IRR is a money-weighted return. Large flows count more than small ones, so a big withdrawal just before a rally, or a large rollover just before a fall, moves the number. That is the point: it measures what happened to your dollars.
Fund fact sheets and many adviser reports show time-weighted returns instead. That method strips out deposits and withdrawals, because the manager does not control when clients add or take money. It answers "how good was the manager?" while IRR answers "how did I do?"
Both are correct. In retirement the gap usually comes from withdrawals: taking a large sum in a down year locks in the loss, and the money-weighted return shows it while the time-weighted one does not.
Three Ways IRR Can Mislead
1. It assumes reinvestment at the IRR. A deal that pays out early and shows a high IRR quietly assumes you reinvested those payouts at the same rate. In retirement you usually spend them. The higher the IRR and the earlier the cash comes back, the more this flatters the picture.
2. More than one sign change can give more than one IRR. If cash goes out, comes in, then goes out again (a rental with a large repair, for instance), the math can have two valid answers or none. The calculator warns you when the flows change sign more than once, so you can check the result against NPV.
3. It is blind to size. A 15% IRR on $10,000 earns less than 6% on $500,000. That is why the calculator also shows NPV at a rate you choose, the net profit in dollars and the multiple on the money you put in.
Common Mistakes
- Entering every flow as positive (money you put in must be negative)
- Leaving out the current value of something you still own as the final positive flow
- Forgetting closing costs, repairs, capital calls and advisory fees paid from outside the account
- Entering a withdrawal net of the tax withheld instead of the gross amount that left the account
- Comparing a monthly IRR with an annual benchmark without annualizing it
- Choosing between two investments on IRR alone when their sizes differ widely
Step by Step
- 1Pull every cash flow from statements and closing documents, not memory
- 2Mark money you put in as negative and money you took out as positive
- 3Use Dated (XIRR) mode unless the flows really are evenly spaced
- 4For anything you still own, add today's value, net of selling costs, as the last positive flow
- 5Compare the result with what a plain index or balanced fund returned over the same dates
- 6Check NPV at the return you could have earned elsewhere; a positive NPV means it beat that alternative
Illustrative example: the people and figures below are hypothetical, not real clients. Numbers are calculated from the stated assumptions.
Ruth and Alan Measure the Rental Before They Downsize
Fifteen Years of Rent, One Question: Sell or Keep?
Ruth, 68, and Alan, 70, bought a condo to rent out in April 2011, when they were in their mid-fifties. They are now planning to move to a smaller house near their daughter and want to know two things before deciding whether to sell the condo too: how well it has actually done, and what it is likely to earn from here.
The Condo, Every Cash Flow
- April 2011: $240,000 purchase price and closing costs
- Net rent after expenses: $6,000 for 2011, $10,000 a year for 2012 to 2017, $13,000 a year for 2018 to 2025
- September 2019: $22,000 roof and heating system
- Today: $430,000 if sold ($460,000 less about $30,000 of selling costs)
- In: $262,000. Out: $600,000. Profit: $338,000
- Simple ROI: 129%. XIRR: 6.97% a year
The Same Dollars in a Fund
- Same $240,000 and $22,000 invested on the same dates
- Same amounts withdrawn each year in place of the rent
- At 6% a year the fund would be worth $359,259 today
- At 7% a year it would be worth $432,642
- The condo's $430,000 sits almost exactly on 7%
What the Calculator Showed Them
1. The Past Was Good, Not Spectacular
A 129% gain sounded like a triumph. Spread over fifteen years, with the roof money going in partway through, it is 6.97% a year: about what a balanced fund might have earned, with tenants, repairs and a concentrated bet on one building along the way.
2. Keeping It Is a New Investment of $430,000
The purchase price no longer matters. Keeping the condo means leaving $430,000 in it. They entered that as the first negative flow, $14,000 of rent a year for five years, and a sale in year five. If the condo gains 3% a year and costs 6.5% to sell, the return from here is 6.08% a year; at 2% a year it is 5.14%. That is before counting the work of being landlords into their mid-seventies.
3. Taxes Point the Other Way
Selling now means paying capital gains tax, with the part of the gain from depreciation taxed at up to 25% (IRS). If they hold it for life, their heirs generally take the property at its value on the date of death (IRS Publication 551). The IRR puts the investment case on the table; the tax case needs their accountant.
They decided to sell within two years, after the move, and to use the XIRR every year on the IRA they will draw from instead. The lesson they took: measure what the money will earn from today's value, not what it earned from the day you bought.
What Does IRR Tell You That a Statement Does Not?
The return your own money earned, given the dates you actually added and took it. A statement shows balances. A fund fact sheet shows the fund's time-weighted return, which ignores your deposits and withdrawals. Neither tells you what a rental, a private partnership or your IRA has earned for you, once the rollover in one year, the repair in another and the withdrawals every January are counted. IRR does, and XIRR does it with exact dates.
That matters more after 60 than before. In the saving years, money mostly flows one way and simple returns are close enough. Once withdrawals begin, the timing of each one moves the result: a large withdrawal after a market fall locks in the loss, and a money-weighted return shows it. The same is true of the decisions this reader tends to face, such as whether to keep a rental, whether an annuity quote is fair, or whether an adviser's fee has been earned. Each is a question about cash flows on dates, and each has an IRR.
How Do You Measure the Return on Your Own Account?
With XIRR and a year or more of statements. Pick a start date and enter the account value on that date as a negative flow, as if you had just bought the whole account. Then enter every flow since:
- Money in is negative. Contributions, catch-up contributions, rollovers from a 401(k), transfers from another account.
- Money out is positive. Withdrawals, required minimum distributions, qualified charitable distributions and Roth conversions out of a traditional IRA. Use the gross amount that left the account, including any federal or state tax withheld.
- Today's balance is the last positive flow, dated today.
Leave out dividends and interest that stayed in the account, and fees deducted from it: they are already in the balance. A fee you pay by check from another account is a real cost of this one, so enter it as a negative. The calculator's Dated mode opens on a hypothetical IRA worth $900,000 in January 2020, with one $7,000 contribution, withdrawals of $45,000 to $52,000 a year from 2022, and a balance of $1,010,000 on September 1, 2026. Its XIRR is 5.41% a year.
For a household with several accounts, run each one and then all of them together, with transfers between accounts left out. A Roth conversion counts as money out of the traditional IRA and money into the Roth; across both accounts it cancels. If you are weighing conversions, the guide to Roth conversions before RMDs covers the tax side.
Should You Keep the Rental? Measure From Today's Value
The return on keeping a property is the return on what you could sell it for now, not on what you paid. That is the most common mistake in a keep-or-sell decision. A condo bought for $240,000 in 2011 and worth $430,000 net of selling costs today has, in effect, $430,000 of your money in it. Keeping it is the same as buying it again at that price.
So run the calculator twice. First, the history: the purchase, every year of net rent, each major repair, and today's net sale value as the last flow, in Dated mode. In the worked example on this page that history is an XIRR of 6.97% a year. Second, the future: today's net sale value as a negative, a realistic net rent for each year you might keep it, and an estimated sale price net of costs at the end. With $14,000 of rent a year and the property gaining 3% a year, five more years return 6.08%; at 2% a year, 5.14%.
Set the NPV discount rate to what the money would earn in a balanced fund you would not have to manage, and let the result settle the investment question. Then weigh what the IRR leaves out: tenants and repairs in your seventies, and the concentration of a large share of your wealth in one building. Taxes can point the other way. On a sale, gain from depreciation you took is taxed at up to 25% (IRS), while heirs who inherit property generally take its value on the date of death as their basis (IRS). The guide to downsizing in retirement covers the rest of the move.
What Return Does an Annuity Actually Pay?
It depends on how long you collect. An income annuity quote shows a payment, not a rate of return, and the rate is only knowable in hindsight. The IRR at different lifespans shows what you are buying. For a hypothetical $200,000 premium paying $13,000 a year, with the first payment a year after purchase:
| Payments received | Roughly to age (bought at 65) | IRR |
|---|---|---|
| 15 | 80 | -0.31% |
| 20 | 85 | 2.64% |
| 25 | 90 | 4.15% |
| 30 | 95 | 4.99% |
The pattern explains annuities better than any sales brochure. They are poor investments for people who die early and good insurance for people who live long. A fixed payment also loses buying power: at 3% inflation, the 25-year IRR of 4.15% is about 1.11% a year after inflation. Load the "Annuity to age 85" example, change the amounts to your own quote, and add or remove years to see the range. The same method values a pension: enter the lump sum you would give up as the negative flow and the monthly or yearly pension as the positives. The guide to pension lump sum vs. annuity walks through that choice.
How Much Does an Advisory Fee Take Off Your IRR?
Roughly the whole fee, every year. A fee of 1% of assets, deducted from the account, lowers your money-weighted return by about one percentage point. On a $1.5 million account that is $15,000 in the first year, and over time the difference compounds: $1.5 million growing at 6% a year for 20 years becomes $4.81 million, and at 5% it becomes $3.98 million, a gap of about $831,000 before any withdrawals.
Your XIRR is the fair way to judge whether the fee is earned. Compare it with what a low-cost index fund mix of similar risk returned over the same dates, run through the same flows. If the adviser adds planning, tax work or estate coordination you value, some shortfall may be worth paying for. If the XIRR trails the simple alternative and the service is mainly portfolio management, the numbers make the case on their own.
What Does the Calculation Leave Out?
- Taxes. The result is before tax unless you enter after-tax flows. For a rental sale, the after-tax proceeds are the honest last flow; for an IRA, remember that every dollar in a traditional account still carries income tax.
- Inflation. IRR is a nominal rate. To convert it, divide (1 + IRR) by (1 + inflation) and subtract 1. The inflation calculator shows how prices have moved over your holding period.
- Reinvestment. IRR assumes interim cash was reinvested at the IRR itself. If you spent the rent, the figure still describes the investment fairly, but not what your total wealth earned.
- Risk and effort. Two investments with the same IRR are not equal if one is a diversified fund and the other a single building with tenants.
- Day count. XIRR measures time from the first date over a 365-day year, the same convention as Excel (Microsoft). Periodic IRR converts a monthly or quarterly rate to a yearly one by compounding.
The Excel template uses Excel's own IRR, NPV and XIRR functions on the same inputs, so its results match this page. For how a measured return feeds a withdrawal plan, see the guide to retirement withdrawal order.
How this calculator works
Method and assumptions
- Periodic (IRR) mode finds the rate r at which the net present value of your flows is zero: the sum of each flow ÷ (1 + r)^period, with the first flow at period 0. Flows are assumed to be exactly one period apart.
- With quarterly or monthly periods, the per-period rate is annualized by compounding: (1 + periodic rate)^(4 or 12) − 1.
- Dated (XIRR) mode sorts your rows by date and discounts each flow by the actual days since the first flow over a 365-day year, the same convention as Excel's XIRR.
- The rate is solved numerically: Newton's method starting from 10%, falling back to bisection between −99% and 1,000% a year. If no rate in that range balances the flows, no result is shown.
- NPV (periodic mode only) discounts the same flows at your annual discount rate, converted to a per-period rate. Multiple on capital is total money back ÷ total money in, ignoring timing.
What it leaves out
- When flows change sign more than once, there can be more than one valid IRR or none. The calculator reports the first rate its solver finds and shows a warning (periodic mode only); check it against NPV.
- IRR implicitly assumes money paid back early is reinvested at the IRR itself. If you spend those payouts, the real outcome is lower.
- Taxes, fees and selling costs are only included if you enter them as cash flows or net them out of the amounts.
- NPV, the payback chart and the multiple-sign warning are not computed in Dated (XIRR) mode.
Sources
Methodology reviewed · For education, not individual advice
Frequently Asked Questions
What is IRR in simple terms?
What is the difference between IRR and XIRR?
How do I work out the return on my own IRA or brokerage account?
What is a good IRR?
What return does an annuity really pay?
Why does IRR differ from ROI?
What does a negative IRR mean?
Related Calculators
ROI & CAGR Calculator
Annualized return for a single purchase and sale with nothing in between
Use calculatorRental Property ROI Calculator
Cash-on-cash return and cap rate on a rental you own or are weighing
Use calculatorAnnuity Payout Calculator
Compare annuity income with drawing the same money from your portfolio
Use calculatorRetirement Withdrawal Calculator
See how long a portfolio lasts at the return your XIRR suggests
Use calculator