IRR Calculator
Find the discount rate where a cash-flow list has an NPV of zero, by bracketed bisection with the method, tolerance and refusals stated.
What the IRR calculator does
The internal rate of return is the discount rate at which the cash flows have a net present value of zero. This page finds it by bracketed bisection: it scans rates from -99 % to 1000 % in steps of 0.01, takes the first interval where NPV changes sign, and halves that interval until the answer is close enough.
"Close enough" is the tolerance you set, 1e-7 by default: the search stops when the NPV at the current rate is smaller than the tolerance in absolute value, or when the interval is narrower than 1e-12. At most 200 bisections are run. The result prints the tolerance, the NPV the search actually reached and the number of iterations, so the answer can be audited rather than trusted.
It refuses in two cases, and says which. A list with no negative or no positive flow never crosses zero, so there is no IRR to report. A list that never changes sign between -99 % and 1000 % has no bracketed root in that range. When the cash flows change sign more than once there can be more than one IRR; the page returns the first bracketed root in the scan and says so.
How to use it
Enter the cash flows in the text box, period 0 first, with the investment negative.
Leave the tolerance at 1e-7 unless you need a different stopping point, then press Run. The result prints the rate, the method, the tolerance, the NPV reached and the iterations used.
Worked example
Input with the default tolerance:
-1000
600
600
Output:
IRR: 13.0662 % per period
Method: bracketed bisection on NPV, -99 % to 1000 % scanned at 0.01
Why it runs in your browser
Every trial rate is evaluated on this page with JavaScript. Your cash flows are never uploaded, and the answer is not stored.
The internal rate of return is the discount rate at which a cash-flow list has an NPV of zero. This page finds it by bracketed bisection and prints the method, the tolerance and the NPV it actually reached.
When there is no sign change to bracket, or no convergence inside the budget, the page refuses and says which. It never prints a rate it did not find.
The method, and why it is printed
The search scans rates from -99 % to 1000 % in steps of 0.01 and takes the first interval where NPV changes sign. It then halves that interval, keeping the half that still brackets the root, until the NPV at the current rate is inside your tolerance or the interval is narrower than 1e-12.
At most 200 bisections run. The result prints the tolerance, the NPV reached and the iteration count, so the stopping point can be checked rather than trusted.
When the flows change sign more than once there can be more than one IRR. The page returns the first bracketed root in the scan and says so, because a single number hides that ambiguity.
How to use IRR Calculator
Enter the cash flows into the text box, period 0 first, with the investment negative.
Set the tolerance if 1e-7 is not the stopping point you want.
Press Run. The result prints the rate, the method, the tolerance, the residual NPV and the iterations, or a refusal naming what it could not find.
What to Expect
Best for
- Getting the break-even rate for a conventional investment
- Auditing an IRR a spreadsheet produced
- Seeing whether a list has a bracketed root at all
Not ideal for
- Cash flows with several sign changes, where the first root may not be the one you want
- Comparing projects of very different sizes, where IRR ignores scale
What this tool keeps
- The list in the order you entered it
- The tolerance and the residual NPV, printed with the rate
What may need cleanup
- A tolerance set so small that no double can reach it
- A rate you expected from an annual model, since this is per period
Common errors
- A list with no negative flow, which has no IRR
- A tolerance of zero, which is refused
- Reading the first root as the only root
Example use cases
- Screening a project against a hurdle rate
- Checking a bond's yield arithmetic
- Teaching why IRR and NPV can disagree
Sample input
Cash flows -1000, 600, 600 with the default tolerance.
Sample output
IRR: 13.0662 % per period, by bracketed bisection, residual 6.77e-8.
Who this is for
- Analysts who need the method behind the number
- Students checking an IRR by hand
Frequently asked questions
Why does it refuse instead of returning a best guess?
A rate that does not make NPV zero is not an IRR. When no interval changes sign, or the bisection does not close inside its budget, the page says so rather than printing a number that would not survive a check.
What does the tolerance control?
It is the absolute NPV at which the search stops. 1e-7 is the default; a smaller value asks for more precision and may hit the interval-width stop instead.
Can there be more than one IRR?
Yes, when the cash flows change sign more than once. The page returns the first bracketed root between -99 % and 1000 % and states that limitation.
Is the IRR annual?
It is per period, matching the cash-flow list. The page does not annualise a monthly or quarterly series.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.