Skip to content

Irr Calculator

Calculate irr with instant, accurate results and clear step-by-step output.

By CalcGenius Editorial TeamLast reviewed August 28, 20253 min read
IRR Calculator
📊
Enter your values and click Calculate

About

The Internal Rate of Return (IRR) is the discount rate that drives the net present value (NPV) of a series of cash flows to zero. It is the annualized return the investment effectively earns, accounting for both the size and timing of each cash flow. A project is generally considered attractive when its IRR exceeds the investor's hurdle rate (cost of capital or required return).

This calculator takes an initial investment (treated as an outflow at period 0), a periodic cash flow (received at the end of each subsequent period), the number of periods, and an optional terminal value added to the last period. It solves for IRR using Newton's method, an iterative root-finding algorithm that refines a guess for the rate until the NPV is within 1e-9 of zero.

Newton's method is needed because the NPV equation Σ CF_t / (1+r)^t = 0 is a polynomial of degree N when there are N+1 cash flows, and polynomials of degree 5 or higher have no closed-form root formula. The method starts from a 10% guess and updates via r_new = r − NPV(r) / NPV'(r), where NPV' is the dollar-weighted average time of the cash flows. Convergence is usually achieved in fewer than 10 iterations.

The calculator also reports NPV at a user-supplied hurdle rate, total cash inflow, total profit, and simple ROI for context. NPV at the hurdle rate is the value-creation measure — if it is positive, the project exceeds the required return and should be accepted (under the NPV rule). ROI is shown for comparison but ignores time value, so it should not replace IRR for multi-year projects.

IRR has known limitations. For non-normal cash flows (more than one sign change), the equation can have multiple roots — this is the "multiple IRR problem". IRR also assumes interim cash flows are reinvested at the IRR itself, which may be unrealistic. In those cases, use Modified IRR (MIRR) with explicit reinvestment and finance rates, or fall back to NPV-based ranking for mutually exclusive projects of different sizes.

How to Use

  1. 1
    Enter the initial investment
    Type the up-front cost of the project as a positive number. The calculator treats this as an outflow at period 0 (today).
  2. 2
    Enter the periodic cash flow
    Type the cash inflow received at the end of each period. The same amount repeats for every period — for irregular cash flows, use the worked example to compute by hand or use the NPV at the user-supplied discount rate.
  3. 3
    Set the number of periods
    Type how many periods the cash flow repeats (years, quarters, or months — be consistent with the rate you compare to).
  4. 4
    Optional: add a terminal value
    Enter a salvage or terminal value (e.g., sale of equipment, exit value). It is added to the cash flow of the final period.
  5. 5
    Read IRR, NPV, and profitability metrics
    The calculator solves for IRR using Newton's method starting at 10%, then computes NPV at your hurdle rate, total profit, and ROI for context.

Formula

NPV equation (IRR is the rate r that solves this for NPV = 0):

NPV(r) = Σ_(t=0..N) CF_t / (1+r)^t = 0

Newton's method iteration:

r_(k+1) = r_k − NPV(r_k) / NPV'(r_k)
NPV'(r) = −Σ_(t=1..N) t · CF_t / (1+r)^(t+1)

Decision rule:

IRR > hurdle rate → accept
IRR < hurdle rate → reject

Worked Example

Office building: invest $1,000,000, receive $120,000/year for 10 years, sell for $1,200,000 in year 10:

  • CF₀ = −1,000,000; CF_t = 120,000 for t = 1..9; CF₁₀ = 1,320,000
  • Newton's method converges to r ≈ 10.42%
  • NPV at 8% hurdle rate ≈ +$158,000 (positive — accept)
  • Total inflow = $2,400,000; profit = $1,400,000; ROI = 140%

Bond: invest $10,000, receive $500/year for 10 years, get $10,000 back at year 10:

  • CF₀ = −10,000; CF_t = 500 for t = 1..9; CF₁₀ = 10,500
  • Newton's method converges to r = 5.00% (the bond's yield to maturity)
  • This is a textbook case where IRR equals the coupon rate when the bond trades at par.

Tips

  • Compare IRR to your hurdle rate (cost of capital), not to zero — a project with 8% IRR is unattractive if you could earn 10% elsewhere at the same risk.
  • For non-normal cash flows (more than one sign change in the stream), use MIRR or NPV instead of IRR to avoid the multiple-IRR ambiguity.
  • IRR assumes reinvestment of interim cash flows at the same IRR; for more realistic reinvestment assumptions, use MIRR with a finance rate and a reinvestment rate.
  • When two projects have the same IRR but different scales, prefer the higher-NPV project — NPV measures absolute wealth creation, IRR only measures efficiency.
  • Test the result by computing NPV at the reported IRR — it should be zero (or within rounding tolerance) to confirm Newton&apos;s method converged.
  • Newton&apos;s method can fail to converge if the initial guess is poor or cash flows are highly irregular — if the result looks implausible, try the bisection method or switch to NPV-based analysis.

Common Mistakes

Common pitfalls
  • Comparing IRR across projects of different sizes — a 50% IRR on $100 is less wealth than 10% on $1,000,000.
  • Using IRR when cash flows change sign more than once — there can be multiple IRRs or none.
  • Forgetting that IRR assumes reinvestment at the IRR itself, which may not be achievable.
  • Confusing IRR with ROI — IRR accounts for timing; ROI does not.

Frequently Asked Questions

What is the Internal Rate of Return (IRR)?
The IRR is the discount rate that makes the net present value (NPV) of a series of cash flows equal to zero. In other words, it is the annualized return that the investment effectively earns. A project is generally considered attractive when its IRR exceeds the investor&apos;s required rate of return (hurdle rate or cost of capital).
How is IRR different from ROI?
ROI (return on investment) is a simple ratio of total profit to investment, ignoring the time value of money. IRR accounts for the timing of each cash flow by discounting future cash flows back to the present. A $100 return after one year and the same $100 return after ten years have very different IRRs even though they produce the same ROI.
Why does IRR use Newton&apos;s method?
There is no closed-form solution for the IRR when cash flows span more than two periods — the NPV equation is a polynomial of degree N. Newton&apos;s method is a numerical root-finding algorithm that iteratively refines a guess for the rate: rate_{k+1} = rate_k − NPV(rate_k) / NPV&apos;(rate_k). It usually converges in a handful of iterations to machine precision.
Can IRR be negative or undefined?
Yes. If total cash inflows are less than the initial investment, the project destroys value and the IRR is negative. If the cash flows change sign more than once (e.g., outflow, inflow, outflow), there can be multiple IRRs or none — this is the &quot;multiple IRR problem&quot;, and analysts use modified IRR (MIRR) or NPV instead.
What is a good IRR for an investment?
It depends on the asset class and risk. For real estate, 8–12% is typical. Venture capital targets 20–30%+. Stocks have historically returned 7–10% annually. Compare IRR to your cost of capital (the rate you could earn elsewhere with similar risk) — if IRR exceeds the hurdle rate, the project adds value.
How does this calculator handle the timing of cash flows?
The initial investment is treated as an outflow at period 0 (today). Each periodic cash flow is treated as occurring at the end of periods 1, 2, …, N. If you enter a terminal value, it is added to the last period&apos;s cash flow. This end-of-period convention is standard in finance textbooks and spreadsheet IRR functions.

Time value of money

A dollar today is worth more than a dollar tomorrow because of the opportunity cost of capital. NPV discounts each future cash flow back to today using the formula PV = CF / (1+r)^t, where r is the discount rate and t is the period. Sum these present values for all cash flows; the IRR is the rate r that makes the sum equal to zero.

Newton&apos;s method for IRR

Newton's method is an iterative root-finding algorithm. To solve NPV(r) = 0, start with a guess (10% here) and update: r_new = r − NPV(r) / NPV'(r). The derivative NPV'(r) = −Σ t·CF_t / (1+r)^(t+1) is the dollar-weighted average time of the cash flows. The method usually converges in fewer than 10 iterations when a sensible starting guess is used.

IRR vs NPV

NPV and IRR give the same accept/reject decision for normal cash flows (one sign change). NPV is generally preferred for ranking mutually exclusive projects because it is denominated in dollars and is unambiguous. IRR is a percentage, which makes it intuitive but also problematic when comparing projects of different sizes or with non-normal cash flows (multiple IRRs).

Hurdle rate and cost of capital

The hurdle rate (or cost of capital) is the minimum return an investor requires. If IRR > hurdle rate, the project is value-creating. The hurdle rate typically reflects the weighted average cost of capital (WACC) for a corporation, or the investor's required rate of return based on alternative investments with similar risk. A higher-risk project should have a higher hurdle rate to compensate for the additional risk.

Sample IRRs across common investment types; cash flows are end-of-period.
ProjectInitial ($)Periodic CF ($)YearsTerminal ($)IRR
ProjectInitial ($)Periodic CF ($)YearsTerminal ($)IRR
Office building1,000,000120,000101,200,00010.42%
Software startup500,000150,0005015.24%
Solar farm2,000,000280,00020200,00012.78%
Bond (simple)10,0005001010,0005.00%
Rental house300,00024,00015400,0009.31%
Why NPV at the hurdle rate matters
The IRR is a single number, but the NPV at your hurdle rate tells you how much value the project creates in today's dollars. A $1 million project with an IRR of 12% (versus a 10% hurdle) creates about $100,000 of NPV — a more meaningful measure than the percentage alone. Always look at both.
Verify with a sanity check
After computing the IRR, plug it back into the NPV formula by hand: sum each cash flow discounted at the IRR. The total should be within $0.01 of zero. If it is not, Newton's method did not converge — try a different starting guess or fall back to bisection for irregular cash flows.
Multiple sign changes break IRR
If the cash flow stream changes sign more than once (e.g., outflow → inflow → outflow from a remediation cost), the NPV polynomial can have multiple roots. In that case, the IRR is ambiguous and you should use Modified IRR (MIRR) or switch to NPV-based analysis. MIRR handles the issue by using an explicit finance rate for outflows and a reinvestment rate for inflows.

Authoritative References

Try our other free calculators

CalcGenius has 1,200+ free, ad-free, browser-based calculators for finance, health, math, science, and everyday life. No sign-up required.

Irr Calculator — Compounded Growth & Yield Forecast