NPV calculator

An NPV calculator adds up what each future cash flow is worth today and subtracts the cost. A $16,000 machine that returns $2,000, $4,000 and then $5,000 a year for four years has a net present value of $2,835.62 at a 9% discount rate, and an IRR of 14.09%.

Calculator

Net present value

Cash flows at the end of each year; leave unused years blank

%
$

Cash flow each year (negative for a later outlay)

$
$
$
$
$
$
$
$
$
$

At a 9.00% discount rate the net present value is $2,835.62: positive, so at 9.00% the project earns more than the required return.

Net present value$2,835.62at 9.00%
IRR14.09%the rate where NPV = 0
MIRR12.00%inflows reinvested at 9.00%
Profitability index1.18PV of inflows ÷ PV of outflows
Discounted payback5.05 yearssimple payback 4.00 years

Spreadsheet check: =NPV(9.00%, year 1:year 6) − 16,000 = $2,835.62. Putting the year-0 outlay inside NPV() discounts it a year too and returns $2,601.49.

−$20K−$10K$0$10K0123456
  • Cash flow
  • Present value

NPV at other discount rates

5.00%$5,614.29
7.00%$4,155.52
9.00%$2,835.62
11.00%$1,638.36
13.00%$549.74
15.00%−$442.43
19.00%−$2,178.29
Discounted cash flow table
YearCash flowDiscount factorPresent valueCumulative PV
0−$16,000.001.0000−$16,000.00−$16,000.00
1$2,000.000.9174$1,834.86−$14,165.14
2$4,000.000.8417$3,366.72−$10,798.42
3$5,000.000.7722$3,860.92−$6,937.50
4$5,000.000.7084$3,542.13−$3,395.37
5$5,000.000.6499$3,249.66−$145.72
6$5,000.000.5963$2,981.34$2,835.62

Formula. NPV = −C0 + Σ CFt ÷ (1 + r)t for t = 1 … n. IRR is the r that makes NPV = 0; MIRR = (future value of inflows at r ÷ present value of outflows at r)1/n − 1.

On this page
  1. How the calculator works out NPV
  2. NPV and IRR
  3. MIRR, profitability index and discounted payback
  4. Choosing the discount rate
  5. Related calculators
  6. FAQ
  7. Sources

How the calculator works out NPV

The calculator discounts every cash flow back to today at the discount rate r and subtracts the initial investment: NPV = −C0 + CF1/(1 + r) + CF2/(1 + r)2 + … + CFn/(1 + r)n. A positive NPV means the project returns more than r; a negative NPV means it returns less.[1] The NPV formula guide works the same sum by hand, in Excel and with the annuity shortcut.

NPV=−C0 + Σ CFt(1 + r)t

Each term is a present value, the same discounting as the present value calculator applies to one sum. For the OpenStax example at 9%:

YearCash flowDiscount factor 1 ÷ 1.09tPresent valueCumulative
0−$16,000.001.0000−$16,000.00−$16,000.00
1$2,000.000.9174$1,834.86−$14,165.14
2$4,000.000.8417$3,366.72−$10,798.42
3$5,000.000.7722$3,860.92−$6,937.50
4$5,000.000.7084$3,542.13−$3,395.37
5$5,000.000.6499$3,249.66−$145.72
6$5,000.000.5963$2,981.34$2,835.62

The present values of the inflows add up to $18,835.62; less the $16,000 cost, the NPV is $2,835.62. OpenStax prints $2,835.63 in section 16.2 and $2,835.62 in 16.4: the cent is rounding.[1][3]

NPV and IRR

The internal rate of return (IRR) is the discount rate at which NPV is exactly zero. If the IRR is above your required return, NPV at that return is positive, and the two methods agree on accepting a single project.[2] The machine's IRR is 14.09%, which is why its NPV at 14% is only $42.29: almost zero. The calculator finds every IRR between −99% and 1,000% by checking where the NPV changes sign; for monthly or dated cash flows and separate MIRR rates, use the IRR calculator.

Two cautions from the textbook. First, cash flows that change sign more than once can have more than one IRR: −350, +950, −620 has IRRs of 9.18% and 62.25%, so "accept if IRR is above the cost of capital" gives no clear answer (try the "Two IRRs" example).[2] Second, when you must pick one of two projects, choose the higher NPV, not the higher IRR, because NPV measures the dollars a project adds and IRR ignores scale.[4]

MIRR, profitability index and discounted payback

The calculator also reports three measures from OpenStax section 16.4, each checked against its worked example:[3]

MeasureHow it is calculatedOpenStax exampleThis calculator
Profitability indexPV of inflows ÷ PV of outflows; accept above 118,836 ÷ 16,000 = 1.181.18
Discounted paybackYears until the cumulative discounted cash flow turns positive5 + 145.72 ÷ 2,981.34 = 5.05 years5.05 years
Simple paybackSame, without discounting (shorter, so it flatters the project)4 years4.00 years
MIRRGrow inflows to year n at r, then the rate that turns the outlay into that sum12%12.00%

For MIRR the inflows compounded to year 6 at 9% total $31,589.22 (OpenStax prints $31,595.22; adding its own five compounded terms gives $31,589.22). Either way ($31,589 ÷ $16,000)1/6 − 1 rounds to 12.00%. MIRR assumes inflows are reinvested at the discount rate instead of at the IRR, which is why it is lower than the 14.09% IRR.

Choosing the discount rate

The discount rate is the return you give up by putting money into this project instead of an alternative with similar risk. For a business it is usually the cost of capital. For money that is nearly certain, a Treasury yield for the same term is a floor: the latest 52-week bill auction (October 27, 2026) gave 4.496%.[6] Riskier cash flows deserve a higher rate. The table under the result shows NPV at other rates, so you can see how sensitive the decision is.

Common mistakesPutting the year-0 outlay inside Excel's NPV() range: the function treats its first value as one period away, so =NPV(9%, -16000, 2000, …) returns $2,601.49 instead of $2,835.62. Use =NPV(9%, year 1 … year n) − 16000. Also: mixing monthly cash flows with an annual rate, and counting money already spent (a sunk cost) as part of C0.

To discount a single future sum use the present value calculator; to solve any of N, rate, PV, payment or FV, the time value of money calculator; to measure what an investment actually returned, the rate of return calculator; for growth between two values, the CAGR calculator.

Frequently asked questions

How do you calculate NPV?

Discount each future cash flow by (1 + r)t, add them up and subtract the initial investment. $16,000 returning $2,000, $4,000 and four years of $5,000 has an NPV of $2,835.62 at 9%.

What does a negative NPV mean?

The project returns less than the discount rate you required. It may still make money in total, but less than the alternative the rate stands for.

What is the difference between NPV and IRR?

NPV is a dollar amount at a rate you choose; IRR is the rate at which NPV is zero. They agree on a single project with normal cash flows. For competing projects, OpenStax recommends the higher NPV.

What is a good profitability index?

Above 1: the present value of what comes in exceeds the present value of what goes out. The example's index is 1.18, so each dollar invested returns $1.18 in today's money.

Why does Excel give a different NPV?

Excel's NPV function assumes the first value in its range comes one period from now. Leave the year-0 outlay out of the range and subtract it separately.

Sources

  1. Principles of Finance, 16.2 Net Present Value (NPV) Method · OpenStax, Rice University, accessed November 15, 2026
  2. Principles of Finance, 16.3 Internal Rate of Return (IRR) Method · OpenStax, Rice University, accessed November 15, 2026
  3. Principles of Finance, 16.4 Alternative Methods (profitability index, discounted payback, MIRR) · OpenStax, Rice University, accessed November 15, 2026
  4. Principles of Finance, 16.5 Choosing between Projects · OpenStax, Rice University, accessed November 15, 2026
  5. Principles of Finance 2e, 7.3 Methods for Solving Time Value of Money Problems · OpenStax, Rice University, accessed November 13, 2026
  6. Auctioned securities: Treasury bills, last 60 days (auction results) · TreasuryDirect, Bureau of the Fiscal Service, results through November 18, 2026