ROI Calculator formula — how it actually works
The ROI formula looks short, and it is — but each part does a job. This post takes it apart piece by piece, then runs ₹1,00,000 returning ₹1,30,000 through it, and adds the annualised rate, so you can see every step. Try the same numbers in the ROI Calculator and check that the answer matches.
The formula
Gain = amount returned − amount invested ROI = gain ÷ amount invested × 100
Reading the formula, piece by piece
- Amount returned − amount invested. This is the gain. ₹1,30,000 − ₹1,00,000 = ₹30,000. If the returned amount is smaller, the gain is negative — a loss.
- Gain ÷ amount invested. This turns the gain into a fraction of what you put in. ₹30,000 ÷ ₹1,00,000 = 0.30.
- × 100. This turns the fraction into a percentage: 0.30 × 100 = 30.00%.
Worked example
₹1,00,000 invested and ₹1,30,000 returned, step by step: the gain is ₹30,000, the fraction is 0.30, and the ROI is 30.00%.
ROI = (₹1,30,000 − ₹1,00,000) ÷ ₹1,00,000 × 100
= ₹30,000 ÷ ₹1,00,000 × 100
= 0.30 × 100 = 30.00%The annualised ROI
Plain ROI ignores time, so a second formula spreads it over the years:
Annualised ROI = (1 + ROI) ^ (1 ÷ years) − 1
If the ₹1,00,000 took 2 years to become ₹1,30,000, the annualised ROI is (1 + 0.30) ^ (1 ÷ 2) − 1 = 1.30 ^ 0.5 − 1 = 0.1402, or 14.02% a year. Year by year at that steady rate: ₹1,00,000, then ₹1,14,018 after year 1, then ₹1,30,000 after year 2. Notice 14.02% a year is less than half of 30% — because the second year’s 14.02% is taken on a bigger balance, growth on growth. A bigger total over the same 2 years gives a bigger annualised rate: ₹1,00,000 to ₹1,60,000 is 60% in total, or 26.49% a year.
At a glance
Three columns, one for each year. The second year adds ₹15,982, more than the first year’s ₹14,018, because 14.02% of a bigger balance is more rupees.
The mistake to avoid
Dividing the returned amount by the invested amount and calling it the ROI: ₹1,30,000 ÷ ₹1,00,000 = 1.30, which looks like 130% — but that counts your own money as gain. The gain is what came back minus what went in. Always subtract first, then divide. The other slip is averaging the total over the years: 30% over 2 years is not 15% a year; the annualised rate is 14.02%, because growth compounds.
This is a maths tool, not financial advice. The figures above are examples only.
Frequently asked questions
Why divide by the amount invested, not the amount returned?
ROI measures the gain against what you risked. Dividing by the returned amount would measure the gain against money that includes the gain itself, which understates the result.
Can the years be a decimal, like 2.5?
Yes, for the annualised rate. The plain ROI does not use years at all; the annualised version works with any positive number of years, so 2.5 years for two and a half years is fine.
Can the amount invested be zero?
No. Dividing by zero has no answer, so ROI needs an investment above zero. The calculator shows no percentage until you enter one.
Is annualised ROI the same as CAGR?
The maths is the same. Annualised ROI spreads a total return evenly over the years, which is exactly what CAGR does for growth. Same formula, different setting.
More guides on the ROI Calculator
- How to use the ROI Calculator — step by step
- ROI Calculator explained with worked examples
- ROI Calculator for beginners — start here
- Common mistakes people make with the ROI Calculator
- ROI Calculator vs doing it by hand — which is faster?
- roi calculator — the complete guide
- How to get an accurate result from the ROI Calculator
- ROI Calculator for students — with examples
- ROI Calculator for homeowners and DIYers
A free calculator that works out the return on investment, as a percentage, from the amount invested and the amount returned.