How to Use the IRR Function in Google Sheets (With Example)

Published on

The IRR function in Google Sheets is a useful tool for estimating the return on an investment based on periodic cash flows.

In this post, I’ll walk you through how the IRR function works in Google Sheets, using a simple example.

What Is Internal Rate of Return (IRR)?

The internal rate of return (IRR) is the rate at which the net present value (NPV) of an investment becomes zero. In other words, it’s the interest rate that makes the present value of all future cash flows (inflows and outflows) equal to the original investment.

So if you’re investing in a project or startup and want to know how profitable it might be, IRR gives you a single percentage you can use to compare different opportunities. The higher the IRR, the more attractive the investment.

Why does NPV become zero when using IRR as the discount rate?
Because IRR is the rate at which the present value of future cash inflows exactly offsets the initial investment. When you plug the IRR into the NPV formula as the discount rate, you’re essentially asking, “How much is this investment worth today if I expect this exact return?” The answer is zero—because the return already equals the cost.

Things to Know Before Using IRR in Google Sheets

  • The cash flows must be periodic—for example, monthly, quarterly, or yearly.
  • The cash flow amounts don’t need to be equal; only the timing matters.
  • The range should include at least one negative and one positive value to compute the IRR.

IRR Function Syntax in Google Sheets

IRR(cashflow_amounts, [rate_guess])

Arguments:

  • cashflow_amounts – A range or array of numeric values representing payments and income related to the investment. The first value is usually the initial investment (a negative number), followed by positive or negative future cash flows.
  • rate_guess (optional) – An estimated IRR to help the function start its internal calculation. If omitted, Google Sheets uses 10% (0.1) by default. In most cases, you don’t need to provide this.

IRR Function Example in Google Sheets

Let’s say Project A requires an initial investment of $7,000, followed by these expected annual returns:

PeriodCash FlowDescription
0-7000Initial cost of the project
12500Net income for Year 1
24500Net income for Year 2
31000Net income for Year 3
43800Net income for Year 4

These cash flow values go into cells B2:B6. Here’s how you can calculate the internal rate of return using the IRR function in Google Sheets:

Formula:

=IRR(B2:B6)

Result: 24.59%

That means over a period of four years, this project is expected to generate a return of around 24.59% per year.

IRR as a Discount Rate in NPV

To see why IRR is meaningful, let’s run a quick NPV calculation with a 20% discount rate:

=NPV(20%, B3:B6) + B2

Result: $619.60 – This is the net present value of the investment when discounted at 20%.

Google Sheets example showing IRR calculation, NPV using a fixed discount rate, and NPV using IRR as the discount rate

Now, replace 20% with the actual IRR:

=NPV(IRR(B2:B6), B3:B6) + B2

Result: 0

That confirms the definition—IRR is the rate that brings NPV to zero. This can help you compare the internal return of different projects, especially when deciding whether a return is good relative to your expected rate or cost of capital.

Wrapping Up

The IRR function in Google Sheets is a valuable tool for evaluating whether a project is worth pursuing. It gives you a clear idea of the return rate over time, especially when cash flows vary from period to period. You can also combine it with other functions like NPV to double-check your assumptions.

Thanks for reading! Hope this helped you understand not just the formula, but the logic behind it.

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Expert Prashanth KV is a Diamond Product Expert in Google Sheets, officially recognized by Google for his contributions to the Docs Editors Help Community and featured in the Google Product Experts Directory. Explore his blog to learn advanced formulas, automation tips, and problem-solving techniques to elevate your spreadsheet skills.

Top Discussions

More like this

Free Student Grade Tracker Template in Google Sheets

If you are looking for a simple way to track student grades, you are...

Free Monthly Expense Tracker Template in Google Sheets (Dashboard Included)

Watch the quick walkthrough below to see how to use this Free Monthly Expense...

The Complete Guide to XLOOKUP in Google Sheets (15+ Practical Examples)

The XLOOKUP function largely replaces traditional lookup functions such as LOOKUP, VLOOKUP, and HLOOKUP...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.