induwara.lk
induwara.lkFinance · Capital budgeting

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.

By Induwara AshinsanaUpdated Jun 26, 2026
Investment appraisalNPV · IRR · payback · PI
Formula cross-checked
Rs

The up-front outlay at the start (period 0).

%

Per year. Your hurdle rate or cost of capital.

Labels only — the math is the same.

Display only — values are never converted.

Cash flow per year

1Rs
2Rs
3Rs
4Rs
5Rs
5 of 30 periods

Accept — NPV is positive at Rs 81,433.

IRR (15.2%) exceeds your 12.0% required return. Payback is 3.33 years.

Net present value
Rs 81,433
Adds value at your rate
Internal rate of return
15.2%
vs 12.0% required
Profitability index
1.081
PI > 1 → accept
Payback period
3.33 years
Undiscounted
Discounted payback
4.52 years
On a present-value basis
Sum of present values
Rs 1,081,433
Σ discounted inflows (before outlay)

Discounted cash flows

012345
OutlayDiscounted inflow (PV)

Year-by-year breakdown

YearCash flowDisc. factorPresent valueCum. (undisc.)Cum. (disc.)
0Rs -1,000,0001.0000Rs -1,000,000Rs -1,000,000Rs -1,000,000
1Rs 300,0000.8929Rs 267,857Rs -700,000Rs -732,143
2Rs 300,0000.7972Rs 239,158Rs -400,000Rs -492,985
3Rs 300,0000.7118Rs 213,534Rs -100,000Rs -279,451
4Rs 300,0000.6355Rs 190,655Rs 200,000Rs -88,795
5Rs 300,0000.5674Rs 170,228Rs 500,000Rs 81,433
Net present valueRs 81,433

Cumulative columns net off the initial outlay, so the period where each crosses zero is the (discounted) payback point. See the sources for the formula definitions.

Method follows the NPV / IRR / payback definitions in Brealey & Myers and the CFA capital-budgeting reading; the even-cash-flow NPV is cross-checked against the closed-form annuity formula. Sources are listed below the calculator.

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:

  1. Discount factor for each period: DF_t = 1 / (1 + r)^t.
  2. Present value of each flow: PV_t = CF_t × DF_t.
  3. 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.
  4. 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.
  5. 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.
  6. 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

Even cash flows — a Rs 1,000,000 oven

Initial Rs 1,000,000 · 12% required return · Rs 300,000/yr for 5 years

  1. PV year 1: 300,000 / 1.12 = 267,857.14
  2. PV year 2: 300,000 / 1.12² = 239,158.16
  3. PV year 3: 300,000 / 1.12³ = 213,534.07
  4. PV year 4: 300,000 / 1.12⁴ = 190,655.42
  5. PV year 5: 300,000 / 1.12⁵ = 170,228.06
  6. Σ PV = 1,081,432.86
  7. NPV = 1,081,432.86 − 1,000,000 = Rs 81,433
  8. PI = 1,081,432.86 / 1,000,000 = 1.081
  9. Payback = 1,000,000 / 300,000 = 3.33 years
  10. IRR ≈ 15.2% (NPV is +5,647 at 15%, −17,709 at 16%)
  11. Verdict: NPV > 0 and IRR (15.2%) > 12% → Accept

Uneven cash flows — a small-business project

Initial Rs 500,000 · 10% required return · 100k / 150k / 200k / 250k

  1. PV: 90,909.09 + 123,966.94 + 150,262.96 + 170,753.36 = 535,892.35
  2. NPV = 535,892.35 − 500,000 = Rs 35,892
  3. PI = 535,892.35 / 500,000 = 1.072
  4. Payback: 450,000 recovered by year 3; (500,000 − 450,000)/250,000 = 3.20 years
  5. Discounted payback: 365,138.99 by year 3; (500,000 − 365,138.99)/170,753.36 = 3.79 years
  6. IRR ≈ 12.8% (NPV is +10,103 at 12%, −2,095 at 13%)
  7. Verdict: NPV > 0 and IRR (12.8%) > 10% → Accept

Edge case — money never recovered

Initial Rs 1,000,000 · 10% required return · Rs 100,000/yr for 3 years

  1. Total undiscounted inflows = 300,000, far below the 1,000,000 outlay
  2. Σ PV = 248,685; NPV = 248,685 − 1,000,000 = −Rs 751,315
  3. PI = 0.249 (well under 1)
  4. Payback = not recovered within 3 years (shown as —)
  5. IRR ≈ −42% (the project loses money even before discounting)
  6. Verdict: NPV < 0 → Reject

Frequently asked questions

Sources & references

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

Rate this tool
Be the first to rate

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.