How to calculate return on investment
Return on investment, or ROI, measures what you gained or lost compared with what you put in. ROI = (amount back - cost) / cost x 100. Our example puts in $10,000 and gets back $15,000. The gain is $5,000, and $5,000 divided by $10,000 is a 50% ROI. Change any number in the sentence above and every result updates as you type.
A total ROI hides how long it took. That same 50% is a great result over 2 years and a weak one over 20, so the calculator always asks for the time and turns the total into a yearly rate: (amount back / cost)^(1 / years) - 1. Over 5 years, 50% works out to 8.45% a year. Use the Return menu if you know a rate instead of a dollar amount, and the Time menu to enter exact dates.
A yearly rate still needs something to compare with, so the verdict sets yours against an S&P 500 index fund in two ways: its average over the last 30 years, and every run of the same length since 1872. At 8.45% a year for 5 years, the example comes out ahead of the index in 41% of those 5-year runs. That is a respectable result, but most of the time an index fund would have paid more for far less effort.
The plain formula also leaves out what really comes off the top. Open More options to add fees and other costs, any income the investment paid along the way, such as dividends, rent or interest, the tax rate on your gain and inflation. With $150 in fees and 15% tax, the example nets $4,123, or 7.05% a year, and 4.44% a year in real buying power after 2.5% inflation. The table under the result shows what happens if you get back less, it takes longer or yearly fees eat into it.
The ROI formula
\text{ROI} = \frac{\text{Amount back} - \text{Cost}}{\text{Cost}} \times 100 \qquad \text{Yearly rate} = \left(\frac{\text{Amount back}}{\text{Cost}}\right)^{1/\text{years}} - 1