Contents
- What goes into the ROI formula?
- Example 1: Equipment for a small business
- Example 2: A stock held with dividends
- Example 3: A rental property (cash purchase)
- Example 4: Marketing campaign (ROI is not ROAS)
- Example 5: Comparing two projects of different length
- How do you calculate ROI in Excel?
- ROI compared with other return measures
- What is a good ROI?
- Common ROI mistakes to avoid
- Frequently asked questions
- Can ROI be negative?
- What is the difference between ROI and ROE?
- Should taxes be included in ROI?
- How do I handle extra contributions during the investment?
Short answer: ROI = (final value − total cost) ÷ total cost × 100%. Final value is every dollar that came back plus whatever the asset is still worth. A $50,000 investment that returns $68,000 has an ROI of 36%. Because ROI ignores time, convert it before comparing investments of different length: annualized ROI = (final value ÷ cost)^(1/years) − 1. If that 36% took two years, the annualized ROI is 16.6%, not 18%.
Most ROI mistakes are not arithmetic mistakes. They come from leaving costs out, counting revenue instead of profit, or comparing a two-year result with a one-year result. The five worked examples below show the formula on different kinds of investment and the adjustment each one needs. All figures are simulated.
Use the calculator to check your own numbers. Enter the total cost, the final value, and the holding period in years; it returns total ROI, annualized ROI, and the simple per-year average for comparison.
Quick version: ROI = (68,000 − 50,000) ÷ 50,000 = 36%. Annualized over 2 years = (68,000 ÷ 50,000)^(1/2) − 1 = 16.6%.
What goes into the ROI formula?
The numerator is the net gain; the denominator is everything you put in. Count both sides fully. Total cost includes the purchase price plus shipping, installation, fees, taxes, and running costs during the holding period. Final value includes all cash received (sales, rent, dividends, interest, savings) plus the current or resale value of what you still own.
| Item | Goes into | Commonly forgotten |
|---|---|---|
| Purchase price or initial capital | Total cost | Shipping, installation, training, closing costs |
| Running costs | Total cost | Maintenance, insurance, platform and broker fees |
| Cash received | Final value | Dividends or rent already collected |
| Remaining value | Final value | Resale value of used equipment |
Example 1: Equipment for a small business
A snack producer buys slicing and packing machines for $42,000, pays $3,000 for delivery, installation, and training, and spends $5,000 on maintenance over two years: total cost $50,000. Over those two years the machines save labor and add capacity worth $53,000 in extra profit, and they can still be sold for $15,000. Final value is $68,000.
ROI = (68,000 − 50,000) ÷ 50,000 = 36%. Forget the installation and maintenance and the cost drops to $42,000, inflating ROI to 61.9%. That gap is large enough to approve the wrong project.
Example 2: A stock held with dividends
Buy 100 shares at $40 with a $10 commission (cost $4,010). Over three years collect $360 in dividends, then sell at $47 with another $10 commission ($4,690 received). Final value = $4,690 + $360 = $5,050. ROI = (5,050 − 4,010) ÷ 4,010 = 25.9%. Annualized over three years: (5,050 ÷ 4,010)^(1/3) − 1 = 8.0% per year. Leave out the dividends and ROI falls to 17.0%; leave out the commissions and it rises slightly. Neither is the real return. This is a calculation example, not a view on any security.
Example 3: A rental property (cash purchase)
Pay $200,000 for a property plus $6,000 in closing costs and $14,000 in repairs: total cost $220,000. Over five years net rent after expenses totals $55,000, and the property is valued at $240,000 at the end. Final value = $295,000. ROI = (295,000 − 220,000) ÷ 220,000 = 34.1%. Annualized: (295,000 ÷ 220,000)^(1/5) − 1 = 6.0% per year. Five years of a 34% total sounds better than it is once spread over the holding period. With a mortgage, ROI is usually measured on the cash you put in, which raises both the potential return and the risk.
Example 4: Marketing campaign (ROI is not ROAS)
An ad campaign costs $2,000 and generates $10,000 in sales. That is a ROAS (return on ad spend) of 5×, but ROAS uses sales, not profit. With a 30% gross margin, the campaign produced $3,000 of gross profit, so ROI = (3,000 − 2,000) ÷ 2,000 = 50%. At a 15% margin the same 5× ROAS yields $1,500 of gross profit and an ROI of −25%. The break-even ROAS is 1 ÷ margin: about 3.3× at 30% margin and 6.7× at 15%.
Example 5: Comparing two projects of different length
| Project (simulated) | Cost | Final value | Years | Total ROI | Annualized ROI |
|---|---|---|---|---|---|
| A: packing machine | $50,000 | $68,000 | 2 | 36.0% | 16.6% |
| B: seasonal inventory | $50,000 | $60,000 | 1 | 20.0% | 20.0% |
Project A has the higher total ROI; project B earns more per year. Dividing total ROI by the number of years (36% ÷ 2 = 18%) is a common shortcut, but it always overstates the true annual rate because it ignores compounding, and the error grows with longer periods.
How do you calculate ROI in Excel?
Put total cost in B1, final value in B2, and years in B3. Total ROI is =(B2-B1)/B1 formatted as a percentage, and annualized ROI is =(B2/B1)^(1/B3)-1. When cash flows arrive in different years, list them with the investment as a negative number first, for example −50,000, 20,000, 25,000, and 23,000 in B5:B8, and use =IRR(B5:B8). For that series IRR is 16.7% per year, while the simple ROI is 36% over three years. IRR accounts for when each dollar came back; ROI does not.
ROI compared with other return measures
| Measure | Formula | Best for |
|---|---|---|
| ROI | (final value − cost) ÷ cost | A quick check of one investment |
| Annualized ROI | (final value ÷ cost)^(1/t) − 1 | Comparing different holding periods |
| ROAS | sales ÷ ad spend | Ad efficiency before costs of goods |
| IRR | rate that sets NPV to zero | Uneven cash flows over several years |
| NPV | sum of discounted cash flows | Value created at a required rate of return |
What is a good ROI?
Judge ROI against two benchmarks: the cost of capital (the interest rate on borrowed money, or the return on a safe alternative you give up) and the risk. A 16.6% annual return on a machine you will use yourself carries less risk than the same figure from an untested new product. The less certain the result, the wider the gap above the cost of capital should be before the investment is worth taking.
Common ROI mistakes to avoid
First, check that the cost side is complete: the equipment example jumped from 36% to 61.9% simply because installation and maintenance were left out. Second, never compare total ROI across different holding periods; convert each to an annual rate first. Third, do not use revenue where profit belongs, which is the trap behind treating ROAS as ROI. Fourth, remember the remaining value of the asset; ignoring the resale value understates ROI just as forgetting costs overstates it. Fifth, use the same rule on every option you compare, before or after tax, with or without financing. Writing the cost items and the value items in two separate lists before calculating prevents most of these errors.
Frequently asked questions
Can ROI be negative?
Yes. $20,000 that returns $15,000 has an ROI of −25%. The lowest possible ROI is −100%, when the whole investment is lost.
What is the difference between ROI and ROE?
ROI measures the return on one specific investment. ROE (return on equity) measures a company’s net income relative to shareholders’ equity over a reporting period.
Should taxes be included in ROI?
Include them when you compare after-tax outcomes, such as two investments taxed differently. State whether a figure is before or after tax so that it is compared like for like.
How do I handle extra contributions during the investment?
Simple ROI assumes all money goes in at the start. With additional contributions or withdrawals along the way, use IRR (or Excel’s XIRR for exact dates), which weights each cash flow by its timing.
Discussion
No comments yet. Have a question about this topic? Write it below and I will do my best to answer.