NPV
Short answer
Discount periodic cash flows with period zero kept outside
NPV(rate, value1, [value2], ...)
- Category
- Financial & Debt
- Excel version
- All versions
- Also searched as
- net present value, discounted cash flow, npv excel formula, npv period zero, mid-year convention, dcf
What it returns
NPV returns the present value of a series of cash flows that are evenly spaced, discounted at one rate per period. Positive values are inflows, negative values are outflows.
The detail that matters: Excel assumes the first value it receives arrives at the end of period 1, one full period from today. Each later value is one more period out. In the textbook formula, the initial investment sits at period 0 and is not discounted at all. Excel’s NPV has no period 0.
So the textbook NPV, in Excel, is:
=NPV(rate, CF1:CFn) + CF0
Put CF0 inside the function and Excel discounts every cash flow, including the investment, by one extra period. The result is the true NPV divided by (1 + rate). It looks plausible, which is why it survives review.
Arguments that matter
| Argument | Required | What it does |
|---|---|---|
rate | Yes | The discount rate for one period. Annual flows take an annual rate; monthly flows take a monthly rate. |
value1 | Yes | The first cash flow, treated as arriving at the end of period 1. |
value2 … | No | Further cash flows, up to 254 arguments, each one period after the last. A range counts as one argument. |
How values are read:
- Order is timing. NPV discounts the values in the order given.
- Within a range, empty cells, text and logical values are ignored. They are skipped, not treated as zero.
- Rate and periods must match. A 10% annual rate with monthly cash flows needs a monthly rate of
(1+10%)^(1/12)-1, which is 0.7974%. Dividing by 12 gives 0.8333%, which is a slightly different rate.
In a financial model
NPV values a project, an acquisition or a contract from a periodic cash flow forecast: annual flows in a DCF, monthly flows in a lease-versus-buy. The discount rate belongs on the inputs tab with its source and as-of date, per no constants inside formulas and date every rate.
The cash flow row runs left to right in time, per time runs left to right, always, with period 0 in its own column. Keeping period 0 visibly separate is what makes the correct formula obvious to a reviewer.
When cash flows do not fall on even periods, such as an acquisition that closes mid-year or a fund with irregular calls, use XNPV, which discounts each flow by its actual date.
Worked example
A project costing $1,000,000 today and returning cash at the end of each of the next five years, discounted at 10%. Cash flows are in C5:H5, period 0 in C5. The rate is in Inputs!$C$6.
| Year | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| Cash flow | -1,000,000 | 250,000 | 300,000 | 350,000 | 400,000 | 450,000 |
Correct:
=NPV(Inputs!$C$6, D5:H5) + C5
Result: $290,786.77.
Wrong, with period 0 inside:
=NPV(Inputs!$C$6, C5:H5)
Result: $264,351.61. That is $26,435.16 short, exactly the correct answer divided by 1.10. On a $50 million acquisition the same error moves the valuation by millions.
The mid-year convention assumes operating cash arrives evenly through each year rather than at year-end. Applied to the operating flows only:
=NPV(Inputs!$C$6, D5:H5) * (1+Inputs!$C$6)^0.5 + C5
Result: $353,788.58. Whether to use it is a valuation policy decision, not a formula choice, and it should be stated on the cover tab.
Old way vs new way
The fully explicit version discounts each flow with its own factor:
=SUMPRODUCT(C5:H5, 1/(1+Inputs!$C$6)^C4:H4)
with period numbers 0 to 5 in row 4. It is longer, but it shows the timing in the sheet and returns the same $290,786.77. It is also the version to use when periods are uneven but you still want periodic discounting.
Where it breaks
The NPV is too low by one discount period. Period 0 is inside the function. Fix: NPV(rate, CF1:CFn) + CF0. A quick test: the wrong answer times (1 + rate) equals the right one.
A blank year pulls later cash flows forward. Year 3 is blank because nothing was expected. NPV skips the blank, so year 4’s cash is discounted as if it arrived in year 3 and year 5’s as if in year 4. Take the example above with no cash expected in year 3. With a 0 in that cell the NPV is $27,826.59. Left blank, NPV returns $83,088.59, overstating the value by $55,262.00. Fix: enter 0 in every period with no cash flow, and test that the number of cells in the range equals the number of periods.
The monthly NPV is slightly off. The annual rate was divided by 12, which compounds to more than the annual rate over a year. Fix: convert with (1+annual)^(1/12)-1, or confirm that the rate you were given is already a nominal monthly rate.
Text numbers vanish. Cash flows pasted from a report arrived as text and NPV ignored them, again shifting the timing. Fix: convert the source to numbers and check with COUNT on the range.
NPV and IRR disagree on the ranking of two projects. That is not an Excel error. IRR assumes reinvestment at the IRR itself; NPV assumes reinvestment at the discount rate. Fix: rank on NPV, and see MIRR for a return measure with an explicit reinvestment rate.
Related functions
- XNPV. Discounts by actual dates. Use it when cash flows do not fall on even periods.
- IRR. The rate at which this NPV equals zero.
- MIRR. A return measure with explicit financing and reinvestment rates, consistent with NPV’s logic.
- XIRR. The dated version of IRR, for the same flows XNPV handles.
- PMT. The level payment with the same present value, for annuity framing.
- The play time runs left to right, always is why period 0 sits in its own visible column.
