Skip to main content
TaxMath

Investment return calculator

The annual rate of return on an investment with money added or taken out along the way, figured from the dates and amounts you enter, with the gain over what you put in.

Start and end
Money added or taken out 1
Money added or taken out 2
Money added or taken out 3
Leave at 0 if there is none.
Annual rate of return6.44%
Gain
$4,500
You put in
$14,000
Gain over what you put in
32.1%
  • Assumed. The rate is money-weighted: it counts when you added or took out money, so it measures your own result rather than the fund’s. A fund’s published return is time-weighted and can differ.
  • Assumed. Years are counted as 365 days. Taxes and fees are in the result only as far as they lowered the values you enter.

How it works

Each amount is placed at its date, in years of 365 days from the first: money put in counts against you and money taken out, with the end value, for you. The annual return is the rate at which their values, each discounted by (1 + rate)^years, add up to zero, the method Regulation Z’s Appendix J uses for the APR of irregular loan payments.

The rate is found by bisection inside the one bracket a fixed grid of rates finds, to within 10⁻¹²; when no rate or more than one fits, it is not figured.

Nothing you enter leaves your browser, and nothing is stored. The same calculator is available to AI agents as the tool calc_investment_return, 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 investment return calculator -->
<div class="taxmath-embed" data-taxmath-calc="investment-return" data-taxmath-title="Investment return 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/investment-return/?utm_source=embed&amp;utm_medium=referral&amp;utm_campaign=calculator-widget">Investment return 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 investment return calculator -->
<div class="taxmath-embed" style="max-width:680px;margin:1.5rem auto">
  <iframe src="https://taxmath.org/embed/v3/investment-return/"
          title="TaxMath — Investment return 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/investment-return/?utm_source=embed&amp;utm_medium=referral&amp;utm_campaign=calculator-widget">Investment return 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