Skip to main content

ROI Calculator (Return on Investment)

Calculate ROI, CAGR, annual return and percentage gain from initial investment, final value and holding period. Works for stock ROI, after-tax ROI, social ROI and required-return scenarios.

Reviewed by · Last reviewed

How to Use the ROI Calculator

Measure the performance of any investment in seconds. Whether you are tracking a stock position, a mutual fund, a real-estate flip, a small business, or a non-profit program, this tool turns three inputs into a complete return profile - total ROI, annualized CAGR, the dollar gain or loss, and the average annual return.

  1. Enter the initial investment - the principal amount you originally put in, including any upfront fees or commissions (for example $10,000).
  2. Enter the final value - the current market value or the ending balance at the end of the holding period (for example $25,000).
  3. Enter the time period - the number of years the investment was held. Decimals are accepted, so 2.5 years works for a 30-month position.
  4. Review results - the calculator returns your total ROI, CAGR (annualized return), absolute gain or loss, average annual gain, and the implied investment return rate.

About Investment Returns and How They Work

Three metrics describe almost every investment: simple return, ROI, and CAGR. Simple return is the raw dollar change. ROI expresses that change as a percentage of the money you put in, so a $5,000 gain on a $10,000 investment is a 50% ROI. CAGR (Compound Annual Growth Rate) smooths that total ROI across the years it took to earn it, answering the question: what steady yearly rate would produce the same ending balance?

Compounding is the reason CAGR matters. When returns are reinvested, each year's growth sits on top of the previous year's growth, so the same nominal rate produces a much larger balance over a decade than it does over a single year. This is why a 10% CAGR over 20 years turns $10,000 into roughly $67,275, not $30,000.

The core formulas used: ROI = (Final - Initial) / Initial × 100 and CAGR = (Final / Initial)1/n - 1, where n is the number of years. Simple return without compounding is just Final - Initial. The same calculator answers "calculate return on investment over time" and "investment return rate calculator" because CAGR is exactly that rate.

Stock Return on Investment

For a stock position, set the initial investment to the price you paid times share count, including commissions. Set the final value to the current price times the share count you actually hold today (after any splits or DRIP reinvestments). Add cash dividends you received but did not reinvest to the final value, otherwise the calculator will only show price return rather than total return. The result is your stock ROI - directly comparable to the S&P 500 CAGR over the same window to see whether your pick beat the index.

After-Tax ROI

Headline ROI numbers always look better than what reaches your pocket. To compute after-tax return on investment, subtract expected capital gains tax and any state tax from the final value before entering it. For example, a $25,000 ending balance with a $15,000 gain at a 15% long-term capital gains rate becomes $25,000 - ($15,000 × 0.15) = $22,750. The resulting after-tax ROI and after-tax CAGR are the numbers you should actually compare across investments held in different account types (taxable, IRA, 401(k)).

Social Return on Investment (SROI)

Social ROI converts a non-financial outcome (jobs created, students retained, tons of CO2 avoided) into an estimated dollar value, then runs that through the same ROI formula. Enter the program cost as the initial investment and the monetised social benefit as the final value. A program that cost $50,000 and produced an estimated $200,000 in social value has an SROI of 300% (3x return). Use this when reporting impact to grant funders or when comparing the cost-effectiveness of different interventions side by side.

Yield on Investment vs ROI

Yield is income relative to current price (dividend yield, bond yield, rental yield), expressed as an annual percentage. ROI is total return relative to your original cost, including both income and capital appreciation. A bond paying $50 a year on a $1,000 face value has a 5% yield; if you bought it at $900, your effective yield is 5.56%, and if you sold it for $1,100 after a year, your one-year ROI is roughly 16.7%. Use yield for income comparisons; use ROI to judge whether the position grew your principal.

Required Return and Expected Return

Required return is the minimum return you need to justify the risk of an investment - typically the risk-free rate plus a risk premium for that asset class. Expected return is your forecast of what the investment will deliver. Use this calculator to back-solve: if you require a 12% CAGR on a $10,000 investment over 5 years, the final value must be at least $17,623. If your forecast is below that, the investment is not worth the risk for you.

Examples

Example 1 - Index fund. You invest $10,000 in an S&P 500 index fund and after 8 years the position is worth $22,000. ROI is 120%, and CAGR is (22000/10000)1/8 - 1 ≈ 10.4% per year.

Example 2 - Real estate. You buy a rental property for $250,000 and sell it 5 years later for $340,000 (ignoring rent, taxes, and fees for simplicity). ROI is 36%, and CAGR is roughly (340000/250000)1/5 - 1 ≈ 6.35%.

Example 3 - Loss. You invest $5,000 in a speculative position that drops to $3,200 over 2 years. ROI is -36%, CAGR is roughly -20% per year - the calculator clearly flags negative growth.

Example 4 - Stock with dividends. You buy 100 shares at $50 ($5,000 cost). After 4 years the position is worth $7,200 and you have collected $400 in cash dividends. Total return is $7,600 - $5,000 = $2,600. ROI is 52% and CAGR is roughly 11%.

Tips and When to Use

Use CAGR when comparing investments with different time horizons - a 40% return over 2 years is very different from 40% over 10. Use total ROI when you need a quick headline number for a single holding. Use after-tax ROI when comparing investments held in different account types. Use SROI when you need to communicate impact in financial language. Remember that these formulas do not include inflation: subtract the inflation rate from CAGR to get the real (inflation-adjusted) return.

Frequently Asked Questions

What is ROI?

ROI (Return on Investment) is the percentage gain or loss on an investment relative to its cost. The formula is <code>ROI = (Final Value - Initial Investment) / Initial Investment &times; 100</code>. A $1,000 investment that grows to $1,500 has an ROI of 50%. ROI is the most common headline figure for measuring investment performance because it is currency-agnostic and easy to compare across very different assets - stocks, real estate, businesses, marketing campaigns, even social programs.

How do I calculate return on investment over time?

Total ROI ignores time, so a 50% return looks the same whether it took 1 year or 10. To calculate return over time, use CAGR (Compound Annual Growth Rate): <code>CAGR = (Final Value / Initial Investment)<sup>1/years</sup> - 1</code>. For an investment that doubled over 7 years, CAGR is <code>2<sup>1/7</sup> - 1 &asymp; 10.4%</code> per year. CAGR is the right answer to "calculate return on investment over time" because it tells you what steady annual rate would have produced the same end value.

What is the difference between ROI and CAGR?

ROI is the total percentage return over the entire holding period, without regard to how long that period was. CAGR is the annualized equivalent: the steady yearly growth rate that would produce the same ending balance under pure compounding. Two investments can have identical 100% ROI, but if one took 3 years and the other took 10, their CAGRs (roughly 26% vs 7.2%) tell very different performance stories.

How is CAGR different from average annual return?

CAGR is a geometric mean that reflects actual compounded growth. Average annual return is an arithmetic mean of each year&#39;s percentage change. Arithmetic averages overstate performance when returns are volatile: a +50% year followed by a -50% year averages 0%, but the geometric (CAGR) result is -13.4% because you ended with $75 on every $100 invested. For comparing funds or strategies, always use CAGR.

How do I calculate stock ROI?

For a single stock position, the initial investment is the price paid times share count plus any commissions. The final value is current price times current share count plus any cash dividends received but not reinvested. Subtract realized taxes if you want after-tax stock ROI. Then run the standard ROI / CAGR formulas. This produces a total return figure that lets you compare your pick against the S&amp;P 500 CAGR over the same window.

What is after-tax ROI and how do I calculate it?

After-tax ROI is the return that actually reaches your pocket after capital gains tax, dividend tax and any applicable state tax. To calculate it, subtract the expected tax bill from the final value, then run the ROI formula. For a $20,000 ending balance with $10,000 of taxable gain at a 20% combined federal-and-state rate, the after-tax final value is $20,000 - ($10,000 &times; 0.20) = $18,000. After-tax ROI matters most when comparing taxable accounts to tax-advantaged accounts (IRA, 401(k), HSA).

What is Social Return on Investment (SROI)?

SROI is a methodology that monetises social and environmental outcomes (jobs created, illnesses avoided, CO2 reduced, students retained) and divides that by the cost of the program. The formula is the same as financial ROI: <code>SROI = (Monetised Social Value - Program Cost) / Program Cost &times; 100</code>. An SROI of 300% means every dollar invested produced an estimated three dollars of social value. SROI is widely used by impact investors, foundations and non-profits to compare the cost-effectiveness of interventions.

What is yield on investment vs ROI?

Yield is annual income (dividends, interest, rent) divided by the current value of the asset, expressed as a percentage. ROI is the total return (income plus capital appreciation) relative to your original cost. A bond paying $50 a year on a $1,000 face value has a 5% yield; an investor who buys at $900 has an effective yield of 5.56%. ROI captures everything yield captures, plus any change in market price between buy and sell.

What is the required rate of return?

Required return is the minimum CAGR you need to justify the risk of an investment, typically calculated as the risk-free rate (Treasury yield) plus a risk premium for the asset class. If you require 12% to invest in a stock and the calculator shows the expected CAGR is 8%, the position is below your hurdle rate. Use the ROI calculator to back-solve: enter your principal, target CAGR and time horizon to see what final value you need.

Does this calculator account for dividends or interest payments?

Only if you include them in the final value. For a dividend-paying stock, the simplest approach is to assume dividends were reinvested and enter the total value of your position (current price times share count, adjusted for reinvested shares). For bonds or savings products, add received interest to the ending balance. This gives a true total-return figure rather than price-only performance.

How do I factor in fees and taxes?

Subtract them from the final value before entering it. For example, if your brokerage shows $25,000 but you paid $200 in commissions and expect $3,000 in capital gains tax, use $21,800 as the final value. This produces an after-fee, after-tax return that reflects what actually reaches your pocket, rather than a gross number that overstates real performance.

Can I use this for recurring contributions or DCA?

Not directly. This calculator assumes a single lump-sum initial investment. If you added money periodically (dollar-cost averaging into an index fund, for instance), the resulting CAGR is approximate and usually overstated. For exact returns on recurring contributions, an XIRR (internal rate of return) calculation is required, which weights each contribution by its own time in market.

What is a good annualized return?

Long-term US stock market returns have averaged around 10% CAGR before inflation and roughly 7% after inflation. Bonds have historically returned 4-5%. Beating the S&amp;P 500 consistently over 10 or more years is rare - most active funds underperform it. Use those numbers as benchmarks: a CAGR above 10% on equities is strong, 5-10% is market-average, and below 3% is lagging inflation.

Does this work for investments outside the US?

Yes. The math is currency-agnostic - enter values in any currency as long as both initial and final are in the same one. For cross-currency investments (buying a foreign stock in a non-home currency), convert both values to the same currency using the exchange rates on the buy date and sell date to capture the true return including FX impact.

More Finance Tools