This NPV calculator finds the net present value of a project from a discount rate, an initial investment and a list of cash flows by period. Along with NPV it returns the IRR, the profitability index, simple and discounted payback, and a present value table you can copy into your homework.
The guide below covers how to calculate NPV with the formula, three problems worked by hand, how to read the results, and the Excel NPV() mistake that gives a wrong answer on a surprising number of finance assignments.
How to Find NPV with the Calculator
- Enter the discount rate. Use the required return or cost of capital from your problem, as a percentage. For a company project this is often the firm's WACC.
- Enter the initial investment. Type it as a positive number; the NPV calculator treats it as a cash outflow at time 0.
- Add the cash flows by period. One row per period, up to 60 rows. The rate must match the period length, so use a monthly rate with monthly cash flows. Enter a negative number for any later outflow, such as a refit in year 3.
- Check the timing toggle. The default, t=1, places the first cash flow at the end of period 1, which is the standard convention in finance textbooks. Switch to t=0 only when the first cash flow arrives at the same moment as the investment.
- Read the results. NPV, IRR, the profitability index and both payback periods update as you type, with an accept or reject note under them. An Excel panel shows the correct =NPV(r, CF1:CFn)+CF0 formula for your numbers next to the wrong result you get by putting the time 0 flow inside NPV().
The NPV Formula and Its Variables
Net present value is the present value of every future cash flow minus the cost of the investment today:
NPV = −C0 + CF1/(1 + r)^1 + CF2/(1 + r)^2 + … + CFn/(1 + r)^n
- C0 is the initial investment at time 0, which isn't discounted.
- CFt is the net cash flow at the end of period t.
- r is the discount rate per period, written as a decimal.
- n is the number of periods.
- 1/(1 + r)^t is the discount factor, the value today of one dollar received at time t.
The decision rule in OpenStax Principles of Finance, section 16.2, is short: accept a project with a positive NPV, reject one with a negative NPV. A positive NPV is the amount by which the project is expected to raise the value of the firm.
The Other Results the Calculator Shows
| Measure | How It Is Found | Accept When |
|---|---|---|
| NPV | PV of inflows minus the initial investment | NPV > 0 |
| IRR | The discount rate that makes NPV exactly zero | IRR > required return |
| Profitability index (PI) | PV of the later cash flows ÷ the net outlay at time 0 | PI > 1 |
| Simple payback | Years until undiscounted cash flows repay the cost | Shorter than the firm's cutoff |
| Discounted payback | Years until discounted cash flows repay the cost | Shorter than the firm's cutoff |
Both payback figures are interpolated within the year that crosses zero, which assumes the cash arrives evenly through that period.
NPV, IRR and PI agree on accept or reject for a normal project, one outflow followed by inflows. They can disagree when you rank two projects against each other, and then NPV is the measure to follow. That is why this net present value calculator puts NPV first and the other measures beneath it.
Three NPV Problems Worked by Hand
Each example shows how to find NPV one step at a time, so you can match your own working line by line against the NPV calculator.
Example 1: A Four-Year Project at 8%
A machine costs 10,000 and is expected to bring in 3,000, 4,000, 5,000 and 2,000 over the next four years. The required return is 8%.
| Year | Cash Flow | Discount Factor at 8% | Present Value | Cumulative PV |
|---|---|---|---|---|
| 0 | −10,000 | 1.0000 | −10,000.00 | −10,000.00 |
| 1 | 3,000 | 0.9259 | 2,777.78 | −7,222.22 |
| 2 | 4,000 | 0.8573 | 3,429.36 | −3,792.87 |
| 3 | 5,000 | 0.7938 | 3,969.16 | 176.29 |
| 4 | 2,000 | 0.7350 | 1,470.06 | 1,646.35 |
- NPV = 11,646.35 − 10,000 = 1,646.35, so accept.
- IRR = 15.32%, well above the 8% required return.
- Profitability index = 11,646.35 ÷ 10,000 = 1.16.
- Simple payback: 7,000 is recovered after two years, leaving 3,000 of the 5,000 in year 3, so 2 + 3,000/5,000 = 2.6 years.
- Discounted payback: 2 + 3,792.87/3,969.16 = 2.96 years.
Enter a 10,000 investment, the four cash flows and an 8% rate, and the NPV calculator returns the same five figures.
Example 2: Checking a Textbook Answer
OpenStax's Sam's Sporting Goods example has a 16,000 embroidery machine returning 2,000 in year 1, 4,000 in year 2 and 5,000 in each of years 3 through 6, with a 9% cost of funds. The present values add up to 18,835.62, so NPV is 2,835.62. The book prints 2,835.63 because it rounds each present value to the cent before adding; the calculator carries full precision. The PI is 1.18, the simple payback is exactly 4 years, and the discounted payback is 5 + 145.72/2,981.34 = 5.05 years, the same figures the textbook reports.
Example 3: Cash Flows at the Start of Each Period
Take Example 1 again, but assume each inflow arrives at the beginning of its year, so the 3,000 comes in at time 0 alongside the cost. Every present value moves one period earlier and grows by a factor of 1.08. NPV rises to 2,578.06. Switching the timing toggle to t=0 gives this result, because the first listed cash flow is then left undiscounted.
The Excel NPV() Pitfall
Excel's NPV function is not the textbook NPV. Microsoft's documentation states that the NPV investment "begins one period before the date of the value1 cash flow," which means Excel discounts the first number in your list by one full period. If you put the initial investment inside the function, Excel treats it as if it were paid a year from now.
With Example 1 in cells, the common mistake and the fix look like this:
| Formula | Result | Correct? |
|---|---|---|
| =NPV(8%, −10000, 3000, 4000, 5000, 2000) | 1,524.40 | No. Every flow is discounted one extra year. |
| =NPV(8%, 3000, 4000, 5000, 2000) − 10000 | 1,646.35 | Yes. The year 0 cost stays outside. |
The wrong answer is always the true NPV divided by (1 + r): 1,646.35 ÷ 1.08 = 1,524.40. Microsoft's own example follows the same pattern, adding a 40,000 cost outside the function to get 1,922.06; put the 40,000 inside NPV() and the answer drops to 1,779.69. If your spreadsheet and this NPV calculator disagree by exactly that factor, the initial investment is inside the brackets. Two related traps: Excel's NPV needs equally spaced periods, and the XNPV function is the one to use when cash flows land on irregular dates. More spreadsheet questions like this one are covered under Excel homework help.
Interpreting NPV, IRR and Payback
An NPV of 1,646.35 doesn't mean the project earns 1,646.35 in profit. It means that after paying back the 10,000 and earning the full 8% required return on it, the project still leaves 1,646.35 in today's money for the owners. An NPV of zero is a project that earns exactly the required return, nothing more.
- NPV falls as the rate rises. In the OpenStax example, NPV is 2,836 at 9%, about 42 at 14%, and negative at 21%. The rate where it crosses zero is the IRR.
- The discount rate drives everything. If you aren't sure what rate to use, the WACC calculator finds a firm's cost of capital from its equity, debt and tax rate.
- Payback ignores later cash flows. A project with a fast payback and nothing afterward can have a lower NPV than a slower one, so treat payback as a liquidity check.
- Watch for more than one IRR. When the cash flows change sign more than once, a project can have two IRRs or none. A project costing 100 that returns 230 in year 1 and then needs 132 in year 2 has an NPV of zero at both 10% and 20%. The calculator lists every IRR it finds and adds a warning, and NPV at your required rate still gives one clear answer.
Common Mistakes When You Calculate Net Present Value
- Discounting the initial investment. A cost paid today has a discount factor of 1.
- Using an annual rate with monthly cash flows. Convert the rate to a monthly one, or the result is far too low.
- Typing 8 instead of 0.08 in a hand formula. The calculator takes percentages, but Excel and hand work need decimals or the % sign.
- Leaving out salvage value or working capital. Money recovered at the end belongs in the last year's cash flow.
- Counting sunk costs. A market study already paid for doesn't change with the decision, so it stays out.
- Ranking by IRR. For mutually exclusive projects of different sizes, the higher IRR can belong to the smaller NPV.
Capital budgeting cases often combine all of this with depreciation tax shields and changes in working capital. If one has you stuck, you can get finance homework help and work through the cash flow build-up with a tutor, or use accounting homework help when the problem starts from income statement figures.