ROI Calculator

About this calculator

The ROI Calculator measures how much an investment earned relative to what it cost. Enter the amount invested and the amount returned, plus either the dates or the length of time you held it, and you get the investment gain, the total ROI and the annualized ROI so investments held for different lengths of time can be compared fairly.

$
$
years
Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

What is return on investment?

Return on investment (ROI) expresses the profit or loss on an investment as a percentage of what it cost. It is popular because it is simple, it works for almost anything with a cost and a payoff (a stock, a rental property, a marketing campaign, new equipment), and it lets you compare options of very different sizes on one scale.

ROI = (Amount returned − Amount invested) ÷ Amount invested × 100%

For example, buying shares for $1,000 and selling them for $2,000 gives a gain of $1,000 and an ROI of 100%. If the shares had sold for $800, the ROI would be −20%.

Annualized ROI

Plain ROI has a big blind spot: it ignores time. Doubling your money in one year and doubling it in ten years both show an ROI of 100%, yet one is far better than the other. Annualized ROI fixes this by converting the total return into the steady yearly rate that would have produced it.

Annualized ROI = (Amount returned ÷ Amount invested)1 ÷ years − 1

Worked example: $1,000 grows to $2,000 over 4.164 years. The ratio is 2, so the annualized ROI is 21/4.164 − 1 = 18.11%. Over a shorter 3 years the same doubling would be 21/3 − 1 = 25.99% a year.

Total ROIOver 1 yearOver 5 yearsOver 10 years
25%25.00%4.56%2.26%
50%50.00%8.45%4.14%
100%100.00%14.87%7.18%
200%200.00%24.57%11.61%

When you use dates, the holding period is the number of whole years between anniversaries plus the remaining days divided by 365.

Difficulties in using ROI

What counts as cost and return

The formula is only as honest as its inputs. A rental property's ROI looks very different depending on whether you include closing costs, repairs, property management, taxes and the time you spend on it. A marketing campaign's ROI depends on how you attribute sales to it. Two people can calculate wildly different ROIs for the same project, so always check what was included before comparing figures.

Risk is not included

A 20% ROI from a government bond and a 20% ROI from a speculative startup are not equally good outcomes, because the second carried a much higher chance of losing everything. ROI measures the result, not the risk taken to achieve it.

Cash flows along the way

ROI treats the investment as a single amount in and a single amount out. If you added money or received income during the holding period, the internal rate of return or a money-weighted average return is a more accurate measure.

ROI examples in practice

Stock investment

You buy 50 shares at $40 for $2,000 and pay a $10 commission, so your cost is $2,010. Three years later you sell at $52 a share for $2,600 and pay another $10, receiving $2,590. Your gain is $580 and your ROI is $580 ÷ $2,010 = 28.86%. Annualized over three years, that is about 8.82% a year.

Home improvement

A $15,000 kitchen remodel that adds $11,000 to a home's sale price has an ROI of −26.67%. Many renovations return less than they cost in resale value, even when they are worth doing for enjoyment.

Marketing campaign

A business spends $5,000 on advertising that brings in $20,000 of sales with $8,000 of profit after the cost of goods. Using profit rather than revenue, the ROI is ($8,000 − $5,000) ÷ $5,000 = 60%. Using revenue would overstate it badly, which is why it matters to define the return carefully.

ROI versus other return measures

  • Annualized ROI (CAGR) puts investments with different holding periods on equal footing.
  • Internal rate of return accounts for multiple cash flows at different times.
  • Return on equity measures profit relative to the owner's capital in a business rather than a single investment.

Frequently asked questions

How do you calculate ROI?
Subtract the amount invested from the amount returned, divide by the amount invested, and multiply by 100. $1,500 returned on $1,000 invested is an ROI of 50%.
What is a good ROI?
It depends on the risk and time involved. Broad stock market investments have historically returned around 10% a year before inflation, so many investors use that as a benchmark for annualized ROI.
What is the difference between ROI and annualized ROI?
ROI is the total return over the whole holding period. Annualized ROI is the equivalent yearly compound rate, which lets you compare investments held for different lengths of time.
Can ROI be negative?
Yes. If you get back less than you put in, the gain is negative and so is the ROI.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.