IRR Calculation: A Worked Example, Excel Steps, and Limits
Learn IRR calculation with a checked cash-flow example, Excel IRR versus XIRR, and the limits of comparing percentage returns instead of dollar value.

Information checked November 7, 2026. Examples are hypothetical US-dollar investments, not offers or forecasts. This is general education, not individualized investment advice.
An IRR calculation finds the discount rate that makes an investment’s net present value, or NPV, equal zero. It considers both the amounts invested and when money comes back. A positive result does not establish that an investment is safe, fairly priced, or suitable for you.
Microsoft’s cash-flow guide distinguishes NPV, expressed in today’s dollars, from the rate that makes that dollar balance zero. The useful question is not just “How high is the rate?” but “Which payments and assumptions produced it?”
Start with the cash-flow equation
For equally spaced annual periods:
NPV = C₀ + C₁ ÷ (1 + r) + C₂ ÷ (1 + r)² + …
Here, C₀ is today’s net cash flow, later C values are year-end net cash flows, and r is an annual discount rate. Money you pay is negative; money you receive is positive. IRR is a value of r for which this expression equals zero.
Choose whose return you are measuring. A project model before financing and an investor’s model after borrowing and debt payments answer different questions. List all cash flows consistently, including costs and any assumed sale proceeds. Forecasts remain forecasts even when a spreadsheet displays many decimal places.
A small, asymmetric example
Suppose a US investor pays $1,000 today, receives $300 at the end of year one, and receives $880 at the end of year two. The final payment includes all remaining proceeds. Assume no other payments, fees, or taxes.
| Time | Investor cash flow |
|---|---|
| Today | −$1,000 |
| End of year 1 | $300 |
| End of year 2 | $880 |
The equation is 0 = −1,000 + 300 ÷ (1 + r) + 880 ÷ (1 + r)².
Try 10%:
- First receipt’s present value: $300 ÷ 1.10 = $272.7273.
- Second receipt’s present value: $880 ÷ 1.10² = $727.2727.
- NPV: −$1,000 + $272.7273 + $727.2727 = $0, allowing for rounding.
The annual rate is therefore 10%. Total cash received is $1,180, giving an undiscounted gain of $180. Dividing $180 by $1,000 gives an 18% gain across the whole sequence—not an annual rate. Timing explains why those figures differ.
At an assumed 8% required return, the same payments produce an NPV of approximately $32.24. That is the modeled surplus in today’s dollars at that chosen rate, not extra cash already in your account.
A rate can also be negative: paying $1,000 today and receiving only $900 one year later gives −10%, because $900 ÷ 0.90 equals the original $1,000.
Use Excel without losing the timing
For this IRR calculation, enter −1000, 300, and 880 in cells A1:A3, then use =IRR(A1:A3). Format the answer as a percentage. To check NPV at 8%, use =NPV(8%,A2:A3)+A1. Microsoft’s guide explains why today’s payment is added separately: Excel’s NPV function discounts its listed payments as end-of-period flows.
Equal spacing does not require equal payment amounts. The $300 and $880 receipts differ, but the annual periods match. Include a zero for an annual period with no payment rather than deleting that year.
For actual payments on irregular dates, use =XIRR(A1:A3,B1:B3), with corresponding real dates in column B. Microsoft’s XIRR documentation specifies date-based discounting on a 365-day year and a rate that makes XNPV zero. Do not label a periodic calculation “annual” if its periods are months; an effective annual equivalent is (1 + monthly rate)¹² − 1.
Why the highest percentage can mislead
A one-year investment of $100 returning $120 has a 20% rate and a $20 gain. Another of $10,000 returning $11,000 has a 10% rate and a $1,000 gain. Assuming an 8% discount rate, their NPVs are about $11.11 and $185.19, respectively. The smaller investment wins on percentage but not dollar surplus. This is arithmetic, not a recommendation: available capital, risk, timing, and whether you can undertake both matter.
Repeated sign changes create another problem. Annual flows of −$100, +$230, −$132 have two rates that make NPV zero: 10% and 20%. Flows of −$100, +$50, −$100 have no real solution for r greater than −100%. Positive and negative entries alone do not ensure a usable answer.
Microsoft warns that IRR can have multiple answers or none, and its iterative solver may return only one answer or an error. Check NPV at relevant required returns rather than treating a different starting guess as proof of economic merit.
Finally, distinguish the mathematical rate from ending wealth. The equation discounts specified payments; it does not guarantee an available reinvestment rate for interim receipts. If you need a terminal balance, model what those receipts actually earn. Microsoft’s MIRR function explicitly accepts financing and reinvestment rates for a different calculation.
Our cap-rate guide explains another percentage that should not be mistaken for a complete investment return.
Conclusion
A useful IRR calculation starts with complete cash flows and correct timing, then checks the answer against NPV, dollar scale, and risk. Use dated calculations when payments are irregular, investigate unusual roots, and never turn a modeled percentage into a promised outcome.
Frequently Asked Questions
Is a monthly IRR an annual return?
No. For equally spaced monthly cash flows, IRR gives a monthly rate. The effective annual equivalent is (1 + monthly rate)^12 − 1, not simply 12 times the rate. That conversion does not guarantee future earnings.
Can the result be negative?
Yes. Paying $1,000 now and receiving only $900 one year later gives an IRR of −10%. A negative answer is not automatically a spreadsheet error.
Does an Excel NUM error prove there is no IRR?
No. The iterative solver may fail to converge. Check signs, dates, missing periods, and guesses. Some sequences genuinely have no usable root, while others have more than one.
Should I enter borrowed money as a positive cash flow?
It depends on the question. An equity-investor model includes borrowing proceeds and debt payments in the investor's cash flows. An unlevered project model excludes financing flows. Mixing the two makes comparisons misleading.
Does IRR tell me how much I will have at the end?
Not by itself. Ending wealth also depends on what happens to interim receipts. Model their actual reinvestment or spending separately; the zero-NPV equation is not a promise that those receipts can earn the same rate.
Disclaimer: This article is for educational purposes only and is not financial advice. Consider your own situation and speak with a qualified professional before making financial decisions. How we write and review content.


