Return on investment calculator: ROI and annualized return

Enter what you put in, what it was worth when it ended, any income received along the way and any costs paid. You get the gain, the return on investment in percent and, once you give the length of time held, the return per year.

$
What you paid in at the start, in whole cents: the purchase price, the deposit or the sum you contributed.
$
The sale price, or what the holding is worth at the end, before the costs below. Type 0 if it became worthless.
years
Whole years, or a fraction such as 2.5. Leave years and months both blank to see the return without a figure per year.
months
Months in addition to the years: 1 year and 6 months is 1 and 6. Under a year, leave the years blank.

Result

Summary

Return on investment

49.5%

What the investment is worth at the end

  • The amount invested$10,000.0066.9%
  • The gain$4,950.0033.1%
Annualized return
10.58%
Gain or loss
$4,950.00
Amount at the end
$14,950.00

One amount in and one amount out, with the income and costs you type. It does not follow money added or withdrawn on several dates, taxes, inflation or risk, and it recommends no investment.

$10,000 invested for 4 years

Put in $10,000 and sell for $14,500 after 4 years, having received $600 of income and paid $150 of fees. You end with $14,950.00, a gain of $4,950.00, which is a return on investment of 49.50%. Spread over the 4 years, that is 10.58% a year, not the 12.38% that dividing by 4 would suggest.

Leave the income and the fees out and the same sale shows 45.00% and 9.73% a year, so what you count changes the answer.

A shorter hold works the same way. $25,000 put into a property, resold for $31,000 after 8 months with $2,500 of costs, ends at $28,500.00: a 14.00% return, or 21.72% a year if the same pace were kept for twelve months. The page flags that figure, because eight months of growth are being stretched to twelve.

A loss is shown with a minus sign. $8,000 that fell to $5,200 in 3 years lost $2,800.00, a return of -35.00%, or -13.38% a year.

From the amounts to the two returns

The amount at the end is the final value plus the income, less the costs. The gain is that amount less the amount invested. The return on investment is the gain divided by the amount invested, in percent. The federal Consumer Financial Protection Bureau defines a rate of return in just those terms: the profit or loss on an investment expressed as a percentage.

The annualized return is the yearly rate that, repeated every year for the holding period, gives the same total. You divide the amount at the end by the amount invested, raise it to the power of one over the years, subtract one and read the result as a percent. Regulation DD uses this very formula to state the annual percentage yield of a deposit, with the interest over the principal in place of the return and 365 over the days in place of one over the years. A holding period given in years and months is the years plus the months over 12.

Rounding, losses and short holds

The amounts are typed in whole cents, so the gain and the amount at the end are exact. The return is worked out as one division and rounded half up to two decimals, an exact half moving away from zero. The annualized return is a root, calculated to many more digits than are shown and rounded the same way. Section 1030.3(f)(1) of Regulation DD has an annual percentage yield rounded to the nearest 0.01 of a percentage point, which is the two decimals shown here. It is silent on exact halves; sending them away from zero is a decision this page made itself, and a broker’s statement may differ in the last digit.

A holding worth nothing at the end is a loss of 100%, and 100% a year. If the costs are larger than everything you received, you paid more than you got back: the return falls below −100% and the page leaves out the return per year, since no yearly rate gives a negative amount. Under one year, the return per year is only an extrapolation and the page says so.

What the page leaves out

Money put in or taken out on several dates, as with monthly savings, needs a different calculation that weighs each date; this page takes one amount in and one amount out. Taxes on the gain or the income, inflation and the risk taken to earn the return are not counted either. A high figure says what happened to this one holding, not what another will do, and the page does not suggest what to buy or sell.

Sources

Questions

How do I calculate return on investment?

Add what you received at the end and any income, subtract the costs and the amount you invested, divide by the amount invested and multiply by 100. For $10,000 that ends at $14,950 after income and costs, the gain is $4,950 and the return is 49.50%.

Why is the annualized return not the return divided by the years?

Because each year’s growth builds on the year before. Spread 49.50% evenly over 4 years and each gets 12.38%, whereas the rate that compounds to the same total is 10.58%.

Should dividends, interest, rent and fees be counted?

They belong in the return, since they are money you received or paid because of the investment. In the first example, leaving them out gives 45.00% instead of 49.50%. Enter them in their own fields. Taxes are not worked out here: to count them, put what you paid into the costs field.

If an investment falls by half, what does it need to gain to get back?

A gain of 100%. $10,000 that falls to $5,000 is a return of -50.00%, but $5,000 that rises to $10,000 is 100.00%. Losses and gains do not cancel at the same percentage.

Why does the page warn me about a hold of under one year?

A return per year assumes the same rate continues for twelve months. After a few weeks or months that is a guess, and a small gain over a short time can turn into an enormous yearly figure. The return over the actual period is the number that happened.

Can I use it when I added money at different times?

Not accurately. The page assumes everything went in at the start and came out at the end. With contributions on several dates you need a rate that weights each date, such as an internal rate of return, and a lump-sum figure here would misstate it.

Reviewed by the DirectCalculators team. The formula is tested against its source’s worked examples, where the source gives any, and cases worked by hand; see how we calculate.