Sub topic 9
NPV and IRR
What this chapter covers
Net present value (NPV) and internal rate of return (IRR) are the two main ways to judge whether a capital project is worth doing. This chapter assumes you know present value and discounting, can read a cash flow timeline, and understand that a project's required return reflects its risk. The previous chapter covered how project cash flows are built. Here you take a finished cash flow stream and decide whether to accept it.
Net present value
NPV is the present value of all a project's expected cash flows, inflows and outflows, discounted at the project's required rate of return.
NPV = CF0 + CF1/(1+r) + CF2/(1+r)^2 + ... + CFn/(1+r)^n
CF0 is the initial outlay, which is usually negative. The rate r is the opportunity cost of capital for a project of that risk. For an average-risk project it is often the firm's weighted average cost of capital, which a later chapter covers.
The decision rule:
- NPV > 0: accept. The project earns more than the required return, and the NPV is the value added to shareholders in today's money.
- NPV = 0: indifferent. The project earns exactly its required return.
- NPV < 0: reject. It destroys value.
def npv(rate, cash_flows):
# cash_flows[0] occurs today (time 0)
return sum(cf / (1 + rate) ** t for t, cf in enumerate(cash_flows))
cash_flows = [-1000, 300, 400, 500, 200]
print(round(npv(0.10, cash_flows), 2)) # 115.57The project costs 1,000 today and returns 1,400 in total over four years. Discounted at 10%, the inflows are worth about 1,115.57, so the project adds about 115.57 of value.
Why NPV is the preferred criterion
- It uses all cash flows, including those late in the project's life.
- It accounts for the time value of money.
- It is measured in currency, so it states directly how much wealth the project creates.
- NPVs of independent projects add up, so a firm's value changes by the sum of the NPVs it accepts.
Internal rate of return
IRR is the discount rate that makes NPV equal to zero. It is the project's own rate of return, found by solving for r:
0 = CF0 + CF1/(1+IRR) + ... + CFn/(1+IRR)^n
There is no closed-form solution for more than a few periods. Calculators and spreadsheets solve it by iteration. The code below uses bisection, which repeatedly halves an interval that brackets the root.
def npv(rate, cash_flows):
return sum(cf / (1 + rate) ** t for t, cf in enumerate(cash_flows))
def irr(cash_flows, lo=-0.99, hi=1.0, iterations=200):
# Bisection; assumes conventional cash flows (one sign change)
for _ in range(iterations):
mid = (lo + hi) / 2
if npv(mid, cash_flows) > 0:
lo = mid
else:
hi = mid
return (lo + hi) / 2
print(round(irr([-1000, 300, 400, 500, 200]), 4))The result is about 0.1532, or 15.32%. Compare it with the required rate of 10%. The IRR rule says to accept the project if IRR exceeds the required rate, which is also called the hurdle rate. Here 15.32% > 10%, so the project is accepted, which agrees with the positive NPV.
The bisection works because NPV falls as the discount rate rises for a conventional project. When NPV at the midpoint is positive, the root lies at a higher rate, so the lower bound moves up.
How the two measures relate
At a discount rate below the IRR, NPV is positive. At a rate above the IRR, NPV is negative. NPV equals zero exactly at the IRR. If you plot NPV against the discount rate, the curve crosses the horizontal axis at the IRR. This is why the two rules agree for a single independent project with conventional cash flows.
Comparing the two criteria
| Feature | NPV | IRR |
|---|---|---|
| Output | Currency value added | Percentage return |
| Accept if | NPV > 0 | IRR > required return |
| Implied reinvestment rate | The required return | The IRR itself |
| Multiple solutions | No, one value for a given r | Possible with sign changes |
| Ranks mutually exclusive projects reliably | Yes | Not always |
Common errors and limits of IRR
Non-conventional cash flows
A conventional project has one outflow followed by inflows, so the sign changes once. If the signs change more than once, for example a final cleanup cost, the equation can have several IRRs or none. The stream -100, +230, -132 has an NPV of zero at both 10% and 20%. Neither number is "the" IRR, so the IRR rule gives no clear answer. NPV still works because it uses a single stated discount rate. The bisection code above is also valid only for conventional flows.
The reinvestment assumption
NPV implicitly assumes interim cash flows are reinvested at the required return. IRR implicitly assumes they are reinvested at the IRR. A high IRR is often unrealistic as a reinvestment rate, which can overstate a project's attractiveness. NPV's assumption is more defensible because it matches the firm's actual opportunity cost of capital.
Scale and timing
IRR is a percentage, so it ignores project size. A small project with a 40% IRR may add less value than a large project with a 20% IRR. IRR also favors projects that return cash early. When projects are mutually exclusive, NPV and IRR can rank them differently. The next chapters cover how to resolve those conflicts. When they conflict, follow NPV.
Wrong discount rate
NPV is only as good as the rate used. Discounting a risky project at the firm's average rate overstates its value. Use a rate that reflects the project's own risk.
Working an example by hand
A project costs 500 today and pays 200, 250, and 300 at the end of years 1, 2, and 3. The required return is 12%.
- Discount year 1: 200 / 1.12 = 178.57.
- Discount year 2: 250 / 1.2544 = 199.30.
- Discount year 3: 300 / 1.404928 = 213.53.
- Sum the inflows: 591.40.
- Subtract the outlay: NPV = 591.40 - 500 = 91.40.
The NPV is positive, so accept. The IRR must be above 12%, because NPV is still positive at 12%. Trying a higher rate such as 20% gives a negative NPV, so the IRR lies between 12% and 20%.
Exam strategy
- For a single independent project, NPV and IRR give the same accept or reject answer.
- When asked which project adds the most value, rank by NPV.
- State the reinvestment assumption when asked to compare the two methods.
- Treat an IRR below the cost of capital as a reject signal, but treat an IRR from an irregular cash flow stream with caution.
Exercise
A project requires an outlay of 500 today and returns 200, 250, and 300 at the end of years 1 to 3. The required return is 12%. What is the NPV, and should the project be accepted?
Show answer
NPV = 200/1.12 + 250/1.12^2 + 300/1.12^3 - 500 = 178.57 + 199.30 + 213.53 - 500 = 91.40. The NPV is positive, so accept the project.
Exercise
Explain why IRR can fail for a project whose cash flows are -100, +230, -132, and say which criterion you would use instead.
Show answer
The cash flows change sign twice, so the NPV equation has two solutions, 10% and 20%. There is no single IRR to compare with the required return. Use NPV at the project's required rate, which always gives one value.