---
title: "NPV function in Excel: syntax and examples | ExcelSavvy"
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://excelsavvy.com/functions/npv"
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://excelsavvy.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 | ExcelSavvy"
  "twitter:image": "https://excelsavvy.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://excelsavvy.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(

## **How to use NPV**

NPV tells you what future money is worth today. A dollar next year is worth less than a dollar in your hand, because you could have invested it. NPV shrinks each future payment by a discount rate, one period at a time, and adds them up. Think of it as a price tag for a stream of payments.

Use it to judge an investment: a machine that costs $20,000 now and saves money for the next five years, or a contract with payments spread over several years. The rate is the return you demand per period, and the values are the cash flows from period 1 onward, as a range or a list. `**=NPV(B1,B3:B7)**` discounts five yearly values at the rate in B1.

NPV treats the first value as one period away. A payment you make today therefore stays outside the function and is added afterward: `**=NPV(B1,B3:B7)+B2**`, where B2 holds the investment as a negative number. A result above 0 means the investment earns more than the rate you require. To get the rate itself instead of an amount, use IRR. For the payment on a loan, use PMT.

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

## **Common NPV mistakes**

- My NPV is off by a whole year

  The investment you pay today is inside the range, so NPV discounts it one period. Leave it out of the range and add it afterward: `**=NPV(B1,B3:B7)+B2**`.
- The result is far too low with monthly cash flows

  The rate and the periods must match. With monthly values and a yearly rate, divide the rate by 12: `**=NPV(B1/12,B3:B14)**`.
- I typed the rate as 10 and got a strange number

  A rate of 10 means 1000%. Type 10% or 0.1.
- A month with no payment is missing from the calculation

  NPV skips empty cells and text, so later payments count one period too early. Type 0 in every period without a cash flow.

## **Practice NPV**

- [**1****Net present value with NPV**→](https://excelsavvy.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. A negative NPV means it earns less.

</details>

<details>

<summary>

### Which discount rate should I use?

</summary>

Use the return you require. That can be the interest on a loan for the investment, what the money would earn in a safe alternative, or your company's required return. A higher rate makes future payments worth less today.

</details>

<details>

<summary>

### What if the payments are not evenly spaced in time?

</summary>

NPV assumes equal periods. For payments on specific dates, use XNPV, which takes the dates as a separate range.

</details>

## **Related functions**

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

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://excelsavvy.com/#identity","@type":"Organization","name":"ExcelSavvy","url":"https://excelsavvy.com/","logo":{"@id":"https://excelsavvy.com/#logo"}},{"@id":"https://excelsavvy.com/#website","@type":"WebSite","inLanguage":"en-US","name":"ExcelSavvy","url":"https://excelsavvy.com/","alternateName":["Excel Savvy","ExcelSavvy.com","PracticeExcel","Practice Excel Online"],"publisher":{"@id":"https://excelsavvy.com/#identity"},"workTranslation":[{"@id":"https://excelopgaver.dk/#website"},{"@id":"https://excelpraxis.de/#website"}]},{"@id":"https://excelsavvy.com/functions/npv#webpage","dateModified":"2026-11-16","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://excelsavvy.com/functions/npv","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://excelsavvy.com/functions/npv#breadcrumb"},"isPartOf":{"@id":"https://excelsavvy.com/#website"},"mainEntity":[{"@id":"https://excelsavvy.com/functions/npv#/schema/question/1"},{"@id":"https://excelsavvy.com/functions/npv#/schema/question/2"},{"@id":"https://excelsavvy.com/functions/npv#/schema/question/3"},{"@id":"https://excelsavvy.com/functions/npv#/schema/question/4"}],"potentialAction":[{"@type":"ReadAction","target":["https://excelsavvy.com/functions/npv"]}],"primaryImageOfPage":{"@id":"https://excelsavvy.com/#logo"}},{"@id":"https://excelsavvy.com/functions/npv#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://excelsavvy.com","position":1},{"@type":"ListItem","name":"Excel functions","item":"https://excelsavvy.com/functions","position":2},{"@type":"ListItem","name":"NPV function in Excel: syntax and examples","position":3}]},{"@id":"https://excelsavvy.com/functions/npv#article","dateModified":"2026-11-16","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://excelsavvy.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://excelsavvy.com/#identity"},"image":{"@id":"https://excelsavvy.com/#/schema/image/1"},"isPartOf":{"@id":"https://excelsavvy.com/functions/npv#webpage"},"mainEntityOfPage":{"@id":"https://excelsavvy.com/functions/npv#webpage"},"publisher":{"@id":"https://excelsavvy.com/#identity"}},{"@id":"https://excelsavvy.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://excelsavvy.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. A negative NPV means it earns less."}},{"@id":"https://excelsavvy.com/functions/npv#/schema/question/3","@type":"Question","inLanguage":"en-US","name":"Which discount rate should I use?","acceptedAnswer":{"@type":"Answer","text":"Use the return you require. That can be the interest on a loan for the investment, what the money would earn in a safe alternative, or your company's required return. A higher rate makes future payments worth less today."}},{"@id":"https://excelsavvy.com/functions/npv#/schema/question/4","@type":"Question","inLanguage":"en-US","name":"What if the payments are not evenly spaced in time?","acceptedAnswer":{"@type":"Answer","text":"NPV assumes equal periods. For payments on specific dates, use XNPV, which takes the dates as a separate range."}},{"@id":"https://excelsavvy.com/#logo","@type":"ImageObject","caption":"ExcelSavvy","contentUrl":"https://excelsavvy.com/brand/practiceexcel/icon-512.png?v=3","inLanguage":"en-US","url":"https://excelsavvy.com/brand/practiceexcel/icon-512.png?v=3"},{"@id":"https://excelsavvy.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://excelsavvy.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://excelsavvy.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://excelsavvy.com/sitemap.md) for all pages.
