Sub topic 6
The NPV timing pitfall: adding the t=0 cash flow
This chapter assumes you can enter formulas and reference ranges in Excel. It also assumes you know what a discount rate is and how compounding works. You should already know that NPV is the sum of discounted cash flows. Here we focus on one specific mistake that affects many models: how Excel's NPV function treats the first cash flow in its range.
The rule Excel follows
Excel's NPV(rate, value1, value2, ...) does not know which cash flow happens "today." It assumes every value in the range arrives at the end of a period. The first value is discounted by one full period, the second by two periods, and so on.
In textbook notation, for cash flows CF1, CF2, ..., CFn:
NPV = CF1 / (1 + r)^1 + CF2 / (1 + r)^2 + ... + CFn / (1 + r)^n
Notice that the exponent starts at 1. There is no term with exponent 0. A cash flow that happens today (t=0) is not discounted at all, so it cannot be handled by the function in the way you would expect.
The practical result is this:
- Cash flows from period 1 onward go inside
NPV. - The t=0 cash flow stays outside
NPVand is added at full value.
A worked example
A project costs 10,000 today. It returns 3,000, 4,000, 4,000, and 3,000 at the end of years 1 to 4. The discount rate is 8%.
| Cell | Content | Meaning |
|---|---|---|
| B1 | 8% | Discount rate |
| B3 | -10000 | t=0, today |
| B4 | 3000 | End of year 1 |
| B5 | 4000 | End of year 2 |
| B6 | 4000 | End of year 3 |
| B7 | 3000 | End of year 4 |
The correct formula is:
=NPV(B1, B4:B7) + B3The range B4:B7 starts at the year 1 cash flow. B3 is added without any discounting.
You can verify the result by hand:
- 3,000 / 1.08 = 2,777.78
- 4,000 / 1.08^2 = 3,429.36
- 4,000 / 1.08^3 = 3,175.33
- 3,000 / 1.08^4 = 2,205.09
These sum to 11,587.56. Subtract 10,000 and the NPV is about 1,587.56. The project creates value at an 8% discount rate.
The mistake
Many users select the whole cash flow column, including the t=0 row:
B3:B7 hold the same cash flows as above (B3 is the t=0 outflow)
Incorrect, discounts the t=0 outflow by one period:
=NPV(B1, B3:B7)
Correct:
=NPV(B1, B4:B7) + B3With the incorrect formula, Excel treats -10,000 as an end-of-year-1 cash flow. Every other value shifts one period later as well. The whole stream is divided by an extra factor of 1.08. The incorrect result is the correct result divided by 1.08:
1,587.56 / 1.08 ≈ 1,470.00
The error is small enough to look plausible. The sign is still positive, and the magnitude is close. That is why this bug survives in real models.
Why the error has a predictable direction
The wrong formula divides the true NPV by (1 + r). Whether that overstates or understates value depends on the sign of the true NPV.
| True NPV | Effect of the wrong formula | Result |
|---|---|---|
| Positive | Shrinks the value toward zero | Understated |
| Negative | Shrinks the loss toward zero | Overstated (loss looks smaller) |
| Zero | No change | Hides the error |
This matters for the way the error is described. For a project with a negative first cash flow and positive later cash flows, the wrong formula moves the answer toward zero. A viable project looks slightly less valuable. A poor project looks slightly less bad. The error can therefore flip a decision only when the true NPV is close to zero.
Note that the shift has a larger effect with a higher rate or a longer period. With a monthly model discounted at a monthly rate, the factor is small. With annual periods and a 15% rate, the error is 15% of the true value.
Diagnosing the pitfall in an existing model
When you review a model, check these points:
- Find every
NPV(call and look at the first cell of its range. Is it the t=0 cash flow? - Check whether the t=0 cash flow is added separately outside the function.
- Look for models where the timeline starts at period 1, with the investment placed at the end of period 1. This can be intentional, but it should be documented.
- Recompute one NPV by hand, or with a second method, and compare.
A reliable cross-check uses SUMPRODUCT with an explicit period row. Put period numbers 0 to 4 in A3:A7:
=SUMPRODUCT(B3:B7 / (1 + B1)^A3:A7)This formula uses exponent 0 for the first cash flow, so it discounts nothing at t=0. It should match =NPV(B1, B4:B7) + B3 exactly. If the two disagree, one of them has a timing error.
When including the first cash flow is correct
Sometimes the whole range really does belong inside NPV. This happens when the first cash flow occurs at the end of the first period, not today. Examples include:
- A valuation date that is one year before the first reported cash flow.
- An investment paid at the end of year 1 and returns that follow.
- Valuing a stream of future dividends, where nothing is paid today.
In these cases the correct formula is simply =NPV(rate, range). The pitfall is not that NPV(rate, B3:B7) is always wrong. The pitfall is applying it to a range whose first value is at t=0.
A useful habit is to label the first row of your timeline with a period number. If the first row is labelled 0, keep it outside. If it is labelled 1, it goes inside.
A variant: payments at the start of each period
Some cash flows arrive at the start of each period, such as rent paid in advance. You can handle them in two ways:
- Treat the first payment as t=0 and add it outside
NPV, with the rest inside. - Compute
NPVon the whole range and multiply the result by (1 + rate), which moves every cash flow one period earlier.
=NPV(B1, B3:B7) * (1 + B1)For the example above, this equals NPV(B1, B4:B7) + B3. Both give 1,587.56. The multiplication version is useful when every payment is at the start of its period. The "add outside" version is clearer when only the first cash flow is at t=0.
Other details that affect the result
- Blank cells and text.
NPVignores empty cells, text, and logical values inside a range. A blank cell in the middle of a timeline does not count as a zero-cash-flow period. It is skipped, so every later cash flow is discounted one period too little. Enter an explicit 0 for periods with no cash flow. - Direct arguments. Numbers typed directly into the function, such as
=NPV(0.08, 3000, 4000), are treated as cash flows in order. - Inconsistent period lengths.
NPVassumes equal spacing. If cash flows are on irregular dates, the next chapters introduceXNPV. - Rate and period must match. A monthly cash flow series needs a monthly rate. Dividing an annual rate by 12 is an approximation. The exact monthly rate is (1 + annual)^(1/12) - 1.
The blank-cell issue deserves a test. If your model pulls cash flows from formulas that return "" in some periods, those cells are text and NPV skips them. Wrap them with N() or return 0 instead.
Safe pattern for a cell that might otherwise return an empty string:
=IF(condition, value, 0)Connection to IRR
The same timing convention affects IRR. IRR treats the first value in its range as t=0, and it does not discount it. This is why the check in the next chapters uses:
B3:B7 hold periodic cash flows, with B3 as the t=0 outflow
IRR:
=IRR(B3:B7)
Check that NPV at the IRR is approximately zero:
=NPV(IRR(B3:B7), B4:B7) + B3Here the range for IRR includes B3, while the range for NPV starts at B4. This looks inconsistent, but it follows from each function's own definition. If you wrote NPV(IRR(B3:B7), B3:B7) in the check, it would not return zero.
Summary of the decision
Use this table instead of memorizing formulas:
| Situation | Formula |
|---|---|
| First cash flow is today (t=0) | `=NPV(rate, later_flows) + first_flow` |
| First cash flow is one period from now | `=NPV(rate, all_flows)` |
| All flows at start of each period | `=NPV(rate, all_flows) * (1 + rate)` |
| Irregular dates | `=XNPV(rate, flows, dates)` |
Exercise
A project has a t=0 cash flow of -5,000 in cell C2, and cash flows of 2,000, 2,500, and 2,500 at the end of years 1, 2, and 3 in C3:C5. The discount rate is in C1. Write the correct NPV formula. A colleague wrote =NPV(C1, C2:C5). By what factor is their answer different from the correct one?
Show answer
The correct formula is =NPV(C1, C3:C5) + C2. The colleague's formula discounts every cash flow, including the t=0 outflow, by one extra period. Their result equals the correct NPV divided by (1 + C1). For example, at 10%, their answer is the correct NPV divided by 1.10.
Exercise
Column A holds period numbers 0 to 3 and column B holds the cash flows from the previous exercise (B2:B5), with the rate in B1. Write a SUMPRODUCT formula that gives the correct NPV without using the NPV function.
Show answer
=SUMPRODUCT(B2:B5 / (1 + B1)^A2:A5). The exponent for the first row is 0, so the t=0 cash flow is not discounted. The result matches =NPV(B1, B3:B5) + B2.