# NPV in Google Sheets: syntax and examples

URL: https://goingstellar.ro/reference/sheets/npv/

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

- `discount` (number, required: yes): The discount rate per period, for example 0.1 for 10%.
- `cashflow1` (number, required: yes): The first cash flow, treated as arriving at the end of period 1.
- `cashflow2, ...` (number, required: 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 2026-11-29.

```
=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 2026-11-29.

```
=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 2026-11-29.

```
=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 2026-11-29.

```
=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 2026-11-29.

## 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.

## Related functions

- [IRR](https://goingstellar.ro/reference/sheets/irr/)
- [FV](https://goingstellar.ro/reference/sheets/fv/)
- [PMT](https://goingstellar.ro/reference/sheets/pmt/)

## Sources

- [NPV (Docs Editors Help)](https://support.google.com/docs/answer/3093184)

