Skip to content
Investment Math
Investment Math

Currency and number style

Only changes how amounts look. There is no currency conversion.

How to Calculate Net Present Value (NPV): formula, worked example and common mistakes

Bring a run of yearly cash flows back to today and compare them with what you pay at the start. Free, no sign-up, nothing leaves your browser.

Updated

What net present value is

Money received later is worth less than the same money today, because today’s money can be put to work. Net present value (NPV) puts that into one figure. You give an initial outlay, a discount rate and the cash flow of each year. The calculator brings every flow back to today, adds them up and takes away the outlay.

The calculator is at /tools/npv/. A positive result means the flows, discounted at your rate, are worth more than the outlay, so the flows beat that rate. A negative result means they fall short of it. That is a statement about the numbers you typed, not about what will happen.

The formula

NPV = −outlay + CF1 ÷ (1 + r)^1 + CF2 ÷ (1 + r)^2 + … + CFn ÷ (1 + r)^n

CFt is the cash flow at the end of year t, n is the last year and r is the yearly discount rate as a fraction (8% is 0.08). The outlay is paid at time 0, so it is not discounted. Each flow is divided by (1 + r) once for every year it waits, which is why a flow in year 4 counts for less than a flow in year 1.

Money going out in a later year is typed as a minus on its line. It is discounted the same way and lowers the NPV.

A worked example at the calculator’s defaults

An outlay of 10,000 and four yearly flows of 3,000, 4,000, 5,000 and 3,000, discounted at 8% a year.

year 1:  3,000 ÷ 1.08    = 2,777.78
year 2:  4,000 ÷ 1.08^2  = 3,429.36
year 3:  5,000 ÷ 1.08^3  = 3,969.16
year 4:  3,000 ÷ 1.08^4  = 2,205.09

present value of the flows = 12,381.38
NPV = 12,381.38 − 10,000   = 2,381.38

Added up without discounting, the flows come to 15,000, so the plain gain over the outlay is 5,000. Discounting cuts it to an NPV of 2,381.38. The headline reads an outlay of 10,000 with the cash flows you typed, discounted at 8% a year, has a net present value of 2,381.

Reading the chart: discounted payback

The chart shows the running total of the discounted flows, starting at minus the outlay in year 0. In the example it runs:

year 0:  −10,000.00
year 1:   −7,222.22
year 2:   −3,792.87
year 3:      176.29
year 4:    2,381.38

The line crosses 0 during year 3. The calculator interpolates inside that year: 3,792.87 still to recover, 3,969.16 arriving in year 3, so payback falls at 2 + 3,792.87 ÷ 3,969.16 = 2.96 years. This is the discounted payback. It is always later than the plain payback, because each flow is first cut by the discount rate. The final point of the line is the NPV itself.

The internal rate of return

The internal rate of return (IRR) is the discount rate at which the NPV is exactly 0. It is the yearly return the flows earn on the outlay. The calculator finds it by repeated halving between −99% and 1000%. For the example it is 18.03%: at that rate the same flows are worth exactly 10,000 today.

The IRR needs the flows to change sign once, an outlay followed by receipts. When the flows switch several times, for example receipts, then a cost, then receipts, more than one rate can make the NPV 0, and the page shows no single IRR instead of picking one. The NPV itself is unaffected.

What the page does not know

The discount rate is a number you choose and the calculator stores none. Every flow is taken as arriving at the end of its year, and the rate is held steady for all of them. Change the rate and the NPV moves, so try a few and see how much room there is before the result changes sign. For the single-amount case, use the time value of money calculator; for dated flows that do not fall on year ends, use the XIRR calculator.

Frequently asked questions

What is the NPV formula?

NPV = −outlay + CF1 ÷ (1 + r) + CF2 ÷ (1 + r)^2 + … + CFn ÷ (1 + r)^n, where CFt is the cash flow in year t and r is the discount rate as a fraction. The outlay is at time 0, so it is not discounted.

How does NPV differ from simply adding up the flows?

Adding up the flows treats money in year 4 as equal to money today. NPV cuts each later flow by the discount rate first. In the default example the plain total less the outlay is 5,000, but the NPV is 2,381.38.

What happens to NPV as the discount rate rises?

It falls, because later flows are cut by more. For a normal run of an outlay then receipts, NPV falls steadily until it reaches 0 at the internal rate of return, which is 18.03% in the default example.

Can the cash flows be negative in later years?

Yes. Type money going out as a minus on its line. The NPV still adds every discounted flow. Only the internal rate of return is affected: with several changes of sign there may be several rates, so the calculator shows none.

Is a positive NPV a promise of profit?

No. It says the flows you typed, at the rate you typed, are worth more today than the outlay. If the flows arrive late or small, or the right rate is higher, the answer changes. Try a few rates to see how much room there is.

This tool shows math, not advice.

Cite this page

Copy this line into a reference list, a report or a spreadsheet note.

Investment Math Calculator. “How to Calculate Net Present Value (NPV)”. Updated 2026-11-14. https://investmentmathcalculator.com/guides/npv-calculator/

Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.