Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

NPV Calculator

What a project’s future cash flows are worth today — and whether it pays.

Business No upload Works offline Free, no sign-up

Cash flows and discount rate

Cash flows come
% a year
Your cost of capital, or the return you could earn elsewhere at similar risk.
Choose another option to type a rate on each row.

Cash flows

Money going out (the investment, costs) is negative — use ± on a phone. Money coming in is positive.

    The starting values are Microsoft’s NPV example; Excel gives 1,922.06 for them.

    Add a series equal or growing cash flows for several periods
    %
    Paste from a spreadsheet a column or row of numbers, or dates with amounts
    Copied from Excel or Google Sheets, or typed. The first number is period 0 (today); a column of period numbers (0, 1, 2 …) copied with the amounts is left out.
    Net present value (NPV) —

    —Present value of money in
    —Present value of money out
    —Profitability index
    —Discounted payback

    Present value by period, and the running total

    • Money in (PV)
    • Money out (PV)
    • Running total = NPV so far

    Where the running total crosses zero, the investment has been paid back in today’s money. The last point is the NPV. Hover or tap a column for its values.

    Discounted cash flows

    The same in Excel or Google Sheets

    How this was calculated

    Next steps

    Results are estimates for general information and planning, not financial advice. Banks and institutions may calculate differently (rounding, fees, rate changes). Confirm figures with your lender or a qualified adviser before deciding.

    About the NPV Calculator

    Money received later is worth less than money today, because today’s money could be earning a return in the meantime. Net present value (NPV) discounts every future cash flow of a project back to today at your discount rate — the return you could earn elsewhere on an investment of similar risk — and adds them up, investment included. A positive NPV means the project earns more than that rate; a negative NPV means it earns less.

    Enter the cash flows one per year, half-year, quarter or month (period 0 is today), or on exact dates for XNPV. Use one discount rate, or a different rate for each period. The calculator shows the NPV, the present value of the money coming in and going out, the profitability index, the simple and discounted payback, a chart of the running total and the Excel formula that gives the same answer — including the common mistake with Excel’s NPV, which discounts the first value as well. Nothing you enter leaves your browser.

    How to use it

    1. Choose whether the cash flows come every period (and how long a period is) or on dates (XNPV).
    2. Enter the discount rate — your cost of capital or the return you require. For monthly or quarterly periods, choose whether it is a yearly rate (converted for you) or a rate per period.
    3. Enter the cash flows: the investment as a negative amount (the ± button flips the sign on phones), money coming in as positive amounts. Period 0 is today and is not discounted.
    4. To fill many rows at once, open Add a series (equal or growing amounts) or Paste from a spreadsheet (a column or row of numbers, or dates with amounts).
    5. Read the NPV and the other results, check the chart and the table, copy the Excel formula, copy the summary or download the table as CSV.

    Examples

    Microsoft’s NPV example (the starting values)
    Input
    −40,000 today; then 8,000, 9,200, 10,000, 12,000 and 14,500 at the end of years 1–5; 8% a year
    Result
    NPV 1,922.06 · profitability index 1.048 · discounted payback 4.81 years

    Excel: =NPV(8%, B2:B6) + B1 gives 1,922.06. =NPV(8%, B1:B6) gives 1,779.69 — it treats today’s −40,000 as if it were paid a year from now.

    Three years of 500 for 1,000 today, at 10%
    Input
    −1,000; 500; 500; 500
    Result
    NPV 243.43 · PI 1.243 · simple payback 2 years · discounted payback 2.35 years

    The discounted payback is longer because later cash is worth less: after two years the present values still fall 132.23 short, and year 3 is worth 375.66 today.

    Microsoft’s XNPV example (dated)
    Input
    −10,000 on 1 Jan 2008; 2,750 on 1 Mar 2008; 4,250 on 30 Oct 2008; 3,250 on 15 Feb 2009; 2,750 on 1 Apr 2009; 9% a year
    Result
    XNPV 2,086.65

    XNPV discounts each amount by its days from the first date on a 365-day year: 2,750 ÷ 1.09^(60 ÷ 365) for 1 March.

    Common uses

    • Decide whether a machine, a new outlet or a software project is worth its cost at your cost of capital.
    • Compare projects of different sizes by NPV and by profitability index.
    • Check a spreadsheet NPV — and catch the first-value-discounted mistake.
    • Value irregular cash flows on real dates, such as staged payments for a property or milestone payments in a contract.

    The NPV formula and the NPV rule

    NPV = CF₀ + CF₁ ÷ (1 + r) + CF₂ ÷ (1 + r)² + … + CFₙ ÷ (1 + r)ⁿ

    • CFₜ is the net cash flow of period t (CF₀, today, is usually the investment and is not discounted).
    • r is the discount rate per period: the opportunity cost of capital, the return investors give up by putting money into this project rather than into an investment of similar risk.

    The NPV rule in Brealey, Myers & Allen’s Principles of Corporate Finance is to accept projects with a positive NPV, because they are worth more than they cost. NPV is in money, so the NPVs of separate projects can be added up — unlike rates of return.

    Excel’s NPV and XNPV: what they assume

    • NPV(rate, value1, …) assumes value1 arrives one period from now (Microsoft: “the NPV investment begins one period before the date of the value1 cash flow”). An investment made today must be added outside the function: =NPV(rate, year 1 … year n) + today’s amount. Including it inside discounts it by one period, and the result is the true NPV ÷ (1 + rate).
    • NPV skips empty cells, so a blank year moves every later cash flow one period earlier. Type 0 for a period with no cash flow; this calculator counts a blank between two amounts as 0 and says so.
    • XNPV(rate, values, dates) discounts each amount to the first date in the list with (1 + rate)^((dᵢ − d₁) ÷ 365). The other dates may be in any order, but XNPV returns #NUM! if any of them is earlier than the first, so put the earliest date first. The rate is always a yearly rate.

    Google Sheets and LibreOffice Calc use the same definitions. Function behaviour as documented on Microsoft’s NPV and XNPV help pages.

    Profitability index and payback

    • Profitability index (PI) = present value of the cash flows after today ÷ the initial investment. A PI above 1 is the same as a positive NPV. Brealey, Myers & Allen define it as NPV ÷ investment (above 0 = positive NPV); both versions are shown and rank projects the same way. It is useful when capital is limited, to rank projects by value per rupee invested.
    • Simple payback is how long the undiscounted cash flows take to repay the investment; discounted payback uses the present values, so it is always at least as long. Within the period in which the total turns positive, the cash flow is assumed to arrive evenly.
    • Payback ignores everything after the payback point, so a project with a quick payback can still have a lower NPV. Use it as a measure of risk and liquidity alongside NPV, not instead of it.

    A different rate for each period

    Choose A rate for each period and type a rate on each row (a blank row uses the main rate):

    • Chained period rates: each rate applies to its own period and compounds on the earlier ones — DFₜ = DFₜ₋₁ ÷ (1 + rₜ). Use this when the required return changes over time, for example a higher rate in a riskier early phase.
    • Spot rates: each rate is the rate for money received at that date, as read from a yield curve — DFₜ = 1 ÷ (1 + rₜ)^t. This is how Brealey, Myers & Allen value cash flows when interest rates differ by maturity.

    Excel’s NPV takes a single rate; the table’s discount-factor column lets you rebuild the result with SUMPRODUCT.

    Monthly, quarterly and half-yearly periods

    With periods shorter than a year, a yearly rate R becomes a rate per period in one of two ways:

    • Compounded yearly (effective): (1 + R)^(1/k) − 1, where k is the number of periods in a year. 10% a year is 2.4114% a quarter. Use this when R is an effective annual rate, as a cost of capital usually is.
    • Nominal: R ÷ k. 12% a year is 1% a month — the convention behind loan and deposit rates.

    Or type the rate per period directly. The page shows the per-period rate it used.

    Limitations

    • Each periodic cash flow is treated as arriving at the end of its period (period 0 = today). Cash that arrives through the year is not modelled as mid-period.
    • The result is only as good as the forecasts: taxes, inflation and financing costs count only if they are in the cash flows. Keep the rate consistent with the cash flows — nominal rates with nominal (inflated) cash flows.
    • XNPV counts days on a 365-day year from the first date, as Excel does; a leap day counts as 1/365 of a year.
    • Up to 1,200 periods or dated cash flows at a time.

    Privacy

    Everything is calculated in your browser. The cash flows, rates and results are never uploaded or stored on a server.

    Frequently asked questions

    What discount rate should I use?

    The opportunity cost of capital: the return you could expect from an investment of similar risk. Companies often use their weighted average cost of capital (WACC) for projects as risky as the business as a whole, and a higher rate for riskier projects. Use a rate that matches the cash flows: nominal rates for cash flows that include inflation.

    Why does Excel’s NPV give a different answer?

    Excel’s NPV discounts its first value by one period. If the first value is an investment made today, write =NPV(rate, B2:Bn) + B1 instead of =NPV(rate, B1:Bn). The second form gives the true NPV divided by (1 + rate). Blank cells are also skipped, which shifts the later years.

    What is the difference between NPV and IRR?

    NPV is the value a project adds, in money, at your discount rate. IRR is the discount rate at which the NPV would be zero. They agree on single projects with an investment followed by income, but IRR can mislead when projects differ in size or timing or when cash flows change sign more than once. Brealey, Myers & Allen recommend NPV in those cases. Work out the IRR with the IRR calculator.

    What does a negative NPV mean?

    At your discount rate, the project’s future cash flows are worth less today than it costs: it earns less than the rate you could get elsewhere at similar risk. It may still make a profit in money terms — only not enough to pay for the time and risk.

    When should I use XNPV instead of NPV?

    When the cash flows do not arrive at equal intervals — staged payments, irregular receipts, or a first cash flow that is not exactly one period before the next. XNPV uses the actual dates and a yearly rate.

    Is a higher profitability index always better?

    It tells you the value created per rupee invested, which helps rank projects when the money available is limited. Between two projects you cannot both undertake, the one with the higher NPV adds more value even if its PI is lower.

    Quick answers and tool search

    Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.