Skip to content
Calculadora Capital

What are IRR and NPV and how are they calculated?

IRR and NPV tell you whether an investment creates value. NPV is the gain in today's euros; IRR is the annual return. It is worth it when the IRR beats the discount rate.

4 min readReviewed By Thorben Rasmus IdelReviewed by Nahar Geva

TL;DR

NPV (net present value) is the sum of future cash flows brought back to today's value, at a discount rate, minus the initial investment: if it is positive, the project creates value. IRR (internal rate of return) is the rate that makes the NPV zero, that is, the project's annual return: it is worth it when the IRR is higher than the discount rate. Payback says how long it takes to recover the investment and ROI measures the total gain. For example, 10,000 € returning 3,000 €/year for 5 years has an NPV of 2,988 € at 5%, an IRR of about 15.2% and a payback of 3.3 years.

IRR and NPV: what they are for

Before putting money into a project, a property to rent or a piece of equipment, the question is always the same: is it worth it? IRR (internal rate of return) and NPV (net present value) are the two numbers that answer it rigorously1. Both start from the same information: the initial investment and the cash flows the investment generates over the years. You can work them out on our IRR & NPV calculator.

NPV brings the future back to today

A euro received in five years is worth less than a euro today: it could have been invested in the meantime. NPV corrects for this, bringing each cash flow back to today's value with a discount rate and subtracting the investment:

NPV = minus the investment, plus the sum of each cash flow divided by (1 + rate) to the power of the year

If the NPV is positive, the investment earns more than the required rate and creates value. If it is negative, it falls below that bar. It is the same logic as the compounding of compound interest, but in reverse: instead of projecting a value into the future, it brings future values into the present.

IRR is the project's annual return

The IRR is the discount rate that makes the NPV exactly zero. In other words, it is the implied annual return of the investment. The decision rule is direct:

It is worth it when the IRR is higher than the discount rate (your cost of capital).

There is no closed formula for IRR: you search for the rate that zeroes the NPV by trial and error, something the calculator does for you. When the IRR is higher than the discount rate, the NPV is positive, the two numbers agree.

Payback and ROI: the complements

Two simpler numbers go alongside the analysis:

MetricWhat it measuresLimitation
PaybackYears to recover the investmentIgnores the time value of money
ROITotal gain divided by the investmentDoes not tell 2 years from 10 years

Payback is intuitive (how long until "I get back what I put in"), but it does not count what happens afterwards nor the time value of money. ROI (return on investment) measures the size of the gain, but a 50% ROI can be excellent over 2 years and mediocre over 20. That is why NPV and IRR are the main criteria and these two are the complement.

Worked example

Imagine a 10,000 € investment that generates 3,000 € a year for 5 years, with a discount rate of 5%:

  • sum of cash flows = 5 × 3,000 = 15,000 €, so the total ROI = (15,000 − 10,000) ÷ 10,000 = 50%;
  • bringing each 3,000 € back to today at 5%, the NPV = 2,988 € (positive, creates value);
  • the IRR is about 15.2%, well above the 5% required, so it pays off;
  • the payback is 3.3 years (the 10,000 € is recovered after three years and a third).

Because the IRR (15.2%) is well above the discount rate (5%), the NPV is positive and the investment creates value. See how it changes when you alter the cash flows or the rate on the IRR & NPV calculator.

The discount rate is your choice

The discount rate is not in the law: it is your cost of capital or the minimum return you require of the money. You can use the return of a safe alternative (a term deposit, savings certificates) or the cost of your financing. The higher the rate, the more demanding the calculation and the lower the NPV, so the choice of rate is decisive.

What this analysis does not include

The calculation assumes yearly, net, nominal cash flows. It does not handle taxation (income or corporate tax on the profit), nor inflation eroding the real value, nor a residual value at the end (selling the asset), nor the modified IRR (MIRR) used when intermediate flows are reinvested at another rate. To compare in real terms, use inflation-adjusted cash flows and a real discount rate too. Use the estimate to decide with confidence and confirm the figures with your accountant or adviser.

Common mistakes

  • Confusing IRR with ROI

    IRR is an annual return that accounts for when each cash flow arrives; ROI is the total gain divided by the investment, not spread across years. A 50% ROI over 5 years is not 50% a year.

  • Choosing by the shortest payback

    Payback ignores the time value of money and the cash flows after recovery. A project with a longer payback may have a better NPV and IRR; decide by NPV and IRR, use payback as a complement.

  • Using a discount rate that is too high or too low

    The discount rate is your cost of capital or the return you require. Too low a rate overvalues the project; too high a rate rejects good ones. Compare it with a safe alternative.

Frequently asked questions

What is IRR?
IRR (internal rate of return) is the discount rate that makes the NPV equal to zero, that is, the implied annual return of an investment. It is worth it when the IRR is above the discount rate you require.
What is NPV?
NPV (net present value) is the sum of future cash flows brought back to today's value, at a discount rate, minus the initial investment. A positive NPV means the investment earns more than the required rate and creates value.
What is the difference between IRR and NPV?
NPV gives the gain in today's euros at a rate you choose; IRR gives the return as a percentage, without choosing a rate. When the IRR is higher than the discount rate, the NPV is positive.
How do you calculate IRR?
There is no direct formula: you search for the rate that makes the NPV zero. Calculators and spreadsheets solve it numerically from the investment and the cash flows of each year.
What is payback?
It is the time it takes to recover the investment from the cumulative cash flows. With 10,000 € and 3,000 €/year, it is recovered after 3.3 years. It ignores the time value of money, so it is read alongside NPV and IRR.
Which discount rate should I use?
The discount rate is your cost of capital or the minimum return you require. You can use the return of a safe alternative (a term deposit, savings certificates) or the cost of your financing.

Sources

  1. 1.Todos Contam: financial education portalBanco de Portugal · retrieved 25 Jun 2026
  2. 2.IAPMEI: support for small and medium-sized businessesIAPMEI, Agency for Competitiveness and Innovation · retrieved 25 Jun 2026

Author / Reviewed by

Author

Thorben Rasmus Idel

Co-founder & writer

Co-founder of Calculadora Capital and the writer behind the methodology on every calculator and article. An entrepreneur and active investor, Thorben founded Idel Versandhandel GmbH, an international trading company operating across 16 countries, and invests across stocks, ETFs and cryptocurrency. He writes the methodology and verifies the math behind each page, drawing on hands-on business and investing experience to keep the tools and explanations grounded in how money, markets and taxes actually work for everyday people in Portugal.

Reviewed by

Nahar Geva

Co-founder & reviewer

Co-founder of Calculadora Capital and the independent reviewer behind every calculator and article. An entrepreneur and active investor, Nahar brings a data- and product-driven mindset together with hands-on experience in the markets — investing across stocks and ETFs as well as cryptocurrency and other digital assets, alongside broader personal finance and real estate. On each page Nahar reviews the methodology and double-checks the math and figures, pressure-testing how the tools and explanations hold up against the way money, markets and taxes actually work for everyday investors.

Published: Updated: Reviewed: