iLearnFintech Glossary Formulas Cases Sandboxes
Corporate finance/Investment decisions

Net present value (NPV)

8 min readCoreUpdated December 2026
In short

Net present value adds up everything a project will pay in today's money and subtracts what it costs. A positive NPV means the project earns more than the return you require, so it creates value.

What it is

A company has more ideas than money. It needs a way to decide which projects are worth doing. NPV is the standard answer.

You estimate every cash flow the project will bring, discount each one back to today, and subtract the investment. The discount rate is the return investors could get elsewhere for the same risk, often called the cost of capital or required return.

The internal rate of return (IRR) is the discount rate that makes NPV exactly zero. It is the project's own yearly return.

The intuition

NPV answers one simple question: if we do this project, how much richer do we get, measured in today's money?

A positive NPV means the project beats the alternative of investing the money elsewhere at the required return. A negative NPV means investors would be better off if you gave them the money back.

The math

\[NPV = -C_0 + \sum_{t=1}^{T} \frac{CF_t}{(1+r)^t}\]
\[0 = -C_0 + \sum_{t=1}^{T} \frac{CF_t}{(1+IRR)^t}\]

Where

\(C_0\)
The investment today
\(CF_t\)
Cash flow in year t
\(r\)
Discount rate: the required return for this level of risk
\(IRR\)
Internal rate of return: the rate where NPV is zero

In words: Do the project if NPV is above zero. In simple cases that is the same as saying: do it if the IRR is above the required return.

An example

A machine costs $50,000 and saves $14,000 a year for 5 years. The required return is 8%.

Discount ratePV of savingsNPV
8%$55,898+$5,898
12%$50,467+$467
13%$49,241−$759

At 8% the machine creates $5,898 of value. NPV turns negative somewhere between 12% and 13%. The exact IRR is 12.4%.

Note that the plain sum of savings is $70,000. Without discounting, the project looks much better than it is.

Try it yourself

The curve shows the project's NPV at every discount rate. Where it crosses zero is the IRR. Move the sliders and see when the project turns from value-creating to value-destroying.

In Python

NPV is one line. IRR has no formula, so we search for the rate where NPV is zero.

def npv(rate, c0, cash_flows):
    return -c0 + sum(cf / (1 + rate) ** t for t, cf in enumerate(cash_flows, start=1))

def irr(c0, cash_flows, lo=-0.99, hi=10.0):
    for _ in range(200):          # bisection: halve the interval each time
        mid = (lo + hi) / 2
        if npv(mid, c0, cash_flows) > 0:
            lo = mid
        else:
            hi = mid
    return mid

flows = [14_000] * 5
print(round(npv(0.08, 50_000, flows)))      # 5898
print(round(irr(50_000, flows) * 100, 2))   # 12.38

Think about it

A project has an NPV of +$2 million at an 8% discount rate. The chief executive wants to reject it, because its payback period is 7 years and "that is too long". Who is right?

Show a model answer

If the discount rate is right and the cash flow forecasts are honest, the NPV says the project creates $2 million of value. The payback rule would throw that value away. Payback ignores everything after the cut-off and the time value of money. But there may be a real worry behind the rule: forecasts far ahead are less reliable, and cash may be tight. It is better to test the NPV with lower forecasts and a higher rate than to fall back on payback.

Reading the result

NPV is only as good as the cash flow forecast and the discount rate behind it.

Good signs

  • Cash flows include taxes, maintenance and extra working capital
  • The discount rate fits the project's risk, not the company's average
  • You test what happens if sales are lower or costs higher

Watch out

  • Counting money already spent (sunk costs) as part of the decision
  • Optimistic forecasts that make every project look positive
  • Choosing between projects by IRR alone: a small project can have a high IRR but create little value

Remember

  • NPV = value created, in today's money.
  • Positive NPV: do it. Negative NPV: don't.
  • IRR is the discount rate where NPV is zero.

Check yourself

Question 1 of 2You invest $100 today and get $110 in one year. The required return is 8%. Is the NPV positive?

Question 2 of 2What is the IRR of a project?

Read more

  • Brealey, Myers & Allen, Principles of Corporate Finance: chapter on net present value and other investment criteria

Spotted a mistake or have a wish?

Tell us in a line or two. The page name is sent along automatically.