NPV and IRR calculator (is a cash flow worth it, in numbers)
present value and internal rate of return
Example figures, change them
Fill in the fields above to see the result.
Results
- NPV
- IRR
- Payback period
Use the same currency for every amount. Results follow only from the numbers you enter.
What it is
A cash flow is money going out and coming in over time. NPV (net present value) puts every amount on today's footing by discounting it at a rate you choose, then adds them up. A positive NPV means the flows are worth more than the rate you tested them against. IRR (internal rate of return) is the discount rate that makes NPV exactly zero.
This calculator has editable rows: year 0 is today, negative amounts are money out and positive amounts are money in. It reports NPV, IRR and the payback period, which is the time until the running total of the flows reaches zero.
Why it matters
Money later is not the same as money now. A discount rate turns future amounts into an equivalent today, so projects or payments with different timings can be compared. NPV is the direct test at the rate you choose.
IRR summarises the same cash flows as one rate, which is easier to quote but can mislead when cash flows change sign more than once or when the project size differs. The calculator shows both so the numbers can be read together. It does not say what rate is good for you.
How to use this tool
- Enter a discount rate to test the flows against. The page opens on example figures; replace them with your own.
- Fill the cash-flow rows. Year 0 is today. Use a minus sign for money out and a plus sign for money in.
- Add a year if the flow runs longer, or remove a row you do not need.
- Read NPV, IRR and the payback period. If the flows never change sign, IRR has no answer and the page says so.
- Change one number at a time to see which input moves the result most.
Formula
CF(t) = cash flow in year t, r = discount rate / 100, n = number of years NPV = sum of CF(t) / (1 + r)^t for t = 0 to n IRR = the rate r where NPV = 0 Payback = the first year the undiscounted running total reaches zero IRR is found numerically: Newton's method from 10%, and bisection when that does not settle.
Worked example
A payment of 500,000 today followed by 120,000 at the end of each of the next 5 years, tested at an 8% discount rate.
NPV = -500,000 + 120,000 / 1.08 + 120,000 / 1.08^2 + ... + 120,000 / 1.08^5 = about -20,875. The flows are worth about 20,875 less than the 8% test rate requires.
The IRR is about 6.40% a year, the rate at which NPV would be zero. The payback period is about 4.17 years. Reading them together: at 8% the NPV is negative, while IRR is below 8%. The numbers are illustrative and use no particular currency.
Common mistakes
- Putting the first outflow in year 1 instead of year 0. The timing changes both NPV and IRR.
- Changing the discount rate to make an NPV positive. The rate is a test input, not a result.
- Reading IRR as the return on the money actually invested. It is the rate that zeroes this set of flows.
- Using IRR when the flows change sign more than once. More than one rate can zero the same flows.
- Forgetting that payback ignores the time value of money and everything after the payback year.
Questions people ask
What is NPV in plain words?
The value today of a set of future cash flows, after discounting them at a rate you choose. A positive NPV means the flows beat that rate.
What is IRR in plain words?
The single yearly rate that makes the NPV of the cash flows zero. It is a summary of the flows, not a statement about whether they are good.
Why can IRR be missing?
IRR needs at least one negative and one positive flow. If every amount has the same sign, no rate can make the total zero.
What does payback period mean?
The time until the running total of the cash flows reaches zero. It ignores discounting and anything after that point.
Which discount rate should I use?
There is no single answer. The rate is an assumption that reflects what you are testing the flows against. Try more than one and compare.
Is my input stored?
No. The calculation runs in your browser. A copied link carries the inputs in the address.
Sources
Lipi Technology editorial, reviewed
Related tools
Educational use only, not financial advice. Results come only from the numbers you enter. Read the disclaimer