ROI Calculator: How to Measure and Compare Investment Returns
Return on investment (ROI) is one of the most widely used financial metrics for evaluating the profitability of an investment. Whether you are assessing a stock purchase, a marketing campaign, a real estate deal, or a business expansion, ROI gives you a clear percentage that shows how much you gained — or lost — relative to what you put in. This free ROI calculator computes your ROI, net profit or loss, and annualized ROI, and lets you compare up to five investments side by side with a visual bar chart so you can make smarter financial decisions.
The ROI Formula
The basic ROI formula is straightforward:
ROI = (Net Profit ÷ Initial Investment) × 100
Equivalently, if you know the final value of your investment rather than the net profit, the formula becomes (Final Value − Initial Investment) ÷ Initial Investment × 100. For example, if you invest $20,000 in a rental property and sell it for $28,000, your net profit is $8,000 and your ROI is 40%. The formula works the same way for losses — invest $10,000 and end up with $7,500, and your ROI is −25%.
Annualized ROI: Accounting for Time
A 40% return sounds impressive, but it matters whether that return took one year or ten. Annualized ROI normalizes the total return to a per-year figure using compounding, making it possible to fairly compare investments held for different durations. The formula is:
Annualized ROI = (1 + ROI)1/n − 1
Here, n is the number of years the investment was held. A 40% total return over 5 years translates to an annualized ROI of about 7.0% — a much more realistic picture than the headline number. This calculator automatically computes annualized ROI whenever you provide an investment period, and it accepts periods in both years and months for convenience.
Common Use Cases for ROI
ROI is not limited to stocks and bonds. It is used extensively in business, marketing, and personal finance. Marketing teams calculate the ROI of advertising spend by comparing campaign costs against the revenue generated. Business owners evaluate whether purchasing new equipment will pay for itself over time. Real estate investors compare the ROI of different properties to decide where to allocate capital. Even personal decisions — like whether to invest in education or a certification — can be framed as an ROI calculation by comparing the cost against the expected increase in earnings.
Comparing Multiple Investments
One of the most powerful features of this calculator is the ability to compare up to five investments side by side. Enter the details for each investment, and the tool produces a visual bar chart and summary table ranking them by ROI. The comparison uses annualized ROI when periods are provided, so investments of different durations are compared on equal footing. The tool also highlights the best-performing investment automatically, giving you a quick visual answer to the question "where did my money work hardest?"
Frequently Asked Questions
How do you calculate ROI?
Divide the net profit by the initial investment and multiply by 100. If you invested $10,000 and earned a net profit of $3,000, your ROI is 30%. You can also calculate it from the final value: ($13,000 − $10,000) ÷ $10,000 × 100 = 30%.
What is a good ROI?
It depends on the asset class and the level of risk. The S&P 500 has historically returned about 10% per year on average. Real estate investors often target 8–12% annually. Any return that exceeds the risk-free rate (Treasury bonds at roughly 4–5%) and compensates you for the risk involved is generally considered a good ROI.
What is the difference between ROI and annualized ROI?
ROI is the total percentage return over the entire holding period. Annualized ROI converts that total into an equivalent yearly rate using compounding. A 50% total ROI over 5 years equals an annualized ROI of about 8.4%. Annualized ROI is more useful when comparing investments of different durations.
Does ROI include dividends or income?
It depends on how you define "final value." If you include all dividends, rental income, or interest received in your final value or net profit figure, then your ROI calculation captures total return. If you only use the sale price, you are measuring capital gains ROI, which excludes income.
This ROI calculator is completely free, runs entirely in your browser, and stores nothing on a server. Bookmark this page to revisit it whenever you need to evaluate or compare investment performance.
Related reading: ROI Explained: How to Calculate Return on Investment