Google Sheets function · Financial
NPV in Google Sheets: syntax and examples
NPV discounts a series of cash flows back to the present at a fixed rate per period and adds them up. It assumes each flow arrives at the end of its period.
Syntax
NPV(discount, cashflow1, [cashflow2, ...])
Arguments
| Argument | Type | Required | What it does |
|---|---|---|---|
discount | number | yes | The discount rate per period, for example 0.1 for 10%. |
cashflow1 | number | yes | The first cash flow, treated as arriving at the end of period 1. |
cashflow2, ... | number | no | More cash flows or ranges, one per later period. |
Examples
The examples use this table, starting in A1:
| Year | Cash flow |
| 0 | -1000 |
| 1 | 300 |
| 2 | 400 |
| 3 | 500 |
=ROUND(NPV(0.1, B3:B5), 2)Result: $978.96
Present value of the three future flows at a 10% discount rate.
Run in a Google Sheet (English US locale) on .
=ROUND(NPV(0.1, B3:B5) + B2, 2)Result: -$21.04
The investment at year 0 is added outside NPV, because NPV discounts every flow at least once.
Run in a Google Sheet (English US locale) on .
=ROUND(NPV(0.1, B2:B5), 2)Result: -$19.12
The same investment inside the range: it is discounted by one period, which is a common error.
Run in a Google Sheet (English US locale) on .
=ROUND(NPV(0.1, B3, B4, B5), 2)Result: $978.96
Flows listed as separate arguments give the same result as the range.
Run in a Google Sheet (English US locale) on .
=ROUND(NPV(10%, B3:B5) + B2, 2)Result: -$21.04
The rate can be written as a percentage.
Run in a Google Sheet (English US locale) on .
Common errors
- NPV discounts the first flow by one full period. An investment made today belongs outside the function: NPV(rate, later_flows) + investment.
- A rate of -1 (minus 100%) returns #NUM!, and a text rate returns #VALUE!.
- Text cells inside the range, such as a header, are skipped and do not count as a period. Blank gaps are skipped too, so keep periods aligned.
Compared with Excel
Same syntax in Excel, and the same end-of-period assumption.