Essa Shakeel Finance 100 #78 · Business & Freelance View source on GitHub

NPV & IRR Calculator

NPV, IRR, MIRR, payback and profitability index for any series of cash flows.

Your numbers

Enter one row per period. Row 1 is year 0, the purchase, usually a negative number. Your list is saved in this browser only.

Results

Cash flows by period

NPV at each discount rate

How it works

NPV is sum of CFt / (1 + r)^t, with year 0 undiscounted. A positive NPV means the project earns more than the discount rate. IRR is the rate where NPV is zero, found by bisection. Cash flows with more than one sign change can have more than one IRR, and the tool flags them.

MIRR discounts the outflows to year 0 at the discount rate and compounds the inflows to the last year at the reinvestment rate: (FV inflows / PV outflows)^(1/n) - 1. It avoids the IRR assumption that every inflow is reinvested at the IRR itself.

Payback is the time until the running total of cash flows turns positive. Discounted payback does the same with discounted flows, so it is always longer. Both are interpolated within the year they are recovered.

Profitability index is the PV of later cash flows divided by the year 0 outlay. Above 1.0 means the NPV is positive.

Limits: all flows are treated as end-of-period. Taxes, inflation and financing are not modelled unless you put after-tax figures in the rows. The chart and results assume one project, not a choice between mutually exclusive projects of different sizes.