# NPV and IRR calculator for uneven cash flows

> Net present value discounts each cash flow to today and sums the discounted values; the internal rate of return is the discount rate that makes NPV zero. An investment of $10,000 that returns $3,000, $4,000, and $5,000 over three years has an NPV of $176.29 at an 8% discount rate and an IRR of about 8.90%.

Source: https://www.calterix.com/en-us/calculator/financial/npv-irr/ · Updated 11/06/2026 · en-US

## How NPV and IRR are calculated

Each cash flow is divided by (1 + rate) raised to the period number, which turns future dollars into today's dollars. NPV adds those present values to the initial investment, which is negative because money goes out.

```
NPV = CF0 + CF1 ÷ (1 + r)¹ + CF2 ÷ (1 + r)² + ... + CFn ÷ (1 + r)ⁿ
IRR = the rate r that makes NPV = 0
```
r is the discount rate per period. IRR has no closed formula, so the calculator searches for the rate by trial and refinement.

The parent [financial calculator](https://www.calterix.com/en-us/calculator/financial/) solves level payments (the same PMT every period). NPV and IRR handle uneven amounts, like a project that pays $3,000, then $4,000, then $5,000.

## Worked example: $10,000 project over 3 years

A $10,000 outlay returns $3,000, $4,000, and $5,000 at the end of years 1, 2, and 3. At an 8% discount rate:

| Year | Cash flow | Divide by | Present value |
| --- | --- | --- | --- |
| 0 | -$10,000.00 | 1.000000 | -$10,000.00 |
| 1 | $3,000.00 | 1.080000 | $2,777.78 |
| 2 | $4,000.00 | 1.166400 | $3,429.36 |
| 3 | $5,000.00 | 1.259712 | $3,969.16 |
| Total | $2,000.00 |  | NPV $176.29 |

Discount factors at 8% per year. Checked by hand.

At 10% the same flows give an NPV of -$210.37. Somewhere between 8% and 10% the NPV crosses zero: that crossing is the IRR, about 8.90%. The simple payback is 2.6 years, and the discounted payback at 8% is about 2.96 years.

## Reading the result: positive NPV and IRR vs hurdle rate

- NPV above zero: the flows return more than the discount rate, measured in today's dollars.
- NPV below zero: the flows return less than the discount rate.
- IRR above your hurdle rate (the minimum return you accept): the project clears the bar.
- Two projects of different sizes: NPV shows the dollar gain, while IRR only shows the rate, so a small project can have a higher IRR and a lower NPV.

> The discount rate is your choice: a cost of capital, a loan rate, or the return you could get elsewhere. A different rate changes the NPV, but never the IRR.

## NPV and IRR on a handheld financial calculator

Most handheld financial calculators use the same cash flow registers. The usual sequence:

1. Clear the cash flow memory.
2. Enter the initial investment as a negative number in CF0.
3. Enter each later flow with CFj (repeated equal flows can use the Nj count).
4. Enter the discount rate in I or i and press NPV.
5. Press IRR to get the internal rate of return.

Key names change by model; the guide to the [HP-12C style calculator online](https://www.calterix.com/en-us/calculator/financial/hp-12c/) covers the n, i, PV, PMT, and FV keys and the sign rules.

## Limits of IRR

Flows that change sign more than once, such as an outlay, two years of income, and then a cleanup cost, can have two IRRs or none. The calculator lists every rate it finds between -99% and 1,000% and suggests NPV in that case.

IRR also assumes each flow is reinvested at the IRR itself, which can flatter a high-return project. For growth of one lump sum at a fixed rate, the [investment growth calculator](https://www.calterix.com/en-us/calculator/investment-growth/) is simpler.

## Frequently asked questions

### How do I calculate NPV?

Divide each cash flow by (1 + rate) raised to its year and add the results to the initial investment: -10,000 + 3,000/1.08 + 4,000/1.08² + 5,000/1.08³ = $176.29.

### What is IRR in simple terms?

The yearly return at which the project breaks even in present value terms, the rate where NPV equals zero. For the $10,000 example, about 8.90%.

### Is a positive NPV good?

A positive NPV means the cash flows beat the chosen discount rate. Whether to go ahead also depends on risk and on how solid the cash flow estimates are.

### Why can IRR give two answers?

Cash flows that change sign more than once can produce more than one IRR, so compare projects with NPV instead.

### What discount rate should I use for NPV?

Use the return you need from the money: a cost of capital, a borrowing rate, or what a similar investment pays. The rate here is an input, not a recommendation.
