How to Use the NPV Function to Calculate Net Present Value in Excel

The Time Value of Money

If a business partner offers you a choice between receiving $10,000 today, or receiving $10,000 five years from now, you will always choose the money today. Because of inflation and the potential to earn interest in a bank account, money in the present is always worth more than the exact same amount of money in the future. This foundational economic concept is called the “Time Value of Money.”

This concept makes corporate investing incredibly complicated. If a company is considering buying a $50,000 piece of factory machinery that promises to generate $15,000 in revenue every year for the next five years, they cannot simply say: “$15,000 times 5 equals $75,000, so we make a $25,000 profit.”

That $15,000 generated in Year 5 is worth significantly less in “today’s dollars” because of inflation. To accurately determine if a multi-year investment is actually profitable in real-world terms, financial analysts calculate the Net Present Value (NPV). Doing this math manually on paper requires complex exponential algebra. In Microsoft Excel, it requires a single function: NPV.

Understanding the Syntax

The NPV function takes a series of future cash flows and instantly discounts them back into “today’s dollars” based on a specific interest rate.

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

  • rate: The discount rate (the rate of inflation, or the minimum rate of return the company expects to earn elsewhere).
  • value1: The cash flow for Year 1.
  • value2: The cash flow for Year 2.

Example 1: Discounting Future Revenue

Assume your company requires a 5% return on all investments (this is your discount rate). The factory machinery will generate $15,000 in Year 1, $15,000 in Year 2, and $15,000 in Year 3. These expected revenues are typed into cells B1, B2, and B3.

To find out exactly what those three years of future revenue are worth today, type:

=NPV(5%, B1:B3)

How this works:

  1. Excel looks at Year 1 ($15,000) and mathematically shrinks it by 5%.
  2. Excel looks at Year 2 ($15,000) and shrinks it by 5%, twice (compounding).
  3. Excel looks at Year 3 ($15,000) and shrinks it by 5%, three times.
  4. It adds those three shrunken numbers together. The result is roughly $40,848.

Even though the raw cash adds up to $45,000, the true economic value in today’s dollars is only $40,848.

Example 2: The Initial Investment Trap

A massive mistake many beginner analysts make is including the initial upfront cost inside the NPV brackets.

Assume the machine costs $50,000 to buy today (Year 0). In cell A1, you type -50,000. Cells B1, B2, and B3 contain the future revenues.

If you write =NPV(5%, A1:B3), Excel will instantly calculate the wrong answer. Why? Because the NPV function assumes the very first cell you highlight is Year 1. It will take your $50,000 upfront cost and mathematically shrink it by 5%, which makes absolutely no economic sense because you are spending that $50,000 today.

To correctly calculate the true Net Present Value of the entire project, you must isolate the upfront cost entirely outside of the formula.

=NPV(5%, B1:B3) + A1

This tells Excel: “Discount all the future revenue (B1:B3) back to today’s dollars, and then simply subtract the $50,000 (A1) that we have to spend right now.”

Making the Final Decision

Once you execute the correct formula (=NPV(5%, B1:B3) + A1), Excel outputs a single number. This number dictates the fate of the project.

  • If the result is Positive (e.g., $4,200): The project defeats inflation, beats your 5% minimum requirement, and generates real wealth. You should buy the machine.
  • If the result is Negative (e.g., -$1,500): The future revenue is eaten alive by the discount rate. You will actually lose purchasing power. You should reject the investment immediately.

By mastering the NPV function, you transform raw spreadsheet data into powerful, mathematically sound corporate strategy.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.