irr how to calculate

IRR Calculator

Enter your cash flows in order, starting with the initial investment (usually negative).

Example: -10000, 3000, 3500, 4000, 4500

What is IRR?

IRR (Internal Rate of Return) is the discount rate that makes the net present value (NPV) of a project equal to zero. In plain language, it is the annualized return rate implied by a stream of cash flows.

If your IRR is higher than your required return (or hurdle rate), the project may be worth doing. If it is lower, you typically reject it. Investors use IRR for real estate, startup investments, capital budgeting, and side-business decisions.

IRR formula and intuition

The equation solved by IRR is:

0 = C0 + C1/(1+r) + C2/(1+r)^2 + ... + Cn/(1+r)^n

Where:

  • C0 is the initial cash flow (often negative because it is an investment).
  • C1 ... Cn are later inflows/outflows.
  • r is the IRR you are solving for.

There is usually no simple algebraic shortcut for solving this equation when you have multiple periods. That is why calculators, spreadsheets, and iterative numerical methods are used.

How to calculate IRR step by step

1) List cash flows in time order

Example project:

  • Year 0: -10,000
  • Year 1: +3,000
  • Year 2: +3,500
  • Year 3: +4,000
  • Year 4: +4,500

2) Test discount rates and compute NPV

You try a rate (say 10%), discount each cash flow, and sum them. If NPV is still positive, try a higher rate. If NPV is negative, try a lower rate. Keep narrowing until NPV is near zero.

3) Use iterative methods

Professional tools use methods such as Newton-Raphson or bisection. The calculator above does this for you. It searches for the rate where the NPV crosses zero.

How to calculate IRR in Excel or Google Sheets

Regular periodic cash flows

Put cash flows in cells A1:A5 and use:

  • =IRR(A1:A5)

You can add a guess:

  • =IRR(A1:A5, 0.10)

Irregular dates

If dates are uneven, use XIRR:

  • =XIRR(values, dates)

This is important for real-world investments where money does not arrive on exact annual intervals.

How to interpret IRR correctly

  • Compare IRR to your cost of capital or required return.
  • Use IRR with NPV, not by itself, for stronger decisions.
  • Higher IRR is generally better, but project size matters too.
  • Short projects with high IRR can still create less total wealth than larger projects with slightly lower IRR.

Common mistakes when calculating IRR

  • Wrong sign convention: Initial investment should typically be negative.
  • Ignoring timing: Monthly and annual cash flows should not be mixed without adjustment.
  • Assuming one unique IRR: Non-conventional cash flows can produce multiple IRRs.
  • Using IRR alone: Always check NPV and practical risk assumptions.

IRR vs NPV: which should you trust?

If the two metrics disagree, many finance teams prioritize NPV because it directly measures value created in currency terms. IRR remains useful as a percentage return metric, especially for comparing opportunities and communicating performance.

Final takeaway

To calculate IRR, you need a timeline of cash flows and an iterative solver. Start with clean inputs, keep signs correct, and interpret IRR alongside NPV and risk. Use the calculator above for a quick answer, and spreadsheet tools for deeper modeling.

🔗 Related Calculators