ToolNimba Browse

📈 ROI Calculator

By ToolNimba Finance Team · Reviewed by ToolNimba Editorial Review, personal finance content · Updated 2026-06-19

This calculator is for general education only and is not financial advice. ROI looks backward at one investment and ignores taxes, fees, inflation, dividends paid out, and the risk you took to earn the return. Past performance does not predict future results. Confirm any figures with your own records and speak to a qualified financial adviser before making investment decisions.

ROI
-
Net gain / loss
-
Annualized ROI
-

Enter the amount invested and what it is now worth. Add the holding period to see the annualized return.

Return on investment (ROI) tells you how much you gained or lost relative to what you put in, expressed as a percentage. Enter the amount you invested and the final amount it is now worth, and this calculator shows your ROI, your net gain or loss in dollars, and (if you add the holding period) the annualized return. It works for stocks, property, a side project, a marketing spend, or any cost you want to measure against a result.

What is the ROI Calculator?

ROI is the simplest way to compare investments of different sizes on a level playing field. The formula is ROI = (final amount − amount invested) ÷ amount invested × 100. The numerator is your net gain (or loss); dividing by the cost turns raw dollars into a percentage, so a $500 profit on $1,000 (50%) is clearly a stronger result than a $500 profit on $10,000 (5%). Because it is a ratio, ROI lets you stack a small trade against a large one and see which actually worked harder for your money.

The catch is that plain ROI ignores time. Earning 50% in one year is excellent; earning the same 50% over ten years is mediocre. That is where the annualized ROI comes in: it converts the total return into the equivalent steady yearly rate, accounting for compounding, using ((final ÷ cost)^(1 ÷ years) − 1) × 100. A 50% total return over three years annualizes to about 14.5% per year, because each year's gain compounds on the last. Always annualize before you compare investments held for different lengths of time.

ROI is deliberately simple, and that simplicity is also its limit. It does not account for taxes, transaction fees, inflation, or dividends and rent you collected along the way unless you build those into the numbers you enter. It also says nothing about risk: a 30% ROI from a volatile small-cap stock is not the same quality of return as 30% from a steady index fund. Treat ROI as a fast first screen, then dig into the fuller picture before you act.

When to use it

  • Checking the percentage return on a stock, fund, or crypto holding after you sell or revalue it.
  • Comparing two investments of different sizes by putting both on a percentage basis.
  • Measuring the payoff of a business or marketing spend against the revenue it generated.
  • Annualizing a multi-year return so you can compare it fairly with a one-year investment.

How to use the ROI Calculator

  1. Enter the amount you invested (your total cost).
  2. Enter the final amount, what the investment is now worth or what you sold it for.
  3. Optionally enter the number of years you held it.
  4. Read off your ROI percentage, your net gain or loss, and the annualized ROI.

Formula & method

ROI = (final − cost) ÷ cost × 100.   Net gain = final − cost.   Annualized ROI = ((final ÷ cost)(1 ÷ years) − 1) × 100.

Worked examples

You invest $1,000 and it grows to $1,500 over 3 years.

  1. Net gain = 1,500 − 1,000 = $500
  2. ROI = 500 ÷ 1,000 × 100 = 50%
  3. Ratio = final ÷ cost = 1,500 ÷ 1,000 = 1.5
  4. Annualized = (1.5^(1 ÷ 3) − 1) × 100 = (1.14471 − 1) × 100
  5. Annualized = 14.47%

Result: ROI 50%, net gain $500, annualized ≈ 14.47% per year

You buy a holding for $5,000 and later sell it for $4,000.

  1. Net gain = 4,000 − 5,000 = −$1,000 (a loss)
  2. ROI = −1,000 ÷ 5,000 × 100 = −20%
  3. A negative ROI means you got back less than you put in.

Result: ROI −20%, net loss $1,000

You invest $2,000 and it reaches $6,000 after 5 years.

  1. Net gain = 6,000 − 2,000 = $4,000
  2. ROI = 4,000 ÷ 2,000 × 100 = 200%
  3. Ratio = 6,000 ÷ 2,000 = 3
  4. Annualized = (3^(1 ÷ 5) − 1) × 100 = (1.24573 − 1) × 100
  5. Annualized = 24.57%

Result: ROI 200%, net gain $4,000, annualized ≈ 24.57% per year

How a fixed total ROI of 50% annualizes over different holding periods

Years heldTotal ROIAnnualized ROI
1 year50%50.00%
2 years50%22.47%
3 years50%14.47%
5 years50%8.45%
10 years50%4.14%

ROI for a $1,000 investment at different final values

Final amountNet gain / lossROI
$800−$200−20%
$1,000$00%
$1,250$25025%
$1,500$50050%
$2,000$1,000100%

Common mistakes to avoid

  • Comparing returns held for different lengths of time. A 50% total return is great in one year and poor over ten. Always annualize before you compare two investments held for different periods, otherwise a slow winner can look better than a fast one.
  • Forgetting fees, taxes, and inflation. Plain ROI uses the raw amounts you enter. Trading commissions, capital gains tax, and inflation all erode your real return. For a true picture, enter net (after-cost) figures or adjust the result afterward.
  • Leaving out income paid along the way. If a stock paid dividends or a property paid rent, that cash is part of your return. Add it to the final amount (or your total proceeds) so the ROI reflects everything the investment earned.
  • Ignoring risk. ROI measures the reward but says nothing about how much risk you took to get it. A high ROI from a volatile bet is not the same quality as the same ROI from a stable asset.

Glossary

ROI
Return on investment, the gain or loss on an investment as a percentage of its cost.
Cost / amount invested
The total amount you put in, the denominator in the ROI formula.
Net gain
The final amount minus the amount invested. It is negative when you lose money.
Annualized ROI
The equivalent steady yearly return that, compounded, produces the total ROI over the holding period.
Compounding
Earning a return on previous returns, which is why annualizing a multi-year gain gives a lower yearly rate than dividing by the number of years.

Frequently asked questions

How do I calculate ROI?

ROI = (final amount − amount invested) ÷ amount invested × 100. Subtract what you put in from what you got back to find the net gain, divide by what you put in, and multiply by 100 to get a percentage. The calculator does this automatically when you enter the two amounts.

What is a good ROI?

It depends on the investment and the time frame. As a rough benchmark, the long-run average stock market return is often cited as roughly 7% to 10% per year before inflation. A good ROI beats what you could earn safely elsewhere for a comparable level of risk. Always compare on an annualized basis.

What is the difference between ROI and annualized ROI?

ROI is the total percentage return over the whole holding period, regardless of how long that was. Annualized ROI converts that total into an equivalent per-year rate, accounting for compounding, so you can fairly compare investments held for different lengths of time.

Can ROI be negative?

Yes. If the final amount is less than the amount you invested, the net gain is negative and so is the ROI. For example, $5,000 falling to $4,000 is a net loss of $1,000 and an ROI of −20%.

Does this ROI calculator include taxes and fees?

No. It works only with the numbers you enter, so it does not deduct trading fees, taxes, or inflation. For a true net return, subtract those costs first and enter the after-cost figures, or adjust the result afterward.

How do I annualize my ROI?

Use annualized ROI = ((final ÷ cost)^(1 ÷ years) − 1) × 100. Divide the final amount by the cost, raise it to the power of one over the number of years, subtract one, and multiply by 100. Enter the years held and the calculator computes it for you.

Sources