ROI Calculator
Enter your initial investment cost and the total gain (or final value) to calculate your ROI percentage. If you provide a time period, you'll also get the annualized ROI.
Reviewed by the ToolNestr Editorial Team — July 2026
How ROI is calculated
Return on Investment (ROI) measures the efficiency of an investment by comparing the net profit to the initial cost. The basic formula is: ROI (%) = ((Gain - Cost) / Cost) × 100. For multi-year investments, the annualized ROI adjusts for time using: Annualized ROI = (1 + ROI)^(1 / Years) - 1.
ROI is one of the most widely used financial metrics because it is simple to calculate and easy to interpret. A positive ROI means the investment generated more value than it cost, while a negative ROI indicates a loss. The annualized version is essential when comparing investments held for different periods — it normalizes returns to a per-year basis, accounting for the compounding effect over time.
Worked example
You invest $10,000 in a small business, and after 3 years you sell your stake for $15,000.
About return on investment
ROI is the cornerstone metric for evaluating any investment decision. Whether you are assessing a stock purchase, a real estate deal, a marketing campaign, or a capital equipment purchase, ROI tells you how much value you generated for every dollar invested. It enables you to compare opportunities across different asset classes and time horizons on a level playing field. Use the NPV Calculator to account for the time value of money, and the IRR Calculator for the discount rate that makes net present value zero.
How to use it
- Enter the total amount you invested or paid for the asset.
- Enter the total amount you received (or the current value of the investment).
- Optionally enter the number of years held to see annualized ROI.
- Review your total ROI percentage, annualized ROI, and net profit in dollars.
When to use ROI
ROI is useful in virtually any financial decision. Business owners use it to evaluate marketing campaigns and capital projects. Individual investors use it to track portfolio performance. Real estate investors use it to compare rental properties. The key is to be consistent about what you include as "cost" — the more comprehensive your cost figure, the more accurate your ROI.
Tips for best results
- Include all costs — purchase price, fees, taxes, maintenance, and transaction costs — to get a true net ROI.
- Use annualized ROI when comparing investments held for different lengths of time.
- Remember that past ROI does not guarantee future returns; always consider risk alongside return.
Stock Investor
Track the return on stock purchases including dividends received. Compare performance across your portfolio to identify your best and worst investments.
Real Estate Investor
Calculate ROI on rental properties considering purchase price, renovation costs, rental income, and sale proceeds to evaluate property performance.
Marketing Manager
Measure campaign ROI by comparing total campaign spend against attributed revenue. Justify budgets by showing positive return on marketing investment.
Business Owner
Evaluate capital expenditures like equipment purchases or renovations. Compare ROI across different projects to prioritize the highest-return opportunities.
How to use the ROI calculator
Enter your investment cost
Type the total amount you put into the investment — the purchase price plus any associated fees, commissions, or expenses.
Enter the final value
Enter the total amount you received from the investment (or its current market value). For ongoing investments, use the most recent valuation.
Add time period (optional)
Enter the number of years you held the investment to see the annualized ROI, which shows your average return per year on a compounded basis.
Tips for accurate ROI calculations
Count every cost
The accuracy of your ROI depends entirely on capturing all costs. Include transaction fees, taxes, maintenance, repairs, and any other expenses directly tied to the investment. Missing costs inflates your ROI and leads to overestimating performance.
Use annualized for comparisons
Always use annualized ROI when comparing investments with different holding periods. A 30% total return over 6 months is actually a 69% annualized return, which is dramatically different from a 30% return over 3 years (9.1% annualized).
Consider opportunity cost
Your ROI should be compared against alternative investments. If you earned a 5% annualized ROI on a bond, but the stock market returned 10% over the same period, you incurred an opportunity cost. Always ask: could this capital have been deployed better elsewhere?
Related tools
- NPV Calculator — Net Present Value accounts for the time value of money by discounting future cash flows back to today's dollars.
- IRR Calculator — Internal Rate of Return finds the discount rate that makes NPV zero, useful for comparing project profitability.
- WACC Calculator — Weighted Average Cost of Capital helps determine the minimum return required to satisfy all capital providers.
- Investment Calculator — Project the future value of periodic investments with compound interest over time.
Frequently asked questions
What is ROI?
ROI (Return on Investment) measures how much profit or loss an investment generates relative to its cost. It is expressed as a percentage and helps compare the efficiency of different investments.
How is ROI calculated?
ROI = ((Gain - Cost) / Cost) × 100. Gain is the total amount received from the investment. If the result is positive, you made a profit; if negative, you took a loss.
What is annualized ROI?
Annualized ROI adjusts the total ROI to show the average return per year, accounting for compounding. The formula is (1 + ROI)^(1/years) - 1. This allows fair comparison between investments held for different time periods.
What is a good ROI?
A good ROI depends on the asset class and risk. Stock market averages 7-10% annualized (historically). Real estate typically returns 8-12%. High-risk investments should offer higher potential ROI to compensate for increased risk.
How is ROI different from profit?
Profit is the absolute dollar amount earned (Gain - Cost). ROI is the percentage return relative to the cost. Profit tells you how much you made; ROI tells you how efficiently you used your capital.
Can ROI be negative?
Yes. If your total gain is less than your initial cost, ROI will be negative, meaning you lost money. The calculator handles this automatically and shows the negative percentage.
Why use annualized ROI instead of total ROI?
Total ROI can be misleading when comparing investments held for different lengths. A 50% return over 5 years is roughly 8.4% per year (annualized), while 50% over 1 year is actually 50% annualized. Annualized ROI gives you an apples-to-apples comparison.
Does ROI account for risk?
No, ROI is a pure return metric and does not factor in risk, volatility, or opportunity cost. Use ROI alongside other metrics like Sharpe ratio, risk assessment, and qualitative factors when making investment decisions.
Should I include taxes and fees in ROI?
For the most accurate picture, yes. Include brokerage fees, transaction costs, taxes paid on gains, and any maintenance costs in the "cost" field. This gives you the net ROI after all expenses.
What is the difference between ROI and ROE?
ROI measures return on any type of investment, while ROE (Return on Equity) specifically measures return on shareholders' equity in a company. ROI is broader and applicable to any investment scenario.
Sources & references
This tool uses standard formulas and reference values from:
- • IRS — federal tax brackets, standard deduction and instructions for the tax year. irs.gov
- • U.S. SEC — Investor.gov, compound interest and investment reference material. investor.gov
- • Official national tax authority for the relevant country — link the exact rate schedule used.
Estimates only, not tax or financial advice. Confirm current figures with the official source or a qualified professional.