Simple ROI Calculator

Investing and getting back over earns $5,000: a 50% ROI, or 8.45% a year.

Work backward

Find the that makes the final value : ...

Start over
Spreadsheet

Free calculator by ROI.fyi

Total ROI as a yearly rate

The same total return means very different things over different lengths of time. Find your total ROI on the left and how long it took across the top. Each cell is the compound yearly rate, (1 + ROI)^(1 / years) - 1.

Total ROI1 year2 years3 years5 years10 years20 years30 years
10%10.0%4.9%3.2%1.9%1.0%0.5%0.3%
25%25.0%11.8%7.7%4.6%2.3%1.1%0.7%
50%50.0%22.5%14.5%8.4%4.1%2.0%1.4%
100%100.0%41.4%26.0%14.9%7.2%3.5%2.3%
200%200.0%73.2%44.2%24.6%11.6%5.6%3.7%
500%500.0%144.9%81.7%43.1%19.6%9.4%6.2%

What the S&P 500 paid over every run of years

To judge a yearly rate, compare it with what an index fund did over the same length of time. These are yearly rates with dividends reinvested for every run of calendar years from 1872 to 2025: the worst, the middle half and the best, how often the run lost money, and the most recent run ending in 2025. Long runs are steadier, so a 20-year return has a much narrower range to beat than a 1-year one.

HeldWorst25th percentileMedian75th percentileBestRuns that lost moneyLatest, to 2025
1 yr-41.8%-1.8%13.2%23.5%54.4%27%17.7%
3 yr-26.7%3.3%10.1%16.0%31.1%14%22.9%
5 yr-12.2%3.4%10.3%15.3%28.4%10%15.1%
10 yr-1.4%5.9%8.7%13.7%19.5%2%14.9%
15 yr0.9%6.4%8.6%12.2%18.8%0%14.2%
20 yr3.4%6.9%8.2%11.5%17.6%0%11.0%
30 yr5.1%7.6%9.9%10.8%13.7%0%10.4%

Source: yearly S&P 500 total returns from Robert Shiller's data, with recent years from saved SPY prices. Past returns don't predict future ones.

How to calculate return on investment

Return on investment, or ROI, measures what you gained or lost compared with what you put in. ROI = (amount back - cost) / cost x 100. Our example puts in $10,000 and gets back $15,000. The gain is $5,000, and $5,000 divided by $10,000 is a 50% ROI. Change any number in the sentence above and every result updates as you type.

A total ROI hides how long it took. That same 50% is a great result over 2 years and a weak one over 20, so the calculator always asks for the time and turns the total into a yearly rate: (amount back / cost)^(1 / years) - 1. Over 5 years, 50% works out to 8.45% a year. Use the Return menu if you know a rate instead of a dollar amount, and the Time menu to enter exact dates.

A yearly rate still needs something to compare with, so the verdict sets yours against an S&P 500 index fund in two ways: its average over the last 30 years, and every run of the same length since 1872. At 8.45% a year for 5 years, the example comes out ahead of the index in 41% of those 5-year runs. That is a respectable result, but most of the time an index fund would have paid more for far less effort.

The plain formula also leaves out what really comes off the top. Open More options to add fees and other costs, any income the investment paid along the way, such as dividends, rent or interest, the tax rate on your gain and inflation. With $150 in fees and 15% tax, the example nets $4,123, or 7.05% a year, and 4.44% a year in real buying power after 2.5% inflation. The table under the result shows what happens if you get back less, it takes longer or yearly fees eat into it.

The ROI formula

\text{ROI} = \frac{\text{Amount back} - \text{Cost}}{\text{Cost}} \times 100 \qquad \text{Yearly rate} = \left(\frac{\text{Amount back}}{\text{Cost}}\right)^{1/\text{years}} - 1

Frequently Asked Questions

What is ROI?

ROI stands for return on investment. It shows the gain or loss on an investment as a percentage of what it cost. A $1,000 purchase that becomes $1,200 has a 20% ROI, and one that becomes $800 has a -20% ROI. Because it's a percentage, it lets you compare investments of different sizes, which raw dollar profits can't do.

How do you calculate ROI?

Follow three steps. Add up everything you spent, including fees. Subtract that from everything you got back, including any income it paid along the way, to find your net gain. Divide the net gain by what you spent and multiply by 100. Spending $2,500 and getting back $3,100 gives a $600 gain, and $600 / $2,500 x 100 = 24%.

How do I calculate ROI percentage in Excel?

Put the cost in cell A1, the amount back in B1 and the years held in C1. For total ROI, enter =(B1-A1)/A1 and format the cell as a percentage. For the yearly rate, enter =(B1/A1)^(1/C1)-1. With exact dates, put the start in D1 and the end in E1 and use =(B1/A1)^(365/(E1-D1))-1. Our spreadsheet view also copies a year-by-year table or downloads it as CSV or Excel.

What is a good ROI percentage?

A good ROI is one that beats your next best option for the same risk and time. For money you could have put in a stock index fund, that bar is high: the S&P 500 returned a median of about 10% a year with dividends over every 5-year run since 1872. A safe investment such as a savings account or Treasury bond can reasonably pay less. A risky project, like a small business, should promise much more, because you could lose it all.

Is a 10% ROI good?

It depends on how long it took. A 10% total ROI earned in one year is about what the stock market pays in a typical year. The same 10% spread over 5 years is only 1.9% a year, which is less than inflation has averaged. Always turn a total ROI into a yearly rate before you judge it. The table above does that for common returns and holding periods.

What is annualized ROI?

Annualized ROI converts a total return into the yearly rate that would grow your money to the same amount, so you can compare investments held for different lengths of time. The formula is (amount back / cost)^(1 / years) - 1. Doubling your money in 5 years is a 100% ROI, or about 14.9% a year. Doubling it in 10 years is the same 100% ROI, but only about 7.2% a year.

What does a negative ROI mean?

A negative ROI means you lost money: what you got back came in below your cost. If you put in $1,000 and ended with $850, your ROI is -15%. A paper loss isn't locked in until you sell, and some purchases, such as insurance, are meant to lose money most years. Losses are also harder to undo than they look: after a 50% loss you need a 100% gain just to break even.

Should ROI include taxes, fees and inflation?

Yes, if you want to know what you actually earned. A $5,000 gain taxed at 15% leaves $4,250, and $150 in fees lowers it again. Inflation at 2.5% a year means money returned in 5 years buys about 12% less than the same dollars today. Fees and tax are real costs, so count them. Inflation is better shown as a separate real return, so you can still compare with figures quoted before inflation.

What is the difference between ROI and rate of return?

People use them interchangeably, but ROI usually means the total gain over the whole period, while rate of return usually means a yearly figure. A 40% ROI over four years is about an 8.8% yearly rate of return. When someone quotes a return, check whether it's total or per year, because the two look very different.

What is the difference between ROI and IRR?

ROI compares one amount in with one amount out. IRR, the internal rate of return, handles money that moves in and out at different times, such as monthly deposits or yearly rent, and gives the yearly rate that makes all of it break even. If you put money in once and took it out once, the yearly rate on this page and IRR are the same number. For uneven cash flows, use the NPV calculator, which also shows IRR.

Does an ROI calculation include depreciation?

It can, and for business assets it often should. If you buy a $10,000 machine that wears out in five years, $2,000 of its cost could be counted each year when you measure yearly returns. Over the machine's full life, you're already counting its whole cost, so adding depreciation would count it twice. Pick one method and use it for every project you compare.

What are the limits of ROI?

ROI ignores risk and anything you can't put a dollar figure on, and it can be gamed by leaving costs out. Two projects with the same 30% ROI may differ wildly in how long they take and how likely they are to work. Use it alongside a yearly rate, an honest look at what could go wrong, and for projects with money coming in over several years, net present value.

Every return and interest calculator

Measure a return

Turn a result into a yearly rate: CAGR, a run of yearly returns, deposits along the way or uneven cash flows.

Plan a project

What future money is worth today, when a project pays back and how much you need to sell to break even.

Grow savings

What a balance becomes with compounding, an APY, monthly deposits and inflation.

Rates & APR

Simple interest, the rate between two amounts, or what a loan really costs with its fees.