🇺🇸 United States

ROI Calculator

Calculate your return on investment, annualized CAGR, and IRR with cash flows. Compare two investments side by side with risk-adjusted analysis and benchmark against the S&P 500.

$
$
Can be fractional, e.g. 1.5 for 18 months
$
Trading fees, management fees, commissions
--

Try another scenario

How to Use This Calculator

Simple ROI tab

The default tab. Enter your initial investment, final value, and time period in years. The calculator shows total ROI, annualized ROI (CAGR), dollar gain, and benchmark comparisons against the S&P 500, HYSA, and inflation. Expand "More options" to deduct fees or adjust for inflation.

With Cash Flows tab

Use this when you made periodic contributions or received periodic income (like rental income or dividends). Enter the cash flow amount and frequency, then the final value. The calculator computes IRR (Internal Rate of Return) using a bisection method — the true money-weighted return accounting for timing of all cash flows.

Compare Investments tab

Put two investments side by side. Enter names, final values, and time periods. Expand "More options" to add annual fees and risk levels. The calculator provides a risk-adjusted comparison so you can see whether higher returns justify higher risk.

Share your result

Every input is encoded in the URL. Click Share to send your exact scenario to a partner, advisor, or colleague.

The Formulas

Three core formulas power this calculator:

Total ROI = (Final Value - Initial Investment) / Initial Investment × 100%

CAGR = (Final Value / Initial Investment)^(1/n) - 1
    where n = number of years

Rule of 72: Years to Double = 72 / Annual Return Rate

Total ROI is simple and intuitive but ignores time. A 50% return over 3 years is very different from 50% over 30 years.

CAGR (Compound Annual Growth Rate) normalizes for time by calculating the steady annual rate that would take you from initial to final value. This is the standard for comparing investments of different durations.

IRR (Internal Rate of Return) extends CAGR to handle irregular cash flows — contributions, withdrawals, income. It finds the discount rate that makes the net present value of all cash flows equal to zero.

The Rule of 72 is a quick mental math shortcut: divide 72 by your annual return to estimate how many years it takes to double your money.

Example

Sarah — Index Fund Investor, 3-Year Horizon

Sarah invested $10,000 in an S&P 500 index fund 3 years ago. Today it is worth $15,000.

Simple ROI

Initial investment$10,000
Final value$15,000
Total ROI50%
Dollar gain+$5,000
Annualized ROI (CAGR)14.47%
Real return (3% inflation)~11.2%
Time to double (Rule of 72)~5 years

Total ROI = ($15,000 - $10,000) / $10,000 = 50%. Annualized ROI (CAGR) = (15,000/10,000)^(1/3) - 1 = 14.47%. After 3% inflation, real return is approximately 11.2%. At this rate, her money doubles every 5 years (72 / 14.47).

Benchmark comparison

Sarah's CAGR14.47%
S&P 500 historical avg10.2%
High-yield savings (HYSA)4.2%
Inflation (long-term)3.0%

Sarah's return of 14.47% annualized outperformed the S&P 500 long-term average by over 4 percentage points. Over these 3 years, the market was particularly strong.

FAQ

ROI (Return on Investment) measures total percentage gain without considering time. CAGR (Compound Annual Growth Rate) annualizes the return, showing the steady yearly rate that would produce the same result. Use ROI for quick comparisons; use CAGR when investments have different time horizons.
IRR (Internal Rate of Return) is the annualized return that accounts for the timing and size of all cash flows. Use it when you made multiple investments over time (dollar-cost averaging) or received periodic income (rent, dividends). Simple ROI and CAGR only work correctly for a single lump-sum investment.
Divide 72 by your annual return rate to estimate years to double. At 10% annual return, money doubles in ~7.2 years. At 4%, it takes ~18 years. The rule is an approximation based on logarithms and works best for rates between 2% and 20%.
Yes, for long-term comparisons. Nominal returns ignore purchasing power erosion. A 10% return with 3% inflation is really about 7% in real terms. Use the inflation toggle in the Simple ROI tab to see your real (inflation-adjusted) return. The long-term U.S. CPI average is approximately 3%.
The Compare Investments tab divides each investment's annualized return (after fees) by its risk tier (low=1, medium=2, high=3). A higher score means better return per unit of risk. This is a simplified version of the Sharpe ratio. A bond returning 5% (low risk, score=5.0) may be "better" than a stock returning 8% (high risk, score=2.7) depending on your risk tolerance.

Related Calculators

Add This Calculator to Your Website

Embed the sum.money ROI Calculator on your site. Free, responsive, always up-to-date.

<iframe src="https://sum.money/embed/us/roi-calculator" width="100%" height="600"></iframe>