Calcs.finance

investment calculator

ROI Calculator

The ROI Calculator estimates start-to-end return from one amount invested, one amount returned, and either an investment length or a start and end date. It reports signed investment gain or loss, total ROI, annualized ROI, holding years, holding days, and an estimate-only note.

Your scenario

Enter your numbers

Help
Investment time

Result

Investment gain
$1,000.00
ROI
100.00%
Annualized ROI
16.21%
Holding period years
4.61
Holding period days
1684
What this means
Return estimate before tax, fees, inflation, and cash-flow timing effects.

Working scenario

New scenario

Not saved yet

Compare

Saved scenarios

Compare saved versions

Compare

Save this result, then use saved scenarios to switch between assumptions.

How the ROI Calculator works

Use this calculator when the question is a simple before-and-after return: how much value changed, what that change means as a percentage of the starting amount, and how the same result looks on an annualized basis. Use the average return calculator when several periods or cash flows matter, the IRR calculator for dated deposits and withdrawals, the investment calculator for ongoing contributions, and the payback period calculator when recovery time is the main question.

The calculator subtracts Amount invested from Amount returned to get signed gain or loss. ROI is that gain divided by Amount invested and multiplied by 100, with a zero-investment guard that returns 0 percent instead of dividing by zero. Length mode uses the entered Investment length in years and rounds years * 365 for holding days. Date mode counts elapsed UTC calendar days and divides by 365. Annualized ROI is ((Amount returned / Amount invested)^(1 / holding years) - 1) * 100 when invested amount, returned amount, and holding years are all positive; otherwise the annualized output is 0.

ROI Calculator formula

This formula page covers the app's ROI Calculator: one amount invested, one amount returned, and either a holding length in years or a start and end date. It calculates signed gain or loss, total holding-period ROI, and annualized ROI when the inputs allow it. It does not model interim cash flows, fees, taxes, inflation, benchmark performance, risk, volatility, reinvestment, or formal portfolio-performance reporting.

G = R - I; ROI = (G / I) * 100; length mode: Y = entered years; date mode: Y = elapsed days / 365; AROI = ((R / I)^(1 / Y) - 1) * 100

Gain is the returned amount minus the invested amount. ROI divides that signed gain by the invested amount. Annualized ROI converts the start-to-end return into an equivalent yearly rate when the invested amount, returned amount, and holding period are all positive.
SymbolMeaningHow this page uses it
GInvestment gain or lossAmount returned minus amount invested. Negative values are shown as signed losses.
IAmount investedThe starting amount entered as Amount invested.
RAmount returnedThe ending value or proceeds entered as Amount returned. Any dividends, sale proceeds, fees, or taxes must already be reflected by the user if they should affect the estimate.
ROIHolding-period returnThe signed gain or loss divided by amount invested, displayed as the ROI percentage.
AROIAnnualized ROIThe equivalent yearly compound rate implied by the start amount, end amount, and holding period.
YHolding yearsThe entered investment length in length mode, or elapsed UTC days divided by 365 in date mode.
DHolding daysLength mode rounds entered years times 365. Date mode counts elapsed UTC calendar days.

Step by step

  1. Read the amount invested and amount returned from the calculator inputs.
  2. Subtract amount invested from amount returned to calculate signed investment gain or loss.
  3. If amount invested is greater than zero, divide gain or loss by amount invested and multiply by 100 to get total ROI. If amount invested is zero, the implementation returns 0 percent instead of dividing by zero.
  4. In length mode, use the entered investment length in years for holding years and round entered years times 365 for holding days.
  5. In date mode, count elapsed UTC days between the start and end date, then divide that day count by 365 to get holding years.
  6. When amount invested, amount returned, and holding years are all positive, divide amount returned by amount invested, raise that ratio to 1 divided by holding years, subtract 1, and multiply by 100 to get annualized ROI.
  7. When amount invested is zero, amount returned is zero or negative, or holding years are zero, annualized ROI is returned as 0 because the annualized formula is not meaningful for those inputs.
  8. Round currency and percent outputs for display after the full-precision calculation.

Worked example

Default example: $1,000 returned as $2,000 over 4.614 years

The default calculator inputs use $1,000 invested, $2,000 returned, length mode, and a 4.614-year holding period.

  1. Subtract $1,000 from $2,000 to get a signed investment gain of $1,000.
  2. Divide $1,000 of gain by the $1,000 invested amount to get 1.00, then multiply by 100 for a total ROI of 100 percent.
  3. Use 4.614 years as the holding period because the default is in length mode.
  4. Round 4.614 years times 365 to 1,684 holding days.
  5. Divide $2,000 by $1,000 to get a growth ratio of 2.
  6. Raise 2 to the power of 1 divided by 4.614, subtract 1, and multiply by 100 to get about 16.21 percent annualized ROI.
  7. The calculator displays holding years as 4.61 after rounding.

Total ROI answers how much the investment gained or lost over the whole holding period. Annualized ROI puts that same start-to-end result on a yearly scale, but it still ignores cash-flow timing, fees, tax, inflation, and risk.

Assumptions and what this calculator ignores

Geographic scope: works globally. The math is currency-agnostic, so enter amounts in your own currency; local taxes, fees, and product rules are not included.

What this formula does not include

Common mistakes to avoid

Key terms

Investment gain or loss
Amount returned minus amount invested. Positive values are gains and negative values are losses in this calculator's signed output.
Total ROI
The gain or loss divided by amount invested, shown as a percentage. It describes the whole holding period and does not include a time scale by itself.
Annualized ROI
The equivalent yearly compound-rate estimate implied by amount invested, amount returned, and holding years. It helps compare holding periods, but it still ignores interim cash flows, fees, taxes, risk, and product rules.

Frequently asked questions

How does this calculator work out ROI?

It takes exactly two money amounts - amount invested and amount returned - and computes gain = returned − invested, then ROI = gain ÷ invested × 100. The default example turns $1,000 invested and $2,000 returned into a $1,000 gain and 100 percent ROI. Because only those two amounts exist, any dividends, fees, taxes, or interim cash flows are reflected only if you fold them into the amount-returned figure yourself.

What is the difference between total ROI and annualized ROI here?

Total ROI measures the whole holding period as one number, so a 100 percent gain looks the same whether it took one year or ten. Annualized ROI converts that same start-to-end result to a compound yearly rate using ((returned ÷ invested)^(1 ÷ years) − 1) × 100, which makes investments with different holding periods comparable. It is still not an internal rate of return - it ignores when money moved in between.

Can I calculate ROI between two specific dates?

Yes. Switch to date mode and enter the start and end dates; the calculator counts elapsed days, divides by 365 to get the holding period in years, and uses that for the annualized figure. Length mode does the same with a directly entered number of years (the default example uses 4.614 years). Both modes report holding days and years alongside the ROI outputs so you can check the period it used.

Why is my real investment return different from this ROI?

Because ROI here is deliberately blind to timing and costs. It does not know when you added or withdrew money, what fees or taxes you paid, or how returns were sequenced - it only compares two totals. A money-weighted result that respects cash-flow timing needs the IRR Calculator, and a fund's published time-weighted return will differ again. Use this ROI as a quick, transparent comparison, not performance reporting.

Methodology, sources, and disclaimer

This calculator is an original two-amount return model with a length mode and a calendar date mode (elapsed days ÷ 365), reporting signed gain, total ROI, and annualized ROI, each pinned by deterministic fixtures and edge-case tests. It is not copied from a single source.

Fixtures pin the default $1,000-to-$2,000 example (100 percent ROI) plus loss, zero-investment, and sub-year date-mode edge cases. The result remains an educational estimate, not investment performance reporting or an internal rate of return.

Formula version 2026.05.22-generic-roi. The version marks the calculation logic and validation fixture set used for this estimate.

Results are educational estimates, not advice. Read the full disclaimer.

Related reading

When another calculator fits better

investment

Average Return Calculator

Estimate annualized return from account cash flows or from several holding-period returns.

investment

IRR Calculator

Estimate internal rate of return from fixed recurring cash flows or irregular annual project cash flows.

investment

Investment Calculator

Solve an investment goal from starting amount, end amount, return rate, contribution amount, and investment length.

investment

Payback Period Calculator

Estimate simple and discounted payback periods for an investment with recurring annual cash flow.

investment

Finance Calculator

Solve one time-value-of-money variable from periods, rate, present value, periodic payment, and future value.