Investing

IRR Calculator

Find the IRR, NPV and MIRR of evenly spaced cash flows, with a warning when more than one rate fits.

By Nitin Raturi · Last reviewed

Your cash flows

How to use the IRR Calculator

Find the internal rate of return, NPV and MIRR of evenly spaced cash flows.

  1. Enter the cash flows, one per line, starting with the investment as a negative number.
  2. Choose how far apart they are.
  3. Enter the discount rate you want to compare against.
  4. Read the IRR, then the NPV and MIRR at your rate.

Good to know

  • An IRR above your discount rate goes with a positive NPV for a normal project.
  • If the cash flows change sign more than once, there can be more than one IRR.

Cash flows

The money going out and coming in, one figure per period, starting with today.

How to fill it in

  • Put the first figure (usually the investment) on line 1 as a negative number.
  • Then one line per period: positive for money received, negative for money paid.
  • Use 0 for a period with no cash flow; up to 120 periods.

Example

−16,000 then 2,000, 4,000 and four years of 5,000 has an IRR of 14.09%.

Keep in mind: The periods must be equal in length. For dated, uneven flows use the XIRR Calculator.

One figure per line, today first; outflows negative.

Period length

Period length

How far apart the cash flows are.

How to fill it in

  • Choose year, half-year, quarter or month.
  • The IRR is shown per period and as an effective annual rate.

Example

An IRR of 1% a month is 12.68% a year, compounded.

Discount rate

Your required return, cost of capital or best alternative, as an annual rate.

How to fill it in

  • Used for NPV and MIRR only; the IRR does not depend on it.
  • Enter −50% to 100% a year; it is converted to a per-period rate.

Example

At 10%, ₹1,000 that returns ₹400 a year for four years has an NPV of ₹268.

Internal rate of return

14.09% a year

The IRR is 14.09% a year. At 10% a year the NPV is ₹2,223 and the MIRR is 12.41% a year.

NPV at 10%
₹2,223
MIRR
12.41% a year
Paid out
₹16,000
Received
₹26,000

Flows are yearly apart, the first today. The annual discount rate is converted to 10% a year; MIRR reinvests and finances at that rate.

How this calculator works

  1. Step 1DiscountCF ÷ (1 + r)ᵗEach flow is valued in today’s money.
  2. Step 2SolveNPV = 0The IRR is the rate where the total is zero.
  3. Step 3CompareNPV, MIRRBoth use your own discount rate.

The net present value adds every cash flow after discounting it back to today. The internal rate of return is the rate that makes that total exactly zero.

There is no formula for the IRR, so the calculator scans rates from −99.99% to 1,000% per period. It then narrows each place where the NPV changes sign.

Worked example: an embroidery machine

NPV at 10% for the OpenStax machine project
NPV
Σ CFₜ ÷ (1 + r)ᵗ
IRR
the r where NPV = 0
  1. Year 0−₹16,000−₹16,000
  2. Year 1₹2,000 ÷ 1.1^1₹1,818
  3. Year 2₹4,000 ÷ 1.1^2₹3,306
  4. Year 3₹5,000 ÷ 1.1^3₹3,757
  5. Year 4₹5,000 ÷ 1.1^4₹3,415
  6. Year 5₹5,000 ÷ 1.1^5₹3,105
  7. Year 6₹5,000 ÷ 1.1^6₹2,822
  8. NPV at 10%₹2,223

The NPV at 10% is positive, so the project earns more than 10%. The IRR is 14.09%, matching the 14.09% in the OpenStax Principles of Finance example.

Read the result

  • IRR14.09%The project’s own break-even rate.
  • NPV at 10%₹2,223Value added over a 10% alternative, in today’s rupees.
  • MIRR at 10%12.41%Assumes inflows are reinvested at 10%, not at the IRR.

₹1,000 that returns ₹400 a year for four years has an IRR of 21.86% and an NPV of ₹268 at 10%.

For monthly flows, the IRR is per month. An IRR of 1% a month compounds to 12.68% a year.

When there is more than one IRR

−100, then +230, then −132 changes sign twice and has two IRRs: 10% and 20%. Neither is the answer on its own.

When the flows change sign more than once, use the NPV at your discount rate or the MIRR. The calculator lists every rate it finds rather than picking one.

Assumptions and limits

  • Equal periodsEvery flow is one period after the last.
  • First flow todayLine 1 is not discounted.
  • One rateMIRR finances and reinvests at your discount rate.
  • Before taxTaxes, fees and inflation are not modelled.

IRR needs evenly spaced cash flows. For other patterns, a different measure fits better.

When cash flows fall on irregular dates, use the XIRR calculator. For a single start and end value, the CAGR calculator is enough, and the payback period calculator shows how long a project takes to repay its cost.

Common mistakes

  • Mistake: Entering the investment as positive.

    Instead: Money paid out is negative; money received is positive.

  • Mistake: Leaving out a year with no cash flow.

    Instead: Enter 0 so later flows keep their timing.

  • Mistake: Using IRR for dated, uneven flows.

    Instead: Use the XIRR Calculator for exact dates.

  • Mistake: Ranking projects of different sizes by IRR.

    Instead: Compare NPVs; a small project can have a high IRR but add little.

Checking the method

A separate script re-works every golden value with Newton’s method and Horner’s rule, and reproduces the OpenStax 14.09% example.

Read how we test our calculators, or browse more money calculators.

Frequently asked questions

What is the IRR of −16,000, 2,000, 4,000 and four years of 5,000?

14.09% a year, the OpenStax Principles of Finance example. At 10% the NPV is ₹2,223.

What is the difference between IRR and NPV?

NPV is the value added at your chosen rate, in rupees; IRR is the rate where NPV is zero. ₹1,000 returning ₹400 a year for four years has IRR 21.86% and NPV ₹268 at 10%.

Why can a project have two IRRs?

When the cash flows change sign more than once. −100, +230, −132 has IRRs of 10% and 20%; use NPV or MIRR instead.

How do I annualise a monthly IRR?

Compound it: (1 + monthly IRR)¹² − 1. A monthly IRR of 1% is 12.68% a year.

When should I use XIRR instead of IRR?

Use XIRR when cash flows fall on irregular dates, such as SIP instalments and redemptions. IRR assumes equal periods.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 4 Nov 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release.