ROI Calculator

Calculate return on investment as total ROI %, annualized return (CAGR), and profit — for any holding period.

How this works

Return on investment (ROI) is the simplest measure of how much money an investment made or lost: profit divided by what you put in, expressed as a percentage. A $1,000 stake that grew to $1,300 returned $300 / $1,000 = 30% ROI. Easy. The trap is that ROI on its own is meaningless without a time dimension. Earning 30% over 5 years is mediocre; earning 30% in 6 months is exceptional. Two investments showing the same ROI can have wildly different annualised returns, and the only honest way to compare them is to translate everything to a common annual rate.

That translation is the compound annual growth rate (CAGR), defined as (final ÷ initial)^(1/years) − 1. It answers "what constant annual rate of return would have produced this same result?". CAGR is what professional investors quote because it strips the time variable out and makes any two investments directly comparable. A 30% total return over 2 years is a 14.0% CAGR; the same 30% over 10 years is a 2.7% CAGR — same ROI, very different quality. The S&P 500 has averaged ~10% nominal CAGR since 1928 (~7% real after inflation); anything well above that needs careful scrutiny because either the risk is much higher or the time period was cherry-picked.

A few practical points. (1) ROI ignores time but CAGR ignores volatility. Two investments can both have 8% CAGR but one might have stayed steady while the other lost 40% in year 3 and recovered. For risk-adjusted comparison, look at metrics like the Sharpe ratio that combine return and volatility. (2) For income-producing investments (rentals, dividend stocks), use total return: capital appreciation + reinvested cash flows. A rental property might have 0% capital appreciation but 6% annual rental yield — that's a 6% CAGR, not 0%. (3) Inflation eats nominal returns. Real return = (1 + nominal) / (1 + inflation) − 1. A 7% nominal return at 3% inflation is a 3.9% real return. Always know which one you're quoting. (4) Don't confuse ROI with internal rate of return (IRR). IRR handles uneven cash flows over time (e.g. a project with annual investments and dividends) by solving for the discount rate that makes net present value zero. ROI assumes a single in, single out — for anything more complex, IRR is the right tool.

The formula

ROI (total) = (final_value − initial_investment) / initial_investment × 100 Profit = final_value − initial_investment CAGR (annualized) = ((final_value / initial_investment)^(1 / years) − 1) × 100 Real return = ((1 + nominal) / (1 + inflation) − 1) × 100

initial_investment is what you put in at the start. final_value is what the position is worth at the end (or what you sold it for, including any reinvested distributions). years is the holding period — fractional years are fine (1.5 years = 18 months). nominal is the CAGR you computed; inflation is the average annual inflation rate over the same period. The real return tells you how much your purchasing power actually grew.

Example calculation

  • You invested $10,000 in a stock 5 years ago. Today it's worth $15,000.
  • Profit = 15,000 − 10,000 = $5,000. Total ROI = 5,000 / 10,000 × 100 = 50%.
  • CAGR = (15,000 / 10,000)^(1/5) − 1 = 1.5^0.2 − 1 = 0.0845 = 8.45% per year. Roughly matches the historical S&P 500 average — solid but not exceptional.
  • If inflation averaged 3%/year over those 5 years, real return = (1.0845 / 1.03) − 1 = 5.29%. Your actual purchasing-power gain was about 5.3%/year — meaningful, but markedly less than the headline 8.45%.

Frequently asked questions

Why does annualized ROI (CAGR) matter more than total ROI?

Because total ROI bundles return and time into one number, hiding the rate at which money grew. A 100% total ROI sounds great until you learn it took 30 years — that's 2.3% per year, less than inflation. CAGR strips the time variable out so you can compare any two investments on equal footing. As a sanity check: anything below 4% CAGR is roughly inflation territory; 4-7% is bonds and conservative portfolios; 7-10% is the long-run stock market average; above 10% is either skill, leverage, or unsustainable. When someone quotes a return without specifying the holding period, mentally compute the CAGR before getting impressed.

Should I subtract fees and taxes from the calculation?

Yes if you want the honest number. Subtract trading commissions, fund management fees (the expense ratio), advisor fees, and any taxes you actually paid (capital gains, dividend tax). The result is your net return — what actually ended up in your pocket. The unadjusted "gross" ROI is what fund advertisements quote and is systematically inflated. A 9% gross return becomes 8.5% after a 0.5% expense ratio, and 7% after capital gains tax — that's the number that actually grew your wealth. For taxable accounts, also factor in tax drag on annual distributions; for tax-advantaged accounts (US 401k/IRA, UK ISA, etc.) the gross-vs-net gap shrinks substantially.

How do I handle ongoing contributions or withdrawals?

Simple ROI breaks down because the formula assumes a single deposit and a single withdrawal. With ongoing cash flows you need either time-weighted return (TWR) or money-weighted return (MWR/IRR). TWR strips out the timing of contributions and tells you how the underlying investment performed — used for comparing fund managers. MWR includes the timing — used for evaluating your personal outcome. Both require a per-period schedule of cash flows and are computed by spreadsheet (Excel: XIRR for MWR; sequential geometric chaining for TWR) or portfolio-tracking software. For a quick approximation with steady contributions, treat the average balance as the "principal" and the period as the time — close enough for back-of-envelope, but not for precise comparison.

Related calculators