NPV and IRR Calculator
Find the net present value and internal rate of return of a series of cash flows.
Last updated: October 7, 2026. Page text and examples were checked against the calculator code on that date. The page uses arithmetic only, with no rate or price data to go out of date.
What NPV and IRR mean
Net present value (NPV) adds up all the cash flows after converting each one to today's money. A cash flow that arrives later is worth less, because you could have earned the discount rate on it in the meantime. A positive NPV means the investment earns more than the discount rate. A negative NPV means it earns less.
The internal rate of return (IRR) is the discount rate at which the NPV is exactly zero. If the IRR is above the return you require, the project looks worthwhile. IRR is not defined when all cash flows have the same sign, and it can be unreliable when the sign changes several times.
Excel note: the spreadsheet function NPV assumes the first value happens one period from now, so people add the initial investment separately. This calculator treats the first line as happening today, so no adjustment is needed.
Choosing a discount rate
The discount rate is the return you could expect from an alternative use of the money, adjusted for risk. A company might use its cost of capital. An individual might use the return on a savings or investment option they are giving up. Use the same period for the rate and the cash flows: if the flows are yearly, use a yearly rate.
Try a few rates. If the answer flips from positive to negative across a reasonable range, the decision is sensitive to your assumption.
Worked example
You put in $10,000 now and expect $3,000, $4,000, $5,000 and $2,000 over the next four years. At an 8% discount rate the present values are about $2,778, $3,429, $3,969 and $1,470, which add up to $11,646. Subtracting the $10,000 you paid gives an NPV of about $1,646. The IRR is about 15.3%, which is the return the project earns on the money tied up. It beats an 8% requirement; if you required 18% the NPV would be negative.
Because later money is worth less, rearranging the same $14,000 of inflows so that more arrives early raises both the NPV and the IRR.
Methodology and sources
NPV is the sum of each cash flow divided by (1 + r)t, where r is the discount rate per period and t is the period number, starting at zero for the first line. IRR is found by bisection, searching from -99% to 1,000% for the rate that makes NPV zero, and it returns nothing when the cash flows have only one sign or no root lies in that range. No external data is used.
Limitations and assumptions
This is an educational calculation and not investment, tax or financial advice. Cash flows are treated as certain and equally spaced, and taxes, inflation and risk are modelled only if you build them into the numbers and the rate. When the signs of the cash flows change more than once there can be more than one IRR, and the calculator reports only one. Use the result as one input to a decision, not the decision itself.
These calculators give estimates for education and planning. They are not financial advice, and real lenders may add fees, taxes, insurance or different rounding. Nothing you type is sent anywhere.