What is IRR?

The internal rate of return — IRR — is the discount rate that makes the net present value (NPV) of a series of periodic cash flows exactly zero. Put less formally, it is the annual (or per-period) rate of return a project earns on the money tied up in it, taking full account of when each amount goes out and comes back in. If you invested $10,000 today and received $3,000, $4,000, $5,000 and $6,000 over the next four years, your IRR is 24.89% — the rate at which those four receipts, discounted back to today, are worth exactly the $10,000 you paid. An internal rate of return calculator exists because that rate cannot be read off the cash flows directly: it has to be solved for, which is what this page does.

IRR is one of the oldest and most widely used measures in capital budgeting, taught in every corporate finance course and built into every spreadsheet as the IRR function. Its appeal is obvious: managers think naturally in percentages, hurdle rates are quoted in percentages, and a single percentage seems to summarise a whole stream of cash flows. That appeal is real, but so are its traps, and this guide states them plainly rather than hiding them: IRR assumes interim cash flows are reinvested at the IRR itself; cash flows that change sign more than once can produce multiple IRRs; and IRR alone does not rank mutually exclusive projects correctly — NPV does. Used with those limits in view, IRR is an excellent first screen. Used alone, it can pick the wrong project.

How this IRR calculator works

The calculator takes an editable table of periodic cash flows — one row per period, starting with period 0. Period 0 is today: the initial investment, entered as a negative number. Each later period holds the net cash flow for that period — positive when money comes back to you, negative when you put more money in. You can add rows up to period 20 (21 cash flows in total) or remove rows you do not need, and the periods must be regular: all yearly, or all monthly, or all quarterly. The IRR you get is a rate per period, so yearly cash flows give a yearly IRR and monthly cash flows give a monthly IRR.

Alongside the cash flows you set a discount rate — your hurdle rate or cost of capital. The calculator solves for the IRR, computes the NPV of the same cash flows at your discount rate, and draws an NPV profile: a small table of NPVs at discount rates from 0% to 30%, so you can watch the NPV fall as the rate rises and cross zero exactly at the IRR. It also counts how many times your cash flows change sign. One sign change — the conventional pattern of money out first, money in later — normally means one IRR. More sign changes mean the possibility of multiple IRRs, and the tool warns you and lists the crossings it finds instead of quietly showing the first one. If the cash flows never change sign, the tool says plainly that no IRR exists, because no rate can balance money that only moves in one direction.

The IRR formula

IRR is the rate r that satisfies:

NPV = Σ CFt ÷ (1 + r)t = 0

where CFt is the cash flow in period t, running from period 0 to the final period. The period 0 flow is divided by (1 + r)0, which is 1, so it enters at full value — exactly as it should, because money spent today needs no discounting. Every later flow is shrunk by a discount factor that grows with both the rate and the distance into the future. How to calculate IRR from this formula is the catch: with more than a handful of periods the equation is a high-degree polynomial in disguise, and there is no algebraic rearrangement that isolates r. It must be found numerically, by intelligent trial and error.

This calculator uses the standard two-stage approach. First, Newton–Raphson iteration starts from a 10% guess — the same default guess Excel uses — and repeatedly refines the rate using the slope of the NPV curve, usually converging in a few steps. Second, if Newton–Raphson stalls, steps outside the valid range or fails to reach a zero, a bisection fallback scans the NPV curve across a wide bracket, from −99% to 1,000%, looking for intervals where the NPV changes sign, then bisects each such interval until the crossing is pinned down. Every candidate answer is verified by substituting it back into the NPV formula: a rate is only reported as an IRR if the NPV at that rate is zero to within a tiny tolerance. That back-substitution check is the difference between a solver and a guesser, and this page shows the check in its results panel.

Worked examples: check the calculator by hand

Every figure in this guide can be reproduced in the calculator above, and each was verified independently by substituting the answer back into the NPV formula. Example A — the textbook case. Cash flows of −$1,000, $0, $0 and $1,331 over three periods. Because $1,000 growing at 10% for three periods is $1,000 × 1.103 = $1,331 exactly, the IRR is exactly 10.00%, and the NPV at 10% is −$1,000 + $1,331 ÷ 1.331 = $0.00. Example B — the guide project. Cash flows of −$10,000, then $3,000, $4,000, $5,000 and $6,000 over four years. The IRR is 24.89% (24.8883% before rounding): discounting the four receipts at 24.8883% gives present values that sum to $10,000.00, so the NPV at the IRR is $0.00 — verified by back-substitution, not asserted. At a 10% discount rate the same project has an NPV of +$3,887.71, and at a 12% hurdle rate an NPV of +$3,239.36, so it clears both hurdles comfortably, which is exactly what an IRR well above the hurdle rate promises.

Example C — the multiple-IRR warning case. Cash flows of −$100, +$230 and −$132 change sign twice, and the NPV is zero at two rates: exactly 10% and exactly 20%. Check the first: −100 + 230 ÷ 1.10 − 132 ÷ 1.21 = −100 + 209.09 − 109.09 = $0.00. Check the second: −100 + 230 ÷ 1.20 − 132 ÷ 1.44 = −100 + 191.67 − 91.67 = $0.00. Both are genuine IRRs, and no rule based on IRR alone can tell you whether to accept this project — at a 15% hurdle rate its NPV is actually positive (about +$1.32), even though 15% sits between its two IRRs. Enter these three flows above and the calculator reports the multiple-IRR warning rather than pretending one answer exists.

Reading the NPV profile

The NPV profile is the graph — here, a table — of a project's NPV drawn against the discount rate, and it is the most honest picture of any IRR calculation. For the guide project (−$10,000, then $3,000, $4,000, $5,000 and $6,000) the profile, computed with this page's own formula, is:

Discount rateNPVReading
0%$8,000.00Undiscounted surplus: $18,000 in minus $10,000 out
5%$5,740.66Still strongly value-creating
10%$3,887.71Value created at a 10% hurdle rate
15%$2,351.37Value created at a 15% hurdle rate
20%$1,064.81Approaching the break-even rate
24.89% (the IRR)$0.00The crossing point — NPV is zero by definition
25%−$22.40Just past the IRR, NPV has turned negative
30%−$948.85At a 30% required return the project destroys value

Three lessons sit in that table. First, the IRR is not a separate calculation from NPV — it is simply the point where the NPV profile crosses zero, which is why the two measures agree for a conventional project with a single sign change. Second, the profile shows how much room a project has: this one stays value-creating all the way to a 24.89% required return, a wide safety margin that the single IRR figure alone does not convey. Third, for non-conventional cash flows the profile can cross zero more than once — or weave above and below it — and then the profile, not any single IRR, is the object to study. Whenever a decision matters, read the profile row for your own hurdle rate first and treat the IRR as supporting evidence.

IRR vs NPV vs XIRR

The irr vs npv debate and the IRR vs XIRR distinction are the two comparisons every user of this tool should understand, so here they are side by side:

MeasureWhat it returnsNeeds a discount rate?Timing basisBest useKey weakness
IRRA percentage per periodNo — it produces the rateRegular period numbersQuick screening against a hurdle rateIgnores scale; reinvestment assumption; multiple IRRs possible
NPVAn amount of moneyYes — your hurdle rate or cost of capitalRegular period numbersFinal ranking, especially of mutually exclusive projectsNeeds a defensible discount rate; less intuitive than a percentage
XIRRAn annualised percentageNo — it produces the rateActual calendar dates, actual days ÷ 365Irregular, dated cash flows such as investments with scattered deposits and withdrawalsSame reinvestment and multiple-solution issues as IRR

The practical synthesis used by careful analysts is: screen with IRR, decide with NPV, and switch to XIRR the moment the cash flows carry real dates instead of tidy periods. The FreeSoftis NPV Calculator computes the companion figure directly, the XIRR Calculator handles dated cash flows, and the WACC Calculator helps you estimate the cost of capital that so often serves as the hurdle rate. For a deliberately simple, timing-free snapshot, the ROI Calculator covers the basic return-on-investment ratio.

How to calculate IRR in Excel

In Excel or LibreOffice, type the cash flows down a column in period order — the initial investment first, as a negative number — and enter =IRR(values). The values must contain at least one positive and one negative number, and they must be in order, because Excel reads position as period. An optional second argument is the starting guess; 0.1 (10%) is the default, the same starting point this calculator uses for its Newton–Raphson stage. A #NUM! error means Excel failed to converge: check the signs first, then try a different guess, which can matter when several IRRs exist because the guess steers Excel toward the nearest crossing. Google Sheets offers the same IRR function with the same conventions. To cross-check a spreadsheet, run the two verified cases from this guide: −$1,000, $0, $0, $1,331 must return 10.00%, and the guide project must return 24.89%. If your sheet disagrees, the cash flows are not entered in the order or signs you think they are — that check catches more real-world errors than any other.

Sign changes, multiple IRRs and no IRR

The sign pattern of the cash flows decides what kind of answer exists, and this calculator reports the pattern rather than concealing it. No sign change — all flows negative, or all positive — means no IRR exists at all: there is no rate at which money flowing in only one direction balances. One sign change, the conventional investment pattern, normally yields exactly one IRR, and the familiar decision rule works: accept if the IRR exceeds your hurdle rate, which is the same decision NPV gives. Two or more sign changes — money out, in, then out again, as with a project needing a costly clean-up or a second build phase at the end — can yield multiple IRRs, one per crossing of the NPV curve, as Example C showed with its exact 10% and 20% pair. With multiple IRRs the accept-if-above-the-hurdle rule collapses, because the NPV can be positive between the IRRs and negative outside them, or the reverse. In that territory the only sound procedure is to compute the NPV at your actual hurdle rate and decide on that figure. Some multi-sign-change patterns, finally, cross zero nowhere in any reasonable range; then the honest output is the one this tool gives — no IRR found — with the NPV at your discount rate still shown so the cash flows can speak for themselves.

Common IRR mistakes

Ranking mutually exclusive projects by IRR is the most expensive mistake: a $1,000 project at 60% IRR creates far less value than a $1,000,000 project at 18% IRR, and choosing the percentage over the value destroys real money — NPV exists precisely to prevent this. Forgetting the reinvestment assumption flatters projects with early payouts and very high IRRs, because the maths quietly reinvests those payouts at the same high rate. Mixing period lengths — entering monthly and yearly flows in the same list — produces a rate per nothing-in-particular; all periods in one calculation must be the same length. Entering the initial investment as positive flips the problem and either fails or returns nonsense. Comparing a monthly IRR with a yearly hurdle rate without converting is a unit error, not a judgement call. Ignoring later negative flows, such as decommissioning or restoration costs, both inflates the IRR and hides the multiple-IRR risk those flows create. And trusting any calculator, including this one, without a check case: run the textbook example first — if −$1,000, $0, $0, $1,331 does not return exactly 10.00%, stop and find out why before trusting your real figures.

Limits: what IRR does not tell you

IRR is a screening measure with stated limits, and this page states them in one place so they cannot be missed. It assumes reinvestment at the IRR itself, which overstates the achievable return on projects whose interim receipts cannot be redeployed at that rate; the modified internal rate of return (MIRR) exists to relax exactly this assumption. It is blind to scale, because a percentage carries no information about how much money is at stake. It does not rank mutually exclusive projects reliably — NPV does, because NPV measures value created at your own required rate. It can be multiple or non-existent for non-conventional cash flows. And it says nothing about risk, liquidity or how certain the forecast cash flows are: a speculative project and a near-certain one with the same IRR are not the same proposition. This page provides a calculation tool and an explanation of the method; it is not financial advice, and investment decisions should take account of risk, costs, tax and your own circumstances alongside any single figure.

Sources and References

Every figure in this guide was calculated with this page's own formula and verified by substituting the result back into the net present value equation, so you can reproduce each one exactly by entering the same cash flows above. Note on sources: Investopedia's IRR and NPV articles were the first-choice references but return HTTP 402 to automated checks, so the Corporate Finance Institute, Harvard Business Review and Wall Street Prep articles above are disclosed substitutions covering the same material; all seven sources listed were verified live (HTTP 200) when this page was built.