ROI Calculator: Calculate Your Return on Investment
Total ROI is the net gain divided by what the investment cost. Annualized return is that result spread over the years you held it, and only for a simple one-in, one-out investment.

On this page & data scope
Return on investment is the net gain or loss divided by what the investment cost. A $10,000 outlay that comes back as $12,000, with nothing else, gained $2,000. That is a 20% return. The same 20% stretched over three years is a smaller annualized return, about 6.27% a year. Fees belong in the cost, not as an afterthought that leaves the percentage unchanged.
Calculator
ROI calculator
One investment, one ending value. Fees you type are added to the cost basis and are not subtracted from the ending value again. The calculation stays in your browser.
Total return on investment+20.00%
$10,000 came back as $12,000, a $2,000 net gain and a 20% total return, before taxes or costs you did not enter.
- Cost basis
- $10,000
- Came back
- $12,000
- Net gain
- $2,000
- Total ROI
- 20%
$2,000 ÷ $10,000 = 20%
How to calculate ROI
Work the $10,000 example in order. Nothing else was paid, and nothing else came back.
- Money invested. $10,000 at the start. Upfront costs are $0, so the cost basis is $10,000. That number is the denominator.
- What came back. The ending value is $12,000. Separate income is $0, so nothing is added again.
- Costs already inside the ending value. None. If a fee had already been taken out of the $12,000, it would not be typed a second time.
- Net gain. $12,000 − $10,000 = $2,000. The ending value is not the profit. Most of it is the original $10,000 coming home.
- The percentage. $2,000 ÷ $10,000 = 20%.
- What it does not say. It does not say the result is after tax, and it does not say the same 20% next year.
Ending value is not the profit
In$10,000the denominator
Back$10,000principal recovered+ $2,000the gain
Ending value$12,000not the profit
$2,000 ÷ $10,000 = 20%
$10,000 goes in. $10,000 of that comes back, and $2,000 is new. Together they are the $12,000 ending value. The 20% return divides the $2,000 by the $10,000 that was invested, not by the $12,000.
Corporate Finance Institute: return on investment is the gain divided by the investment base.
Corporate Finance Institute describes the same shape: gain divided by the investment base. Other ROI formulas exist. This page uses this one.
Upfront fees change the fraction
The fee field is money paid at the start, added to the basis. The ending value is the proceeds before that money. An exit fee already removed from the cash you received stays out of both fields: it is already in the ending value.
Do not enter a fee you have also subtracted from the ending value. That counts it twice.
The fee moves both sides of the fraction
- Before the fee$2,000 ÷ $10,000 = 20%
- Basis$10,000 + $250 = $10,250
- Gain$2,000 − $250 = $1,750
- After the fee$1,750 ÷ $10,250 = 17.0732%
A $250 upfront cost raises the basis from $10,000 to $10,250 and cuts the gain from $2,000 to $1,750. The return falls from 20% to 17.0732%. Dividing $1,750 by the old $10,000 would leave the fee out of the denominator.
This calculator’s rule: upfront costs sit in the cost basis. Ending value is the proceeds before those costs. SEC Investor.gov: fees reduce what is left to earn a return.
The SEC’s investor bulletin makes the plain point that fees reduce what is left to earn a return. In this model a $250 fee that was not already removed from the $12,000 does two things. The basis becomes $10,250. The gain falls from $2,000 to $1,750. The return is $1,750 ÷ $10,250, which is 17.0732%.
Dividing that $1,750 by the original $10,000 would show 17.5% and would ignore the fee in the denominator. The calculator does not do that.
This is not a model of every mutual-fund expense ratio, advisory fee or tax. Enter the costs that belong in this one investment’s basis. Leave out costs you have not measured.
The same 20% can be a different year
Total ROI has no clock. Both of the investments below put in $10,000 and got $12,000 back.
Annualized return = (ending value ÷ cost basis) ^ (1 ÷ years) − 1
Same dollars, different years
Both end $2,000 ahead. The lines are the years, not the dollars.
$10,000$12,000
Both lines start at $10,000 and end at $12,000. One takes a year; the other takes three. The annualized rates, 20% and 6.2659%, are constant compound equivalents of that path. They are not cash paid each year.
Corporate Finance Institute: annualized return is (ending ÷ beginning) raised to 1 ÷ years, minus 1.
Over one year, 1.20 ^ 1 − 1 is 20% a year. Over three years, 1.20 ^ (1/3) − 1 is 6.2659% a year. The dollars match. The wait does not. The shorter holding was the stronger annual result. Those annual figures are a constant compound path between the two ends. They are not checks that arrived each year. To go the other way, from a steady annual rate to the years it takes to double, see the Rule of 72.
The formula needs one outlay at the start and one inflow at the end. Upfront fees are part of that opening outlay, so a three-year annualized return on the fee example uses $10,250 at the start and $12,000 at the end. An exit fee already removed from the $12,000 is already in the ending value. The calculator does not show an annualized percentage when separate income has a blank date. CFI’s rate-of-return example folds dividends into the final amount, which treats them as if they arrived at the end. This page will not do that. That rate is not an internal rate of return. IRR uses every date, and this page does not calculate it.
A holding period of zero is rejected. The total ROI is not multiplied by 12 to impersonate a year. An ending value of zero, with no separate income, is a total loss: −100%, including the annualized rate.
A machine, not a share
A shop buys a machine for $8,000 and pays $500 to install it. Both are upfront, so the basis is $8,500. Over the period being judged, the extra output produces $11,000 of sales. Wages and materials for that output are $7,000. The incremental net benefit is $4,000, not $11,000. At the end the machine sells for $6,000.
Enter $8,000 as the investment, $500 as the upfront cost, $6,000 as the ending value and $4,000 as separate income. The gain is $6,000 + $4,000 − $8,500 = $1,500. The return is $1,500 ÷ $8,500, about 17.65%. Using the $11,000 of sales as the ending value would pretend the wages and materials were free.
Because the $4,000 has no dates, the calculator does not show an annualized percentage for this project. These figures are an illustration, not a shop that was measured.
Which question you are asking
When this ROI is the wrong tool
- One amount in, one amount out. This calculator.
- Income with no date. Total ROI only. No annualized rate.
- Several deposits or withdrawals. Needs an IRR, which this page does not calculate.
- How many sales cover the month. The break-even calculator.
This page fits one amount in and one amount out. Money that moves in the middle needs dates. A sales target that covers monthly costs is a break-even question, not an ROI question.
Corporate Finance Institute distinguishes ROI from IRR, which uses the timing of each cash flow.
The break-even calculator asks how many sales cover a month of modeled costs. The markup calculator asks what one unit should sell for, and what markup and gross margin that price produces. This page asks what came back relative to one investment’s cost. None of them forecasts a price or a market.
ROI is not ROAS
Return on ad spend compares attributed revenue with the ad spend. Suppose $1,000 of ads are tied to $4,000 of revenue. That is 4× ROAS. It is not a 300% profit.
The goods cost $2,800 and shipping costs $400. Contribution before the ad is $4,000 − $2,800 − $400 = $800. After the $1,000 ad, the result is −$200. If the $1,000 is the investment and $800 is what came back, the ROI is −20%. The 4× figure never saw the goods or the shipping. Attribution here is an assumption of the example, not a measurement.
What one ROI leaves out
| Situation | What the percentage misses |
|---|---|
| Two holdings of different lengths | Time. 20% in a year is not 20% over three years. |
| Cash that moved in the middle | Dates. That needs an IRR. This page withholds the annualized rate. |
| A riskier bet with the same ending value | How likely that ending value was. |
| A project measured by its sales | The operating costs. Gross sales are not the net benefit. |
| Fees or taxes left out of the basis | What was actually kept. The percentage is then too high. |
| A rise in prices generally | Purchasing power. A positive ROI can still buy less. |
Investor.gov separates income, a change in price, and the chance of loss. The numbers on this page are the ones you typed. The result is not a prediction, and it is not a reason to buy or sell.
Frequently asked questions
What is the ROI formula used here?
Net gain divided by cost basis. Net gain is ending value plus separate income, minus the initial investment and the fees you enter. Cost basis is the initial investment plus those fees.
How do I calculate a 20% ROI?
A 20% total return means the net gain is one fifth of the cost basis. On $10,000, that is a $2,000 gain, so $12,000 comes back if there is no separate income and no fee.
What does a negative ROI mean?
What came back was less than the cost basis. A drop from $10,000 to $9,000 is a $1,000 loss and a −10% return. It is a loss, not a small profit.
Is a 100% ROI doubling my money?
On this formula, yes, before considering anything the model leaves out. A $10,000 basis that comes back as $20,000 gained $10,000, which is 100%. Taxes and an alternative use of the money are not in that sentence.
How do fees affect ROI?
They raise the cost basis and lower the gain, if they were not already removed from the ending value. The $250 example moves a 20% return to 17.0732%.
What is a good ROI?
There is no percentage that is good for every project, property or security. CFI’s own guide says a good return depends on the objective, the asset and the time. This page does not supply a benchmark.
How do I annualize ROI?
For one amount in and one amount out, raise ending value divided by cost basis to the power of one divided by the years, then subtract one. Do not multiply a short total return by 12 and call the product an annualized compound return.
Is annualized ROI the same as CAGR?
For a single starting value and a single ending value, the geometric annualized return is the compound annual growth rate of that value. It is not the IRR of a series of deposits.
Does ROI include dividends?
Only if you put them in separate income, or they are already inside the ending value. Do not enter them in both places. If they are in separate income, total ROI includes them and the annualized figure is withheld, because their dates are unknown.
What is the difference between ROI and profit?
Profit here is the dollar net gain. ROI is that gain divided by the cost basis. A $2,000 gain on $10,000 is 20%. The same $2,000 on a $100,000 basis is 2%.
Evidence record
Sources and references
- Return on Investment (ROI) Formula — Corporate Finance Institute
- Rate of Return — Corporate Finance Institute
- How Fees and Expenses Affect Your Investment Portfolio — U.S. Securities and Exchange Commission, Investor.gov
- Introduction to Investing — U.S. Securities and Exchange Commission, Investor.gov