IRR Calculator
IRR Calculator
Cash flow series
Row 0 is the initial investment (enter it as a negative number). Each later row is one period of the same length: returns are positive, further outlays negative.NPV profile
NPV at each discount rate. Every point where the line crosses zero is an IRR; the dashed line is your finance rate.
NPV at each rate, as a table
| Rate | NPV |
|---|
How to use the IRR Calculator
Choose equal periods or dates
With equal periods, row 0 is today and each later row is one period on: a year, a quarter or a month, as long as every row is the same length. The rates you enter and the IRR you get are then rates per period. With dated cash flows each amount has its own date, the way Excel's XIRR works, and every rate is a rate a year.
Enter the cash flows with their signs
Money you pay out is negative, money you receive is positive. A project usually starts with a negative (e.g., -50000) followed by positives; a later outlay, such as a refit or a clean-up cost, is another negative in its own row. A blank row counts as zero.
Set your finance rate and, for MIRR, a reinvestment rate
The finance rate is your cost of capital. For a conventional project (money out first, then money in) an IRR above it means NPV at that rate is positive. When the series is loan-like, or changes sign more than once, that comparison can mislead, so the verdict is always the sign of NPV at your finance rate. MIRR compounds the inflows at the reinvestment rate you choose instead of at the IRR itself.
Read every IRR, then the NPV profile
If NPV crosses zero more than once, the page lists every rate where it does and says that none of them is the return. If it never crosses, the page says there is no IRR rather than printing one. The NPV profile chart shows why: each crossing is an IRR, and the dashed line marks your finance rate.
IRR and MIRR — the rate-of-return view of an investment
IRR is the discount rate that makes the NPV of a series of cash flows equal to zero; OpenStax's Principles of Finance puts it as the rate that sets the present value of the inflows equal to the present value of the outflows. For a conventional project, money out first and then money in, NPV crosses zero exactly once: it is positive at rates below the IRR and negative above it, so an IRR above your cost of capital means a positive NPV at that cost. Outside that case the comparison can point the wrong way, which is why this page decides on NPV.
How this page finds the IRR
There is no general formula for IRR, so it is found numerically. Excel's IRR function starts from a guess (10% if you give none) and iterates until the result is accurate within 0.00001%, returning #NUM! if it has not found one after 20 tries; Microsoft's own example of -70,000, 12,000, 15,000 needs a guess of -10% to reach its answer of -44.4%. This page does not depend on a starting guess. It evaluates NPV across every rate from −99.99% to 999,900% and refines each point where NPV changes sign, so it reports every IRR in that range, or says there is none. The one shape a sign-change search cannot see is NPV touching zero without crossing it, as -1, +2, -1 does at 0%; for equal periods the page also runs a Newton search and adds its answer when NPV there really is zero.
IRR is a rate; NPV is the dollars created. When they rank two projects differently, NPV is the one that measures what you are trying to maximise.
When there is more than one IRR, or none
OpenStax's example is a facility built for an Olympic competition: it costs $350 million, earns $950 million in its one year of use, and then costs $620 million to turn into a public park. NPV is negative at low rates, positive in the middle and negative again at high rates, so it crosses zero twice, at 9.18% and at 62.25%. Neither rate is the project's return. Descartes' rule of signs gives the limit: a series can have no more IRRs than it has sign changes, and the count differs from the number of sign changes by an even number. That allows zero, which is a real outcome: -100, +250, -170 changes sign twice and its NPV never reaches zero at any rate, so it has no IRR at all.
Why MIRR exists
OpenStax lists a reinvestment assumption among IRR's weaknesses: it treats the cash a project returns as reinvested at the IRR, and a firm may not find other projects that earn that much. MIRR replaces the assumption with a rate you set. Outflows are discounted to the start at the finance rate, inflows are compounded to the end at the reinvestment rate, and MIRR is the single rate that grows the first into the second; Excel's MIRR function uses the same construction. For a conventional project MIRR comes out below the IRR whenever the reinvestment rate is below the IRR. OpenStax adds that MIRR has only one solution, where IRR can have several, and that it shares IRR's blind spot on scale, so it can accept or reject a project but not rank two of different sizes.
What the example shows
The default series invests USD 50,000 and returns USD 10,000 rising to USD 30,000 over five years. Its IRR is 23.29%, and NPV at a 10% finance rate is about USD 22,200. Reinvesting the inflows at 8% instead of at 23% gives a MIRR of 17.68%. IRR is sensitive to timing: delay every inflow by a year and the IRR falls to 17.24%, while 10% more up front lowers it to 19.61%. The rate itself travels well across markets; what changes is the hurdle you compare it with, which is your own cost of capital.
Solved by iteration: the multiple-IRR trap, and what MIRR assumes instead
IRR is the discount rate at which NPV is zero (OpenStax). It has no closed-form formula and is found numerically.
Excel's IRR() iterates until the result is accurate within 0.00001%, and returns #NUM! if it has not found one after 20 tries.
Excel's XIRR() discounts each cash flow by its days from the first date divided by 365, and tries up to 100 times.
Multiple IRRs: a series that changes sign more than once can have several. -100, +230, -132 has two: 10% and 20%.
Descartes' rule of signs: the number of IRRs is at most the number of sign changes, less an even number, so it can be zero.
MIRR discounts outflows at the finance rate and compounds inflows at the reinvestment rate, and has a single answer.
Scale: IRR and MIRR cannot rank projects of different sizes; NPV can (OpenStax).
Frequently Asked Questions
-
Convention. The cash flow series for IRR uses signs to distinguish outflows (negative) from inflows (positive). Row 0 is money out of your pocket, hence negative; later positives are money flowing back to you. The series needs at least one sign change: without one, NPV can never be zero and there is no IRR.
-
IRR implicitly assumes the cash a project returns is reinvested at the IRR itself. MIRR uses rates you set: outflows are discounted at the finance rate and inflows compounded to the end at the reinvestment rate, usually the cost of capital. On this page's defaults the IRR is 23.29% and the MIRR, at 10% finance and 8% reinvestment, is 17.68%. MIRR also has a single answer, where IRR can have several.
-
Nothing, necessarily. There are two cases and the page names which one you have. If every cash flow has the same sign, NPV can never be zero, so check that the initial outlay is negative and at least one later amount is positive. If the series does change sign, more than once, its NPV can still stay below (or above) zero at every rate, as -100, +250, -170 does. Then no IRR exists, and the decision rests on NPV at your finance rate, or on MIRR.
-
Yes, when the cash flows change sign more than once. -100, +230, -132 has two IRRs, 10% and 20%, and OpenStax's Olympic facility, -350, +950, -620 (USD millions), has two, at 9.18% and 62.25%. A spreadsheet's IRR returns whichever one its search reaches from the starting guess; this page lists every one it finds and draws the NPV profile so you can see them. Use NPV at your finance rate, or MIRR, to decide.
-
Yes: choose "Dated cash flows (XIRR)". Each cash flow is then discounted by its number of days after the first date, divided by 365, which is how Microsoft documents Excel's XIRR and XNPV, and the rates are annual. Microsoft's example, -10,000 on 1 Jan 2008 followed by four receipts to 1 Apr 2009, gives an XIRR of 37.34% here as in Excel. Every date must be on or after the first one. MIRR is not offered for dated flows, because it is defined over equal periods.
-
ROI is total gain ÷ cost, with no allowance for time. IRR is the annual compound rate that the timing of the cash flows implies. A 50% ROI over ten years is only about 4.1% a year; a 100% ROI is about 14.9% a year over five years and 7.2% over ten.
-
For a conventional project, one above your cost of capital, the rate you entered as the finance rate. Benchmarks quoted for asset classes vary by source, period and fees, so this page does not print any. If two projects are mutually exclusive, compare their NPVs at that rate rather than their IRRs.
-
Both, for different jobs. IRR is easy to communicate ("this project earns 18%"). NPV is the dollar value created, so it is the one to use when choosing between alternatives: OpenStax notes that IRR ignores differences in scale. When IRR and NPV rank mutually exclusive projects differently, go with NPV.
-
No. All calculation happens in your browser, and the calculator makes no network request with what you type. Open DevTools → Network and watch while you calculate.
Method & sources
How it computes
IRR: every rate r in (-99.99%, 999,900%) with sum CF_t / (1+r)^e_t = 0, found by scanning NPV in x = 1/(1+r) for sign changes and bisecting each; all are listed, and none is reported when NPV never crosses zero. e_t = t for equal periods, days/365 for dated flows (XIRR). MIRR = (FV of inflows at the reinvestment rate / PV of outflows at the finance rate)^(1/n) - 1. Verdict = sign of NPV at the finance rate. Computed with the same tested finance routines as the NPV calculator.
What this tool implements
- Bug fixed 2026-11-05: a series with more than one sign change was shown with ONE IRR, whichever the Newton search reached first. OpenStax Principles of Finance 16.3, Table 16.8 (-350, 950, -620) crosses zero twice, at 9.18% and 62.25%; the page showed 9.18% with a caution. Every root is now found and listed, and the page says that none of them is the return.
- Bug fixed 2026-11-05: a series that changes sign but has no real IRR (-100, +250, -170: the quadratic has no real root) was reported as having "no sign change". The two no-IRR cases are now told apart. A root below -99% (-100 then +0.5, IRR -99.5%) used to be missed by the bracket and now is not.
- Checked against Microsoft's Excel examples: IRR of -70,000 then 12,000..26,000 is 8.7% (five years), -2.1% (four) and -44.4% (two, which Excel needs a -10% guess for); MIRR of -120,000, 39,000, 30,000, 21,000, 37,000, 46,000 at 10% / 12% is 13% (12.61%), -5% over three years and 13% at 14%; XIRR of Microsoft's dated example is 37.34% (0.373362535) and XNPV at 9% is $2,086.65. OpenStax 16.4 Table 16.10 MIRR is 12%; its printed terminal value (31,595.22) is 5.99 above the sum of its own rows (31,589.23).
- Added: dated cash flows (XIRR), discounted by (d_i - d_1)/365 as Microsoft documents for XIRR and XNPV, with dates before the first refused as Excel does; an NPV profile chart and table; blank rows counted as zero and said so; a blank finance rate refused instead of read as 0%. MIRR is refused, as Excel does (#DIV/0!), without both a negative and a positive flow.
- Unchanged and re-checked: default series IRR 23.29%, MIRR 17.68% at 10% / 8%, NPV at 10% USD 22,216.88; one-year delay 17.24%; 10% more up front 19.61%. Removed as repetition: three fact cards and a FAQ restating those figures.
Sources
- Microsoft Support. IRR function (Excel): iterative, accurate within 0.00001 percent, #NUM! after 20 tries; example -70,000 .. 26,000. https://support.microsoft.com/en-us/excel/functions/irr-function
- Microsoft Support. MIRR function (Excel): formula and example -120,000 .. 46,000 at 10% / 12%. https://support.microsoft.com/en-us/excel/functions/mirr-function
- Microsoft Support. XIRR function (Excel): (d_i - d_1)/365 exponent, 100 tries, example result 0.373362535. https://support.microsoft.com/en-us/excel/functions/xirr-function
- Microsoft Support. XNPV function (Excel): example at 9% = $2,086.65. https://support.microsoft.com/en-us/excel/functions/xnpv-function
- OpenStax. Principles of Finance, 16.3 Internal Rate of Return (IRR) Method (Table 16.8, two IRRs; reinvestment assumption; scale). https://openstax.org/books/principles-finance/pages/16-3-internal…
- OpenStax. Principles of Finance, 16.4 Alternative Methods (MIRR steps, Table 16.10, one solution, cannot rank by scale). https://openstax.org/books/principles-finance/pages/16-4-alternat…
What can make this go out of date
- None at runtime; nothing the reader types is sent anywhere.