Return on Investment Calculator

ROI, net gain and annualised return with AI-powered step-by-step solutions
ROI on $15,000 invested, sold for $21,450 with $900 dividends and $120 fees
Annualise a 48.2% total return earned over 3.5 years
Compare 40% over 5 years against 18% over 2 years
What ending value gives a 25% ROI on a $8,000 investment?

The ROI Formula

Return on investment is net gain expressed as a fraction of what you put in:

ROI=net gaincost=Vend−VbeginVbeginROI = \frac{\text{net gain}}{\text{cost}} = \frac{V_{\text{end}} - V_{\text{begin}}}{V_{\text{begin}}}

Multiply by 100 for a percentage. A complete net gain counts everything that moved:

net gain=(sale proceeds+income received)−(purchase cost+fees and costs)\text{net gain} = (\text{sale proceeds} + \text{income received}) - (\text{purchase cost} + \text{fees and costs})

Income means dividends, interest, coupons or rent collected while holding; costs mean commissions, spreads, management fees and any expense of owning the position. Leaving either out is the most common way an ROI figure ends up wrong.

The two useful rearrangements:

Vend=Vbegin(1+ROI),Vbegin=Vend1+ROIV_{\text{end}} = V_{\text{begin}}(1 + ROI), \qquad V_{\text{begin}} = \frac{V_{\text{end}}}{1 + ROI}

ROI is dimensionless and timeless — it says how much, never how fast. That is its central weakness, and the next section is the fix.

Annualising, and Comparing Investments Fairly

Putting returns on a per-year basis

Two returns are only comparable once they cover the same length of time:

ROIannual=(1+ROI)1/t−1ROI_{\text{annual}} = (1 + ROI)^{1/t} - 1

with tt the holding period in years, fractions allowed. This is the compound annual growth rate — the constant yearly rate that reproduces the same ending value. Going the other way, ROI=(1+ROIannual)t−1ROI = (1 + ROI_{\text{annual}})^{t} - 1.

Dividing total return by tt is not the same and always overstates the yearly figure, because it ignores compounding.

Total return versus price return

Price return counts only the change in price. Total return adds reinvested income, and over long horizons the gap is large. Say which one you are quoting.

Real return

To express a return in purchasing power, deflate it exactly rather than by subtraction:

ROIreal=1+ROI1+π−1ROI_{\text{real}} = \frac{1 + ROI}{1 + \pi} - 1

Every figure here is arithmetic on numbers you supply. Past return is a measurement, not a projection, and this page makes no recommendation about any investment.

Common Mistakes to Avoid

  • Dividing by the ending value: the denominator is what you invested. Using VendV_{\text{end}} understates every positive return.
  • Comparing returns over different horizons: 40% over 5 years is worse per year than 18% over 2. Annualise before ranking anything.
  • Dividing total return by the number of years: 48.2%48.2\% over 3.5 years is not 13.8%13.8\% a year. Take the root of the growth factor instead.
  • Ignoring fees and taxes: commissions and spreads come out of the gain; tax treatment depends on your jurisdiction, so enter your own figures.
  • Forgetting dividends and interest: excluding income turns total return into price return and understates the result.
  • Adding contributions to the numerator: money you paid in later is not a gain. Either treat each contribution as its own investment or use a money-weighted measure.
  • Reporting ROI on a loss without the sign: a negative ROI is a negative number; dropping the minus sign inverts the meaning.

Examples

Step 1: Total received: 21450+900=22,35021450 + 900 = 22{,}350
Step 2: Total paid: 15000+120=15,12015000 + 120 = 15{,}120
Step 3: Net gain: 22350−15120=7,23022350 - 15120 = 7{,}230
Step 4: ROI=7230/15000=0.482ROI = 7230 / 15000 = 0.482
Step 5: Price return alone would be (21450−15000)/15000=0.43(21450 - 15000)/15000 = 0.43 — the income and fees move it by 5.2 points
Answer: ROI=48.2%ROI = 48.2\% on a net gain of \7{,}230$

Step 1: Growth factor: 1+0.482=1.4821 + 0.482 = 1.482
Step 2: ROIannual=1.4821/3.5−1ROI_{\text{annual}} = 1.482^{1/3.5} - 1
Step 3: 1.4820.2857143≈1.11895801.482^{0.2857143} \approx 1.1189580
Step 4: ≈0.1189580=11.8958%\approx 0.1189580 = 11.8958\% a year
Step 5: Check: 15000×1.1189583.5≈22,230=15000+723015000 \times 1.118958^{3.5} \approx 22{,}230 = 15000 + 7230
Step 6: Note the naive shortcut 48.2/3.5=13.77%48.2/3.5 = 13.77\% overstates it by nearly two points
Answer: About 11.90%11.90\% a year

Step 1: A: 1.401/5−1=1.400.2−11.40^{1/5} - 1 = 1.40^{0.2} - 1
Step 2: 1.400.2≈1.06961041.40^{0.2} \approx 1.0696104, so ≈6.9610%\approx 6.9610\% a year
Step 3: B: 1.181/2−1=1.18−11.18^{1/2} - 1 = \sqrt{1.18} - 1
Step 4: 1.18≈1.0862780\sqrt{1.18} \approx 1.0862780, so ≈8.6278%\approx 8.6278\% a year
Step 5: B is the stronger annual rate despite the smaller headline number
Answer: B wins: ≈8.63%\approx 8.63\% a year versus ≈6.96%\approx 6.96\%

Frequently Asked Questions

ROI = (net gain) / (cost), where net gain is sale proceeds plus income received minus purchase cost and fees. $15,000 invested that returns $21,450 plus $900 of dividends less $120 of fees gives a net gain of $7,230 and an ROI of 7,230/15,000 = 48.2%.

Use (1 + ROI)^(1/t) − 1 with t in years. A 48.2% total return over 3.5 years annualises to 1.482^(1/3.5) − 1 ≈ 11.90%. Dividing 48.2 by 3.5 gives 13.77%, which overstates the result because it ignores compounding.

If you are quoting total return, yes — add all income received while holding. Price return excludes it. The two can differ substantially over long holding periods, so always state which measure you are reporting.

Yes. If net gain is negative, so is ROI: an $8,000 investment sold for $6,800 gives (6,800 − 8,000)/8,000 = −0.15, a −15% return. Keep the sign, since dropping it reverses the meaning entirely.

Related Solvers

Try AI-Math for Free

Get step-by-step solutions to any math problem. Upload a photo or type your question.

Start Solving