NPV and IRR step by step
Enter the cash flows of an investment and watch how each one is brought to today, what the NPV is worth at the rate you require, where the curve crosses zero (the IRR), when the money is recovered and what price you need to reach a return. It runs in the browser, on your phone too.
How to use it
- Start with “A euro tomorrow is worth less”: Brisa Patín’s e-scooter fleet, first added up as it is and then with each flow brought to today.
- In “The IRR: where the curve crosses zero”, move the rate and watch the NPV curve at the bottom: the coral dot is the IRR.
- In “When the investment pays back”, switch the top view to “cumulative flow” and compare the simple payback with the discounted one.
- In “What price do I need?” the flows come from rides times price minus payments: the “Minimum price at this rate” button leaves the NPV at zero.
- Open the controls and enter the flows from your exercises. “Explain it slowly” shows each year’s calculation, the way you would write it in Python.
What it calculates
With the flows F0, F1, …, Fn (the outlay with a minus sign and the residual value added to the last one) and the required rate i: the value today of each flow, Ft/(1 + i)t; the NPV, their sum; the NPV curve for every rate; the IRR, the rate with zero NPV, by bisection; the simple payback period (splitting the last year) and the discounted one; and, with rides, payments and price, the minimum price that leaves the NPV at zero, solved from the line NPV(p). The figures match those in the NPV and IRR topic.
