Calculyn

ROI Calculator

Calculate return on investment and annualized return for any investment.

$
$
years

Results update as you type.

Return on investment

45%
Gain or loss
$4,500
Annualized return
13.19%

Results are hypothetical and not investment advice.

Was this calculator helpful?

How to calculate roi

ROI = (Returned − Invested) ÷ Invested × 100
Annualized = (Returned ÷ Invested)^(1/years) − 1

Worked example. Return on investment: 45%.

Example inputs — Amount invested: $10,000; Amount returned: $14,500; Holding period: 3 years. Starting values are illustrative.

From George Guju, founder of Calculyn · Educational calculator guidance, not professional advice.

How it works

ROI shows total profit as a percentage of what you put in. Annualized return spreads that over the holding period, so you can compare investments held for different lengths of time.

Using the roi estimate

Return on investment measures the gain or loss relative to the money invested. This calculator separates total ROI from an annualized compound return, helping distinguish how much an investment changed from how long that change took. It is most straightforward for one initial investment and one final value, with no intermediate deposits or withdrawals. Use consistent gross or net amounts on both sides of a comparison. A high historical ROI alone does not describe risk, liquidity or the likelihood of repeating the result.

Step-by-step inputs

  1. Amount invested. Enter a positive initial investment. Include acquisition costs here if you are measuring a return after those costs, and keep the treatment consistent across investments. Starting example: $10,000 .
  2. Amount returned. Enter the total amount returned, including recovery of the original capital, not just the profit. Decide whether this figure is before or after selling costs and taxes. Starting example: $14,500 .
  3. Holding period. Enter the holding period in years. A fractional year can represent a shorter period. The annualized line requires a positive period and positive ending value. Starting example: 3 years.

Worked example with the starting values

Using the starting inputs, the estimate is Return on investment: 45% .

The gain equals the amount returned minus the original investment. Dividing that gain by the investment gives the headline percentage. The annualized line finds the constant yearly compounded rate connecting the starting and ending values over the holding period; it is not total ROI divided by years. The calculator does not imply that the investment actually earned that same rate each year.

Gain or loss
$4,500
Annualized return
13.19%

Compare amount returned scenarios

The initial investment and holding period stay fixed. The final proceeds vary across loss, break-even and gain scenarios; no investment outcome is promised.

Amount returnedReturn on investment
$8,000 -20%
$10,000 0%
$14,500 45%

Make a useful comparison

Compare total ROI first when the question is how much the investment gained. Then compare the annualized breakdown when holding periods differ. Two investments can have the same total percentage but very different time commitments; do not rank their yearly performance from total ROI alone.

Choose a clear cost convention. For a net-return estimate, include costs paid at purchase in the investment and subtract costs paid at sale from the amount returned. Avoid charging the same fee in both places. Taxes need their own checked assumptions rather than an automatic deduction this tool does not provide.

Use a cash-flow-aware analysis when money moves during the holding period. Additional deposits, partial sales, rental income or dividends paid at several dates cannot be represented exactly by two endpoints. Adding all distributions to the ending value can summarize total proceeds, but it does not preserve their timing for the annualized calculation.

Common mistakes to avoid

  • Entering profit alone as the amount returned understates proceeds and can turn a gain into an apparent loss. The returned amount must include the capital recovered.
  • ROI is not profit margin. ROI divides profit by invested cost; a margin calculation divides profit by revenue. The same transaction can have different percentages under those definitions.
  • A zero annualized figure should not be inferred when the annualized line is absent. The model omits that line for a zero ending value or nonpositive holding period. Short periods can also produce unusually large annualized numbers without proving repeatable performance.

Assumptions & limitations

  • Results are rounded for display.

Formula and assumptions reviewed October 2026 by the Calculyn team. How we build our calculators

Frequently asked questions

Does ROI include fees and taxes?

Only if you include them. Subtract fees from the amount returned for a more realistic figure.

Why is annualized return different from ROI divided by years?

Annualized return uses compound growth between the initial investment and final value. Dividing total ROI by years gives a simple average, which is a different measure.

Can I use this for investments with regular deposits?

Not as an exact cash-flow return calculation. This tool uses one starting cost and one ending amount; deposits and withdrawals at different dates require a method that accounts for their timing.