Skip to main content
TaxMath

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.

The return you could earn elsewhere at the same risk.
Cash coming back
Net present value−$210.37
Internal rate of return
8.90%
Pays for itself in
2.6 years
Cash back in all
$12,000
Each year’s cash in today’s money
StepCash backPresent 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.

<!-- TaxMath npv and irr calculator -->
<div class="taxmath-embed" data-taxmath-calc="npv-irr" data-taxmath-title="NPV and IRR calculator" style="max-width:680px;margin:1.5rem auto">
  <p style="font:400 13px/1.4 system-ui,sans-serif;color:#4b4b5a;margin:.5rem 0 0">
    <a href="https://taxmath.org/calculators/npv-irr/?utm_source=embed&amp;utm_medium=referral&amp;utm_campaign=calculator-widget">NPV and IRR calculator</a> by <a href="https://taxmath.org/?utm_source=embed&amp;utm_medium=referral&amp;utm_campaign=calculator-widget">TaxMath</a>
  </p>
</div>
<script src="https://taxmath.org/embed.js" async></script>
Your site strips scripts? Use the iframe version
<!-- TaxMath npv and irr calculator -->
<div class="taxmath-embed" style="max-width:680px;margin:1.5rem auto">
  <iframe src="https://taxmath.org/embed/v3/npv-irr/"
          title="TaxMath — NPV and IRR calculator"
          width="100%" height="640" loading="lazy"
          style="width:100%;border:1px solid #d8dae6;border-radius:4px"></iframe>
  <p style="font:400 13px/1.4 system-ui,sans-serif;color:#4b4b5a;margin:.5rem 0 0">
    <a href="https://taxmath.org/calculators/npv-irr/?utm_source=embed&amp;utm_medium=referral&amp;utm_campaign=calculator-widget">NPV and IRR calculator</a> by <a href="https://taxmath.org/?utm_source=embed&amp;utm_medium=referral&amp;utm_campaign=calculator-widget">TaxMath</a>
  </p>
</div>
<script src="https://taxmath.org/embed.js" async></script>

Go further