Excel IRR: How to Calculate Internal Rate of Return
In this article
The Excel IRR function returns the internal rate of return for a series of cash flows that occur at regular intervals. To use it, put your cash flows in one column or row in chronological order, include a negative value for the initial investment, then enter =IRR(range) in an empty cell. For example, if your cash flows are in A1:A6, the formula is =IRR(A1:A6). Excel returns the rate as a decimal; format the cell as a percentage to read it as 8.5% rather than 0.085. If the result looks wrong or you get a #NUM! error, the usual cause is missing the initial negative cash flow or having an unrealistic guess.
What You'll Need
- A spreadsheet with your cash flows entered in order: one negative value for the initial outlay, then the positive and negative cash flows for each period.
- Excel (any modern version on Windows, Mac, or Excel for the web). The IRR function is standard and works the same across platforms.
- At least one negative and one positive cash flow. Without both signs, IRR cannot be calculated.
Step-by-Step
- Lay out your cash flows in a single column or row. Use one cell per period. Put the initial investment in the first cell as a negative number (for example, -10000). Then enter each period's net cash flow below it: positive for money coming in, negative for money going out. Keep the periods evenly spaced (monthly, quarterly, or yearly).
- Select an empty cell for the result. Click the cell where you want the IRR to appear.
- Type the IRR formula. Enter =IRR( then select your range of cash flows, or type it directly, for example =IRR(A1:A6). Close the parenthesis and press Enter. Excel returns the internal rate of return as a decimal.
- Format the result as a percentage. With the result cell selected, go to the Home tab and click the Percentage style button, or press Ctrl+Shift+% (Cmd+Shift+% on Mac). You can also right-click the cell, choose Format Cells, and pick Percentage. Set the number of decimal places you want.
- Check the result against your expectations. A positive IRR means the investment returns more than the discount rate you would compare it to; a negative IRR means it loses money. If the number looks extreme (for example, 500%), recheck that the initial cash flow is negative and that the range covers all periods.
- Optional: supply a guess if Excel returns #NUM!. The IRR function allows a second argument, a guess at the rate. For example, =IRR(A1:A6, 0.1) tells Excel to start its iterative calculation near 10%. This is useful when cash flows change sign more than once. If you are not sure of a good guess, try 0.1 (10%) or -0.1 (-10%).
- Optional: use XIRR for irregular dates. If your cash flows are not evenly spaced, use =XIRR(values, dates) instead. You will need a matching column of dates. XIRR returns an annualized rate and handles actual calendar dates, which IRR cannot do.
Common Mistakes
- Forgetting the initial negative cash flow. IRR requires at least one negative and one positive value. If all cash flows are positive, Excel returns #NUM!.
- Including a text label in the range. The IRR function ignores text and logical values, but if your range includes a header cell with text, it may shift the calculation. Select only the numeric cells.
- Using uneven periods without XIRR. IRR assumes equal spacing. If your cash flows are monthly but you compare the result to an annual rate, you must annualize it (for example, multiply by 12 for a rough annual figure, or use XIRR for precision).
- Misreading the decimal as a percentage. A result of 0.08 is 8%, not 0.08%. Format the cell as a percentage to avoid confusion.
- Assuming IRR is unique. When cash flows change sign more than once, multiple IRRs can exist. Excel returns one based on its guess. Use XIRR or check the cash flow pattern.
Tips
- Keep your cash flows in a clean, contiguous range with no blank cells. Blank cells are treated as zero, which can distort the result.
- Label your periods clearly (Month 1, Month 2, etc.) in a separate column so you can verify the order.
- Use the IRR function for simple, equal-period projects and XIRR for real-world investments with specific dates.
- If you need to compare projects, calculate the net present value (NPV) as well. IRR alone can mislead when project sizes differ.
- To avoid #NUM! errors, start with a guess of 0.1 (10%). If that fails, try 0.5 or -0.5.
Troubleshooting
Excel returns #NUM!. This usually means the calculation did not converge. Check that your range contains at least one negative and one positive value. If it does, add a guess argument, for example =IRR(A1:A10, 0.1). If it still fails, your cash flows may have multiple sign changes; try XIRR or adjust the guess.
Excel returns #VALUE!. One or more cells in the range contain text that cannot be interpreted as a number. Remove any labels or spaces from the range, or select only the numeric cells.
The result looks too high or too low. Double-check that the initial investment is negative and that all cash flows are in the correct order. Also confirm the period length: a monthly IRR will be much smaller than an annual IRR for the same project.
The formula works but the cell shows a decimal like 0.075. Format the cell as a percentage (Home > Percentage or Ctrl+Shift+%).
You need to annualize a monthly IRR. Use the formula =(1+IRR(range))^12-1 to convert a monthly rate to an annual effective rate. For quarterly, use ^4.
Frequently Asked Questions
What does the IRR function do in Excel?
It calculates the internal rate of return for a series of cash flows that occur at regular intervals. The result is the discount rate that makes the net present value of those cash flows equal to zero.
Why do I get #NUM! with IRR?
Excel could not find a result after its iterative calculation. The most common reasons are missing a negative cash flow, having all cash flows the same sign, or needing a guess argument. Try adding a guess like 0.1.
Can IRR handle uneven cash flow dates?
No. IRR assumes equal periods. For uneven dates, use the XIRR function, which takes a range of values and a range of corresponding dates.
How do I format IRR as a percentage?
Select the cell with the result, then on the Home tab click the Percentage button, or press Ctrl+Shift+% (Cmd+Shift+% on Mac). You can also right-click and choose Format Cells > Percentage.
What is a good guess value for IRR?
A guess of 0.1 (10%) works for most cases. If Excel still returns #NUM!, try 0.5 or -0.5. The guess only affects the starting point of the calculation, not the final result if a unique IRR exists.
Does IRR work in Excel for the web and Mac?
Yes. The IRR function is available in Excel for Windows, Mac, and the web. The formula syntax is the same across platforms.