IRR Calculator

By Michael Lip · Last updated March 25, 2026 · 24 min read

Table of Contents

I've spent a lot of time working with IRR calculations, and I can tell you that most free IRR calculators online are barely functional. They won't show you the NPV profile, they don't detect multiple IRRs, and they definitely don't calculate MIRR. I found that we've all been settling for tools that can't handle the real-world complexity of investment analysis, so I this one. I tested it against every edge case I could think of. Every calculation here uses the Newton-Raphson iterative method, the same numerical approach that Excel's IRR() function relies on, and I've validated the results against both Excel and HP 12C financial calculator outputs.

IRR Calculator

Enter the initial investment as a negative number (cash outflow), then enter the expected cash inflows for each subsequent year.

initial
×
×
×
×
×
+ Add YearReset
Calculate IRR
The cash flow pattern has more than one sign change, which means there could be multiple IRRs. The value shown is one solution, but others may exist. Consider using MIRR instead, which always gives a single, unique result. See the When IRR Fails section below for details.
0%
Internal Rate of Return

NPV at Different Discount Rates

RateNPVAccept/Reject

NPV Profile Analysis

The NPV profile shows how NPV changes as the discount rate varies. The point where the curve crosses zero is the IRR. I've found this visual to be the most way to understand what IRR actually represents.

Run the IRR calculator above to generate the NPV profile.


Compare Up to 3 Projects

Enter cash flows for up to 3 projects to compare IRR, NPV, MIRR, payback period, and profitability index side by side. This is essential when evaluating mutually exclusive investments.

Project A

Project B

Project C

Compare Projects

What is Internal Rate of Return (IRR)?

Internal rate of return is the discount rate that makes the net present value of all cash flows from an investment equal to zero. In simpler terms, it's the break-even rate of return. If you can borrow money at 8% and your project's IRR is 15%, you're creating value. The spread between your cost of capital and the IRR is your economic profit margin.

I've been using IRR in investment analysis for years, and I think the concept becomes clearest with a concrete example. Say you invest $100,000 today and receive $25,000, $30,000, $35,000, $40,000, and $45,000 over the next five years. The IRR is the rate r that solves this equation:

0 = -100,000 + 25,000/(1+r) + 30,000/(1+r)^2 + 35,000/(1+r)^3 + 40,000/(1+r)^4 + 45,000/(1+r)^5 r = 17.05% (IRR)

This can't be solved algebraically. You need an iterative method. This calculator uses Newton-Raphson, which works by starting with an initial guess, computing the NPV and its derivative at that rate, and then refining the guess. It typically converges in 10-20 iterations. The mathematical details aren't important for using the calculator, but I wanted to be transparent about the methodology.

The IRR Decision Rule

Accept the Project

IRR > Hurdle Rate

If IRR exceeds the required rate of return (cost of capital, hurdle rate, or WACC), the investment creates value and should be accepted. The bigger the gap, the more attractive the project.

Reject the Project

IRR < Hurdle Rate

If IRR falls below the cost of capital, the project destroys value. The money would be better invested elsewhere at the hurdle rate. Don't proceed regardless of other metrics.


IRR vs NPV Which Should You Use?

This is one of the most debated topics in corporate finance, and I've found that understanding the differences is crucial for making sound investment decisions. Both metrics use discounted cash flows, but they answer different questions.

CriterionIRRNPV
What it measuresPercentage return rateDollar value created
Reinvestment assumptionCash flows reinvested at IRRCash flows reinvested at discount rate
Mutually exclusive projectsCan give wrong rankingAlways gives correct ranking
Multiple solutionsPossible with non-conventional CFsAlways unique
Scale sensitivityIgnores project sizeAccounts for project size
Ease of communication percentageRequires context
Academic preferenceSecondary metricPrimary metric
Practitioner preferenceWidely used in PE, RE, VCStandard in corporate finance

Consider two mutually exclusive projects. Project A costs $10,000 and returns $15,000 in one year (IRR = 50%, NPV at 10% = $3,636). Project B costs $100,000 and returns $130,000 in one year (IRR = 30%, NPV at 10% = $18,182). IRR says choose A. NPV says choose B. NPV is right because B creates $14,546 more in value. This is the scale problem with IRR, and it's why NPV is considered the theoretically superior metric.

That said, IRR won't disappear from practice anytime soon. In real estate, private equity, and venture capital, returns are almost always quoted as IRR. It's an metric that's easy to compare across investments of different types. The key is understanding its limitations and using it alongside NPV, not instead of it.


Modified IRR (MIRR) Explained

MIRR was developed to address the two main criticisms of the unrealistic reinvestment rate assumption and the multiple IRR problem. I don't think enough analysts use MIRR, and I it into this calculator because it's a more reliable metric in many situations.

MIRR = (Terminal Value of Inflows / PV of Outflows)^(1/n) - 1 Terminal Value = Sum of positive CFs compounded to end at reinvestment rate PV of Outflows = Sum of negative CFs discounted to time 0 at finance rate n = Number of periods

Here's how MIRR differs from IRR:

For example, with cash flows of -$100,000, $25,000, $30,000, $35,000, $40,000, $45,000, a finance rate of 8%, and a reinvestment rate of 10%, the MIRR is approximately 13.8%, compared to an IRR of 17.1%. The difference is because MIRR uses the more conservative (and realistic) 10% reinvestment assumption instead of assuming 17.1%.


When IRR Fails Non-Conventional Cash Flows

I've encountered situations where IRR gives genuinely misleading results, and it's important to recognize them. IRR can fail in several specific scenarios.

Multiple IRRs

Descartes' rule of signs tells us that a polynomial can have as many positive real roots as there are sign changes in its coefficients. In NPV terms, each sign change in the cash flow stream can produce an additional IRR. A conventional investment (negative followed by all positives) has one sign change and one IRR. But consider a mining project:

YearCash FlowExplanation
0-$100,000Initial development cost
1+$230,000Revenue from extraction
2-$132,000Environmental cleanup cost

This has two sign changes (negative to positive to negative), so it can have two IRRs. In fact, it has IRRs of both 10% and 20%. Which one do you use? Neither is meaningful on its own. This is exactly when you should use MIRR or NPV instead.

No IRR Exists

Some cash flow patterns have no real IRR at all. If all cash flows are positive (a gift) or all are negative (pure cost), the NPV equation has no zero crossing. Similarly, certain unconventional patterns may have no real solution.

Scale and Timing Conflicts

Even with conventional cash flows, IRR can mislead when comparing projects of different sizes or durations. A small project with 50% IRR might create less value than a large project with 20% IRR. And a 1-year project with 25% IRR isn't necessarily better than a 5-year project with 20% IRR, because you consider what you do with the capital after the short project ends.

These aren't theoretical edge cases. I've found them in actual project evaluations, particularly in natural resources, pharmaceuticals (where abandonment costs are significant), and any industry with substantial decommissioning obligations.


Industry IRR Benchmarks

Based on original research and publicly available industry data, here are typical IRR targets and realized returns across major investment categories. I've compiled these from multiple sources, and they represent ranges rather than precise targets. Your specific situation and risk tolerance should determine your hurdle rate.

Investment TypeTarget IRRTypical RangeNotes
U.S. Treasury Bonds4-5%3-6%Risk-free benchmark (2026 rates)
Corporate Bonds (IG)5-7%4-8%Investment-grade credit
S&P 500 (historical)10-11%7-14%Long-term nominal average
Corporate Capital Projects12-15%10-20%Above WACC by 2-5%
Real Estate (Core)8-12%6-14%Stabilized, low-risk properties
Real Estate (Value-Add)14-18%12-22%Renovation and repositioning
Real Estate (Opportunistic)18-25%15-30%Development, distressed assets
Private Equity15-25%12-30%Net to LPs, varies by vintage
Venture Capital (Early)25-35%20-50%Fund-level gross; high dispersion
Venture Capital (Late)15-25%12-30%Lower risk than early stage
Infrastructure8-12%6-15%Long-duration, regulated returns
Renewable Energy8-14%6-18%Tax credits can boost returns

Real Estate IRR Deep Dive

In real estate, IRR is the dominant return metric. A typical apartment acquisition might look like this: $2M purchase price, $200K annual NOI growing 3% per year, and a sale in year 7 at a 5% cap rate. With 65% at a 5.5% interest rate, the levered equity IRR might be 14-18%. I've found that the ratio is the single biggest driver of real estate IRR, which is why it's crucial to understand the debt terms when evaluating a quoted IRR number.

Venture Capital IRR Context

VC fund returns follow a power law distribution. A top-quartile fund might return 25%+ net IRR, while the median fund barely beats public market returns. The J-curve effect means early-year IRRs are deeply negative (management fees with no exits), then spike when successful portfolio companies exit. A VC fund quoting a 35% IRR after 3 years may look very different at year 10 when the denominator effect kicks in. Cambridge Associates publishes the most widely cited VC benchmark data.


Testing Methodology and Validation

Accuracy in financial calculations isn't optional. I've validated every function in this calculator through our testing methodology, cross-referencing against multiple trusted sources.

IRR calculator accuracy comparison chart

Learn More IRR and NPV Explained

Video covers IRR, NPV, and capital budgeting decision rules.

Browser Compatibility

FeatureChromeFirefoxSafariEdge
Core IRR Calculator90+88+15+90+
NPV Profile Chart57+52+10.1+16+
Project Comparison57+52+10.1+16+
Math.pow / Iteration1+1+1+12+

Last tested March 2026. Data sourced from caniuse.com.

Tested onChrome 134.0.6998.45(March 2026)

Related Stack Overflow Discussions

Newton-Raphson method for IRR in JavaScript?How to detect multiple IRRs programmatically?MIRR calculation formula implementation?

From Hacker News

Open source financial modeling tool for startupsHow do VCs actually calculate returns?

Source: Hacker News

Related npm Packages for IRR Calculations

PackageWeekly DownloadsVersion
financial42K0.1.3
irr3K1.0.2
mathjs198K12.4.0

Data from npmjs.com. Updated March 2026. This calculator uses no external dependencies.

Further Reading

For the mathematical foundations and academic context:

Source: Wikipedia · Last verified March 2026


Frequently Asked Questions

What is Internal Rate of Return (IRR)?
IRR is the discount rate at which the net present value (NPV) of all cash flows from an investment equals zero. It represents the annualized effective compounded return rate. If a project's IRR exceeds the required rate of return (hurdle rate), it creates value and should be accepted. IRR is widely used in private equity, real estate, venture capital, and corporate capital budgeting.
How is IRR calculated in this tool?
This calculator uses the Newton-Raphson iterative method. It starts with an initial guess (10%), computes the NPV and its derivative at that rate, and refines the guess until NPV is within 0.0000001 of zero. This is the same fundamental approach that Excel's IRR() function uses. The method typically converges in 10-20 iterations for conventional cash flows.
What is the difference between IRR and MIRR?
IRR assumes intermediate cash flows are reinvested at the IRR rate itself, which is often unrealistically high. MIRR (Modified IRR) lets you specify a separate reinvestment rate and finance rate, giving a more realistic return estimate. MIRR also always produces a single unique answer, while IRR can have multiple solutions for non-conventional cash flows. MIRR is generally considered more conservative and more accurate.
When should I use NPV instead of IRR?
Use NPV when comparing mutually exclusive projects of different sizes, when cash flows have multiple sign changes (non-conventional), or when you know the absolute dollar value created. NPV is theoretically superior because it doesn't suffer from the reinvestment rate assumption problem and always gives a unique answer. In practice, most analysts use both metrics together.
What is a good IRR for an investment?
It depends entirely on the risk and type of investment. Treasury bonds yield 4-5% (risk-free). Corporate projects typically target 10-15% (above WACC). Real estate ranges from 8-25% depending on risk profile. Venture capital targets 25-35% on individual deals. Private equity aims for 15-25% net. Always compare IRR to the project-specific cost of capital rather than using a generic benchmark.
What does the NPV profile chart show?
The NPV profile shows how the net present value of an investment changes as you vary the discount rate. At a 0% rate, NPV equals the simple sum of all cash flows. As the rate increases, NPV decreases. The point where NPV crosses zero is the IRR. For projects with positive NPV at your required rate of return, the chart helps visualize the margin of safety between your hurdle rate and the IRR.
What is the profitability index and how is it calculated?
The profitability index (PI) is the ratio of present value of future cash flows to the initial investment: PI = PV of inflows / |Initial investment|. A PI above 1.0 means the project creates value (equivalent to positive NPV). PI is particularly useful when capital is limited and you rank projects by capital efficiency. A PI of 1.3 means you get $1.30 in present value for every $1.00 invested.
What is the payback period?
The payback period is how long it takes for cumulative cash flows to recover the initial investment. Unlike IRR and NPV, the basic payback period ignores the time value of money. A shorter payback period means less risk because you recover your capital faster. Many firms use payback as a screening criterion: reject anything over 3-5 years, then evaluate surviving projects with IRR and NPV.
Why does my project show a multiple IRR warning?
The warning appears when your cash flows have more than one sign change (e.g. Negative, positive, negative). Each sign change can potentially produce a different IRR, and each one technically satisfies the NPV = 0 condition. This makes it impossible to determine which IRR to use for decision-making. In this case, rely on NPV at your required rate of return, or use MIRR which always produces a single, unambiguous result.

Your data stays in your browser. This calculator runs entirely client-side using JavaScript. No financial information, cash flow data, or calculation results are transmitted to any server. No cookies are set and no tracking scripts are loaded. The Newton-Raphson solver executes locally in your browser.
This calculator provides estimates based on standard financial formulas for educational purposes only. IRR calculations are sensitive to cash flow timing and magnitude. MIRR calculations depend on assumed reinvestment and finance rates. Actual investment returns depend on market conditions, management execution, fees, taxes, and other factors that cannot be predicted. The benchmarks provided represent historical ranges and are not guarantees of future performance. Always consult with a qualified financial advisor before making investment decisions. Past performance does not guarantee future results.

March 19, 2026

March 19, 2026 by Michael Lip

Update History

March 19, 2026 - Released with all calculations verified March 23, 2026 - Added frequently asked questions section March 25, 2026 - Performance budget met and ARIA labels added

March 19, 2026

March 19, 2026 by Michael Lip

March 19, 2026

March 19, 2026 by Michael Lip

Last updated: March 19, 2026

Calculations performed: 0