Free calculator

NPV calculator

Enter an investment and the cash flows it brings in, or paste them from a spreadsheet. You get net present value, IRR, payback and the Excel formulas that give the same answer.

Reviewed . Runs in your browser; nothing you enter is sent anywhere.

Project

Your required return or cost of capital, for one period.

Enter it as a positive number; it's treated as cash out.

Cash flows, end of year

Use a minus sign for a cash outflow, such as a later reinvestment.

MIRR rates (optional)

Blank uses the discount rate.

Blank uses the discount rate.

NPV= −100,000.00 + 25,000.00 ÷ (1 + 10%)^1 + 30,000.00 ÷ (1 + 10%)^2 + 35,000.00 ÷ (1 + 10%)^3 + … + 25,000.00 ÷ (1 + 10%)^5
45K−42K00%10%20%30%40%IRR 13.7%
NPV profile. The highlighted point is your discount rate; the line crosses zero at the IRR.

Discounted cash flows

Period 0 is today. Later cash flows are at the end of each year, discounted at 10% per year.
YearCash flowDiscount factorPresent valueCumulativeCumulative PV
0(100,000.00)1.000000(100,000.00)(100,000.00)
125,000.000.909091(75,000.00)(77,272.73)
230,000.000.826446(45,000.00)(52,479.34)
335,000.000.751315(10,000.00)(26,183.32)
430,000.000.68301320,000.00(5,692.92)
525,000.000.62092145,000.009,830.12
Net present value9,830.12

Check it in Excel or Google Sheets

With the initial investment in B2 as a negative number and the cash flows in B3:B7:

=NPV(10%, B3:B7) + B2
$9,830.12
=IRR(B2:B7)
13.75%

Leave B2 out of the NPV range. Excel’s NPV function discounts the first value it’s given by one full period, so including today’s investment understates the result.

The NPV formula

NPV−C₀ + C₁ ÷ (1 + r) + C₂ ÷ (1 + r)^2 + … + Cₙ ÷ (1 + r)^n

C₀ is the investment today, C₁ to Cₙ the cash flows at the end of each period, and r the discount rate per period. The calculator’s starting example, a $100,000 investment returning $25,000, $30,000, $35,000, $30,000 and $25,000 over five years, has an NPV of $9,830.12 at 10% and an IRR of 13.75%. It pays back in 3.33 years before discounting.

The measures, side by side

MeasureWhat it tells youWatch for
NPVValue added at your discount rate, in dollars.Only as good as the discount rate and cash flow estimates.
IRRThe discount rate at which NPV is zero.More than one answer when cash flows change sign more than once.
MIRRA return using explicit finance and reinvestment rates.Depends on the rates you choose.
PaybackHow long until cumulative cash flow turns positive.Ignores the time value of money and cash after payback.
Discounted paybackPayback using present values.Still ignores cash after payback.
Profitability indexPresent value of later cash flows per dollar invested.Above 1.0 when NPV is positive; useful to compare projects of different size.

NPV and IRR in Excel

Excel=NPV(rate, C₁:Cₙ) + C₀

Excel’s NPV discounts the first value in its range by a full period, so add today’s cash flow outside the function. Enter the investment as a negative number. =IRR(C₀:Cₙ) takes the whole range, investment included. The calculator prints both formulas with the results they should return.

For uneven dates rather than regular periods, Excel has XNPV and XIRR. For lease cash flows under ASC 842, use the lease liability calculator. If the rate or the time to recover matters more than the amount, the IRR calculator and the payback period calculator lead with those results.

NPV: questions

What does a positive NPV mean?
The cash flows, discounted at your rate, are worth more than the investment, so the project earns more than the discount rate. A negative NPV means it earns less. At exactly zero, the return equals the discount rate, which is the IRR.
What's the difference between NPV and IRR?
NPV is an amount: the value the project adds at your discount rate. IRR is a rate: the discount rate at which NPV is zero. They usually agree on whether to accept a single project, but they can rank two projects differently when the projects differ in size or timing.
Why does Excel's NPV give a different answer?
Excel's NPV function treats the first value in its range as one period away. Put today's investment in that range and it gets discounted too. For the example below, the correct formula returns $9,830.12; including the investment in the range returns $8,936.47.
When can a project have more than one IRR?
When the cash flows change sign more than once, such as an investment, then income, then a large cleanup cost. The calculator flags it. NPV at your discount rate gives a single, reliable answer in those cases.
What is MIRR?
Modified IRR assumes cash coming in is reinvested at a reinvestment rate and cash going out is financed at a finance rate, instead of both at the IRR. It returns a single rate even when the cash flows change sign more than once. Both rates default to your discount rate.

More free tools

Sources

Official documents read on October 29, 2026. Vendor facts are sourced on each listing.

  1. NPV function (Microsoft Support)
  2. IRR function (Microsoft Support)