NPV & IRR Calculator

Calculate the Net Present Value (VPL) and Internal Rate of Return (TIR) from a series of cash flows.

Informational content. This tool does not replace advice from a qualified professional. Use the results as a reference only.

How to use

  1. Enter the cash flows, one per line — the first is usually negative (the investment). Each line is one period.
  2. Set the discount rate to see the NPV. The IRR is calculated automatically.
  3. A positive NPV means the project earns more than the discount rate. The IRR is the rate that would make the NPV exactly zero.

About this tool

NPV sums the present values of a stream of cash flows. A positive NPV means the project earns more than the discount rate you chose; zero means it earns exactly that rate; negative means it falls short. The discount rate is what your money would earn elsewhere — the opportunity cost — and the NPV tells you whether this project beats that alternative.

IRR is the discount rate that makes the NPV zero. If the IRR exceeds your required return, the project adds value. If the IRR is below it, the project does not earn enough to justify the risk. IRR is found numerically here by Newton-Raphson iteration, which converges quickly for well-behaved cash flows but can fail for unconventional ones — multiple sign changes, for instance, can produce multiple IRRs.

Both metrics assume cash flows happen at equal intervals and that interim flows can be reinvested at the discount rate (NPV) or at the IRR itself (IRR). That reinvestment assumption is the classical criticism of IRR. Everything runs in your browser: no data is transmitted.

The formula

NPV = Σ (cash flow at period t) / (1 + rate)^t, for t = 0 to n. IRR = the rate r such that NPV(r) = 0, found by Newton-Raphson: r(n+1) = r(n) − NPV(r(n)) / NPV′(r(n)).

Frequently asked questions

What is VPL?

VPL stands for Valor Presente Líquido, the Brazilian term for Net Present Value (NPV). It is the sum of all cash flows discounted to the present.

What is TIR?

TIR stands for Taxa Interna de Retorno, the Brazilian term for Internal Rate of Return (IRR). It is the discount rate that makes the NPV exactly zero.

Why does it say "could not be calculated"?

The IRR calculation failed to converge. This usually happens with unconventional cash flows — when the sign changes more than once, there can be multiple IRRs or none at all.

Should I use NPV or IRR?

NPV, when in doubt. It gives a dollar amount, not a percentage, so it does not mislead when comparing projects of different sizes. IRR is useful for communication — "this project returns 18%" is easier to grasp — but NPV is the better decision criterion.

Does my data leave my browser?

No. All calculations run in JavaScript on your device.

Related tools

Long links? Shorten them for free

Vai.la turns any URL into a short link with click statistics, QR Code and your own biolink.

Vai.la is not responsible for how the tools are used or for decisions made based on their results.