Inputs
ROI50%
Ready
ROI is the gain divided by what you put in. Gain is final value minus cost. (1500 − 1000) / 1000 is 0.50, which is 50%. That 50% is the whole period, not a yearly rate. Spread over 5 years it is not 10% a year, because a constant annual rate compounds. The annualized line is (final / cost) raised to 1/years, minus 1. (1.5)^(1/5) − 1 is 8.45%.
That 8.45% is the same compound annual growth rate you get by taking 100 to 150 over 5 years, because 1500/1000 and 150/100 are the same ratio. CAGR and annualized ROI are one formula wearing two names. Total ROI is the piece CAGR does not show: the full-period percent, here 50%.
The cost has to be positive. Years has to be positive. The formula assumes one lump in and one lump out, with nothing added or removed in between. Contributions in the middle make a total ROI look better or worse than the rate the money actually earned. The page also assumes the final value is comparable to the cost: same currency, fees already included or already left out, on both sides.
Investment cost 1000. Final value 1500. Years 5.
ROI 50%. Annualized 8.45%. The annualized figure compounds; 50/5 is not the yearly rate.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
(final − cost) / cost. (1500 − 1000) / 1000 is 50%. That percent covers the whole period you typed.
The constant yearly rate that compounds from the cost to the final value. (1500/1000)^(1/5) − 1 is 8.45%, not 10%.
10% compounded for 5 years would grow 1000 to about 1610. Reaching only 1500 is a slower compound rate, 8.45%.
The annualized line is the CAGR formula. Total ROI is the extra line: the full-period percent, which CAGR does not print.
This formula treats the cost as one initial lump. Later contributions need a different measure, or the percent will not describe the rate each contribution earned.