ROI Calculator

Measure return on investment as a percentage and an annualised rate, from what you put in and got back.

Currency symbol (display only)

What the investment is worth, or what you received, including any income.

Investment period
years

Number entry: use a point for decimals (1.5). Commas grouped in threes are thousands separators (1,250), and a single comma such as 1,5 is read as a decimal comma. Nothing you enter leaves your device.

Showing the example values. Change the inputs and press Calculate for your own result.

Return on investment (ROI)

40.00%

$10,000.00 became $14,000.00

Annualised ROI
11.87%

The constant yearly rate that gives the same overall result

Net gain
$4,000.00
Final value ÷ cost
1.400×
Investment length
3.000 years

ROI ignores risk, taxes, fees and the timing of any interim cash flows. Define “cost” and “return” the same way for every investment you compare.

About the ROI calculator

Return on investment (ROI) compares what you gained or lost with what you put in. This calculator gives the gain, the ROI percentage and, if you give the time period, the annualised return, which makes investments of different lengths comparable.

It works for shares, property, a business purchase, a marketing campaign or any decision where you can state a cost and a final value.

Who should use the ROI calculator

  • Investors comparing two holdings that ran for different lengths of time.
  • Small business owners judging whether equipment or a campaign paid for itself.
  • Students and analysts who need a quick, transparent ROI and CAGR figure.

How to use the ROI calculator: what each input means

Amount invested
Your total cost, including purchase fees if you want a net result.
Amount returned
The final value or sale proceeds, plus any income you received (dividends, rent, revenue).
Investment period
The length in years, or a start and end date, so the annualised return can be calculated.

How the ROI calculator works: method and formula

ROI is the gain divided by the cost, shown as a percentage. The annualised return answers a different question: what steady yearly rate would turn the starting amount into the final amount over the period. It uses the compound annual growth rate formula.

When you give dates, the length is counted in days and divided by 365.25 to allow for leap years.

ROI
ROI = (Returned − Invested) ÷ Invested × 100%
Annualised return (CAGR)
CAGR = (Returned ÷ Invested)^(1 ÷ years) − 1

How to read your ROI calculator result

A positive ROI means a gain and a negative ROI means a loss. A large ROI over a long period can be less impressive than a modest ROI over a short one, which is why the annualised figure is useful. Neither number says anything about risk.

If the returned amount is lower than the invested amount, the annualised figure is negative. If it is zero, the investment was wiped out (−100%).

ROI Calculator worked example

You invest $10,000.00 and it is worth $14,000.00 after 3 years.

  1. Gain = $14,000.00 − $10,000.00 = $4,000.00.
  2. ROI = $4,000.00 ÷ $10,000.00 = 40.00%.
  3. CAGR = (14,000 ÷ 10,000)^(1/3) − 1 = 11.869% a year.

ROI 40.00% in total, or about 11.87% a year.

Practical uses of the ROI calculator

  • Comparing a 3-year and a 7-year investment on a like-for-like basis.
  • Reviewing whether a piece of equipment or software earned back its cost.
  • Evaluating a rental property by including rent in the returned amount.

Assumptions and limitations of this calculator

  • Ignores risk, taxes, inflation and the timing of any cash flows between the start and end. For investments with several deposits or withdrawals, an internal rate of return (IRR) is more appropriate.
  • Results depend on what you count as cost and return. Be consistent when you compare options.
  • Past results do not predict future returns. Not financial advice.
FAQs

ROI Calculator FAQs

There is no universal answer. It depends on the asset, the time period and the risk taken. Compare ROI against alternatives with similar risk and duration, and look at the annualised figure rather than the headline percentage.

Need Something Built Around Your Numbers?

Code & Motions designs and builds custom calculators, dashboards and web tools for businesses. Tell us what you have in mind.