Skip to content
DeviceCheckHub

ROI Calculator

Your return on investment and the annualized ROI, with fees and income included, the steps, and a second investment to compare.

Your investment

Your return on investment is +25%, or +7.72% a year.

Return on investment

+25%

a gain of $2,500 on $10,000 over 3 years

Net gain
$2,500
Return on investment
+25%
Annualized ROI
+7.72% a year
Investment length
3 years
Doubles your money in
about 9.319 years

Step by step

  1. Net gain = amount returned − amount invested = $12,500 − $10,000 = $2,500.
  2. ROI = net gain / amount invested × 100 = $2,500 / $10,000 × 100 = +25%.
  3. Annualized ROI = ($12,500 / $10,000)^(1 / 3) − 1 = +7.72% a year.

Compare another investment

Enter a second investment to compare it with yours, a year at a time.

How to use the ROI calculator

  1. Enter the amount you invested and the amount you got back, or what the investment is worth now.
  2. Add any income it paid, such as dividends, interest or rent, and any costs, such as fees, commissions or repairs.
  3. Enter how long you held it, as years and months or as start and end dates, to see the annualized ROI.
  4. To see which of two investments did better, enter a second one under Compare another investment.

What return on investment means

Return on investment, or ROI, measures how much you gained or lost compared with what you put in. The Corporate Finance Institute describes it as “a financial ratio used to calculate the benefit an investor will receive” and gives the formula as “ROI = Net Income / Cost of Investment”. Multiplied by 100 it becomes a percentage. Because it is a ratio, ROI lets you compare investments of very different sizes: a $500 gain on $2,000 is a better return than a $5,000 gain on $50,000.

For example, investing $10,000 and getting back $12,500 three years later is a net gain of $2,500, and $2,500 / $10,000 = 25%. Over three years, that is about 7.72% a year.

Include every cost and every payment

An honest ROI counts everything that went in and everything that came out. Costs include fees, commissions, closing costs, repairs and maintenance; income includes dividends, interest and rent collected along the way. CFI warns that ROI is often worked out “without accounting for additional costs, such as maintenance costs, property taxes”. Even small costs matter: the same $10,000 investment with $300 of fees has an ROI of 21.36%, not 25%.

A rental property shows how much this changes the answer. Buying a house for $200,000 with $10,000 of closing costs and repairs, collecting $30,000 of rent after expenses, and selling it 4 years later for $240,000 is a total cost of $210,000 and a total value of $270,000: an ROI of 28.57%, or 6.48% a year. Taxes on the gain and on the rent would lower it further.

Annualized ROI: comparing different lengths of time

Plain ROI ignores time, which can mislead. As CFI puts it, “A higher ROI number does not always mean a better investment option.” Its fix is the annualized ROI: “[(Ending Value / Beginning Value) ^ (1 / # of Years)] – 1”. This is the steady yearly rate that would have produced the same result, and it is the same as the compound annual growth rate, or CAGR.

Suppose one investment returned 30% over 5 years and another 21% over 2 years. The first has the bigger total, but it grew only 5.39% a year, while the second grew 10.00% a year. Unless the money in the second would have sat idle afterwards, the second was the better investment. The calculator’s comparison card does this for you.

Working with exact dates

If you enter a start and an end date, the calculator counts the whole years between them, then adds the days left over as a share of the next year, so leap years are counted exactly. For example, 15 January 2020 to 22 March 2024 is 4 years and 67 days, or about 4.183 years. An investment bought on 29 February reaches its anniversary on 28 February in years that aren’t leap years.

Be careful annualizing short periods

Annualizing a period shorter than a year assumes the same return would repeat all year. A 5% gain in three months annualizes to 21.55%, which is only true if you could keep finding the same 5% every quarter. For short trades, the plain ROI is usually the more honest figure.

How long it takes to double your money

At a steady annual return r, money doubles in ln 2 / ln(1 + r) years. The rule of 72 is a mental shortcut for the same thing: divide 72 by the percentage. At 8% a year, 72 / 8 = 9 years, close to the exact 9.01. The calculator shows the doubling time for your annualized ROI.

ROI, CAGR and IRR

ROI and annualized ROI suit a single amount put in at the start and taken out at the end. When you add or withdraw money at different times, such as monthly contributions to a retirement account, each payment has been invested for a different length of time, and the internal rate of return (IRR) or the money-weighted return is the right measure. Return on equity (ROE) is different again: it compares a company’s profit with its shareholders’ equity, not one investor’s gain.

What ROI doesn’t tell you

ROI says nothing about risk: a speculative bet and a government bond can show the same ROI while carrying very different chances of loss. It also ignores inflation, so a 20% return over years of high inflation may buy little more than you started with, and it is usually worked out before tax. Use it alongside the time held, the risk taken and what the money could have earned elsewhere.

Losses and getting back to even

ROI is negative when you get back less than you put in. Buy something for $5,000, pay $100 in fees and sell it for $4,000, and the ROI is (4,000 − 5,100) ÷ 5,100, about −21.57%. Losses are harder to recover than they look, because the gain you need is measured from the smaller amount: after a 20% loss you need a 25% gain to get back to where you started, and after a 50% loss you need 100%. For the same reason, a 50% gain followed by a 50% loss leaves you 25% down, not back to even: 1.5 × 0.5 = 0.75.

Your data stays on your device

Everything is worked out in your browser. Nothing you type is sent anywhere or stored; only your choice of currency is remembered on this device.

Frequently asked questions

How do you calculate ROI?

Subtract what you put in from what you got back, divide by what you put in, and multiply by 100. Investing $10,000 and getting back $12,500 is a gain of $2,500, and $2,500 / $10,000 × 100 = 25%.

What is annualized ROI?

It is the steady yearly return that would turn the same starting amount into the same final amount: (final / start)^(1 / years) − 1. A 25% return over 3 years is about 7.72% a year. It lets you compare investments held for different lengths of time.

What is a good ROI?

It depends on the risk you took and what else the money could have done. Compare your annualized ROI with what the same money would have earned over the same time somewhere safer, such as a savings account, and with a simple index fund. A higher return usually comes with more risk.

Can ROI be negative?

Yes. If you get back less than you put in, the ROI is negative: investing $8,000 and getting back $6,000 is an ROI of −25%. The lowest possible ROI is −100%, when everything is lost.

Should ROI include dividends, rent and fees?

Yes. Add income such as dividends, interest or rent to what you got back, and add costs such as fees, commissions, closing costs and repairs to what you put in. Leaving them out makes the ROI look better or worse than it really was.

Is anything I type saved or sent?

No. Everything is worked out in your browser and nothing you type is sent anywhere or stored. Only your choice of currency is remembered on this device.

Last updated · About DeviceCheckHub