Irr Calculator
Calculate irr with instant, accurate results and clear step-by-step output.
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
- 1Enter the initial investmentType the up-front cost of the project as a positive number. The calculator treats this as an outflow at period 0 (today).
- 2Enter the periodic cash flowType 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.
- 3Set the number of periodsType how many periods the cash flow repeats (years, quarters, or months — be consistent with the rate you compare to).
- 4Optional: add a terminal valueEnter a salvage or terminal value (e.g., sale of equipment, exit value). It is added to the cash flow of the final period.
- 5Read IRR, NPV, and profitability metricsThe 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's method converged.
- Newton'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
- 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'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'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'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'(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 "multiple IRR problem", 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'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'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.
| Project | Initial ($) | Periodic CF ($) | Years | Terminal ($) | IRR |
|---|---|---|---|---|---|
| Project | Initial ($) | Periodic CF ($) | Years | Terminal ($) | IRR |
| Office building | 1,000,000 | 120,000 | 10 | 1,200,000 | 10.42% |
| Software startup | 500,000 | 150,000 | 5 | 0 | 15.24% |
| Solar farm | 2,000,000 | 280,000 | 20 | 200,000 | 12.78% |
| Bond (simple) | 10,000 | 500 | 10 | 10,000 | 5.00% |
| Rental house | 300,000 | 24,000 | 15 | 400,000 | 9.31% |
Authoritative References
- Investopedia — Internal Rate of Return (IRR)— investopedia.comDefinition and worked examples of IRR, including how it differs from NPV, ROI, and modified IRR (MIRR).
- Wikipedia — Internal rate of return— WikipediaEncyclopedic treatment of IRR math, the multiple-IRR problem, and the relationship between IRR and NPV.
- Corporate Finance Institute — IRR— corporatefinanceinstitute.comTutorial on IRR with the WACC hurdle-rate framework, capital budgeting context, and pitfalls for non-normal cash flows.
- Microsoft Excel — IRR function— microsoft.comOfficial documentation for the spreadsheet IRR function, which uses the same Newton-method root-finding approach as this calculator.
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.