IRR in Excel is the yearly return an investment earns, found with the IRR function on a list of cash flows. Use IRR when the cash flows come at equal intervals, XIRR when they have real dates, and MIRR when you want to set a realistic reinvestment rate. In the free calculator below, one sample project returns 18.39% with IRR, 42.46% with XIRR and 12.29% with MIRR. The gaps between those three numbers are the whole story.
Free download
IRR Calculator practice file (.xlsx)
Working formulas, sample data and a How to use sheet. Opens in Excel, or import it into Google Sheets.
What the internal rate of return tells you
The internal rate of return is the discount rate that makes the net present value of a project equal to zero. Put simply, it is the break-even return of the project. If the IRR is higher than the return you require, the project beats your hurdle. If it is lower, it does not.
The idea is easy to state and easy to misuse. IRR is a percentage, so it ignores the size of the project. A small project at 30% can add less money than a large one at 15%. That is why IRR sits next to NPV in every serious analysis, and why this sheet shows both. If you are new to NPV, start with the NPV formula guide and come back.
What is inside the free IRR calculator
The workbook has a How to use sheet and one IRR sheet. It has no macros and works in Google Sheets too. Yellow cells are inputs and every other figure is a formula. Three cards at the top show IRR, MIRR and XIRR.
The sample is a made-up equipment purchase. You pay 60,000 today and receive 15,000, 18,000, 20,000, 22,000, 16,000 and 12,000 over six years. The total received is 103,000, so the net gain is 43,000. With a 10% hurdle rate the NPV is 15,273, and the decision cell says Accept.

Who this IRR calculator is for
- A small business owner deciding whether a machine, a vehicle or a new shop is worth the cash.
- A student or analyst who wants to see IRR, XIRR and MIRR side by side on one data set.
- Anyone comparing two investments that pay out on different schedules.
This is educational content, not investment advice. The sample figures are made up, so replace them with your own estimates.
How to calculate IRR in Excel step by step
The yearly cash flows sit in B14:B20, the dates in C14:C20 and the dated cash flows in D14:D20. The rates are in C9, C10 and C11.
Step 1: Lay out the cash flows
Put year 0 in the first row and enter the investment as a negative number: -60,000. Money you receive is positive. Every later row is one year. Excel needs at least one negative and one positive value, or IRR has nothing to solve.
Step 2: Use the IRR function
In F14, give IRR the whole range, year 0 included:
=IFERROR(IRR(B14:B20),"No IRR")
The result is 18.39%. Unlike NPV, the IRR function wants the year 0 cash flow inside the range. The IFERROR wrapper shows a clear message when Excel cannot find an answer, for example when all the cash flows are positive.
Step 3: Compare it with the hurdle rate
Enter the return you require in C9. The sample uses 10%. In F19, subtract it from the IRR:
=IFERROR(F14-C9,"")
The spread is 8.39 percentage points, so the project clears the hurdle with room to spare. A thin spread means a small estimate error can flip the decision, so test lower cash flows before you rely on it.
Step 4: Check it against the NPV
In F16, calculate the NPV at the same hurdle rate:
=NPV(C9,B15:B20)+B14
The result is 15,273. The year 0 cash flow is added outside the NPV function because NPV assumes the first value is one period away. IRR and NPV always agree on a single project: IRR above the hurdle means a positive NPV. The decision cell uses that test:
=IF(F16>0,"Accept: NPV is positive",IF(F16=0,"Break-even","Reject: NPV is negative"))

Step 5: Use XIRR when the dates are uneven
IRR treats every row as exactly one year apart. Real money does not behave like that. A first payment after three months and a gap of eight months before the next are common. XIRR takes the dates into account. In F17:
=IFERROR(XIRR(D14:D20,C14:C20),"No XIRR")
Notice the order: values first, then dates. The sample uses the same cash flows as before but with real dates, from 15 January 2026 to 1 March 2029. The result jumps to 42.46%, because the early payments arrive well before a full year has passed. The XNPV in F18 follows the same pattern and shows 28,150:
=XNPV(C9,D14:D20,C14:C20)
The point is not that XIRR is bigger. The point is that the same money on a faster schedule is worth more, and only XIRR can see that. If your cash flows have dates, use XIRR.
Step 6: Use MIRR when reinvestment matters
IRR quietly assumes that every payment you receive is reinvested at the IRR itself. At 18% that is optimistic. MIRR lets you set the rate you can really earn on the money you receive and the rate you pay on the money you borrow. In F15:
=IFERROR(MIRR(B14:B20,C10,C11),"n/a")
With an 8% finance rate in C10 and a 6% reinvestment rate in C11, MIRR is 12.29%. That is a long way below the 18.39% from IRR, and it is the more cautious number. Check the arithmetic yourself: the six inflows grow at 6% to about 120,298 by year six, and 120,298 divided by 60,000 raised to the power of one sixth, minus one, gives 12.29%.
IRR vs XIRR vs MIRR: which one to use
- IRR for quick checks on yearly or monthly flows at equal spacing.
- XIRR for any list with real dates, such as loans, rentals and uneven payments.
- MIRR when you want a cautious number, or when IRR looks too good to believe.
When two methods disagree this much, do not pick the one you like. Look at why they differ. Here the answer is timing for XIRR and reinvestment for MIRR.
Read the result in context
An IRR of 18.39% sounds great, but it only means something next to your alternatives. If a savings account pays 4% and your hurdle is 10%, an 18% project is attractive. If the cash flows are guesses, run the sheet again with every cash flow 20% lower and look at that result, not the first one.
IRR also has known weak spots. When cash flows change sign more than once, for example a cleanup cost at the end, there can be more than one IRR, and Excel shows only one of them. For comparing a small project with a big one, use NPV. To value a whole company, use the DCF model. For loans and property, the rental property spreadsheet shows a return calculation on real numbers. Want a full tool for portfolios and returns? The Investment Management Dashboard in Google Sheets covers that.

Common mistakes
- Leaving out the investment. Year 0 must be negative. With only positive numbers there is no IRR.
- Dropping year 0 from the range. The
IRRfunction needs it inside the range, unlikeNPV. - Using IRR on dated cash flows. If the gaps are uneven, switch to XIRR.
- Swapping the XIRR arguments. Values come first and dates second.
- Trusting IRR alone. It ignores the size of the project, so read it next to the NPV.
- Believing the reinvestment assumption. A high IRR assumes you can reinvest at that rate. Check MIRR.
Where to go from here
Enter your own project in the sheet, then change one number at a time. Start with the first year of cash flow, since early money moves IRR the most. To go deeper on the value side, read the NPV formula guide and the DCF model. New to the site? Read start here.
Want more than the free file?
Investment Management Dashboard in Google Sheets
A dashboard that tracks your investments, allocation and returns in one place.
Your next step: download the file, replace the sample cash flows with your own project, and compare IRR, XIRR and MIRR before you decide.
Frequently asked questions
How do you calculate IRR in Excel?
List the cash flows with the investment as a negative number in year 0, then use =IRR(range). The result is the yearly return that makes the NPV of the project equal to zero.
What is the difference between IRR and XIRR?
IRR assumes the cash flows are spaced at equal intervals. XIRR takes a date for every cash flow, so it is accurate when payments arrive at uneven times.
What is MIRR in Excel?
MIRR is the modified internal rate of return. It lets you set a finance rate for the money you borrow and a reinvestment rate for the money you receive, which gives a more cautious result than IRR.
Why does Excel show #NUM! for IRR?
IRR needs at least one negative and one positive cash flow. If every value has the same sign, or Excel cannot converge, it returns #NUM!. Check the signs and try the guess argument.
Does this IRR calculator work in Google Sheets?
Yes. Upload the file to Google Drive and open it with Google Sheets. IRR, XIRR, MIRR, NPV and XNPV all work there.
Free download
IRR Calculator practice file (.xlsx)
Working formulas, sample data and a How to use sheet. Opens in Excel, or import it into Google Sheets.

Want the finished version?
SaaS Financial Model Dashboard in Excel
MRR, churn, customer metrics and profitability across five dashboard pages.
View the pro templateEducation only. Not financial, tax or investment advice.
