Investment return calculator
ROI Calculator
This ROI calculator works out your return on investment from what you put in and what you got back, as a percentage and a net gain. Add the dates to see the annualized ROI, then compare the same money with SPY, an ETF that tracks the S&P 500.
Free to use. No account or sign-up needed.
Your numbers
What you put in, with any fees you paid.
The final value, plus anything paid out along the way.
Optional. The day you invested.
Optional. The day you sold or valued it.
Results
You put in $10,000 and got back $15,000: a net gain of $5,000 and an ROI of 50.00%. Over 5.0 years that is 8.45% a year.
SPY comparison
Runs the same money through SPY, an ETF that tracks the S&P 500, with dividends reinvested. Prices load only when you press the button.
The ROI formula
ROI, or return on investment, is the gain or loss on an investment as a share of what you put in. This return on investment calculator uses the standard formula: ROI = (amount returned - amount invested) / amount invested x 100.
In words: take what you got back, subtract what you put in, divide by what you put in, then multiply by 100 to get a percentage. If you already know your profit, switch to Net gain, and the formula becomes ROI = net gain / amount invested x 100. A loss gives a negative ROI.
The math works for anything with a cost and a payoff: a stock, a rental property, a business project or a marketing campaign. That makes this a simple investment return calculator, as long as both amounts are complete. Put every cost you paid, such as fees, in the amount invested. Put everything you got back, such as dividends, interest or rent, in the amount returned.
A worked example
Say you invest $10,000 on Jan 1, 2021, and on Jan 1, 2026 the investment is worth $15,000.
The net gain is $15,000 - $10,000 = $5,000. Divide that by the $10,000 you put in and multiply by 100, and the ROI is 50.00%.
Those dates are 5.0 years apart, so the annualized ROI is 8.45%. That is lower than the 10% you get by splitting 50% across the years, because each year builds on the gains before it.
Annualized ROI
ROI and annualized return answer different questions. ROI is the total gain over the whole period, however long it took. Annualized ROI, also called annualized return or CAGR, is the steady yearly rate that turns the amount invested into the amount returned over your dates, so you can compare a 2-year result with a 10-year one.
A 50% ROI over 5 years is not 10% a year. $10,000 growing 10% a year for 5 years, with each year building on the last, ends at $16,105, an ROI of 61.05%. The steady rate that reaches $15,000 is 8.45% a year.
The formula is annualized ROI = (amount returned / amount invested) ^ (1 / years) - 1. Enter both dates to see it. Dates under about a year apart show no yearly rate, because stretching a short period into a full year overstates it.
Compare with SPY
An ROI means more next to what the same money could have earned elsewhere. Press the comparison button to run your amount invested through SPY, an ETF that tracks the S&P 500, over the same dates.
The comparison counts price plus dividends, with each dividend reinvested at that day's close. SPY is a fund, not the index itself, so its returns come after its small yearly fee and sit just below the S&P 500 with dividends added.
Daily prices load only when you press the button. SPY prices in GNG start on Nov 1, 1999, so the start date has to be on or after that day, and the end date can be no later than today. Change either date and the comparison clears until you press the button again.
To see what a real stock or ETF returned, with its dividends counted, use the total return calculator.
A good ROI
There is no single good ROI. It depends on the risk you took, how long the money was tied up and what it could have earned elsewhere.
As common rules of thumb, stock investors measure themselves against the S&P 500, which has averaged about 10% a year over long periods before inflation, and savers look at the current Treasury bill yield. A riskier project, such as a small business, usually needs a higher ROI to be worth it.
Compare yearly rates when the periods differ. A 30% ROI over 10 years is about 2.66% a year, while a 15% ROI in 1 year is 15% a year.
To see what a steady yearly rate could grow to, use the compound interest calculator.
What the calculator assumes
- ROI uses only the two amounts you enter. Fees, taxes and inflation count only if you build them into those amounts.
- Annualized ROI treats the money as going in once on the start date and coming out once on the end date, at one steady rate. A year here is 365.25 days.
- A net loss cannot be larger than the amount invested, so the lowest ROI here is -100%. Borrowed money can lose more than that.
- The SPY comparison buys at the first close on or after the start date and values the holding at the last close on or before the end date. It counts no taxes or trading fees.
- A one-day move that looks like a stock split GNG cannot confirm for that day stops the comparison, and the page names the day.
- Past returns do not predict future returns.
ROI calculator FAQ
How do you calculate ROI?
Subtract the amount invested from the amount returned, divide by the amount invested and multiply by 100. $10,000 that returns $15,000 is a $5,000 net gain, so the ROI is 50%. The same math works for a stock, a rental or a business project.
What is the ROI formula?
ROI = (amount returned - amount invested) / amount invested x 100. If you know the profit, that is the same as net gain / amount invested x 100. The answer is a percentage of what you put in, so a 25% ROI means 25 cents of gain on each dollar.
What is a good ROI?
It depends on the risk and the time held. A common yardstick for stocks is the S&P 500, which has averaged about 10% a year over long periods before inflation. For safer money, look at the current Treasury bill yield. Compare yearly rates when the periods differ.
What is annualized ROI?
It is the steady yearly rate that turns the amount invested into the amount returned over your dates. A 50% ROI over 5 years is about 8.45% a year, below the 10% a plain split suggests, because each year builds on the gains before it. It lets you compare different periods.
Can ROI be negative?
Yes. A negative ROI means you got back less than you put in. $10,000 that returns $8,000 is a $2,000 net loss and an ROI of -20%. A total loss is -100%. Making back a 20% loss takes a 25% gain, because the gain starts from a smaller amount.
What is the difference between ROI and ROE?
ROI is the return on one investment: net gain divided by what you put in. ROE, return on equity, is a company ratio: net income divided by shareholder equity. Use ROI for your own investment and ROE to see what a company earns on its owners' money.
Does ROI include dividends, fees and taxes?
Only what you put in the two amounts. Add dividends, interest or rent to the amount returned, and add fees to the amount invested. For an after-tax ROI, take the tax off the amount returned. The SPY comparison reinvests dividends and counts no taxes or trading fees.
Is this ROI calculator free?
Yes. It runs in your browser with no account and no sign-up. SPY prices load only when you press the comparison button. A free GNG account adds the Portfolio Tracker, which follows the returns of your own holdings.
Track what your own holdings return and backtest a portfolio on real prices with a free GNG account.
Sign Up FreeThis calculator is for education and is not investment advice. Results are estimates that depend on the numbers you enter. Read our disclosures.