ROI Calculator: Total and Annualised Return
Total and annualised return on investment.
Use via API
Return on investment: gain or loss and ROI in percent, plus the annualised return (CAGR) when a holding period is given. Send JSON, get JSON back.
POST https://pithlab.com/api/v1/tools/roi-calculator
curl https://pithlab.com/api/v1/tools/roi-calculator \
-H "Authorization: Bearer $PITHLAB_KEY" \
-H "Content-Type: application/json" \
-d '{"initial":5000,"final":7200,"duration":3,"durationUnit":"years"}'About the ROI Calculator
Calculate return on investment from what you put in and what it is worth now. Add the holding period to get the annualised ROI (CAGR) as well.
How to use the ROI Calculator
- Enter the amount invested and its final value (including any income received).
- Optionally enter how long you held it, in years, months or days.
- Read the gain, total ROI and annualised ROI.
Examples
Input
1000, 1500, 3 years
Output
Gain of 500.00 on 1,000.00: ROI 50%, annualised 14.47% a year over 3 years
Input
5000, 4200
Output
Loss of 800.00 on 5,000.00: ROI -16%
Frequently asked questions
How is ROI calculated?
ROI = (final value − amount invested) ÷ amount invested × 100. Investing 1,000 and ending with 1,500 is a 50% ROI.
What is annualised ROI?
It is the steady yearly return that would produce the same result, also called CAGR: (final ÷ initial)^(1 ÷ years) − 1. A 50% gain over 3 years is about 14.47% a year, not 16.67%.
Why does annualising a short holding period look extreme?
Annualising assumes the same return repeats every period for a full year. A 5% gain in one month annualises to almost 80%, which is rarely realistic.