Audited 25 May 2026·Last updated 27 Jul 2026·7 citations·Tier 1·0 uses

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

The total cost basis — what you actually paid, including commissions, fees, and any capitalized acquisition costs.
$
What the position is worth today, net of selling costs. For dividend or coupon-paying assets, include reinvested cash flows.
$
How long you held the position, in years. Use 0 if you only want total ROI without annualization.
yrs
Total ROI
50.00
Cumulative percentage return over the entire holding period — not annualized.
Net profit
$5,000.00
Annualized ROI (CAGR)
50.00%

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.

  1. 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.
  2. 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.
  3. 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).
  4. 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.
  5. 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.

ROI = (Vf−Vi)⁄Vi, CAGR = (Vf⁄Vi)^(1⁄n) − 1

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.

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.

initial Investment10,000
final Value15,000
years3

Frequently asked questions.

What is the difference between total ROI and annualized ROI?
Total ROI is the cumulative percentage gain over the entire holding period — net profit divided by cost basis. Annualized ROI, also called CAGR, is the equivalent constant annual compound rate that would produce the same end value over the same period. A 100% total ROI earned over two years is a 41.4% CAGR; the same 100% total ROI earned over twenty years is only a 3.5% CAGR. Always compare investments using annualized ROI when the holding periods differ — total ROI alone is misleading whenever time is unequal.
How do I calculate ROI for a business project versus an investment?
The formula is the same — net benefit divided by cost — but the inputs differ. For a financial investment, cost is your full purchase price (including fees) and value is the current or sale price (including reinvested cash flows). For a business project, cost is the total capital and operating outlay attributable to the project, and value is the cumulative net benefit it produced over the analysis period. Business ROI typically also accounts for opportunity cost — the return the same capital would have earned in its next-best use — which a raw ROI calculation ignores. For multi-year projects with uneven cash flows, NPV and IRR are usually more rigorous than ROI.
How do I adjust ROI for inflation to get a real return?
Use the Fisher equation: real return = (1 + nominal return) ÷ (1 + inflation rate) − 1. A 10% nominal annualized ROI in a year of 4% inflation produces a real return of approximately 5.77%, not 6%. The Bureau of Labor Statistics publishes the CPI Inflation Calculator for converting US dollar amounts between periods; the IRS uses CPI-U for its annual bracket and contribution-limit adjustments. For multi-year holding periods, use the cumulative inflation rate over the same period — averaging annual rates is an approximation that drifts on long horizons.
Does ROI account for risk, taxes, or fees?
Not on its own. Standard ROI is a gross, nominal, pre-tax, risk-blind metric. To get a more honest comparison, you need to (1) subtract management fees, transaction costs, and any commissions from final value, (2) deduct taxes paid on dividends, interest, and capital gains at your marginal rate, (3) adjust for inflation using the method above, and (4) risk-weight the result using a metric like the Sharpe ratio (excess return per unit of volatility). Two investments with identical 12% annualized ROI but radically different volatility profiles are not comparable on ROI alone — academic finance has spent fifty years building out the mean-variance and CAPM frameworks specifically to address this gap.
What is a good ROI?
Context-dependent. For US equities, the long-run annualized return of the S&P 500 has been roughly 10% nominal and 7% real (after inflation) since 1928 — so a diversified equity portfolio earning meaningfully less than that over a multi-decade horizon is underperforming the benchmark. Investment-grade corporate bonds historically return 4–6% nominal. Real estate returns roughly 8–10% nominal including appreciation and net rental income. For a business project, the threshold is the firm's weighted average cost of capital — any project with an ROI below WACC destroys shareholder value. For a personal-finance decision (a home renovation, a degree), the relevant benchmark is the opportunity cost of investing the same capital in liquid markets.
How does ROI handle dividends and reinvested distributions?
The cleanest treatment is to use total return: include all cash received during the holding period in the final value figure, as if you had reinvested every dividend or coupon back into the position. Most mutual fund and ETF performance figures are quoted on a total-return basis with distributions reinvested at NAV. If you took distributions in cash and spent them, you can either (a) add the cash received to final value to compute a total-return ROI, or (b) compute ROI on price appreciation alone and report distributions separately as a yield figure. Mixing the two is the most common error in DIY ROI calculations.
What are the main limitations of ROI as a metric?
Academic finance has documented at least five. First, ROI ignores risk — two investments with the same return but different volatility are treated identically. Second, it ignores time except where annualized, and even CAGR assumes a constant rate that rarely existed. Third, it is silent on opportunity cost — money locked in a 6% project is not freely available for a 9% alternative. Fourth, single-period ROI ignores intra-period cash flows entirely, which is why NPV and IRR are preferred for capital budgeting. Fifth, it depends entirely on a defensible end-of-period valuation — for illiquid assets (private equity, real estate, art) the "final value" input is itself an estimate with wide error bars. Use ROI as a first-pass headline, not as the sole decision input.
Is annualized ROI the same as IRR?
No, although they are often confused. Annualized ROI (CAGR) is computed from just two data points — initial value and final value — and assumes no intermediate cash flows. Internal rate of return (IRR) is the discount rate that sets the net present value of an arbitrary stream of cash flows to zero, and properly handles deposits, withdrawals, and distributions throughout the holding period. For an investment with no intermediate cash flows, CAGR and IRR produce identical results. For anything with mid-period deposits, withdrawals, or non-reinvested distributions — including most retirement accounts and any business project with staged investment — IRR is the more accurate measure.
How does this calculator differ from a compound interest calculator?
A compound interest calculator is forward-looking — you specify a starting amount, an assumed annual rate, and a time horizon, and it projects what the position will be worth in the future. An ROI calculator is backward-looking — you specify what you paid, what it is now worth, and over what period, and it reports the realized return. The two are mathematical inverses: compound interest solves for future value given a rate, ROI solves for the rate given a known future value. Quanta publishes both because investors use them at opposite ends of the decision: compound interest before investing, ROI after.
Can ROI be negative, and what does that mean?
Yes — any time final value is less than initial investment, both total ROI and annualized ROI are negative. A $10,000 investment that fell to $7,000 over two years produces a total ROI of −30% and an annualized ROI of approximately −16.3%. The annualized figure is less extreme than the total because the loss is spread across two years of compounding. For tax purposes in the US, a realized loss can be used to offset capital gains in the same year and up to $3,000 of ordinary income per year, with the excess carried forward indefinitely under IRS rules (see Publication 550). Unrealized losses — losses on positions you still hold — have no tax treatment.

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon