ROI Calculator
Measure your investment performance. Enter the initial amount, final value, and holding period to see total return and annualized ROI — all in your browser, instant results.
About the ROI Calculator
This ROI calculator runs entirely in your browser. It measures how much you gained or lost on an investment relative to the amount you put in. Enter the initial investment, the final value, and optionally the holding period to also see the annualized return. Nothing is uploaded to a server — all calculations happen instantly with JavaScript on your device.
How the calculation works
The calculator uses the standard ROI formula:
ROI = (Final Value − Initial Investment) / Initial Investment × 100%
Where Final Value is the current or ending value of the investment and Initial Investment is the amount originally put in. The result is expressed as a percentage — positive means a gain, negative means a loss.
When a holding period is provided, the calculator also computes the annualized ROI:
Annualized ROI = [(Final Value / Initial Investment)(1 / years) − 1] × 100%
This converts the total return into an equivalent yearly rate, making it easy to compare investments held over different time spans.
Frequently asked questions
Does this tool upload my data? No. All calculations happen locally in your browser. Your inputs never leave your device.
Does ROI include dividends or fees? Only if you include them in the final value. For a fully accurate return, add any dividends received to the final value and subtract any fees from the initial investment.
What is the difference between ROI and annualized ROI? ROI shows the total percentage gain or loss over the entire holding period. Annualized ROI normalizes that to a per-year rate, so you can fairly compare a 50% gain over 1 year versus 50% over 5 years.
Can I use any currency? Yes. The numbers are unit-agnostic — enter values in any currency and the result will be in the same currency.