How to use the ROI calculator
- Enter the amount invested: what you paid.
- Enter the amount returned: what you sold it for, or what it's worth today.
- Enter how long you held it in years and months, or pick Two dates and enter when you bought and sold, to get the annualized figure.
- Optional: add fees and costs (they count as money put in) and income you received while holding it, like dividends or rent.
ROI formula
ROI = (amount returned + income − amount invested − costs) ÷ (amount invested + costs)
Annualized ROI = ((amount returned + income) ÷ (amount invested + costs))1 ÷ years − 1
The first tells you how much you made in total; the second spreads it over the years you held the investment, with compounding, so you can compare it with an interest rate.
Worked example
- You invest $10,000 and sell for $12,500 after 2 years and 6 months (2.5 years).
- Gain = $12,500 − $10,000 = $2,500. ROI = $2,500 ÷ $10,000 = 25%.
- Annualized: 1.251 ÷ 2.5 − 1 = 9.34% a year.
- With $100 of fees and $400 of dividends, you put in $10,100 and got back $12,900: ROI 27.72%, or 10.28% a year.
Tips
- Include every cost: brokerage, stamp duty, maintenance and taxes all reduce your real return.
- For money added over time, use the NPV, IRR and XIRR calculator; for growth of a single amount, the CAGR calculator.
- Check whether you beat inflation with the inflation calculator, and what tax you'll owe on the gain with the capital gains tax calculator.
The annualized ROI uses the same formula the SEC sets for funds' average annual total return, P(1 + T)n = ERV (Form N-1A, Item 26). An estimate for comparing investments, not financial advice.