ROI Calculator
Calculate the return on investment (ROI) and annualized ROI for an investment.
Fees, commissions, or other costs to include in your cost basis (optional).
Enter your values to calculate your result.
About this calculator
The ROI Calculator measures how much an investment gained or lost compared with what you put into it, as a percentage — and, using the holding period, as an equivalent yearly rate.
It suits anyone judging a single investment after the fact or comparing a few: shares, a property flip, a business purchase, equipment, a course. Including your extra costs gives a more honest figure than the price alone.
ROI looks only at money in and money out. It says nothing about risk, and a high ROI over a long time can be a poor yearly return.
What each field means
- Initial Investment
The amount you paid or put in to acquire the investment.
It is the main part of your cost basis, the figure the gain is measured against.
0 or more. The total cost must be above 0 for a meaningful ROI.
- Additional Costs
Other costs tied to the investment: fees, commissions, taxes paid on purchase, repairs. Optional.
They are added to the initial investment, so leaving them out overstates the return.
0 or more. Leave at 0 if there are none.
- Final Value
What the investment is worth, or what you received for it, at the end.
The gap between this and your total cost is the net gain or loss.
0 or more. A final value below the total cost is a loss.
- Holding Period
How long you held the investment, in years.
It turns the total return into a yearly one, so investments held for different lengths can be compared.
More than 0. Decimals such as 0.5 are fine.
How it is calculated
- Add the initial investment and the additional costs to get the total cost.
- Subtract the total cost from the final value to get the net gain (or loss).
- Divide the net gain by the total cost and multiply by 100: that is the ROI.
- For the annualized ROI, divide the final value by the total cost, raise it to the power 1 ÷ n (n = years held) and subtract 1.
ROI % = (Final Value − Total Cost) ÷ Total Cost × 100 Annualized = (Final ÷ Total Cost)^(1 ÷ n) − 1
Total Cost is the initial investment plus any extra costs. ROI is the net gain or loss as a percentage of that cost. Annualized ROI spreads the same result over the holding period as a constant compound yearly rate.
Symbols used
- ROI
- return on investment, as a percentage
- Final Value
- value or proceeds at the end
- Total Cost
- initial investment plus additional costs
- n
- years the investment was held
Assumptions
- Only the money you entered counts: no income received along the way (dividends, rent) unless you include it in the final value.
- Annualized ROI assumes steady compound growth over the holding period.
- Inflation and taxes on the gain are not deducted.
Example
A purchase of 5,000 (no extra costs) that is worth 6,500 after 3 years has a net gain of 1,500: a total ROI of 30% and an annualized ROI of about 9.14% (in whichever currency you use).
Step by step
- Inputs: initial investment 5,000; additional costs 0; final value 6,500; 3 years.
- Total cost = 5,000 + 0 = 5,000.
- Net gain = 6,500 − 5,000 = 1,500.
- ROI = 1,500 ÷ 5,000 × 100 = 30%.
- Growth ratio = 6,500 ÷ 5,000 = 1.3; 1.3^(1 ÷ 3) ≈ 1.091393, so annualized ROI ≈ 9.14%.
Reading your result
- Return on Investment (ROI)
- The net gain or loss as a percentage of your total cost over the whole period. Negative means you lost money.
- Net Gain / Loss
- The final value minus your total cost, in money. A negative figure is a loss.
- Annualized ROI
- The steady yearly rate that would give the same total result over the years you held it, which lets you compare holdings of different lengths.
- Total Cost Basis
- Everything you spent: the initial investment plus any additional costs. The ROI is measured against this figure.
What you can conclude
- How much an investment gained or lost relative to what it cost you.
- How two holdings compare once the same costs are counted and the time held is accounted for (use the annualized figure).
- How far a losing investment is from breaking even.
What you cannot conclude
- Whether the investment was a good decision: ROI ignores risk and the alternatives you gave up.
- What it will return in future.
- The effect of tax or inflation on what you keep.
Limitations
- It assumes a single outlay and a single final value; it does not model several deposits or withdrawals over time.
- Income received along the way counts only if you include it in the final value.
- It is a mathematical calculation, not financial advice.
Frequently Asked Questions
What is the difference between total ROI and annualized ROI?
Total ROI is the whole gain or loss over the holding period. Annualized ROI converts it into the equivalent steady yearly rate, so a 30% gain over 3 years can be compared fairly with a 20% gain over 1 year.
Should I include fees in Additional Costs?
Yes. Commissions, transaction fees, taxes paid at purchase and repairs are part of what the investment cost you. Leaving them out makes the ROI look better than it was.
What does a negative ROI mean?
That the final value is below your total cost, so you lost money. The notes under your result show how much more it would need to be worth to break even.
Does ROI account for dividends or rent I received?
Only if you add that income to the final value. The calculator uses just the two amounts you enter.

