---
title: "NPV function in Excel: syntax and examples | PracticeExcel"
description: "How to use NPV in Excel and Google Sheets: the net present value of an investment, and why the payment in year 0 goes outside the function."
canonical_url: "https://practiceexcelonline.com/functions/npv"
locale: en
meta:
  "og:description": "How to use NPV in Excel and Google Sheets: the net present value of an investment, and why the payment in year 0 goes outside the function."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~TlBWIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBOUFYgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHRoZSBuZXQgcHJlc2VudCB2YWx1ZSBvZiBhbiBpbnZlc3RtZW50LCBhbmQgd2h5IHRoZSBwYXltZW50IGluIHllYXIgMCBnb2VzIG91dHNpZGUgdGhlIGZ1bmN0aW9uLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~TlBWKHJhdGUsIHZhbHVlMSwgW3ZhbHVlMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvbnB2Ig%2Cs_Uh0b4ri8tQ-dKaeh.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "NPV function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~TlBWIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBOUFYgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHRoZSBuZXQgcHJlc2VudCB2YWx1ZSBvZiBhbiBpbnZlc3RtZW50LCBhbmQgd2h5IHRoZSBwYXltZW50IGluIHllYXIgMCBnb2VzIG91dHNpZGUgdGhlIGZ1bmN0aW9uLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~TlBWKHJhdGUsIHZhbHVlMSwgW3ZhbHVlMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvbnB2Ig%2Cs_Uh0b4ri8tQ-dKaeh.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **The NPV function**

Returns the net present value of future cash flows at a discount rate. The first value is discounted one period, so a payment made today is added outside NPV.

=

NPV(

## **Syntax**

```
NPV(rate, value1, [value2], ...)
```

<dl><dt>**rate **</dt>
<dd>The discount rate per period.</dd>
<dt>**value1 **</dt>
<dd>The cash flows, one per period from period 1, as numbers, cells or a range.</dd>
<dt>**value2 **(optional)</dt>
<dd>More cash flows.</dd></dl>

## **Examples**

F1=NPV(D1,B2:B4)+B1

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Year 0 | -1000 |  | 0.08 |  | **30.838795** |
| 2 | Year 1 | 400 |  |  |  | |
| 3 | Year 2 | 400 |  |  |  | |
| 4 | Year 3 | 400 |  |  |  | |

B1`=NPV(<sup>1</sup>0.1,<sup>2</sup>110,<sup>3</sup>121)`

|  | A | B |
| --- | --- | --- |
| 1 |  | **200** |

**In plain words:** What <sup>2</sup>110 next year and <sup>3</sup>121 the year after are worth today at <sup>1</sup>a 10% discount rate.

## **Practice NPV**

- [**1****Net present value with NPV**→](https://practiceexcelonline.com/practice/investments/npv-net-present-value)

## **Questions**

<details>

<summary>

### Why is my NPV wrong by a year?

</summary>

NPV discounts the first value one period, as if it were paid a year from now. Leave the investment you pay today out of the range and add it on after, like NPV(rate,B2:B6)+B1.

</details>

<details>

<summary>

### What does a positive NPV mean?

</summary>

The cash flows are worth more than the investment at that discount rate, so the project earns more than the rate you require.

</details>

## **Related functions**

- [**IRR**](https://practiceexcelonline.com/functions/irr)
- [**PMT**](https://practiceexcelonline.com/functions/pmt)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/functions/npv#webpage","description":"How to use NPV in Excel and Google Sheets: the net present value of an investment, and why the payment in year 0 goes outside the function.","name":"NPV function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/npv","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/functions/npv#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/functions/npv#/schema/question/1"},{"@id":"https://practiceexcelonline.com/functions/npv#/schema/question/2"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/npv"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/npv#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel functions","item":"https://practiceexcelonline.com/functions","position":2},{"@type":"ListItem","name":"NPV function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/npv#article","description":"How to use NPV in Excel and Google Sheets: the net present value of an investment, and why the payment in year 0 goes outside the function.","headline":"NPV function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~TlBWIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBOUFYgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHRoZSBuZXQgcHJlc2VudCB2YWx1ZSBvZiBhbiBpbnZlc3RtZW50LCBhbmQgd2h5IHRoZSBwYXltZW50IGluIHllYXIgMCBnb2VzIG91dHNpZGUgdGhlIGZ1bmN0aW9uLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~TlBWKHJhdGUsIHZhbHVlMSwgW3ZhbHVlMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvbnB2Ig%2Cs_Uh0b4ri8tQ-dKaeh.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/npv#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/npv#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@id":"https://practiceexcelonline.com/functions/npv#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"Why is my NPV wrong by a year?","acceptedAnswer":{"@type":"Answer","text":"NPV discounts the first value one period, as if it were paid a year from now. Leave the investment you pay today out of the range and add it on after, like NPV(rate,B2:B6)+B1."}},{"@id":"https://practiceexcelonline.com/functions/npv#/schema/question/2","@type":"Question","inLanguage":"en-US","name":"What does a positive NPV mean?","acceptedAnswer":{"@type":"Answer","text":"The cash flows are worth more than the investment at that discount rate, so the project earns more than the rate you require."}},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"},{"@id":"https://practiceexcelonline.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~TlBWIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBOUFYgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHRoZSBuZXQgcHJlc2VudCB2YWx1ZSBvZiBhbiBpbnZlc3RtZW50LCBhbmQgd2h5IHRoZSBwYXltZW50IGluIHllYXIgMCBnb2VzIG91dHNpZGUgdGhlIGZ1bmN0aW9uLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~TlBWKHJhdGUsIHZhbHVlMSwgW3ZhbHVlMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvbnB2Ig%2Cs_Uh0b4ri8tQ-dKaeh.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~TlBWIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBOUFYgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHRoZSBuZXQgcHJlc2VudCB2YWx1ZSBvZiBhbiBpbnZlc3RtZW50LCBhbmQgd2h5IHRoZSBwYXltZW50IGluIHllYXIgMCBnb2VzIG91dHNpZGUgdGhlIGZ1bmN0aW9uLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~TlBWKHJhdGUsIHZhbHVlMSwgW3ZhbHVlMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvbnB2Ig%2Cs_Uh0b4ri8tQ-dKaeh.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
