Skip to content

NPV calculator and net present value formula

Net present value is what future cash flows are worth today. Divide each future cash flow by (1 + r) to the power of its year, add them up, then take off what you pay now. Five yearly receipts of $3,000 against a $10,000 cost give an NPV of $1,978.13 at 8 percent.

Net present value

$1,978.13

At 8.00% the cash covers the cost and the return you asked for, with this much left over in today's money.

5 years of cash, valued today
$11,978.13
Cost today, not discounted
-$10,000.00
Net present value
$1,978.13

What each year is worth today

YearCash flowValue today
0-$10,000.00-$10,000.00
1$3,000.00$2,777.78
2$3,000.00$2,572.02
3$3,000.00$2,381.50
4$3,000.00$2,205.09
5$3,000.00$2,041.75
$
$
yr
%

What the same money could earn in its next best use.

The formula

NPV=t=0nCFt(1+r)tNPV = \sum_{t=0}^{n} \frac{CF_t}{(1+r)^t}

CFtCF_t is the cash flow in year tt, rr is the discount rate as a decimal, and nn is the last year. At t=0t = 0 the divisor is 1, so money paid or received today is not discounted.

What this calculator works out

Enter what the project costs today, the cash it returns each later year, how many years it runs and the rate you discount at. The result is the net present value: everything the project pays in the future, valued in today's money, minus what it costs now.

The table under the result shows the working year by year. Each year's cash is divided by (1+r)t(1+r)^t, so the same $3,000 counts for less every year further out. Watch the bottom rows as you raise the rate. Distant money is where the value drains away, and it is the part people miss when they judge a project on total cash received.

The net present value formula

NPV=t=0nCFt(1+r)tNPV = \sum_{t=0}^{n} \frac{CF_t}{(1+r)^t}

Read it one year at a time. Cash arriving tt years out is divided by (1+r)t(1+r)^t, the discount factor for that year. At 8 percent the factor for year 1 is 1/1.08=0.92591/1.08 = 0.9259, for year 2 it is 1/1.082=0.85731/1.08^2 = 0.8573, and by year 5 it is down to 0.68060.6806. Multiply each year's cash by its factor, add the results, subtract the cost.

The cost sits at t=0t = 0. Its divisor is (1+r)0=1(1+r)^0 = 1, so it is already in today's money and enters at full size with a minus sign in front of it.

When every year pays the same amount there is a shortcut, the annuity factor 1(1+r)nr\frac{1 - (1+r)^{-n}}{r}. At 8 percent over five years that factor is 3.992710, and $3,000 times 3.992710 is the same $11,978.13 the year-by-year sum produces. Round the factor to 3.9927 first and the product comes out three cents light, which is why the digits you carry are part of the answer. The shortcut saves typing; it does not change the arithmetic.

The discount rate is the whole argument

The rate is not a quote you look up. It is the return the same money could earn in its next best use at similar risk, which is why two people can study one project, do the arithmetic correctly, and still disagree.

Raising the rate shrinks NPV on any project that spends first and collects later, and it hits the far years hardest. The five-year project worth $1,978.13 at 8 percent is worth $814.33 at 12 percent, less than half as much, without a cent of the cash flows changing. The exception is a project carrying a large cost in a late year, a mine to fill in or a plant to strip out: the higher rate discounts that cost too, so it can lift the NPV rather than cut it.

Push the rate high enough and NPV crosses zero. That crossing point is the internal rate of return, which the IRR calculator solves for. The two measures are one equation asked in opposite directions: NPV fixes the rate and returns a value, IRR fixes the value at zero and returns a rate.

Discounting is compounding run backwards. The same growth factor that turns money into a bigger number in the compound interest calculator is the divisor here.

Reading the answer

A positive NPV means three things at once: the project returns the outlay, it pays the rate you demanded on every year the money is tied up, and there is a surplus left over. The number is that surplus, measured in today's money.

A negative NPV does not mean the project loses cash. It means the cash comes back too slowly, or too small, to clear the return you asked for. Zero is the honest boundary, where the project earns your rate exactly and nothing more.

Two projects only compare this way if they are measured in the same money over the same span. Cash flows written in today's prices need a discount rate with inflation stripped out; cash flows that already include price rises need one that includes it. The real return calculator converts between the two.

Worked examples

A \$10,000 machine paying \$3,000 a year for five years

A machine costs $10,000 today and brings in $3,000 at the end of each of the next five years. You want 8 percent a year on money tied up like this. Is it worth buying?

  1. Write the series with the cost at time zero: minus $10,000 now, then $3,000 in each of years 1 to 5.
  2. Discount each receipt by (1.08)t(1.08)^t: 3000/1.08=2777.783000/1.08 = 2777.78, 3000/1.082=2572.023000/1.08^2 = 2572.02, 3000/1.083=2381.503000/1.08^3 = 2381.50, 3000/1.084=2205.093000/1.08^4 = 2205.09, 3000/1.085=2041.753000/1.08^5 = 2041.75.
  3. Add the five present values: $11,978.13.
  4. The cost is at year zero, so it is not discounted. Subtract it whole: $11,978.13 minus $10,000.

The NPV is $1,978.13. Every year of cash has already been charged 8 percent for the waiting, and $1,978.13 of value is still left over in today's money, so the machine clears the bar you set.

The same machine at a 12 percent required return

Same $10,000 cost, same five receipts of $3,000, but the money could now earn 12 percent elsewhere. What happens to the answer?

  1. Only the divisor changes. Each receipt is divided by (1.12)t(1.12)^t rather than (1.08)t(1.08)^t.
  2. Every year pays the same amount, so use the annuity factor: 3000×11.1250.12=3000×3.6047763000 \times \frac{1 - 1.12^{-5}}{0.12} = 3000 \times 3.604776.
  3. That values the five receipts at $10,814.33 today.
  4. Subtract the same undiscounted $10,000 cost.

The NPV falls to $814.33. Four points on the discount rate cut the surplus by more than half, from $1,978.13 to $814.33, and the late years take most of the damage: year 5 now gets divided by 1.12 five times over. The project still clears the bar, with much less room.

The same total cash, arriving later

A second $10,000 project pays $1,000 in year 1, $2,000 in year 2, $3,000 in year 3, $4,000 in year 4 and $5,000 in year 5. Over the five years it hands back exactly as much cash as the machine above. Discount at 8 percent.

  1. The amounts differ, so there is no annuity shortcut. Discount each year on its own.
  2. 1000/1.08=925.931000/1.08 = 925.93, 2000/1.082=1714.682000/1.08^2 = 1714.68, 3000/1.083=2381.503000/1.08^3 = 2381.50, 4000/1.084=2940.124000/1.08^4 = 2940.12, 5000/1.085=3402.925000/1.08^5 = 3402.92.
  3. Add them: $11,365.14 in today's money.
  4. Subtract the $10,000 cost, undiscounted as before.

The NPV is $1,365.14, against $1,978.13 for the level machine. Same cost, same five years, the same cash in total, and less value, because the bulk of it arrives late and every late year carries a bigger divisor. Timing is not a detail in this calculation, it is the calculation.

The mistake that flips the answer

Discounting the money you spend today.

The outlay sits at t=0t = 0 and is already in today's money. Divide it by (1+r)(1+r) anyway and, at an 8 percent rate, you shrink the cost by about 7.4 percent. Every dollar shaved off the cost lands straight in NPV, so the surplus does not grow by 7.4 percent, it grows by about 37 percent on the machine above. That is enough to turn a rejection into an acceptance on a marginal project. Year zero means no discounting at all.

The second mistake hides better and costs more: a discount rate that does not match the cash flows. Forecast the cash in today's prices, then discount at a rate that has inflation built into it, and you charge for inflation on the way out without ever adding it on the way in. Long projects then look far worse than they are, and the error grows with every extra year.

One habit catches both. Write the series out with a year number against every figure, year zero included, before you divide anything.

Common questions

What discount rate should I use?

The return the same money could earn in its next best use at similar risk. A company usually uses its cost of capital. A person might use the rate on debt they would otherwise pay down. Riskier cash flows deserve a higher rate, and the choice matters more the longer the project runs.

Does a negative NPV mean the project loses money?

No. It means the cash does not come back fast enough or large enough to earn the rate you asked for. A project can return more cash than it cost and still show a negative NPV, because the surplus is smaller than what the money would have earned elsewhere over the same years.

When are the cash flows assumed to arrive?

At the end of each year, which is the standard convention and the one this calculator uses. Money arriving at the start of a year is discounted one period less, so it is worth slightly more. The cost at time zero is not discounted at all.

Keep reading

This page is educational material, not financial advice. The figures come from the formula shown and assume the inputs you enter hold for the whole term. Your own rate, fees, taxes and timing will differ, so treat the output as arithmetic to check a decision against, not as a recommendation.