FormulaCraft

How to calculate IRR (Internal Rate of Return) in Excel and Google Sheets

Excel & Google Sheets
=IRR(B2:B6)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter your cash flow values into a column, with negative values representing investments and positive values representing returns.
  2. 2Select an empty cell where you want the IRR result to appear.
  3. 3In Excel or Google Sheets, type the IRR function using the range of your cash flow data as the argument.
  4. 4Press Enter to calculate the IRR.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What does a negative IRR indicate?

A negative IRR indicates that the investment is expected to lose money.

Can IRR handle irregular cash flows?

No, IRR assumes regular intervals between cash flows. For irregular cash flows, use XIRR.

Why might I get a #NUM! error?

A #NUM! error can occur if the IRR function cannot find a result, often due to insufficient cash flow data or all values being of the same sign.

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: