Skip to content
Investment Math
Investment Math

Currency and number style

Only changes how amounts look. There is no currency conversion.

How to Calculate IRR (Internal Rate of Return): formula, worked example and common mistakes

Find the yearly rate at which a run of cash flows is worth exactly what you pay at the start. Free, no sign-up, nothing leaves your browser.

Updated

What the internal rate of return is

The internal rate of return (IRR) answers a plain question: what yearly rate do these cash flows earn on the money paid at the start? It is the rate at which the flows, brought back one period at a time, are worth exactly the outlay. A project that pays 3,000, 4,000, 5,000 and 3,000 on an outlay of 10,000 has an IRR of 18.03% a year; at that rate the flows are worth precisely 10,000 today.

The calculator is at /tools/irr/. It takes the money paid at the start, one cash flow per line and how often the flows come, and returns the rate per period and the compounded yearly figure. The chart plots the net present value against the rate, so you can see the line cross 0 rather than take the number on trust.

The formula

NPV = −outlay + CF1 ÷ (1 + r) + CF2 ÷ (1 + r)^2 + … + CFn ÷ (1 + r)^n = 0

CFt is the cash flow at the end of period t and r is the rate per period. Nothing on the left can be rearranged to give r on its own once there is more than one flow, so the calculator bisects: it halves an interval of rates, keeps the half where the NPV changes sign, and repeats until the rate is pinned down. The interval runs from −99% to 1000%.

The yearly figure compounds the rate per period by how many periods a year holds:

yearly IRR = (1 + periodic)^k − 1      k = 1 yearly, 2 half-yearly, 4 quarterly, 12 monthly

The same flows give the same rate per period however often they come. A rate of 1.8% a month is not 21.6% a year but (1 + 0.018)^12 − 1, about 23.87%, because each month’s growth earns on the months before it.

A worked example at the calculator’s defaults

An outlay of 10,000 and four yearly flows of 3,000, 4,000, 5,000 and 3,000.

at r = 18.03% a year:
year 1:  3,000 ÷ 1.1803    =  2,541.77
year 2:  4,000 ÷ 1.1803^2  =  2,871.37
year 3:  5,000 ÷ 1.1803^3  =  3,040.98
year 4:  3,000 ÷ 1.1803^4  =  1,545.89
present value of the flows = 10,000.00

Add the flows without discounting and they come to 15,000, a plain gain of 5,000 over the outlay. The IRR compresses that into a rate: 18.03% a year. Two runs can share the same plain total and still earn different rates, because one can pay earlier than the other; the rate accounts for the waiting and the plain total does not.

Reading the chart

The chart plots the NPV of your flows against the yearly rate, from 0% to twice the IRR, in 21 points. For the default run it starts at 5,000 (at a 0% rate the NPV is the plain total), falls through 0 at 18.03% and keeps falling. When there is no IRR the window runs from 0% to 50% instead, and the line’s height at any rate is the NPV at that rate.

When there is no single IRR

The bisection finds one rate only when the flows change sign once, an outlay followed by receipts. If receipts are followed by a cost and then more receipts, the NPV curve can cross 0 twice, and two rates both fit. If the flows never repay the outlay, no rate does. The page counts the changes of sign, reports none, and raises a grey flag; the chart and the plain total still stand. A rate typed under More options adds the MIRR, which has a single answer however many times the flows change sign.

What the page does not know

The flows are whatever you type; the page stores none and applies no tax. Each flow is taken as arriving at the end of its period, at an even spacing. For the net present value of the same flows at a rate you choose, use the NPV calculator; for flows dated off even periods, the XIRR calculator works on dates instead.

Frequently asked questions

What is the IRR formula?

Set the net present value to 0 and solve for the rate: −outlay + CF1 ÷ (1 + r) + CF2 ÷ (1 + r)^2 + … + CFn ÷ (1 + r)^n = 0. There is no closed-form answer for a run of flows, so the calculator finds it by repeated halving between −99% and 1000%.

How does the IRR change when the flows come quarterly or monthly?

The rate per period stays the same for the same flows; only the yearly figure moves, because it compounds: (1 + periodic)^k − 1, with k = 4 for quarterly and 12 for monthly flows. A rate of 1.8% a month is about 23.87% a year.

Why can there be no IRR?

When the flows change sign more than once, more than one rate can make the NPV 0, and when they never repay the outlay no rate does. In both cases the page reports none rather than picking a rate, and the chart shows the NPV at each rate instead.

What is the difference between IRR and the plain total?

The plain total adds the flows without discounting: for the default example, 15,000 less the 10,000 outlay is 5,000. The IRR also accounts for the waiting: those same flows are worth exactly 10,000 today at 18.03% a year. Two runs with the same plain total can have very different rates.

What does the MIRR add?

It lets you set the rate at which receipts are reinvested and money going out is funded, instead of assuming receipts earn the IRR itself. It also gives one answer however often the flows change sign.

This tool shows math, not advice.

Cite this page

Copy this line into a reference list, a report or a spreadsheet note.

Investment Math Calculator. “How to Calculate IRR (Internal Rate of Return)”. Updated 2026-11-21. https://investmentmathcalculator.com/guides/irr-calculator/

Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.