NPV and IRR calculator
The net present value of an investment that costs money now and pays cash back each year at a discount rate you choose, its internal rate of return, and how many years it takes to pay for itself.
- Internal rate of return
- 8.90%
- Pays for itself in
- 2.6 years
- Cash back in all
- $12,000
| Step | Cash back | Present value |
|---|---|---|
| Year 1 | $3,000 | $2,727.27 |
| Year 2 | $4,000 | $3,305.79 |
| Year 3 | $5,000 | $3,756.57 |
| Year 4 | $0 | $0 |
| Year 5 | $0 | $0 |
| Year 6 | $0 | $0 |
- Assumed. Each year’s cash comes back at the year’s end. A positive NPV means the investment earns more than the discount rate; the IRR is the discount rate at which the NPV is zero.
How it works
The net present value is −cost + Σ cash in year t ÷ (1 + discount rate)^t, rounded to the cent. The internal rate of return is the rate that makes that sum zero, found by bisection inside the one bracket a fixed grid of rates finds, to within 10⁻¹², the same actuarial equation Regulation Z’s Appendix J solves for an APR.
The payback period counts whole years until the cash back reaches the cost, and the share of the next year’s cash still needed, without discounting.
Nothing you enter leaves your browser, and nothing is stored. The same calculator is available to AI agents as the tool calc_npv_irr, in the page through WebMCP and at https://taxmath.org/mcp.
Sources
Put this calculator on your site
Paste this where the calculator should appear. Our script draws the calculator above the credit line, which is a plain link in your page. It is free, needs no signup and keeps nothing your readers type. Please keep the credit line. The embed page lists the options it takes.