How to calculate IRR
To calculate IRR, find the discount rate that makes the net present value of every cash flow, including the initial cost, equal to zero. There is no algebraic formula once there are more than two cash flows, so spreadsheets and this calculator search for the rate: Excel starts at a 10% guess and repeats until the answer is accurate within 0.00001 percent, giving up after 20 tries.[1]
This calculator checks the NPV at every rate between −99% and 1,000% a year and refines each sign change, so it reports every IRR instead of the one nearest a guess. It was tested against Microsoft's published examples:[1][3][2]
| Example (Microsoft Support) | Excel shows | This calculator |
|---|---|---|
| IRR, $70,000 business after five years | 8.7% | 8.6631% |
| IRR, same business after four years | −2.1% | -2.1245% |
| IRR after two years (needs a −10% guess in Excel) | −44.4% | -44.3507% |
| MIRR, $120,000 at 10% finance, 12% reinvestment | 13% | 12.6094% |
| MIRR, same with 14% reinvestment | 13% | 13.4759% |
| XIRR, $10,000 with four dated returns | 37.34% | 37.3363% |
The cash flow table under the result proves the answer: discounted at the IRR, the present values add up to zero. Excel needs a guess for the two-year case because −44% is far from its 10% starting point; a grid search has no such blind spot.
How to calculate IRR by hand: a step-by-step example
By hand, you calculate IRR by trying two discount rates, one that gives a positive NPV and one that gives a negative NPV, and interpolating between them. Take an investment of $1,000 today that returns $500, $400 and $300 over the next three years:
- Write the NPV equation set to zero: 0 = −1,000 + 500 ÷ (1 + r) + 400 ÷ (1 + r)2 + 300 ÷ (1 + r)3. The r that solves it is the IRR.
- Try a first rate, 10%: the present values are $454.55, $330.58, $225.39, so NPV = $10.52. Positive, so the IRR is higher than 10%.
- Try a higher rate, 12%: the present values are $446.43, $318.88, $213.53, so NPV = −$21.16. Negative, so the IRR lies between 10% and 12%.
- Interpolate: IRR ≈ 10% + 2% × 10.52 ÷ (10.52 + 21.16) = 10.66%.
- Check: the exact IRR is 10.652%; the straight-line estimate is a little off because NPV curves rather than falls in a straight line. Narrow the two rates and repeat for more accuracy, or enter the cash flows above and let the calculator do it.
| Discount rate | PV of year 1 | PV of year 2 | PV of year 3 | NPV |
|---|---|---|---|---|
| 10% | $454.55 | $330.58 | $225.39 | $10.52 |
| 10.652% (IRR) | $451.87 | $326.70 | $221.44 | $0.00 |
| 12% | $446.43 | $318.88 | $213.53 | −$21.16 |
IRR vs required return: the decision rule
Accept a single project when its IRR is higher than your required return (the hurdle rate), because then its NPV at that rate is positive.[4] The $70,000 business earns 8.66%, so at a 10% hurdle its NPV is −$2,683.31: the cash comes back, but more slowly than a 10% alternative would pay. The NPV profile chart shows the same thing: the curve crosses zero at the IRR, and any rate left of the dot gives a positive NPV.
When you must choose between two projects, OpenStax recommends the one with the higher NPV, not the higher IRR: IRR ignores how many dollars a project adds, so a small project with a high IRR can lose to a large one with a lower IRR.[6] The NPV calculator ranks projects in dollars at your rate.
Monthly and quarterly IRR, and XIRR for exact dates
With monthly cash flows, Excel's IRR() returns a rate per month, and it must be compounded to a yearly figure, not multiplied by 12.[1] $10,000 that returns $900 a month for 12 months has a monthly IRR of 1.204%:
| Way to annualize | Formula | Result |
|---|---|---|
| Effective annual IRR (this calculator) | (1 + monthly IRR)12 − 1 | 15.45% |
| Nominal (APR-style) | monthly IRR × 12 | 14.45% |
The effective rate is the one to compare with a yearly IRR or a hurdle rate; the nominal rate understates it by 1.00 points here. It is the same gap as between APR and APY on the APY calculator.
When cash arrives on irregular dates, choose "Exact days" and enter each date as days after the start. Excel's XIRR() uses the same convention, a 365-day year, and gives 37.34% for Microsoft's $10,000 example (returns on days 60, 303, 411 and 456).[2] Count days with any date calculator or with =B3-B2 in a spreadsheet.
MIRR, and why one project can have two IRRs
MIRR answers the main complaint about IRR: IRR assumes the cash a project returns can be reinvested at the IRR itself. MIRR discounts the outlays at a finance rate (what the money costs you) and grows the inflows to the end at a reinvestment rate (what they will really earn), then finds the single rate between the two.[3][5] In Microsoft's example the plain IRR is 13.07%, but with profits reinvested at 12% the MIRR is 12.61%.
Cash flows that change sign more than once can have several IRRs. −$350, +$950, −$620 has two, 9.18% and 62.25%, and the rule "accept if IRR beats the hurdle" stops working.[4] Spreadsheets return whichever root is nearest the guess without warning you; this calculator lists both and points you to NPV and MIRR, which always give one answer.
Common mistakesMultiplying a monthly IRR by 12. Leaving out a later outlay (a roof, a balloon payment) because it is negative: enter it as a negative cash flow. Comparing the IRR of a 2-year and a 10-year project as if both returns lasted equally long. Treating IRR as the return on all your money when only part of it stays invested.
Related calculators
To value cash flows in dollars at your own rate use the NPV calculator, and for the math behind it the NPV formula guide. To measure what an investment you already sold returned, use the rate of return calculator; for growth between just two values, the CAGR calculator; for level payments, the TVM calculator.
- NPV calculatorNet present value, IRR, MIRR and payback of yearly cash flows
- NPV formulaNet present value worked by hand, in Excel (NPV, XNPV) and for equal cash flows
- Rate of return calculatorTotal, annualized and real return with dividends and fees
- CAGR calculatorCompound annual growth rate between two values
- Time value of money (TVM) calculatorSolve N, I/Y, PV, PMT or FV like a financial calculator
Frequently asked questions
How do you calculate IRR?
Find the discount rate that makes the net present value of all cash flows zero, by trial and error or with a calculator. $70,000 returning $12,000 rising to $26,000 over five years has an IRR of 8.66%.
What is a good IRR?
One above your required return: the rate you could earn on an alternative of similar risk, or your cost of capital. An IRR below it means a negative NPV at that rate.
What is the difference between IRR and XIRR?
IRR assumes equal periods between cash flows. XIRR takes the exact date of each one and counts a 365-day year, so it is the one to use for irregular deposits and withdrawals.
How do I convert a monthly IRR to an annual IRR?
Compound it: (1 + monthly IRR)12 − 1. A 1.204% monthly IRR is 15.45% a year, not 14.45%.
What is the difference between IRR and MIRR?
IRR assumes returned cash is reinvested at the IRR itself. MIRR uses a finance rate for the outlays and a reinvestment rate for the inflows, and always gives a single answer.