ROI Calculator

Enter what you invested and what it is worth now. Add how long you held it to see the yearly rate as well.

How it works

Return on investment, or ROI, is the gain as a share of what you put in. The formula is (final value − amount invested) / amount invested × 100. Invest 10,000, get back 15,000, and the ROI is 50%.

ROI ignores time. 50% in one year and 50% in ten years are very different results. Enter the years you held the investment and the calculator also gives the annualized return: the steady yearly rate, compounded, that turns the first value into the second. It is the same figure as the CAGR.

A loss shows as a negative return. Everything is worked out on this page, and nothing you type leaves your device.

How to use it

  1. 1 Enter the amount you invested, including any costs to buy in.
  2. 2 Enter the final value: what it is worth now, or everything it paid back.
  3. 3 Optionally enter the years you held it. 18 months is 1.5.
  4. 4 Read the gain, the ROI and the annualized return.

Good to know

  • Count costs on both sides. Fees to buy belong in the amount invested; fees and tax to sell come off the final value.
  • Compare investments held for different lengths of time by the annualized return, not by ROI.
  • For a business project, the amount invested is everything spent on it and the final value is everything it brought in over the same period.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

ROI and annualized return, worked through

ROI answers one question: for every unit you put in, how much did you gain? Put 10,000 into an investment and sell it later for 15,000. The gain is 5,000, and 5,000 / 10,000 = 0.5, so the ROI is 50%. If you sold it for 8,000 instead, the gain is −2,000 and the ROI is −20%. The formula works the same for shares, property, a piece of equipment or a marketing campaign, as long as both numbers cover the same costs.

What ROI leaves out is time. A 50% return in 2 years is a far better result than a 50% return in 10 years. To compare them, turn each into a yearly rate. The fair way is the annualized return, (final / invested)^(1 / years) − 1. For 50% over 4 years that is 1.5^(1/4) − 1 = 10.67% a year. Over 2 years it is 1.5^(1/2) − 1 = 22.47% a year.

Dividing the ROI by the years gives a different and less useful number. 50% / 4 = 12.5% a year looks reasonable, but it ignores compounding. Check it: 10,000 growing at 12.5% a year for 4 years becomes 16,018, not 15,000. Growing at 10.67% it becomes 15,000, which is why that is the rate the calculator shows. The annualized return is the same figure finance calls the compound annual growth rate, or CAGR.

A few habits keep the figure honest. Add the costs of buying, such as fees and taxes, to the amount invested. Take the costs of selling off the final value. Add any income received along the way, such as dividends, interest or rent, to the final value. For a loss over several years, the annualized return is negative too: 10,000 falling to 8,000 over 2 years is −10.56% a year.

The calculator has limits. It assumes one amount at the start and one value at the end. When money goes in or out at different times, ROI and this annualized return can both mislead, and a money-weighted measure such as IRR is the better tool. It does not adjust for inflation, tax or risk, and two investments with the same ROI can carry very different risks. Use it to measure and compare results, not to predict them. It is arithmetic, not financial advice.

Frequently asked questions

Why is the annualized return lower than the ROI divided by the years?

Because gains compound. 50% over 4 years is not 12.5% a year: 10.67% a year, compounded, already reaches 50% after 4 years, since each year grows on the gains of the years before. Dividing by the years overstates the yearly rate of a gain.

What if I added or took out money along the way?

Then a single ROI figure can mislead, because some of the money was invested for less time. This calculator assumes one sum in at the start and one value at the end. For regular deposits, the Compound Interest Calculator includes a monthly deposit.

Does it count dividends or rent?

Only if you add them to the final value. A share bought for 10,000 that is worth 14,000 and paid 1,000 in dividends has a final value of 15,000.

Is what I type sent anywhere?

No. The calculation runs as plain JavaScript on this page, and the numbers stay on your device.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.