ROI Calculator
Calculate your return on investment and analyze investment performance. Compare different investments and evaluate profitability.
What Is an ROI Calculator?
An ROI (Return on Investment) calculator measures the profitability of an investment by comparing the net gain to the original cost. It expresses the result as a percentage, making it easy to evaluate whether an investment was successful and to compare different investments against each other regardless of their dollar size.
ROI is one of the most widely used financial metrics across personal investing, business decisions, real estate, and project evaluation. Whether you are assessing a stock portfolio, a marketing campaign, a rental property, or a business expansion, ROI provides a single number that captures the efficiency of the capital deployed.
How ROI Math Works
The core ROI formula is straightforward:
ROI = (Total Return - Investment Cost) / Investment Cost x 100
This produces a percentage. A positive value means the investment made money; a negative value means it lost money. For example, investing $20,000 and receiving $28,000 back yields: ($28,000 - $20,000) / $20,000 x 100 = 40% ROI.
When comparing investments held for different durations, annualized ROI normalizes the return to a per-year basis:
Annualized ROI = ((Total Return / Investment Cost)^(1 / Years) - 1) x 100
This uses the geometric mean to account for compounding. A 40% total return over 4 years translates to an annualized ROI of approximately 8.8%, which can be directly compared to annual returns from other investments.
The calculator also computes net profit (Total Return minus Cost) and per-dollar return, giving you multiple perspectives on the same investment outcome.
How to Use This Calculator
Enter the total investment cost. This is the total amount you put into the investment, including purchase price, fees, commissions, and any other expenses.
Enter the total return. This is the final value you received from the investment, including the return of your original capital plus any profit. If you sold an asset for $15,000, enter $15,000.
Enter the investment period (optional). If you provide the number of years the investment was held, the calculator computes the annualized ROI. This is especially useful for comparing investments of different durations.
Review the results. The calculator displays your total ROI percentage, net profit or loss, per-dollar return, and annualized ROI if a time period was provided.
Worked Examples
Example 1: Stock Investment
You purchase $10,000 of stock and sell it 3 years later for $15,000. Total ROI is 50%. Annualized ROI is approximately 14.5% per year. Net profit is $5,000, or $0.50 per dollar invested.
Example 2: Business Equipment
You spend $25,000 on equipment that generates $32,000 in additional revenue over 2 years. Total ROI is 28%. Annualized ROI is approximately 13.1%. The equipment more than paid for itself within the 2-year period.
Example 3: Real Estate Flip
You buy a property for $200,000, spend $30,000 on renovations, and sell for $275,000. Total cost is $230,000, total return is $275,000. ROI is 19.6%. If the project took 1.5 years, the annualized ROI is approximately 12.7%.
Example 4: Losing Investment
You invest $5,000 in a startup that returns only $3,500 after 4 years. ROI is -30%. Annualized ROI is approximately -8.5% per year. The calculator highlights this loss clearly so you can learn from the outcome.
Tips and Common Mistakes
Include all costs for accurate results. Transaction fees, maintenance costs, taxes, insurance, and management fees all reduce your actual return. Omitting them makes ROI appear higher than reality.
Use annualized ROI for comparisons. Comparing a 2-year investment's total ROI to a 5-year investment's total ROI is misleading. Annualized ROI puts them on equal footing.
Remember that ROI does not capture risk. Two investments can have the same ROI but very different risk profiles. A guaranteed 5% return and a volatile 5% return are not equivalent from a risk-adjusted perspective.
Do not confuse ROI with cash flow. An investment can show a high ROI but have poor liquidity or irregular cash flow. Consider when and how returns are realized, not just the final percentage.
Factor in opportunity cost. An investment earning 6% annually is effectively losing money if a risk-free alternative offers 5% and requires no effort. ROI should be evaluated relative to what else you could do with the same capital.
Account for taxes on gains. Investment profits are generally taxable. Your after-tax ROI will be lower than the pre-tax figure. Capital gains tax rates depend on your income level and how long the investment was held.
Frequently Asked Questions
How is ROI calculated?
ROI is calculated using the formula: ROI = (Gain - Cost) / Cost x 100. The gain is the total return minus the original investment cost. For example, if you invest $10,000 and receive $15,000 back, the gain is $5,000 and the ROI is ($5,000 / $10,000) x 100 = 50%. A positive ROI means profit; a negative ROI means a loss.
What is annualized ROI?
Annualized ROI converts a total return over multiple years into an equivalent annual rate of return. The formula is: Annualized ROI = ((Final Value / Cost)^(1/Years) - 1) x 100. This allows you to compare investments held for different time periods on an equal basis. A 50% ROI over 5 years is an annualized return of about 8.4% per year.
What is a good ROI?
A good ROI depends on the context. For stock market investments, the historical long-term average annual return is about 10% before inflation. Real estate typically targets 8-12% annually. Business investments often aim for 15-25% or higher to justify the risk. A 'good' ROI should exceed the return you could earn from a lower-risk alternative like index funds or savings accounts.
Does ROI account for inflation?
The basic ROI formula does not account for inflation. To find the real (inflation-adjusted) ROI, subtract the inflation rate from your annualized ROI. For example, if your annualized ROI is 8% and inflation is 3%, your real return is approximately 5%. For long-term investments, the real return gives a more accurate picture of actual purchasing-power gain.
How does ROI differ from profit?
Profit is the absolute dollar amount gained (Total Return minus Cost). ROI is the profit expressed as a percentage of the original investment. A $5,000 profit on a $10,000 investment (50% ROI) represents a much better return than a $5,000 profit on a $100,000 investment (5% ROI). ROI allows meaningful comparison across investments of different sizes.
Can ROI be negative?
Yes. A negative ROI means the investment lost money. If you invest $10,000 and the total return is only $8,000, your ROI is -20%. The calculator clearly indicates negative ROI with red highlighting so you can quickly identify losing investments.
Should I include all costs in the investment cost?
Yes. For the most accurate ROI, include all costs associated with the investment: purchase price, transaction fees, commissions, maintenance costs, taxes, and any other expenses. Omitting costs inflates the apparent ROI and can lead to poor investment decisions.
How do I use ROI to compare investments?
To compare investments held for different periods, use the annualized ROI rather than the total ROI. An investment returning 100% over 10 years (annualized 7.2%) is less efficient annually than one returning 50% over 3 years (annualized 14.5%). Always compare annualized figures and also consider risk levels, as higher returns usually involve higher risk.
Related Calculators
401k Calculator
Calculate 401k retirement savings growth with employer matching, annual contributions, and investment returns. Project your retirement nest egg with detailed breakdowns.
APR Calculator
Calculate Annual Percentage Rate (APR) and compare loans with different rates and fees. Understand how APR affects loan costs.
Auto Loan Calculator
Calculate auto loan payments with down payment, interest rate, and loan term. Get accurate estimates for monthly car payments and total interest costs.
Budget Calculator
Create a personalized monthly budget to track income and expenses. Allocate funds to different categories and achieve your financial goals.
Capital Gains Calculator
Calculate capital gains tax on stock sales and investments. Understand short-term and long-term capital gains taxes.
Closing Cost Calculator
Estimate home buying closing costs including realtor fees, title insurance, appraisals, and other expenses. Get accurate total costs.