What is ROI? Meaning, formula and how to calculate it
Prefer to watch? The video covers the same example.
Video chapters
ROI (return on investment) is the profit from an investment divided by what it cost, shown as a percentage. The formula is ROI = (money back − cost) ÷ cost. Put in $10,000, get $15,000 back, and the ROI is 50%.
What does ROI mean?
ROI means return on investment: how much you made (or lost) on something, measured against what you put into it. It turns a dollar result into a percentage, so a $500 gain on $1,000 and a $50,000 gain on $100,000 both read as 50%. That is what makes ROI easy to compare across very different things, such as a stock, a rental unit, a new machine or an ad campaign.
It is also why ROI is easy to misuse. The basic number ignores how long the money was tied up, how big the bet was and any cost you forgot to count. This page shows the formula, a calculator and the three traps, using one example throughout. For the time question in more depth, see our guide to annualized return, and for property deals, our guide to rental property ROI.
ROI is not an accounting term with one official definition. Businesses and investors calculate it in slightly different ways, so when someone quotes an ROI, ask what they counted as the cost and what they counted as the return.
ROI formula
The ROI formula is net gain divided by cost. Net gain is everything you got back minus everything you paid.
Written as one line, the same thing is:
“Total money back” means all of it: the sale price plus any income received along the way, such as dividends, interest or rent. “Cost” means all of it too: the purchase price plus fees, commissions, closing costs and the money you spent to improve the asset. Most ROI mistakes come from leaving something out of one of these two numbers.
How to calculate ROI step by step
To calculate ROI, add up what you paid, add up what you got back, subtract the first from the second, and divide the result by what you paid. Example (hypothetical): you invest $10,000 in a stock index fund and sell five years later for $15,000, with dividends reinvested and no fees.
| Index fund example (hypothetical) | Amount |
|---|---|
| 1. Total money back (sale value after 5 years) | $15,000 |
| 2. Total cost (amount invested) | −$10,000 |
| 3. = Net gain | $5,000 |
| 4. ROI = net gain ÷ cost | 50.0% |
The ROI is 50%. If you need a decimal for a spreadsheet, it is 0.5. If you lose money, the net gain is negative and so is the ROI; there is a section on negative ROI below.
ROI calculator
Enter what the investment cost in total, everything it paid back in total and how many years you held it. The calculator returns the net gain, the ROI and the annualized ROI, which is the yearly rate that turns the cost into the money back. It starts with the index fund example.
ROI calculator
Use totals in both fields. For a rental, “total money back” is the sale price plus all net rent received. For a business purchase, it is the sale price plus all the profit you took out. The annualized figure assumes the money was invested in one lump at the start and paid back in one lump at the end; when cash comes back along the way, IRR is more precise (see the apartment example below).
The three ROI traps: time, size and what was left out
The three ROI traps are that it ignores how long your money was tied up, how many dollars were at stake, and any costs left out of the calculation. Two investments with identical ROI can be very different deals. The example below adds a second investment to show why.
Example (hypothetical): you also buy a rental apartment for $200,000 in cash. Over ten years it brings in $60,000 of net rent, which is $6,000 a year after running costs, and you then sell it for $240,000.
| Hypothetical comparison | Index fund | Rental apartment |
|---|---|---|
| Total cost | $10,000 | $200,000 |
| Net rent received | $0 | $60,000 |
| Sale value | $15,000 | $240,000 |
| Total money back | $15,000 | $300,000 |
| Net gain | $5,000 | $100,000 |
| Years held | 5 | 10 |
| ROI | 50.0% | 50.0% |
Both show a 50% ROI. They are not equally good investments.
Trap 1: time
ROI has no time in it, so a 50% gain over 5 years and a 50% gain over 10 years look the same. To compare them, convert each ROI into a yearly rate. That is the annualized ROI, also called the compound annual growth rate (CAGR):
The fund earned roughly twice as much per year. Note that you cannot just divide 50% by 5 and call it 10% a year: returns compound, so each year’s gain builds on the last. Our annualized return guide explains the difference.
The apartment’s 4.1% actually understates it a little, because the formula treats all $300,000 as arriving at the end, while the rent came in every year. The internal rate of return (IRR) counts each payment in the year it arrived:
| Apartment cash flows (hypothetical) | Amount |
|---|---|
| Year 0: purchase | −$200,000 |
| Years 1–9: net rent, each year | $6,000 |
| Year 10: net rent plus sale ($6,000 + $240,000) | $246,000 |
| IRR (yearly rate that makes these flows net to zero) | 4.6% |
Even counted generously, the apartment returned about 4.6% a year against about 8.4% for the fund. Our page on ROI vs. IRR walks through when to use which.
Trap 2: size
ROI is a percentage, so it hides how many dollars are at stake. The fund made $5,000; the apartment made $100,000. If your realistic choice is between putting $200,000 into the apartment or $10,000 into the fund (and nothing else), the apartment leaves you with more money, even at a lower yearly rate. The fair comparison is the same amount of money in each option for the same length of time. A 200% ROI on a $500 side project is a nice result, but it pays fewer bills than 8% on a large portfolio.
Trap 3: what was left out
ROI is only as honest as its inputs. Suppose the apartment also had $10,000 of closing fees and taxes when you bought it and needed a $15,000 renovation before the first tenant moved in. Both are part of the cost.
| Apartment (hypothetical) | As first calculated | With hidden costs |
|---|---|---|
| Purchase price | $200,000 | $200,000 |
| Closing fees and taxes | $0 | $10,000 |
| Renovation | $0 | $15,000 |
| Total cost | $200,000 | $225,000 |
| Total money back | $300,000 | $300,000 |
| Net gain | $100,000 | $75,000 |
| ROI | 50.0% | 33.3% |
Two forgotten costs cut the ROI by a third. Annualized over ten years, it falls from 4.1% to 2.9% a year. Other things that often go missing:
- Selling costs, such as broker commissions and legal fees.
- Ongoing costs, such as fund fees, insurance, maintenance and vacancies.
- Taxes on the gain or on the income along the way.
- Your own time. The apartment needed tenants found, repairs managed and rent collected; the fund needed nothing.
- Inflation. A 50% gain over ten years buys less than 50% more goods if prices rose in the meantime.
To take inflation out, convert the ROI into a real (inflation-adjusted) ROI. Use the total inflation over the same holding period, not the yearly rate.
Example (hypothetical): the apartment's 50% ROI over ten years, in a decade when prices rose 30% in total.
In purchasing power, the gain is 15.4%, not 50%. Subtracting inflation from ROI (50% − 30% = 20%) overstates it, and the gap grows as the numbers get bigger.
Our page on how to calculate ROI on a rental property goes through every property cost, including what changes when you use a mortgage.
ROI with borrowed money
When you borrow part of the money, ROI is usually measured on your own cash invested, not on the total cost of the asset. That makes the denominator smaller, so borrowing amplifies the result in both directions. Example (hypothetical): you buy $20,000 of shares with $10,000 of your own cash and a $10,000 loan that costs $800 in interest over one year.
| One year (hypothetical) | Shares rise 20% | Shares fall 20% |
|---|---|---|
| Value of the shares | $24,000 | $16,000 |
| − Loan repaid | −$10,000 | −$10,000 |
| − Interest | −$800 | −$800 |
| = Money back to you | $13,200 | $5,200 |
| Net gain on your $10,000 | $3,200 | −$4,800 |
| ROI without a loan, for comparison | 20.0% | −20.0% |
| ROI on your own cash | 32.0% | −48.0% |
A 20% move in the shares became a 32.0% gain or a −48.0% loss on your cash. The same logic applies to a rental bought with a mortgage, covered in the rental property ROI guide, and to cash-on-cash return, which measures one year of cash flow on the cash you put in.
What is a good ROI?
A good ROI is one that beats what you could have earned elsewhere, on the same money, over the same period, at a similar level of risk. There is no single number. A safe government bond and a startup stake should not be held to the same standard, and the answer also shifts with interest rates and inflation.
Long-run market returns give you a yardstick. The table below uses the historical US returns data compiled by Aswath Damodaran at NYU Stern for 1928 through 2025. The returns are nominal (before inflation) and before taxes and fees.
| US asset class | Annualized return, 1928–2025 | $100 at start of 1928 grew to |
|---|---|---|
| S&P 500 (US large stocks, dividends reinvested) | 10.0% | $1,157,009 |
| Baa-rated US corporate bonds | 6.6% | $53,952 |
| 10-year US Treasury bonds | 4.5% | $7,718 |
| 3-month US Treasury bills | 3.4% | $2,578 |
Source: Aswath Damodaran, NYU Stern, Historical Returns on Stocks, Bonds and Bills (updated January 5, 2026). Annualized returns and dollar values are calculated from the yearly returns in the dataset’s Excel file, through 2025.
Two things in that data matter for judging an ROI. First, the stock market’s roughly 10.0% a year came with large swings: the S&P 500 fell in 26 of the 98 years, and lost 43.8% in 1931 alone. Second, the yearly average of those returns is higher, about 11.9%, than the compound rate. For a single investment you held, the compound (annualized) rate is the one to compare against.
Measured that way, the hypothetical index fund’s 8.4% a year is close to the long-run stock market rate. The hypothetical apartment’s 4.6% IRR is in the range of the long-run return on 10-year Treasury bonds (4.5%), with far more risk and work. That does not make it a bad investment in every case, but it is the question a good ROI analysis forces you to ask.
What does a negative ROI mean?
A negative ROI means you got back less than you put in. Example (hypothetical): you invest $10,000 and three years later the investment is worth $8,000.
When you pay cash and owe nothing more, the worst possible ROI is −100%: you lose everything you put in. It can go below −100% if you borrowed money or signed a guarantee and owe more than the original stake. A negative ROI on one project is not always a mistake either. Companies sometimes accept a loss on one product to win customers who buy something else, but then the ROI should be measured on the whole package.
ROI in business and marketing
In business, ROI uses the same formula, but the “money back” should be the extra profit an investment brings, not the extra revenue. That distinction matters most in marketing. Example (hypothetical): an ad campaign costs $5,000 and brings in $20,000 of sales. The products sold carry a 40% gross margin, so the campaign generated $8,000 of gross profit.
| Ad campaign (hypothetical) | Amount |
|---|---|
| Sales from the campaign | $20,000 |
| Gross profit at a 40% margin | $8,000 |
| Campaign cost | −$5,000 |
| = Net gain | $3,000 |
| Marketing ROI = $3,000 ÷ $5,000 | 60.0% |
Had you used revenue instead of profit, you would have reported a 300% ROI, five times too high. The campaign’s return on ad spend (ROAS), which is revenue divided by ad cost, is 4.0x. ROAS is a useful ad metric, but it is not ROI because it ignores the cost of the goods sold.
For a machine, a vehicle or software, count the extra profit or the cost savings it produces over its life, and count its full cost, including installation and training. Capital purchases of this kind are capital expenditures (CapEx), and the cash they produce shows up in free cash flow rather than in EBITDA, which ignores the cost of the asset itself.
ROI vs. related measures
ROI is the broad, simple version of a family of return measures. The others each fix one of its blind spots or measure a narrower thing.
| Measure | What it measures | Main difference from ROI |
|---|---|---|
| Annualized return (CAGR) | Yearly compound growth rate | Adds time; see annualized return |
| IRR | Yearly rate that counts the timing of every cash flow | Adds time and the timing of income; see ROI vs. IRR |
| Cash-on-cash return | One year’s pre-tax cash flow ÷ cash invested | A single year of income only; see cash-on-cash return |
| ROE (return on equity) | Net income ÷ shareholders’ equity | A company-wide ratio from the financial statements, for one year |
| ROA (return on assets) | Net income ÷ total assets | Measures the whole company’s assets, not one investment |
| ROAS | Revenue ÷ ad spend | Uses revenue, not profit |
Use ROI for a quick first read on a single decision, then switch to annualized return or IRR whenever the holding periods differ or cash arrives along the way.
FAQ
What does ROI stand for?
ROI stands for return on investment. Most people pronounce it as three letters, R-O-I.
Is ROI the same as profit?
No. Profit is a dollar amount, while ROI divides that profit by what you invested to give a percentage. A $5,000 profit is a 50% ROI on $10,000 but only a 5% ROI on $100,000.
Can ROI be more than 100%?
Yes. An ROI above 100% means you more than doubled your money. Investing $1,000 and getting $3,000 back is a 200% ROI.
Is ROI calculated per year?
No. Basic ROI covers the whole holding period, however long it was. To get a yearly figure, use the annualized ROI: (1 + ROI) raised to the power of 1 divided by the number of years, minus 1.
Is a 10% ROI good?
A 10% total ROI is modest if it took several years, but 10% a year is close to the long-run S&P 500 return of about 10.0% a year from 1928 through 2025 in NYU Stern data. Whether it is good depends on the risk, the time and the alternatives.
How do you calculate ROI in Excel?
Put the cost in B1, the total money back in B2 and the years in B3. ROI is =(B2-B1)/B1 and annualized ROI is =(B2/B1)^(1/B3)-1; format both cells as percentages.
What is the difference between return on investment and return of investment?
Return of investment means getting your original money back. Return on investment is what you earn on top of it. A payout that only returns your stake has an ROI of zero.
What is the difference between ROI and ROAS?
ROAS divides the revenue from ads by the ad spend, while ROI divides the profit by the cost. A campaign can show a strong ROAS and still have a negative ROI if margins are thin.
What is the difference between ROI and ROE?
ROI measures the return on one specific investment. ROE (return on equity) is a company-level ratio: net income for a year divided by shareholders' equity.
Related




