NPV & IRR Calculator — Investment Appraisal
Enter an initial outlay, your required return, and the expected cash flows to get net present value, internal rate of return, payback, discounted payback and the profitability index — with a plain-English accept-or-reject verdict and a year-by-year DCF table. LKR-first, no signup, sources cited below.
How it works
This is a discounted-cash-flow appraisal. Money in the future is worth less than money today, so every expected cash flow is converted to today's value before the decision is made. The methodology follows the standard definitions in Brealey & Myers' Principles of Corporate Financeand the CFA Program's capital-budgeting reading.
Write C0 for the initial investment (entered as a positive number, treated as an outflow at period 0), r for the discount rate as a decimal, and CF_t for the cash flow in period t. The tool computes:
- Discount factor for each period:
DF_t = 1 / (1 + r)^t. - Present value of each flow:
PV_t = CF_t × DF_t. - Net present value:
NPV = (Σ PV_t) − C0. The decision rule is to accept when NPV is greater than zero, because a positive NPV means the project earns more than your required return. - Internal rate of return is the rate
ithat makes NPV zero. There is no closed-form solution, so the tool brackets the first point where NPV crosses zero and then bisects to a tolerance of 1e-7 (up to 200 iterations). If the cash-flow stream never changes sign it reports "n/a"; if it changes sign more than once it warns that several IRRs may exist. - Payback period walks the cumulative undiscounted cash flow until it recovers C0, interpolating within the final period. Discounted payback does the same on the discounted cash flow, so it is always the longer figure.
- Profitability index:
PI = (Σ PV_t) / C0; accept when PI is above 1. It is NPV expressed per rupee invested, useful for ranking projects under a capital limit.
NPV is the primary criterion. When NPV and IRR disagree — possible for non-conventional streams or between mutually exclusive projects — the tool surfaces the conflict and defers to NPV, in line with the CFA NPV-over-IRR rule. For even cash flows the NPV is independently cross-checked against the closed-form present-value-of-an-annuity formula PV = CF × [1 − (1 + r)^−n] / r, so you can trust the headline figure to the rupee.
Worked examples
Frequently asked questions
Sources & references
- Investopedia — Net Present Value (NPV): formula and decision rule
- Investopedia — Internal Rate of Return (IRR): definition and method
- CFA Institute — Capital Budgeting / Capital Investments (decision rules, discounted payback, PI)
- Investopedia — Profitability Index (PI)
NPV, IRR, payback and profitability index are universal corporate-finance definitions (no single rate-setting authority); the canonical reference is Brealey, Myers & Allen, Principles of Corporate Finance. The formulas and the IRR solver on this page were last cross-checked against the worked examples on 2026-06-26.
Related tools
Comments & feedback
Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.
Found a bug, edge case, or want to suggest an improvement?
Email me at [email protected] — most fixes ship within 24 hours.