Home / Science / Social sciences / Economics / NPV and IRR calculatorTool #743

NPV and IRR calculator: net present value, every IRR, MIRR, payback, discounted payback and profitability index, with NPV profile

Enter a project's cash flows and a discount rate to get the net present value, every internal rate of return (with a warning when there is more than one), the modified IRR, payback and discounted payback, the profitability index and the equivalent yearly amount, plus an NPV profile chart. Matches numpy-financial.

Keep it one tap away for everyday use.

Bookmark NPV and IRR calculator?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Cash flows
  2. Rate
  3. NPV, IRR
  4. Profile
Nothing is uploadedWorks offline once open

Cash flows

The first row is today (period 0) and each later row is the end of the next period. The discount rate is your cost of capital or the return you could get elsewhere. The example project is made up.

Appraisal

Period by period

Download

What it does

Should you invest in a project, a machine, a course or a rental property? Money now is worth more than the same money later, so this calculator discounts each future cash flow back to today. It shows:

  • NPV (net present value): today’s value of all the money in and out, at your discount rate. Above zero, the project beats the discount rate.
  • IRR (internal rate of return): the rate at which NPV is exactly zero. The tool finds every IRR, and warns you when there are several, which happens when money goes out again later (for example a clean-up cost at the end).
  • MIRR (modified IRR): one rate that assumes money out is financed at one rate and money in is reinvested at another, so it always has a single answer.
  • Payback and discounted payback: how long until the money is back, without and with discounting.
  • Profitability index: present value of later cash flows per unit invested today.
  • Equivalent yearly amount: the level yearly sum with the same NPV, handy for comparing projects of different lengths.
  • An NPV profile chart: NPV against the discount rate, crossing zero at each IRR.

Everything runs in your browser.

It works well with the loan payoff planner, the budget planner and the uncertainty propagation calculator.

How to use it

  1. Type or paste the cash flows, one row per period, oldest first. Money out is negative. The first row is today (period 0); a period column is optional and may use calendar years.
  2. Enter the discount rate per period, such as your cost of borrowing or the return you could earn elsewhere.
  3. Leave the MIRR rates blank to use the discount rate, or set a finance and a reinvestment rate.
  4. Download the table as CSV, or the report as an image, PDF or Word file.

Worked example (made-up project)

A project costs $10,000 today and brings in $3,000, $4,200, $4,800, $2,500 and $1,500 over five years. At 10 % a year:

  • NPV = $2,443.57, so it adds value.
  • IRR = 20.01 % a year; the MIRR at 10 % is 14.92 %.
  • Payback 2.58 years; discounted payback 3.11 years.
  • Profitability index 1.244, and an equivalent yearly amount of $644.61.

Several IRRs

Cash flows −1,600, +10,000, −10,000 have IRRs of 25 % and 400 %: NPV is negative below 25 %, positive between, and negative again above 400 %. Neither rate tells you whether to invest; NPV at your discount rate (−$773.55 at 10 %) does. The tool marks every IRR on the profile chart.

FAQ

Which discount rate should I use? For a business, its weighted average cost of capital; for a household, the interest rate on its debt or the return on its savings. Try a few rates and watch the profile.

Why might NPV and IRR disagree when ranking projects? IRR ignores the size of a project and assumes cash is reinvested at the IRR itself. When they disagree, NPV is the safer guide.

Where the numbers come from

  • Standard capital budgeting formulas (discounted cash flow, internal rate of return, modified IRR, payback, profitability index, equivalent annual annuity) as in corporate finance textbooks. No tables copied.
  • Written by fibub. Checked in the tests against numpy-financial 1.1 (npv, irr, mirr), every IRR against the real roots of the cash-flow polynomial from numpy.roots, and payback against numpy.cumsum.
  • The example project is made up.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Related tools

Budget planner #10 Work out what a trip, project or event will cost and how much to save each month, or plan your monthly budget with weekly and yearly bills, and see your savings grow. Uncertainty propagation calculator #25 Type your formula and your measurements with their uncertainties, or paste repeated readings. Get the result with its uncertainty, which input matters most, and a Monte Carlo check. Loan payoff planner #11 Plan extra payments on a home, car or personal loan, as lump sums or regular top-ups, and see the interest you save and how much sooner you're debt-free. Inflation calculator #739 Turn money from one date into money of another with the price index (CPI) numbers you enter, or with a steady yearly rate. Paste a whole index series to rebase it, see inflation each period and year on year, and convert wages or sales into real values. Includes the Fisher equation for real interest rates, exact and approximate. Supply and demand #738 Enter a demand and a supply curve (straight lines or constant elasticity) and see the market price and quantity, price elasticities, consumer and producer surplus, and what a per-unit tax, subsidy, price ceiling or price floor does: who pays, the shortage or surplus and the deadweight loss, with a chart. Nash equilibrium solver #740 Type in a two-player game of up to 6 × 6 strategies and get every Nash equilibrium, pure and mixed, with each player's payoff. Best replies are marked in the payoff table, dominated strategies are removed step by step, and zero-sum games get their value and the safest mixes. Matches nashpy.