ROI calculator

Enter what you put in and what you got back to see your return on investment as a percentage. Add how long it took and you also get the annualized ROI, which lets you compare investments of different lengths.

What you got back in total, or what it's worth now.

ROI
35.00%
Profit
3500.00
Annualized ROI
10.52%

Annualized ROI is the yearly rate that compounds to the total. Leave "Years held" empty to skip it. The calculation runs in your browser.

How to use the calculator

  1. Enter the amount you invested.
  2. Enter the amount you got back, or what the investment is worth today. That's the whole amount, not just the gain.
  3. Optionally, enter how many years you held it.

You get the profit, the ROI as a percentage, and the annualized ROI if you gave a period.

The ROI formula

Return on investment is the profit divided by what you put in.

ROI = (amount returned − amount invested) ÷ amount invested × 100

Invest $10,000 and get back $13,500:

($13,500 − $10,000) ÷ $10,000 × 100 = 35%

A negative result is a loss. $5,000 that turns into $4,000 is an ROI of −20%.

Annualized ROI

Plain ROI ignores time. A 35% return is excellent over one year and poor over ten. Annualized ROI fixes that by giving the yearly rate that would compound to the same total.

annualized ROI = ((amount returned ÷ amount invested) ^ (1 ÷ years) − 1) × 100

For the same $10,000 growing to $13,500 over three years:

(1.35 ^ (1 ÷ 3) − 1) × 100 = 10.52% a year

Note that it isn't 35 ÷ 3, which would be 11.67%. Dividing by the number of years overstates the rate, because it ignores compounding: each year's gain earns a return in the years after it.

Total ROI Over 1 year Over 3 years Over 5 years Over 10 years
10% 10.00% 3.23% 1.92% 0.96%
25% 25.00% 7.72% 4.56% 2.26%
50% 50.00% 14.47% 8.45% 4.14%
100% 100.00% 25.99% 14.87% 7.18%
200% 200.00% 44.22% 24.57% 11.61%

Annualized ROI is the same calculation as the compound annual growth rate, or CAGR.

What to count as the investment and the return

The formula is simple. The judgement is in what goes into it.

The investment is everything you spent to get the return: the purchase price, fees, taxes on the purchase, and the cost of your own time if you're comparing against paying someone else.

The return is everything you got back: the sale price or current value, plus any income along the way such as dividends or rent, minus the costs of selling.

Leaving out costs is the usual way an ROI ends up flattering. A marketing campaign that brought in $5,000 of sales on $1,000 of ads doesn't have a 400% ROI if those sales cost $3,000 to fulfil. The profit is $1,000 and the ROI is 100%.

ROI for a business decision

The same sum works for anything where money goes in and money comes out.

  • Marketing. Profit from the customers a campaign brought, against what the campaign cost
  • A tool or a subscription. Hours saved, valued at what those hours cost you, against the price
  • Hiring. What the person lets the business earn or save, against salary and overheads
  • Build or buy. The cost of building something yourself, including maintaining it, against paying for a service

That last one is where software teams most often get it wrong, because engineering time doesn't feel like spending. A feature that takes two months to build and a few days a year to maintain has a real cost, and the return is whatever it earns that buying wouldn't have. For licensing in particular, the page on software licensing services sets out what building it yourself involves.

To price what you sell, the markup calculator converts between cost, price and margin.

The limits of ROI

  • It ignores time, unless you annualize it
  • It ignores risk. A 12% return from a savings bond and from a single start-up are not the same thing
  • It ignores timing within the period. Two investments can have the same ROI while one paid out early and the other at the end. Internal rate of return (IRR) handles uneven cash flows
  • It depends on what you counted. Two people can honestly compute different ROIs for the same project

Use it to compare options on the same basis, and not as a verdict by itself.

Common questions about ROI

How do I calculate ROI?

Subtract what you invested from what you got back, divide by what you invested, and multiply by 100. $2,000 that becomes $2,600 is ($2,600 − $2,000) ÷ $2,000 × 100 = 30%.

What is a good ROI?

It depends on the risk and the alternatives. The useful comparison is with what the same money would have earned elsewhere over the same time at similar risk.

What is annualized ROI?

The yearly rate of return that would compound to your total ROI over the period. It lets you compare investments held for different lengths of time.

How do I calculate ROI over several years?

Work out the total ROI first, then annualize it: divide the amount returned by the amount invested, raise the result to the power of one over the number of years, subtract one, and multiply by 100.

Can ROI be negative?

Yes. If you get back less than you put in, the ROI is negative. −100% means you lost everything.

What is the difference between ROI and profit?

Profit is an amount of money. ROI is that profit as a percentage of what it cost to earn it. A $1,000 profit is a 100% ROI on $1,000 invested and a 1% ROI on $100,000.

What is the difference between ROI and ROAS?

ROAS, return on ad spend, is revenue divided by advertising cost. ROI uses profit and counts all the costs, so it's the stricter measure.

Is ROI the same as CAGR?

Annualized ROI is. Total ROI isn't: it's the whole gain with no reference to time.