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 is the only return figure that gives a fair answer when money went in and out at different times. Simple ROI and CAGR both assume one sum at the start and one at the end, which is rarely how a rental, an annuity or a retirement account actually works.

IRR vs. CAGR vs. Simple ROI

These three numbers answer different questions. Pick the one that matches the shape of your cash flows.

IRR, CAGR and simple ROI compared
MeasureAccounts for time?Handles multiple cash flows?Best for
Simple ROINoNoA quick check on total gain
CAGRYesNo, one in and one outA single purchase and sale, index comparisons
IRR / XIRRYesYes, any number and timingRentals, 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:

Take the account value on a start date as the first negative flow, add every contribution as a negative and every withdrawal (the gross amount, before tax withheld) as a positive, and finish with today's balance as a positive. The XIRR is your true money-weighted return, the number to set beside what your adviser or the fund reports.

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

  1. 1Pull every cash flow from statements and closing documents, not memory
  2. 2Mark money you put in as negative and money you took out as positive
  3. 3Use Dated (XIRR) mode unless the flows really are evenly spaced
  4. 4For anything you still own, add today's value, net of selling costs, as the last positive flow
  5. 5Compare the result with what a plain index or balanced fund returned over the same dates
  6. 6Check NPV at the return you could have earned elsewhere; a positive NPV means it beat that alternative

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:

IRR of a $200,000 annuity paying $13,000 a year, by number of payments
Payments receivedRoughly to age (bought at 65)IRR
1580-0.31%
20852.64%
25904.15%
30954.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.

Methodology reviewed · For education, not individual advice

Frequently Asked Questions

What is IRR in simple terms?

IRR is the yearly rate your money actually earned, counting exactly when each dollar went in and came out. A rental 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 earned an IRR of 8.29% a year. A savings account paying 8.29% with the same deposits and withdrawals would have ended in the same place.

What is the difference between IRR and XIRR?

IRR assumes cash flows arrive at evenly spaced intervals; XIRR uses the actual calendar dates. A rollover in March, a withdrawal in January and a required minimum distribution in December cannot be forced into equal periods. XIRR counts the days between each date and the first one over a 365-day year, as Excel does (Microsoft), which is why it is the right tool for a real retirement account.

How do I work out the return on my own IRA or brokerage account?

Use Dated (XIRR) mode with the account value at a start date, every flow since, and today's balance. Enter the starting value as a negative, contributions and rollovers in as negatives, withdrawals and RMDs as positives (the gross amount, before tax withheld), and today's balance as the last positive. Advisory fees billed to the account stay out, because they are already reflected in the balance; fees paid by check from outside go in as negatives.

What is a good IRR?

Judge it against what the same money would have earned in a realistic alternative over the same dates, not against a single number. For a rental or private deal, the alternative is usually a plain stock or balanced index fund you would not have had to manage. Set that fund's return as the NPV discount rate: a positive NPV means the investment beat it, a negative one means it did not.

What return does an annuity really pay?

It depends on how long you live, and the calculator shows it. A hypothetical $200,000 premium buying $13,000 a year returns -0.31% a year if payments stop after 15 years, 2.64% after 20, 4.15% after 25 and 4.99% after 30. Load the "Annuity to age 85" example, then add or remove years to match your own life expectancy and the quote you were given.

Why does IRR differ from ROI?

ROI ignores time; IRR is built around it. A 129% total gain sounds the same whether it took eight years or fifteen. For a rental bought in 2011 with a large repair in 2019 and rent every year, a 129% gain works out to an XIRR of 6.97% a year. ROI also cannot tell which dollars earned the return when money went in at different times.

What does a negative IRR mean?

You got back less than you put in, expressed as a yearly rate of loss. An annuity that pays $13,000 a year on a $200,000 premium and stops after 15 payments has an IRR of -0.31%. If the calculator cannot find any rate, every flow probably has the same sign: money in must be negative and money back positive.