Calculator · Corporate finance

NPV calculator for uneven cash flows

Net present value adds up what a project's future cash flows are worth today and subtracts what it costs. Enter your cash flows year by year, set the return you require, and the calculator shows each year's present value and the total. A positive NPV means the project earns more than you require.

Try your own cash flows

The yearly return you need for this level of risk.

Cash flows

Money you pay is negative, money you receive is positive. Year 0 is today.

Net present value$12,600.29Positive: the project earns more than the required return. Accept.
Present value of inflows
$72,600.29
Year 0 cash flow
-$60,000.00
Years
5
Each cash flow discounted to today.
YearCash flowFactorPresent value
0-$60,000.001.0000-$60,000.00
1$15,000.000.9091$13,636.36
2$22,000.000.8264$18,181.82
3$28,000.000.7513$21,036.81
4$18,000.000.6830$12,294.24
5$12,000.000.6209$7,451.06

Estimate for learning, not financial advice. Nothing you type here is sent or saved.

Try one yourself

Cedar Ridge Dental can buy equipment for $65,000. It expects extra profit of $30,000, $33,500 and $25,000 at the end of years 1, 2 and 3. The required return is 8%.

Counts as correct if it is within $23. Use a calculator.

The formula

NPV discounts every cash flow back to today and adds the results. Money you pay out counts as negative and money you receive counts as positive. Year 0 is whatever moves right now, usually the purchase price, so it is not discounted at all.

Formula

NPV = CF0 + CF1/(1+r) + CF2/(1+r)^2 + ... + CFn/(1+r)^n, where CFt is the cash flow in year t and r is the required return per year. This is the standard textbook definition, found for example in Berk and DeMarzo, Corporate Finance.

A worked example with uneven cash flows

A bakery can buy a second oven for $60,000. It expects extra profit of $15,000, $22,000, $28,000, $18,000 and $12,000 in years 1 through 5, and the owner wants 10% a year on money tied up in equipment. Because the amounts differ, each year gets its own discount factor, 1/(1.10)^t.

The oven's cash flows at a 10% required return.
YearCash flowFactorPresent value
0-$60,000.001.0000-$60,000.00
1$15,000.000.9091$13,636.36
2$22,000.000.8264$18,181.82
3$28,000.000.7513$21,036.81
4$18,000.000.6830$12,294.24
5$12,000.000.6209$7,451.06
NPV$12,600.29

The five inflows are worth $72,600.29 today, which is $12,600.29 more than the oven costs. The project clears the 10% hurdle, so accept it. Try a higher required return in the calculator: at 15% the NPV falls to $4,346.77, and at 20% it turns negative at -$2,515.43. The rate where it crosses zero is the internal rate of return, 18.06% for this oven.

Reading the answer

The sign of NPV is the decision. Above zero, the project creates value beyond the required return. Below zero, you would do better putting the money elsewhere at that return. At exactly zero you are indifferent. The size of the number is in today's dollars, so when two projects compete for the same money, the larger NPV adds more wealth.

The discount rate carries most of the judgment. Use the return investors could earn on something with the same risk, which for an average project is often the company's WACC. A riskier project deserves a higher rate. The period must also match the rate: if the cash flows are monthly, use a monthly rate.

In Excel, the NPV function assumes its first value arrives at the end of year 1, so type =NPV(rate, year 1 to year n) and then add the year 0 amount outside the brackets. A BA II Plus does the same job with the CF and NPV keys, and the guide linked below lists the keystrokes.

Mistakes that cost points

  • Discounting the year 0 amount. Cash paid today is already in today's dollars and has a factor of 1.
  • Feeding the whole list, including the initial cost, to Excel's NPV function. It treats the first entry as year 1, so the outlay gets discounted one year too many.
  • Pairing monthly cash flows with an annual rate. Convert one of them so the units agree.
  • Leaving out the last-year items that are easy to forget, such as selling the equipment or getting working capital back.
  • Choosing the discount rate after seeing the answer. Set it from the risk of the project first.

Estimate for learning, not financial advice. Inputs stay in your browser and are not sent or stored.

Questions

Quick answers.

What discount rate should I use for NPV?

Use the return you could expect from another investment with the same risk. In coursework that is usually given, or it is the company's WACC. For a project riskier than the company's usual business, add a premium to the WACC.

Can a project with a negative NPV still be worth doing?

On the cash flows alone, a negative NPV loses value. Sometimes a project has benefits that are hard to price, such as keeping a customer or opening a later opportunity. If you argue for one, put an estimated dollar value on that benefit and add it to the cash flows.

How is NPV different from IRR?

NPV gives the value created in dollars at a rate you choose. IRR gives the rate at which that value falls to zero. For one ordinary project they agree on accept or reject, and when they disagree on competing projects, NPV is the one to trust.

Does the calculator work for cash flows that are not yearly?

Yes. Treat each row as one period and enter the rate for that period. For monthly flows, divide the annual rate by 12 as an approximation, or use (1 + annual rate)^(1/12) - 1 for the exact monthly equivalent.

Working through a problem like this one for a class? I tutor finance one-on-one on Zoom. Private sessions with Chi Odogwu are $250 an hour.

Book your first session
Book a session →