Internal Rate of Return (IRR) Calculator

The internal rate of return is the discount rate at which a project's net present value is exactly zero — the compound return the project earns on the money it ties up, for as long as it ties it up. Enter your outlay, one cash flow per period, and the return you require, and this calculator solves for the IRR numerically, prices the project's NPV at your hurdle rate, and draws the NPV profile so you can see where the crossing happens. It also counts how many times your stream changes sign, because a stream that changes sign more than once can have more than one IRR — and it will tell you when yours does.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Initial investment at period 0The cash you commit before the project starts. Enter it as a positive number; it is treated as an outflow.100000 $
Hurdle rate per periodThe return the project must beat, usually your weighted average cost of capital for a project of this risk.10 %
Cash flow for each period after period 0One net cash flow per period, separated by commas. Put a minus sign in front of any period that is a net outflow.30000, 35000, 40000, 45000, 50000
Amounts are inApplies to the outlay and to every cash flow you type. Results are shown in whole dollars.Dollars
Periods per yearOnly used to compound the per-period IRR into an effective annual rate. Leave at annual if your flows are yearly.Annual (1)

It returns

  • Internal rate of return per period — The rate that makes the present value of every cash flow, including the outlay, sum to zero.
  • Effective annual IRR
  • NPV at your hurdle rate
  • IRR less hurdle rate
  • Money multiple (cash in ÷ cash out)
  • Periods detected

The formula

0=t=0nCFt(1+IRR)t
IRRannual=(1+IRR)m1

In plain text: 0 = Σ CFₜ / (1 + IRR)^t for t = 0 … n, with CF₀ = −C₀

  • IRRThe rate that sets net present value to zero (decimal per period)
  • CFₜNet cash flow in period t, signed — negative for an outflow ($)
  • C₀Initial investment, entered as a positive number and used as −C₀ at t = 0 ($)
  • nNumber of periods after period 0 (periods)
  • tPeriod index, counted from 0 (periods)

There is no closed-form solution above two periods, so the IRR is found numerically. This calculator scans for every sign change of NPV(r) between −99% and +501% per period and then brackets each one by bisection, which is why it reports multiple roots when they exist.

Updated Category Capital Budgeting & Project Appraisal Verified against published test cases Reading time 13 min

What the internal rate of return actually measures

The IRR is the compound rate of return a project earns on the capital it has outstanding, period by period, until that capital comes back. Formally it is the discount rate that drives net present value to zero. Practically it answers the question a credit committee asks: what interest rate is this project effectively paying us?

That framing explains both why the IRR is the most quoted number in capital budgeting and why it is so often misused. It is a rate, so it is scale-free — a 40% IRR on a $50,000 project and a 12% IRR on a $50 million project are both real, but only one of them changes the company. It also comes from a polynomial, so it is guaranteed neither to exist nor to be unique.

The decision rule: accept when the IRR exceeds the return you require on capital of that risk, reject when it does not. That required return is normally your weighted average cost of capital, raised for a project riskier than the firm's existing assets. The hurdle-rate field sets exactly that comparison, and the calculator reports the spread in percentage points beside the net present value at the same rate.

The equation, and why it has no closed-form solution

Write the project as a signed cash-flow stream: CF₀ is negative because you pay out at the start, and CF₁ through CFₙ are whatever the project delivers. Discount each at an unknown rate and require the total to be zero. That is the whole formula.

Substitute x = 1/(1 + IRR) and it becomes a polynomial of degree n: CF₀ + CF₁x + CF₂x2 + … + CFₙxn = 0. Two consequences follow, and both matter in practice.

First, there is no algebraic formula for the root once n exceeds four. Every IRR you have ever seen was found by iteration — Excel's IRR takes a guess and runs Newton steps; this calculator scans the rate axis for sign changes and bisects each bracket. Bisection is slower but it cannot diverge, and it finds roots a single Newton start would miss.

Second, Descartes' rule of signs caps the number of positive roots at the number of sign changes in the stream. A conventional project — one outflow then nothing but inflows — changes sign once and has exactly one IRR. A project with a mid-life reinvestment or an end-of-life decommissioning cost changes sign twice or more and can carry two or three mathematically valid IRRs. This calculator counts your sign changes and lists every root it finds.

Worked example: $100,000 for five annual payments of $30,000

You spend $100,000 today on equipment that will generate $30,000 of net cash in each of the next five years. Because the inflows are level, you can solve this by hand with an annuity-factor table.

  1. Turn the problem into an annuity factor. You need the rate at which five payments of $30,000 are worth $100,000 today, so the factor you are looking for is 100,000 ÷ 30,000 = 3.333333.
  2. Bracket it in the table. The five-period factor at 15% is 3.352155 and at 16% it is 3.274292. Your 3.333333 sits between them, so the IRR is between 15% and 16% — nearer the 15% end.
  3. Interpolate. (3.3521551 − 3.3333333) ÷ (3.3521551 − 3.2742937) = 0.0188218 ÷ 0.0778614 = 0.24173, so linear interpolation gives 15% + 0.2417% = 15.2417%.
  4. Check the exact root. Solved to convergence, the answer is 15.238237%. Linear interpolation overshoots by 0.0035 percentage points because the annuity factor is a convex function of the rate, not a straight line. Over a one-point bracket that error is negligible; over a ten-point bracket it is not.

Now verify it the way the calculator's table does. At 15.238237% the discount factors are 0.8677675, 0.7530205, 0.6534467, 0.5670398 and 0.4920588. Multiply each by $30,000: $26,033.03 + $22,590.61 + $19,603.40 + $17,011.20 + $14,761.76 = $100,000.00 — the outlay back to the cent, which is exactly what “NPV equals zero” means.

Finally, apply the decision rule. At a 10% hurdle the project's NPV is $30,000 × 3.790787 − $100,000 = +$13,724, and the IRR beats the hurdle by 5.24 percentage points. Both rules say accept, which is what you expect from a conventional single-sign-change stream.

How to read the number you get

Start with the sign of the spread, not the size of the IRR. An IRR of 9% against an 8% cost of capital creates value; an IRR of 25% against a 30% required return on a venture-stage project destroys it. The level of an IRR tells you nothing until you pair it with the risk-matched return you could earn elsewhere.

Then check the three things an IRR quietly hides.

Scale. IRR is a percentage, so it cannot tell you how much money you make. Ranking mutually exclusive projects by IRR routinely picks the smaller one. Rank by NPV; use IRR only to confirm each candidate clears the hurdle.

Timing. A high rate applies only while the capital is deployed. A 40% IRR earned over eight months leaves you holding cash for the other sixteen, and the return you actually get on that cash is the market rate, not 40%.

The reinvestment assumption. Solving the IRR equation implicitly values every interim cash flow as if it compounds at the IRR itself until the project ends. The modified IRR replaces that with a rate you specify, and the gap between the two is the size of the assumption you were making.

The money multiple this calculator reports — total cash in divided by total cash out — is a useful cross-check. Two streams both returning 1.5× your money, one over five years and one over two, have identical multiples and very different IRRs, which is why private-equity investors read both.

Present value of $1 per period — the annuity factors behind a hand-solved IRR

To find the IRR of a level cash-flow stream, divide the outlay by the periodic cash flow and locate the resulting factor in the row for your number of periods. Example: $100,000 ÷ $30,000 = 3.3333 in the 5-period row sits just below the 15% factor of 3.3522, so the IRR is a little above 15%. Narrow the bracket with a finer table or let the solver above finish the job.
Periods5%8%10%12%15%20%25%
32.72322.57712.48692.40182.28322.10651.9520
54.32953.99273.79083.60483.35222.99062.6893
75.78645.20644.86844.56384.16043.60463.1611
107.72176.71016.14465.65025.01884.19253.5705

Each factor is (1 − (1 + r)⁻ⁿ) ÷ r evaluated at the rate and period count shown. The method only works when the cash flows are level; for uneven streams there is no shortcut and you need the numerical solver.

When your stream changes sign more than once

A project with an interim outflow — a mid-life overhaul, a working-capital rebuild, a mine reclamation cost in the final year — changes sign two or more times. Descartes' rule then permits as many positive IRRs as there are sign changes, and streams with two real IRRs are easy to construct: −$1,000 at t = 0, +$2,600 at t = 1, −$1,680 at t = 2 has NPV zero at both 20% and 40%.

Verify that yourself: at 20%, −1,000 + 2,600/1.2 − 1,680/1.44 = −1,000 + 2,166.67 − 1,166.67 = 0. At 40%, −1,000 + 2,600/1.4 − 1,680/1.96 = −1,000 + 1,857.14 − 857.14 = 0. Both roots are correct; neither is the return. Enter $1,000 as the initial investment and 2600, -1680 as the cash flow list and this calculator reports both roots, withholds the accept/reject verdict, and points you at the NPV instead.

When that happens, the IRR rule has no meaning and you fall back on net present value, which is single-valued at every discount rate, or on the modified IRR, which is single-valued by construction.

Mistakes that make an IRR wrong or misleading

  • Mixing period lengths. Monthly flows give a monthly IRR. Compound it — a 2% monthly IRR is 26.8% a year, not 24%.
  • Ranking mutually exclusive projects by IRR. The higher rate frequently belongs to the smaller project. Rank by NPV and let IRR act only as a screen.
  • Leaving out the terminal cash flow. Salvage proceeds, working-capital release and decommissioning costs belong in the final period, and each moves the IRR materially.
  • Mixing nominal cash flows with a real hurdle rate, or the reverse. Pick one convention for both and stay in it.
  • Reading a lending-shaped stream backwards. If you receive cash first and pay later, a high IRR is bad news — it is the rate you are paying. Check the NPV, which never inverts.
  • Treating an IRR as achieved rather than forecast. The number inherits every optimism in your projections, and it is more sensitive to the late years than payback is.

What this calculator assumes

Cash flows are assumed to arrive at the end of each equal-length period, with the outlay falling entirely at period 0. Every flow is nominal, discounted at a single constant rate, and taken as certain — the IRR contains no risk adjustment at all, which is why the risk has to live in the hurdle rate you compare it against.

The solver searches from −99% to +501% per period, so a stream whose only root lies outside that window reports no IRR. Rates at or below −100% are excluded because (1 + r) turns non-positive and the discount factors stop existing.

Taxes, depreciation and financing are not modelled. Build them into the cash flows first: an after-tax project stream is after-tax operating cash flow plus the depreciation tax shield, with interest excluded because the cost of debt already sits inside the discount rate.

Where IRR sits among the other decision rules

IRR is one of four rules a capital budgeting pack shows side by side, and each answers a different question. Net present value answers “how much value in today's dollars?” — the theoretically correct rule, additive across projects and single-valued at every discount rate, so make the NPV calculator your primary test. IRR answers “at what rate?”, which is why lenders, sponsors and boards who do not share your cost of capital keep asking for it. Payback answers “how long until the money is back?”; it ignores everything after the recovery date but captures a real liquidity constraint, and the payback period calculator and its discounted version cover both variants. Profitability index — present value of inflows divided by the outlay — answers “how much value per dollar committed?” and is the right rule when capital is rationed rather than merely priced.

In a well-behaved conventional project all four agree. When they disagree, the disagreement is information: the projects differ in scale, in timing, or in the shape of their sign pattern. Follow NPV, and use the others to understand why NPV lands where it does.

Key terms

Hurdle rate
The minimum return a project must earn to be funded. Normally the weighted average cost of capital, raised for projects riskier than the firm's existing business.
NPV profile
A plot of net present value against discount rate. Its horizontal-axis crossings are the IRRs, and its steepness shows how sensitive the project is to the cost of capital.
Conventional cash flows
One initial outflow followed by inflows only — a single sign change, and therefore exactly one IRR.
Money multiple
Total cash received divided by total cash invested, undiscounted. Often called MOIC. It ignores timing entirely, which is why it is quoted next to an IRR rather than instead of one.
Reinvestment assumption
The implicit assumption inside the IRR equation that interim cash flows compound at the IRR until the project ends.

Frequently asked questions

What is a good IRR for a project?

There is no universal figure — a good IRR is any IRR comfortably above your risk-matched cost of capital. For a stable corporate with a weighted average cost of capital near 9%, an industrial project at 14% is attractive; for an early-stage venture whose required return is far higher, 14% is a rejection. What matters is the spread this calculator reports, not the level. Leave a margin for forecast error: a project clearing the hurdle by half a point is a coin flip once your cash-flow estimates move.

Why does my IRR differ from Excel's?

Usually because the two calculations are not seeing the same stream. Excel's IRR takes one range that includes the period-0 outlay as a negative number, while this calculator takes the outlay in its own field and the later flows in the list. Excel also returns whichever root its Newton iteration reaches from your guess, so on a multiple-root stream it can report a different valid root than the lowest one shown here. Check the sign convention first, then the period count.

Can a project have two internal rates of return?

Yes, whenever the cash-flow stream changes sign more than once. The stream −$1,000, +$2,600, −$1,680 has NPV of exactly zero at both 20% and 40%. Descartes' rule of signs allows as many positive roots as there are sign changes, so a project with a mid-life reinvestment or an end-of-life cleanup cost is a genuine candidate. This calculator counts your sign changes and lists every root it finds; when there is more than one, decide on net present value instead.

How do I turn a monthly IRR into an annual one?

Compound it: annual rate = (1 + monthly IRR)12 − 1. A 2% monthly IRR is 1.0212 − 1 = 26.82% a year, not 24%. Set Periods per year to 12 and this calculator does the compounding for you and shows both figures. The same rule applies to quarterly flows with an exponent of 4 — a 10% quarterly IRR is an effective annual 46.41%.

Should I use IRR or NPV to choose between two projects?

NPV, every time, when the projects are mutually exclusive. IRR is a rate and therefore blind to scale, so it will often prefer a small project with a spectacular percentage return over a large one that adds far more value. The two rules also rank differently when cash-flow timing differs sharply, because they implicitly assume different reinvestment rates. Use IRR as a screen — does each candidate clear the hurdle? — and NPV to pick the winner.

Does the IRR assume I can reinvest the cash flows at the IRR?

The arithmetic behaves as if you can. Setting the discounted sum to zero is mathematically identical to compounding every interim flow forward at the IRR and requiring the terminal amount to equal the outlay grown at the same rate. That is fine when the IRR is close to your cost of capital and misleading when it is far above it. The modified IRR fixes it by letting you specify a separate reinvestment rate, and it is the number to quote when your project's IRR is high.

What does it mean if the calculator says no IRR exists?

It means the cash flows never change sign, so the net present value curve never crosses zero. A stream of nothing but inflows has a positive NPV at every discount rate; a stream of nothing but outflows has a negative NPV at every rate. Either way there is no rate to solve for. Check that you entered the outlay in the initial-investment field and that any interim outflows carry a minus sign.

Does the hurdle rate change the IRR?

No. The IRR is a property of the cash flows alone. Your hurdle rate only sets the two supporting figures: the net present value at that rate and the spread in percentage points. Because the IRR is where the NPV profile crosses zero, a hurdle below the IRR always produces a positive NPV on a conventional single-sign-change stream — and on a non-conventional stream the two can point opposite ways, which the calculator flags.

Should the cash flows be before or after tax?

After tax, and consistently so. Use after-tax operating cash flow, add back the depreciation tax shield, include changes in working capital, and exclude interest and principal — financing costs belong in the discount rate, not the cash flows, or you will count them twice. Then compare the resulting IRR against an after-tax weighted average cost of capital so both sides of the test are on the same footing.

References

  • Principles of Corporate Finance, 13th ed., ch. 5 — Net Present Value and Other Investment Criteria — McGraw-Hill (Brealey, Myers & Allen)
  • Corporate Finance, 5th ed., ch. 7 — Investment Decision Rules — Pearson (Berk & DeMarzo)
  • CFA Program Curriculum, Corporate Issuers — Capital Budgeting — CFA Institute
  • IRR function documentationMicrosoft Excel