Skip to main content

Free tool · live IRR

IRR Calculator: IRR, XIRR & NPV as you type

IRR (internal rate of return), XIRR (IRR on exact dates) and NPV (net present value), in one place.

  • Updated 16 Oct 2026
  • Same maths as Excel’s IRR, XIRR and MIRR
  • Checked against Microsoft’s examples, October 2026
How are your cash flows spaced?
What goes out, and what comes back?

Tap Out or InTap the arrow to flip a row. Paste a column or a row from Excel straight into any box.

Try an example
RowOut or inAmount (₹)Remove
What return do you need?

Your hurdle rate: what the money could earn elsewhere at similar risk. It sets the NPV (net present value).

Fine-tunePeriod length, MIRR (modified IRR) rates

How long is each period?

For monthly flows, the tool turns the monthly IRR into a yearly one: (1 + monthly IRR)12 − 1.

MIRR (modified IRR)

The short version

Quick answer: IRR (internal rate of return) is the return per period, usually a year, that makes NPV (net present value) zero. In Excel, use =IRR(values) for equal periods and =XIRR(values, dates) for exact dates. Illustrative: pay ₹1,00,000, get back ₹30,000, ₹35,000, ₹40,000 and ₹25,000 over four years. The IRR is about 11.54% a year.

Equal periods=IRR()One amount per period
Exact dates=XIRR()Counts the days, 365 a year
Two IRRs?=MIRR()One answer per set of flows

Guide

IRR, explained from zero

What is IRR, in plain words?

IRR is the interest rate your investment earns on its own. It answers one question: “What yearly return did this money make?” It works for any pattern of money out and money in. That includes many payments, not just one deposit and one payout.

Think of a fixed deposit (FD). You know its rate, say 7% (illustrative). IRR finds the “FD rate” hidden inside any investment. Then you can compare it with that FD, a loan, or your hurdle rate.

If the IRR is higher than the return you need, the investment adds value. If it is lower, it does not.

What is the IRR formula?

There is no direct formula you can solve by hand. IRR is the rate that makes the NPV zero: every cash flow, brought back to today, adds up to nothing. You find it by trying rates until NPV hits zero.

0 = CF0 + CF1 ÷ (1 + IRR)1 + CF2 ÷ (1 + IRR)2 + … + CFn ÷ (1 + IRR)n

CF means cash flow. CF0 is today’s amount, usually negative because you pay it. CF1 comes after one period, and so on. Excel and this tool make the guesses for you.

Illustrative example: at 11.54%, the four inflows below are worth exactly ₹1,00,000 today.

YearCash flow÷ (1 + IRR)yearValue today
0−₹1,00,0001.0000−₹1,00,000
1₹30,0001.1154₹26,896
2₹35,0001.2442₹28,131
3₹40,0001.3878₹28,823
4₹25,0001.5480₹16,150
Total₹30,000≈ ₹0

Plain takeaway: at the IRR, what you get back is worth exactly what you put in.

How do you calculate IRR in Excel?

Put the cash flows in one column, today’s outflow first, as a negative number. Then type =IRR(B2:B6). Excel reads the cells in order and treats them as one period apart. It needs at least one negative and one positive value. Blank cells and text are skipped.

  • Guess. =IRR(values, guess) is optional. Excel starts at 10% if you leave it out.
  • #NUM! error. Excel gives up after 20 tries. Try another guess, or check your signs.
  • The NPV trap. Excel’s NPV() treats its first value as one period away. So write =NPV(10%, B3:B6) + B2, not =NPV(10%, B2:B6).

Illustrative: in the example above, =NPV(10%, B2:B6) shows ₹3,024. The right NPV is ₹3,326. The calculator gives you both formulas, sized to your rows.

When should you use XIRR instead of IRR?

Use XIRR when money moves on real calendar dates that are not evenly spaced. SIP (systematic investment plan) instalments, a part-payment on a flat, or a bonus paid in March all fit. XIRR counts the actual days between payments, so each rupee is timed exactly.

0 = Σ Pi ÷ (1 + XIRR)(di − d1) ÷ 365

Pi is each payment and di its date. Excel discounts every payment on a 365-day year from the first date. In Excel, type =XIRR(B2:B14, A2:A14), with dates in column A. Its partner, XNPV, is NPV on exact dates.

Illustrative: ₹10,000 a month for 12 months, worth ₹1,30,000 a month after the last one. The simple gain is 8.33%. The XIRR is about 15.67% a year, because most instalments were invested for under a year.

Excel returns #NUM! if any date comes before the first one. This tool sorts the dates for you and tells you.

Why can a project have no IRR, or two?

Count how often your cash flows switch between negative and positive. A rule from algebra (Descartes’ rule of signs) says there can be at most that many IRRs. One switch, the usual “pay first, collect later” shape, gives at most one.

Cash flowsSign switchesWhat IRR does
−1,00,000 · 30,000 · 35,000 · 40,000 · 25,0001One IRR: 11.54%
−1,00,000 · 2,30,000 · −1,32,0002Two IRRs: 10% and 20%
1,000 · 500 · 2000No IRR at all

Plain takeaway: more than one sign switch means IRR can mislead, so decide with NPV or MIRR.

MIRR (modified IRR) fixes this. It assumes you borrow for the outflows at a finance rate and reinvest the inflows at a reinvestment rate. In Excel: =MIRR(values, finance_rate, reinvest_rate).

Is a higher IRR always better?

Not always. IRR is a percentage, so it ignores size. Earning 40% on ₹10,000 adds less money than 15% on ₹10 lakh (illustrative). When you can pick only one of two choices, pick the one with the higher NPV at your hurdle rate.

IRR also implicitly assumes money that comes back early is reinvested at the IRR itself. MIRR lets you set your own reinvestment rate instead.

Use IRR as a quick signal, and NPV for the final call.

How this tool works

It scans rates from −99% to 10,000%, and further out if none turns up, and narrows in on every rate where the NPV crosses zero. So it finds all the IRRs, not just the one nearest a guess. If no rate works, it says so plainly instead of showing an error code.

Equal periods follow Excel’s IRR, NPV and MIRR. Dated flows follow XIRR and XNPV, with a 365-day year from the first date. We tested it against Microsoft’s own worked examples. Monthly, quarterly or half-yearly IRRs are turned into a yearly rate.

Your numbers stay in your browser until you ask for the full breakdown.

Official sources (checked October 2026)

FAQs

IRR questions, answered

What is a good IRR?

There is no single good IRR. Compare it with your hurdle rate: the return you could earn elsewhere at a similar risk. For the usual pay-first, collect-later shape, an IRR above that rate means a positive NPV.

What is the difference between IRR and XIRR?

IRR assumes every cash flow is exactly one period apart. XIRR uses the real date of each cash flow and counts the days on a 365-day year. Use XIRR for SIPs and any payments on uneven dates.

What is the difference between IRR and ROI?

ROI (return on investment) is total gain divided by cost. It ignores how long the money was invested. IRR is a yearly rate that accounts for when each rupee went out and came back.

Can IRR be negative?

Yes. A negative IRR means you got back less than you put in. In Microsoft’s own example, −70,000 followed by four inflows totalling 66,000 gives an IRR of about −2.1%.

Why does Excel show #NUM! for IRR?

Your values may lack a negative or a positive number. Or Excel could not find an answer within 20 tries. Check the signs, or add a guess as the second argument, like =IRR(B2:B6, 20%).

Is XIRR the same as CAGR?

For one investment and one payout, yes, almost. CAGR (compound annual growth rate) is the yearly growth from start to end. XIRR gives the same rate, counting a 365-day year. With many payments, only XIRR works.

Related

This calculator is for learning and planning only. It is not investment advice. Results depend on the cash flows and rates you enter; the ₹ examples on this page are illustrative. Excel is a trademark of Microsoft Corporation, which does not endorse QuintEdge.

Loading batches… ▲
Call Us Visit Campus WhatsApp