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.
- 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.