Finance guide · Capital budgeting

How to calculate NPV, step by step

Net present value is the sum of a project's cash flows, each discounted back to today at the required return, minus the cost of the project. If NPV is above zero the project earns more than the required return, so accept it. If it is below zero, reject it.

The formula in plain words

NPV adds up what a project is worth today. You take each future cash flow, divide it by 1 plus the discount rate raised to the number of years until you receive it, and add the results together. Then you subtract what you pay at the start. The discount rate is the return you require for taking on this much risk.

Formula

NPV = CF0 + CF1/(1+r) + CF2/(1+r)^2 + ... + CFn/(1+r)^n, where CF0 is the amount you pay today, entered as a negative number.

A worked example

A company can buy a machine for $250,000 today. It expects the machine to bring in $80,000, $95,000, $110,000, and $60,000 at the end of years 1 through 4. The company requires a 9% return on projects like this one. Is the machine worth buying?

Each cash flow discounted at 9%. Present values use unrounded factors, so small rounding differences are normal.
YearCash flowDiscount factorPresent value
0-$250,0001.0000-$250,000.00
1$80,0000.9174$73,394.50
2$95,0000.8417$79,959.60
3$110,0000.7722$84,940.18
4$60,0000.7084$42,505.51
NPV$30,799.79

The four present values add up to $280,799.79. Subtract the $250,000 paid today and the NPV is $30,799.79. It is positive, so at a 9% required return the machine is worth buying.

Check it against IRR and payback

The same cash flows at three different discount rates.
Required returnNPVDecision
9%$30,799.79Accept
12%$13,588.90Accept
15%-$1,969.15Reject

NPV falls as the required return rises. It crosses zero between 12% and 15%, and the exact crossing point is the internal rate of return, which here is 14.60%. Because 14.60% is above the 9% requirement, IRR and NPV agree. When projects compete with each other, or when the cash flows change sign more than once, the two can disagree, and NPV is the one to trust.

Payback for this machine is about 2.68 years. The cumulative cash flow is still negative at the end of year 2 (-$75,000) and positive at the end of year 3 (+$35,000), so payback lands partway through year 3. Payback is quick to compute, but it ignores the time value of money and any cash that arrives after the payback point.

The same five steps every time

  1. Put the cash flows on a timeline. Cash you pay is negative and cash you receive is positive.
  2. Decide the discount rate. It should match the risk of this project, not the interest rate on a loan.
  3. Discount each cash flow by the number of years until it arrives. Year 0 is not discounted.
  4. Add everything up, including the negative cost at the start.
  5. Compare to zero. Above zero accept, below zero reject, and exactly zero means you earn the required return and no more.

Mistakes that cost points on exams

  • Discounting the initial cost. Money you pay today is already in today's dollars, so year 0 gets a factor of 1.
  • Using the wrong rate, such as the interest on a loan or a company-wide rate for a project with different risk.
  • Losing the negative sign on the initial investment, which makes every project look wonderful.
  • Counting sunk costs. Money already spent does not change the decision and does not belong in the cash flows.
  • Mixing timing. Most textbook problems put each cash flow at the end of the year unless the question says otherwise.
Questions

Quick answers.

What does a negative NPV mean?

The project earns less than your required return. It does not always lose money. It means the cash flows are not enough to pay you for the risk and the waiting.

Do I discount the initial investment?

No. The amount you pay today is already a present value, so it enters the sum as a negative number with no discounting.

Which discount rate should I use?

Use the return investors require for a project with this level of risk. In many courses that is the company's WACC, unless the problem gives you a different rate or the project is riskier than the company overall.

Why trust NPV over IRR?

NPV measures the value created in dollars and always uses the discount rate you set. IRR can give several answers when cash flows change sign more than once, and it can rank projects in the wrong order.

Keep going

Bring the problem you missed.

Send me the question or your last exam and I will work through it with you, one-on-one on Zoom. Private sessions with Chi are $250 an hour.

Book a session →