Going Stellar

Home/Google Sheets reference

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

ArgumentTypeRequiredWhat it does
discountnumberyesThe discount rate per period, for example 0.1 for 10%.
cashflow1numberyesThe first cash flow, treated as arriving at the end of period 1.
cashflow2, ...numbernoMore cash flows or ranges, one per later period.

Examples

The examples use this table, starting in A1:

YearCash flow
0-1000
1300
2400
3500
=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.

Sources

  1. NPV (Docs Editors Help)

Markdown version · All functions