1. Home
  2. Calculators
  3. NPV and IRR Calculator

NPV and IRR Calculator

For anyone judging an investment, equipment purchase or project by the cash it returns over time.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use NPV and IRR Calculator

  1. Enter your numbers, or press a sample to see an example.
  2. Read the results and the table under them.
  3. Copy the results or download the table as a CSV file.

Features

  • NPV at your discount rate with period 0 undiscounted
  • IRR nearest zero, with a warning when several exist
  • Payback and discounted payback with fractions of a period
  • Profitability index
  • Table of discount factors and present values

Supported formats

Input

  • Typed lines
  • Pasted text

You get

  • On-screen results
  • CSV

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the NPV and IRR Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • The first cash flow is treated as time 0 and is not discounted, unlike a spreadsheet NPV function.
  • When cash flows change sign more than once there can be several IRRs; the one nearest zero is shown.

Guide

Net present value and IRR: judging a project by the cash it returns over time

A rupee or a dollar received in five years is worth less than one received today, because today’s money can be invested, and because the future is uncertain. Net present value puts every cash flow of a project on the same footing by discounting it back to today, then adds them up. If the total is positive, the project returns more than the discount rate you chose. This page also finds the internal rate of return, the payback time and the profitability index.

How the numbers are built

Enter a discount rate for one period, usually a year, and the cash flows one per line, starting with today. Money out is negative. Each flow is multiplied by a discount factor of 1 ÷ (1 + rate)^period, and the page lists the factor, the present value and a running total. The sum is the NPV. The IRR is the rate at which that sum would be zero.

Why period 0 is not discounted

A spreadsheet NPV function treats its first value as arriving one period from now. Most project appraisals instead put the initial investment at the start, which is period 0, and discount only what follows. The page follows the second convention and says so in a note. If you compare with a spreadsheet, add the first flow separately, or the answers will differ by a whole period of discounting.

A worked example

The default is an equipment purchase: 100,000 out today, then 30,000, 35,000, 40,000, 45,000 and 25,000 in the next five years, at a 10% discount rate. The present values run from 27,272.73 in year 1 to 15,523.03 in year 5, and the running total ends at 32,509.58. That is the NPV. The IRR is 21.86%, well above 10%. Payback is 2.88 periods, because the undiscounted total turns positive in the third year, and discounted payback is 3.45 periods. The profitability index is 1.33, from 175,000 coming in against 100,000 going out. A second sample puts 50,000 into a project paying 8,000 for four years at 8%: the NPV is minus 23,502.99, the IRR is minus 15.74% and the payback is never reached.

When there are several IRRs

If the cash flows change sign more than once, for example a clean-up cost at the end of a mine’s life, the NPV can cross zero at more than one rate. The sample “Cash cost at the end” uses minus 1,000, plus 2,300 and minus 1,320, which has IRRs of 10% and 20%. The page shows the one nearest zero and lists both in a warning. In that case rely on the NPV at your own discount rate, which is unambiguous: at 15% it is a small positive 1.89.

Edge cases

At least two flows are needed, and at most 200. Brackets count as negative, so (100) is minus 100. A project with only inflows or only outflows has no IRR, and the page says “not defined”. A discount rate of zero gives the plain sum of the flows. Rates below minus 99% are rejected.

Limits

NPV and IRR assume that the cash flows are certain and arrive at the end of each period, and that money received can be reinvested at the discount rate. Real projects have risk, delays and taxes, none of which are modelled. Payback ignores everything after it, so it can favour a quick small win over a better long project. Use the page to compare options on equal terms, not to predict.

Checked against the current version of the NPV and IRR Calculator on .

Troubleshooting

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

Why does the page show a profitability index as well?

It divides the present value of the money coming in by the present value of the money going out. A value of 1.33 means each unit invested returns 1.33 in today’s money, which helps when you must rank projects of different sizes and cannot fund them all.

What discount rate should I use?

Use the return you could earn on something of similar risk, or the cost of the money you are borrowing. A higher rate makes later cash worth less and lowers the NPV, so try a few rates to see how sensitive the answer is.

Why does my spreadsheet NPV give a different number?

A spreadsheet NPV function discounts its first value by one full period. This page treats the first cash flow as today, which is how most textbooks and decision rules use it.

Can a project have more than one IRR?

Yes, when the cash flows change sign more than once, for example a clean-up cost at the end. The page lists the rates it finds and warns you, because NPV is the safer guide then.

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.