Formula for Internal Rate of Return in Excel

There are two ways to “formula for internal rate of return in excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above with a tool to test it; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: compute net present value with =NPV(rate, B2:B4)+B1 — where B1 holds the (negative) year-0 investment OUTSIDE the NPV range — and the internal rate of return with =IRR(B1:B4) over the full series including year 0.

ƒxNPV & IRR CalculatorLive
%
Net present value
€1,307.29

3 one value per year

IRR
16.34%
=NPV(rate, flows)−investment · =IRR(B1:B4)

Need it as an auditable file?

Ships inside the linked template — formula-driven, unlocked, audit-ready.

View template
=NPV(rate, flows) + initial
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

Need it as an auditable file?

Ships inside the linked template — formula-driven, unlocked, audit-ready.

View template

What this does

NPV discounts future cash flows back to today at a chosen rate and nets them against the upfront investment; a positive NPV means the project beats that rate. IRR is the discount rate at which NPV is exactly zero. The classic trap is that Excel's NPV assumes every value in its range sits one period in the future — so the year-0 investment must be added outside the function, while IRR wants the full series including year 0. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “formula for internal rate of return in excel”. Start on a copy or a tiny sample, keep the affected formula visible, and compare the result with the tool above before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a calculation you can defend to a CFO or an auditor, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

B1 holds -10000 (investment today), B2:B4 hold 3000, 4200, 6800. =NPV(10%,B2:B4)+B1 returns €1,307.29 — the project creates value at a 10% hurdle rate. =IRR(B1:B4) returns 16.36%, the rate at which the same series breaks even. NPV and IRR are the standard go/no-go arithmetic for investments, equipment purchases, and projects — and the off-by-one-period NPV trap is probably the most common spreadsheet finance error. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.

In Google Sheets

Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. Here is the takeaway for “formula for internal rate of return in excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.

Common mistakes

  • Including the year-0 investment inside the NPV range, which discounts it one year too many.
  • Feeding IRR a series with no sign change — it needs at least one negative and one positive flow.
  • Comparing projects of different lengths by IRR alone; NPV at a common rate is the safer ranking.
  • Using annual NPV/IRR on monthly flows — switch the rate to a monthly rate or use XNPV/XIRR with real dates.

Frequently asked questions

Why does Excel's NPV differ from my finance textbook?

Excel's NPV discounts every range value by at least one period. Add the year-0 flow outside the function: =NPV(rate,flows)+initial.

What does #NUM! from IRR mean?

IRR could not converge — usually the series has no sign change, or you should supply a guess: =IRR(range, 0.1).

When should I use XNPV and XIRR?

When cash flows are not evenly spaced. XNPV/XIRR take actual dates alongside the values.

Other ways people ask this

People reach this page typing “internal rate of return formula excel”, “retirement personal rate of return excel formula” and “internal rate of return calculator excel”, among other phrasings; whichever wording you used, the fix above is the one you want.

Why do people search for this in so many different ways?

Because the same task has many names. “internal rate of return formula excel”, “retirement personal rate of return excel formula”, “internal rate of return calculator excel” all point at the one operation explained on this page, which is why they all lead here.