MS Excel: IRR function to calculate rate of return
- Fakhriddinbek
- Apr 27
- 2 min read
The IRR function in Excel calculates the Internal Rate of Return for a series of cash flows (payments and income).It is used heavily in finance and investment analysis to measure and compare the profitability of different projects or investments.
In simple words:IRR tells you how profitable your investment is, shown as a percentage.

Syntax
IRR(values, [guess])
Argument | Description |
values | An array or range of numbers representing cash flows. Must include at least one negative and one positive value. |
[guess] (optional) | A guess for what the IRR will be (default is 10% or 0.1). Usually not needed. |
How IRR Works
Negative values = cash outflows (like initial investments).
Positive values = cash inflows (like returns).
IRR is the discount rate that makes the Net Present Value (NPV) of the cash flows equal to zero.
In formula form:
NPV=0=∑t=0nCt(1+IRR)tNPV = 0 = \sum_{t=0}^{n} \frac{C_t}{(1 + IRR)^t}NPV=0=t=0∑n(1+IRR)tCt
Where:
CtC_tCt = cash flow at period t
IRR = internal rate of return
Example 1: Basic IRR Calculation
You invest $-10,000 today and expect to receive $3,000 annually for 5 years.
Cell | Cash Flow |
A2 | -10000 (investment) |
A3 | 3000 |
A4 | 3000 |
A5 | 3000 |
A6 | 3000 |
A7 | 3000 |
Formula in Excel:
=IRR(A2:A7)
Result: IRR ≈ 11.79%
Step-by-Step:
Year 0: invest -10,000
Year 1-5: receive 3,000 each year
Excel finds the discount rate where the NPV of these cash flows = 0.
Example 2: IRR with Irregular Cash Flows
Suppose you invest and receive different amounts over 4 years:
Cell | Cash Flow |
A2 | -15000 |
A3 | 5000 |
A4 | 4000 |
A5 | 6000 |
A6 | 7000 |
Formula:
=IRR(A2:A6)
Result: IRR ≈ 17.41%
Here, the returns are not uniform, but Excel still correctly calculates the IRR.
Example 3: Using a Guess Value
In rare cases, Excel may not find an IRR without help.You can add a guess argument to guide the function.
Formula | Explanation |
=IRR(A2:A6, 0.2) | Guessing an IRR around 20% |
Usually, though, you can leave the guess blank.
Important Notes
IRR assumes cash flows happen at regular intervals (like yearly, monthly).
If the cash flows are very irregular or change signs multiple times, Excel might return multiple IRRs or no IRR.
If Excel cannot find a result, you may see a #NUM! error.
For irregular timing, use XIRR function instead (we can cover this if you want!).
Real-World Applications
Investment decision-making.
Project profitability analysis.
Business expansion analysis.
Comparing loan or financing options.
Full Example Table
Year | Cash Flow | Formula in Excel |
0 | -10,000 | |
1 | 3,000 | |
2 | 3,000 | |
3 | 3,000 | |
4 | 3,000 | |
5 | 3,000 | =IRR(A2:A7) |
Result → 11.79%
Conclusion
The IRR function in Excel is a powerful tool to measure investment profitability.By understanding how IRR works, you can confidently evaluate whether a project or investment is worth pursuing.Be careful with multiple cash flow sign changes — when needed, use a guess or switch to XIRR for more complex cases!
Master IRR, and you master one of the core tools of financial analysis!
Comments