ROI Calculator
Free ROI calculator. Compute total return on investment, net profit, and annualized ROI (CAGR) from any cost basis and final value, over any holding period.
ROI Calculator
Background.
An ROI calculator answers a deceptively simple question: did this investment actually make money, and if so, how much per dollar committed? Return on investment is the most widely quoted performance metric in finance, and also the most widely abused — a 200% "ROI" can mean a triple in twelve months or a triple over thirty years, and those are radically different outcomes.
This tool computes both numbers so the distinction is impossible to miss. Enter what you paid for the position, what it is worth today (or what you sold it for), and how long you held it. The calculator returns three figures: net profit in dollars, total ROI as a percentage of the original outlay, and the annualized ROI — the compound annual growth rate, or CAGR, that produces the same end result if the gain were spread evenly across the holding period.
The total-ROI number is what most people quote when they brag about a winning trade. It is also the one that flatters long holding periods: a stock that doubles over twenty years has the same 100% total ROI as a stock that doubles in eighteen months, but the first compounded at 3.5% per year while the second compounded at well over 50% per year. Annualized ROI strips out the time distortion and is the only honest way to compare investments held for different periods.
The Securities and Exchange Commission, the CFA Institute's Global Investment Performance Standards, and every credible mutual-fund prospectus quote performance on an annualized basis for exactly this reason. The math behind the calculator is the standard SEC-defined formula: net profit divided by cost basis for total ROI, and the n-th root of the value ratio minus one for annualized ROI, where n is the holding period in years.
Where this calculator differs from the dozens of generic ROI tools indexed by Google is what the page below the widget actually explains: when ROI is the right metric and when it is the wrong one, how to adjust nominal returns for inflation to get a real return, how business ROI (which compares a project's net benefit to its cost) differs from investment ROI (which assumes you sold the position), and the well-documented limitations that decades of academic finance literature have catalogued — opportunity cost, risk-adjustment, the dependence on a single end-of-period valuation, and the way the metric quietly ignores cash flows that occurred mid-period.
None of that is meant to discourage you from using ROI. It is the most intuitive return metric in the language. It is meant to make sure that when you use it, you know exactly what you are looking at. Run the numbers below, then read the explainer to make sure your headline ROI is telling the right story.
What is roi calculator?
Return on investment (ROI) is a ratio that expresses the gain or loss generated on an investment relative to the amount of money originally committed. The SEC defines it simply as net profit divided by cost, expressed as a percentage. A $10,000 investment that grows to $15,000 has produced a $5,000 net profit and a 50% total ROI, regardless of whether that growth took six months or sixty years. Because the basic formula is silent on time, finance practitioners almost always pair it with an annualized return — the compound annual growth rate (CAGR) that would produce the same final value if the position grew at a constant rate every year. CAGR is the SEC's preferred performance metric for mutual fund advertising and is the foundation of the GIPS reporting standards used by institutional asset managers worldwide. ROI is a backward-looking metric — it measures realized performance, not future expectation. It is also a nominal metric by default: a 7% annualized ROI in a year of 3% inflation is only a 3.9% real return, and several of the most common misuses of ROI in personal finance come from confusing the two. This calculator computes total ROI, net profit in dollars, and annualized ROI for any combination of cost basis, final value, and holding period from a fraction of a year up to a century.
How to use this calculator.
- Enter the initial investment — your full cost basis, including brokerage commissions, transaction fees, and any acquisition expenses you capitalized into the purchase. For a business project, include all up-front costs that would not have been incurred otherwise.
- Enter the final value — what the position is currently worth, or what you actually received when you sold it. For dividend-paying stocks or coupon-paying bonds, add the cumulative cash flows you received (assuming you did not reinvest them); for funds, use the ending account value with distributions reinvested.
- Enter the holding period in years. Use decimals for partial years — 0.5 for six months, 1.25 for fifteen months. Enter 0 if you only want total ROI without annualization (the annualized output will fall back to the total ROI in that case).
- Read the three outputs. Net profit is the dollar gain or loss. Total ROI is the percentage return over the entire holding period. Annualized ROI is the equivalent steady annual compound rate — this is the number to compare across investments held for different periods.
- Stress-test the result. Subtract your jurisdiction's inflation rate from annualized ROI to get an approximate real return. Compare against the relevant benchmark — for a US stock, the S&P 500 returned roughly 10% per year nominally over the long run; anything materially below that needs a reason.
The formula.
Three formulas drive this calculator. Net profit is computed as final value minus initial investment, denominated in the same currency as the inputs. Total ROI is then net profit divided by initial investment, multiplied by 100 to express as a percentage — this is the SEC's standard ROI definition. Annualized ROI is the compound annual growth rate, computed as ((final value ÷ initial investment) ^ (1 ÷ years) − 1) × 100. The n-th root operation translates a multi-year cumulative return into the equivalent single-year compound rate. When years equals zero, annualization is mathematically undefined (division by zero in the exponent), and the calculator falls back to total ROI for the annualized output rather than throwing. All arithmetic is performed in arbitrary-precision decimal math to avoid the rounding errors that affect spreadsheet implementations of the CAGR formula on long holding periods.
A worked example.
Suppose you invested $10,000 in a broad-market index fund three years ago and the position is now worth $15,000. The calculator reports a net profit of $5,000, a total ROI of 50%, and an annualized ROI of 14.47%. The 50% headline is what most investors would quote at a dinner party. The 14.47% CAGR is what an institutional analyst would quote in a performance report — it is the steady annual compound rate that would turn $10,000 into $15,000 in exactly three years. Now compare that to a friend whose $10,000 grew to $15,000 over ten years instead of three: same 50% total ROI, but the annualized rate is only 4.14%. The first investment outperformed the second by more than 10 percentage points per year, even though the total returns are identical. Finally, run the inflation adjustment. If US CPI averaged roughly 3% per year over the same three-year period, your real annualized return is closer to 11.1% (1.1447 ÷ 1.03 − 1), which is what your purchasing power actually grew by.
Frequently asked questions.
What is the difference between total ROI and annualized ROI?
How do I calculate ROI for a business project versus an investment?
How do I adjust ROI for inflation to get a real return?
Does ROI account for risk, taxes, or fees?
What is a good ROI?
How does ROI handle dividends and reinvested distributions?
What are the main limitations of ROI as a metric?
Is annualized ROI the same as IRR?
How does this calculator differ from a compound interest calculator?
Can ROI be negative, and what does that mean?
References& sources.
- [1]U.S. Securities and Exchange Commission (Investor.gov) — Calculators and tools for measuring investment returns
- [2]U.S. Securities and Exchange Commission (Investor.gov) — Compound Annual Growth Rate (CAGR) glossary entry
- [3]CFA Institute — Global Investment Performance Standards (GIPS): performance reporting on a time-weighted, annualized basis
- [4]IRS Publication 550 (2024) — Investment Income and Expenses, including capital gains, dividends, and cost-basis rules
- [5]U.S. Bureau of Labor Statistics — CPI Inflation Calculator (used to convert nominal returns to real returns)
- [6]Friedl, G., Küpper, H.-U., & Pedell, B. (2009). "Decision-oriented capital budgeting and the limitations of ROI as a performance measure." Journal of Management Control / Schmalenbach Business Review.
- [7]Phillips, J. J. (2003). Return on Investment in Training and Performance Improvement Programs (2nd ed.). Butterworth-Heinemann — peer-reviewed methodology for non-investment ROI analysis.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled