How do I calculate ROI on an investment?
ROI, or return on investment, is your gain divided by what you paid, times 100. Buy for $5,000, sell for $6,500 and your gain is $1,500, so your ROI is 30% before costs and tax. For money you are still investing, the projector above estimates the final value instead. In its default example, $100,000 plus $1,000 a month at 7% for 10 years grows to $374,051 from $220,000 put in, a 70% total return.
Key points
- The formula. Net gain ÷ total cost × 100.
- Count everything. Include fees paid and dividends received.
- Per year. 30% over five years is about 5.4% a year.
- Time first. Holding the default plan 20 years instead of 10 adds $550,750.
- Steady deposits. Monthly beats yearly because money starts growing sooner.
- After tax. Gains in a taxable account are usually taxed when you sell.
2 minute lesson, optionalWas it a good return ?Guess first, see the answer, then try it yourself. Five quick steps. You can skip it any time. Play the lessonClose the lessonOpen
Your path
Do today’s challenge, then tap Up next.
ROI calculator
Step 1 of 5
What is your ROI?
Tap a guess. Wrong guesses cost nothing.
Free · No signup · 2 minutes · Revision review pending · Updated
Step 2 of 5
Next: try it yourself.
Step 3 of 5
Your turn
Drag a slider or tap an option. Watch the number change.
Type exact numbers
Quick version for learning. The full roi calculator below has every option.
Step 4 of 5
What if you changed one thing?
Tap a change to see what it does to .
Step 5 of 5
Tap an answer. You see why either way.
Lesson complete
More
Learn it in 4 short parts
Each part answers one question. Open any part. Tap Got it when you are done.
ROI explainedWhat is ROI, and how do you work it out?
ROI tells you the total return. Annualize it before comparing different holding periods.
ROI tells you how much you made compared with what you put in. It is the simplest way to compare two results, as long as you remember what it leaves out.
How do I calculate ROI on an investment I sold?
Use the amount you paid, the amount you received and any fees or dividends along the way. The calculator below does the math, including fees.
Buy for $5,000 and sell for $6,500, with $10 to buy and $10 to sell. Your total cost is $5,010 and your net gain is $1,480, so your ROI is 29.54% instead of 30%. Small fees matter more on small trades.
What is the ROI formula?
ROI = net gain ÷ total cost × 100. Net gain is what you received, plus any dividends or other cash, minus what you paid and minus fees. Total cost is the price plus buying fees.
- Add up what you paid, including buying fees.
- Add up what you got back: the sale proceeds and any dividends, minus selling fees.
- Subtract the first number from the second to get your net gain.
- Divide by what you paid and multiply by 100.
Why is ROI not the same as a yearly return?
ROI covers the whole time you held the investment, however long that was. A 30% ROI over one year is excellent. Over five years it works out to about 5.4% a year, and over three years about 9.1% a year. To compare investments held for different lengths of time, convert to a yearly rate. The CAGR calculator does that for you.
How do dividends change my ROI?
They add to it, often more than people expect. ROI should count every dollar the investment paid you, not just the sale price. Leave out the dividends and you understate your return.
Take the same $5,000 purchase sold for $6,500, and say it paid $400 in dividends while you held it. Your net gain is $6,500 plus $400 minus $5,000, which is $1,900. Divide by $5,000 and your ROI is 38%, not 30%. On a stock or fund held for many years, dividends can make up a large share of the total return.
Two cautions. First, dividends are taxable in the year you receive them, even if you reinvest them; qualified dividends get the lower capital gain rates.3 Second, if you reinvested dividends into more shares, do not count them twice. Those reinvested dollars are already inside your sale proceeds, so either add them to your cost or leave them out of the dividends field.
ROI tells you the total return. Annualize it before comparing different holding periods.
Marks part 1 of 4 done and opens the next one.
Projected growthWhat changes your projected result the most?
Give money time. The growth on growth is what makes the big numbers.
The projector grows your starting amount and your regular contributions at a yearly return you choose. Time does more than anything else.
How does the projector work?
It adds your contributions at the end of each period and compounds at the frequency you choose. It then splits the gain into simple interest on your first deposit and everything else, which comes from compounding and from growth on your later contributions.
$100,000 plus $1,000 a month for 10 years at 7% reaches $374,051. You put in $220,000. Simple interest on the first $100,000 is $7,000 a year, or $70,000. The other $84,051 is compounding: growth on growth, and on your monthly deposits.
How much does time matter?
Same plan: $100,000 to start, $1,000 a month, 7% a year. From 10 to 30 years the money put in roughly doubles, but the value grows more than five times.
Why does growth speed up in later years?
Because each year’s growth is calculated on a bigger balance. Compound interest is interest paid on your original money and on the interest it has already earned.4 The rate stays the same, but the base keeps growing.
Watch a single $10,000 deposit at 7% a year. In year 1 it earns $700. In year 10 it earns about $1,287, because the balance has almost doubled. In year 30 it earns about $4,980 in that one year alone, roughly seven times the first year’s growth, from the same deposit and the same rate.
This is why the bars in this part look so lopsided. The middle and late years do most of the work. Stopping contributions or cashing out early gives up the years when compounding pays the most, and starting five years sooner can matter more than finding a slightly higher return.
Give money time. The growth on growth is what makes the big numbers.
Marks part 2 of 4 done and opens the next one.
Reality checkWhat could make your real ROI different?
Compare ROI per year, after fees and tax, or you are not comparing like with like.
Both calculators are clean math. Real investing adds costs, taxes and uneven returns.
What does ROI leave out?
- Time. ROI does not say how long the gain took. Always compare yearly rates.
- Taxes. Gains on investments sold in a taxable account are usually taxed. Held more than a year, they qualify for lower long term rates.1
- Inflation. A 30% gain over 10 years buys less than it sounds. The inflation calculator shows how much.
- Uneven returns. The projector uses one steady rate. Real markets rise and fall from year to year.
Do fees matter for ROI?
Yes, and they compound. Fund fees come out every year, so they lower your return every year. The SEC’s investor site shows $100,000 earning 4% for 20 years ending near $208,000 with a 0.25% yearly fee, but near $179,000 with a 1% fee.2
Turn your ROI into a yearly rate. The CAGR calculator converts a start value, an end value and the years into the compound annual growth rate, so you can compare investments fairly.
Open the CAGR calculatorHow do I adjust ROI for inflation?
Compare your growth with the rise in prices over the same years. Inflation is commonly measured with the Consumer Price Index, which tracks the average change in prices paid by urban consumers.5 Your real return is what is left after that rise.
The math is a division, not a subtraction. Add 1 to your ROI, divide by 1 plus total inflation, then subtract 1. Say you earned 30% over 10 years while prices rose 3% a year. Ten years of 3% inflation compounds to about 34%. So 1.30 divided by 1.34 is about 0.97, a real return of about minus 3%. Your account grew, yet it buys a little less than when you started.
A short holding period hides this effect and a long one exposes it. That is one more reason to convert ROI to a yearly rate and to compare it with inflation over the same stretch.
Compare ROI per year, after fees and tax, or you are not comparing like with like.
Marks part 3 of 4 done and opens the next one.
Watch outThree mistakes to avoid, and what to do instead
Common slips and what to do instead.
- Confusing total return with yearly return A 50% ROI over five years is about 8.4% a year, not 10%. Use CAGR for the yearly figure.
- Leaving out costs Fees, taxes and trading costs all lower the real return. Include them for an honest number.
- Comparing ROI across different risks A 7% return from a broad fund and 7% from one small stock are not the same result. Risk is part of the picture.
Marks part 4 of 4 done.
ROI Calculator FAQ
Tap a question to open the answer.
What does the ROI calculator do, and is it free?
Work out the return on an investment, past or projected. You enter what you paid, what you got back and how long you held it. You get rOI, annualized return and the dollar gain. It is free to use with no signup. Keep in mind: before tax and fees unless you include them.
How do you calculate ROI on an investment?
Divide your net gain by your total cost, then multiply by 100. Net gain is what you got back, including sale proceeds and any dividends, minus what you paid and minus fees. Buy for $5,000, sell for $6,500 and pay no fees, and your gain is $1,500, so ROI is 30%. Add $10 of fees each way and total cost becomes $5,010, net gain $1,480, and ROI 29.54%. The completed investment calculator on this page does that math for you.
What is a good ROI?
A good ROI beats what you could have earned elsewhere for similar risk over the same time. Investors expect higher returns for taking more risk, so a few percent a year can be good for a savings account but weak for a stock. Time matters too: 30% in one year is excellent, while 30% over five years is about 5.4% a year. Convert to a yearly rate, subtract fees, and compare it with inflation and a simple index fund over the same period.
Is ROI the same as profit?
No. Profit is the dollar gain, while ROI is that gain as a percentage of what you put in. The percentage lets you compare investments of different sizes. A $1,000 profit on a $2,000 investment is a 50% ROI, while the same $1,000 profit on $20,000 is only 5%. Both made the same money, but the first used far less capital to do it. Report both numbers, along with how long you held each investment.
How do I include dividends in ROI?
Add them to what you received. The completed investment calculator has a field for cash distributions such as dividends, and it counts them in your net gain. A $5,000 purchase sold for $6,500 that also paid $400 in dividends has an ROI of 38% rather than 30%. If you reinvested the dividends into more shares, do not count them a second time, because they are already part of what you sold. Dividends are taxable in the year you receive them.
Show 4 more questionsShow fewer questions
What is the difference between ROI and CAGR?
ROI is the total return over the whole holding period, while CAGR, the compound annual growth rate, is the steady yearly rate that would produce the same result. ROI ignores time, which makes it misleading when you compare investments held for different lengths. A 30% ROI over five years works out to a CAGR of about 5.4%, while 30% over three years is about 9.1% a year. Use the CAGR calculator to convert any ROI into a yearly rate.
Does a high ROI mean an investment was a good choice?
Not always, and this is a common mistake. A high ROI can come from taking a large risk that happened to work, from a very long holding period, or from a single lucky stock. It also ignores what the same money could have earned elsewhere. Someone who made 40% on one stock over eight years earned about 4.3% a year, likely less than a broad index fund over that span. Judge results by yearly return, risk taken and the alternative.
Does ROI include taxes and inflation?
No. The basic formula shows a pretax, nominal return. Gains on investments sold in a taxable account are usually taxed, at lower long term rates if held more than a year, and dividends are taxed when paid. Inflation then shrinks what the remaining money buys. A 30% gain over 10 years with 3% yearly inflation is roughly a 3% loss in buying power. Enter fees in the calculator, then adjust for tax and inflation separately.
Can I save or share my ROI projection?
Yes. Save my numbers keeps your projector inputs in this browser on this device. Copy link to these numbers creates a link that opens the projector with the same inputs, and nothing else is stored or sent. Both calculators work only with the figures you type in; they do not look up prices, dividends or tax rates. The projector also uses one steady rate of return, so treat its result as an illustration rather than a forecast.
What should I do next?
Pick the step that fits what you just did.
Who checks this page, and the sources
Real people check the numbers and the wording. Every source is listed.
- Updated
- Sources listed below
- Education, not advice
- Review of this update in progress
Sources and methodEvery source used on this page, how the tool works and the page history.
- IRS Topic No. 409, Capital gains and losses. Holding an investment more than one year makes a gain long term.
- Investor.gov (U.S. Securities and Exchange Commission): How Fees and Expenses Affect Your Investment Portfolio. $100,000 earning 4% a year for 20 years ends near $208,000 with a 0.25% yearly fee and near $179,000 with 1%.
- IRS: Topic No. 404, Dividends and other corporate distributions. Dividends are taxable, and qualified dividends get the lower capital gain rates.
- Investor.gov (U.S. Securities and Exchange Commission): Compound interest. Defines compound interest as interest paid on principal and on accumulated interest.
- U.S. Bureau of Labor Statistics: Consumer Price Index. The CPI measures the average change over time in prices paid by urban consumers.
- Investor.gov (U.S. Securities and Exchange Commission): Risk. Investors look for higher returns to compensate them for taking more risk.
Method: the completed investment calculator divides net gain (sale proceeds plus distributions, minus selling fees and total cost) by total cost, where total cost is the purchase amount plus buying fees. The projector adds contributions at the end of each period, compounds at the chosen frequency, and splits the gain into simple interest on the initial amount and the remaining growth. The projection default is 10 years, 7% a year, $100,000 to start and $1,000 a month. Every figure on this page came from these calculators on October 15, 2026. Results exclude taxes, fees and inflation unless you enter fees. All amounts are in U.S. dollars.
Page history. November 27, 2026: page simplified into numbered sections, missing tables restored and the questions reordered. The tool itself has not changed. October 21, 2026: content expanded, sources added and the page reviewed by Associate Professor Charles Lo, CPA, PhD. The tool itself has not changed.
StockEducation provides general education, not personal financial, tax or legal advice. Results are illustrations based on the assumptions you enter, not forecasts or promises of any return. Investing involves risk, including the loss of money you invest.
