ROI Calculator

Return on investment (ROI) is your gain as a percentage of what you put in: (returned − invested) ÷ invested. Enter your numbers and the holding period and this calculator shows the gain, the ROI and the annualized ROI for fair comparison.

Use this ROI calculator to measure how well an investment paid off. Enter the amount you invested, the amount you got back and how long you held it — the tool returns the dollar gain, the total return on investment, and the annualized ROI that lets you compare deals of different lengths on equal terms.

Enter the amounts and the holding time, then press Calculate.

The Investment
$
$
yrmo

How the ROI calculator works

ROI is one of the most useful numbers in business precisely because it is so simple. The calculator takes what you got back, subtracts what you put in to find the gain, and divides that gain by the amount invested. Multiply by 100 and you have the return on investment as a percentage — a figure you can apply to a stock, a property, a piece of equipment or a marketing spend, and then compare directly against any other.

Its one blind spot is time, and that is where the annualized ROI comes in. By spreading the total return across the number of years you held the investment, it converts a headline figure into a yearly rate you can compare fairly — because 50% earned in one year is far better than 50% earned over five. For long-horizon growth, pair this with the compound interest calculator, and for pricing decisions use the profit margin calculator.

The ROI formulas

Gain =returned − invested
ROI =gain ÷ invested × 100
Annualized =(returned ÷ invested)1/years − 1
  • Invested — what you put in
  • Returned — what you got back
  • Years — the holding period
Worked example — $10,000 invested, $15,000 returned, held 3 years:
Gain = 15,000 − 10,000 = $5,000 · ROI = 5,000 ÷ 10,000 = 50%
Annualized = (15,000 ÷ 10,000)^(1/3) − 1 ≈ 14.5% per year

Why annualized ROI matters

The single most common mistake with ROI is ignoring how long the money was tied up. A 50% total return sounds identical whether it took one year or ten, but as an annual rate those are worlds apart — roughly 50% a year versus about 4% a year. Annualizing puts every investment on the same yearly footing, which is the only fair way to rank them. It is also the number to hold up against a benchmark like the stock market's long-run average of roughly 10% a year, to judge whether a return was genuinely strong.

What ROI leaves out

ROI is a starting point, not a verdict. It says nothing about risk, so a spectacular return on a gamble can look better than a dependable return on a safe asset. It ignores the timing of any cash you received along the way, as well as taxes and inflation, and it is only as honest as your definitions of cost and gain. Use ROI and its annualized cousin to compare and screen, then bring in risk and cash-flow analysis before committing real money.

ROI vs ROE vs ROAS — which return metric to use

Several “return” ratios sound alike but answer different questions. ROI, return on investment, is the most general: profit divided by the total amount invested, useful for almost any project, purchase or investment. ROE, return on equity, is a company metric — net income divided by shareholders' equity — that measures how efficiently a business turns owners' money into profit, which is why investors use it to compare companies rather than individual projects. ROAS, return on ad spend, is a marketing figure: revenue generated divided by the money spent on advertising, used to judge whether a campaign pays for itself. They are not interchangeable, so pick the one whose denominator — total investment, equity, or ad spend — matches the question you are actually asking.

Estimate only — not investment advice. ROI ignores risk, taxes, inflation and interim cash flows. Confirm figures and consider risk before investing.

How to use it & key terms

Enter the amount invested, the amount returned and the holding period, then press Calculate to see the gain, ROI and annualized ROI.

TermWhat it means
Amount investedThe total cost you put in.
Amount returnedThe total value received back, including your stake.
GainReturned minus invested.
ROIGain as a percentage of the amount invested.
Annualized ROIThe equivalent yearly return over the holding period.
Holding periodHow long the money was invested.

Sources & methodology

The calculator finds the gain as the amount returned minus the amount invested, and the ROI as that gain divided by the amount invested, expressed as a percentage. The annualized ROI is the ratio of returned to invested raised to the power of one divided by the number of years held, minus one — the standard compound-growth (CAGR) method for converting a total return into an equivalent yearly rate. The holding period is taken from the years and months entered. When the holding period is under a year, annualizing can magnify the figure, so it is shown with that caveat in mind.

Sources: Standard return-on-investment and compound annual growth rate (CAGR) formulas used in finance.

Turning an ROI number into a decision

A percentage is easy to rank, but ranking by ROI alone can steer you to the wrong choice, because it says nothing about how much money each option can actually put to work. A 200% return on a small outlay might add only a modest sum in real dollars, while a 30% return on a much larger investment adds far more. When you are deciding where to commit capital, look at the ROI and the dollar gain side by side: the best percentage is not always the best use of the money you have available.

It also helps to weigh ROI against how quickly the money comes back. Two options can show the same return while one repays you within a year and the other ties your cash up for five; the faster payback frees capital to reinvest and lowers the chance that circumstances change before you ever see the money. A high return that arrives slowly can be worth less to you than a smaller one that recycles quickly. A rough sense of the payback period — how long until an investment returns what you put in — is a valuable companion to ROI whenever timing and liquidity matter.

Every investment should also clear a bar, not merely beat zero. That bar is your opportunity cost: the return available on the next-best use of the same money, whether that is another project, paying down debt, or a safer default. If an option's ROI does not comfortably exceed that hurdle, even a tidy positive return can be the wrong call. And remember that returns rarely scale without limit — the first dollars into an idea often earn the most, so doubling the amount you invest seldom doubles the ROI you get back.

Used this way, ROI becomes a screening tool rather than a final verdict. Rank your options by return, weigh each one's dollar impact and payback period, test it against your hurdle rate, and only then decide where the money goes. The figure this calculator gives you is the opening line of that reasoning — a clear, comparable number to think from, not the whole answer by itself. Pairing it with judgement about scale, timing and risk is what turns a raw percentage into a sound decision.

Frequently asked questions

What is ROI (return on investment)?

Return on investment, or ROI, measures how much you gained or lost on an investment relative to what you put in, as a percentage. It is the gain minus the cost, divided by the cost. A 50% ROI means you earned half your money back on top of getting your original stake returned. Because it is a simple ratio, ROI can be applied to almost anything with a cost and a payoff — stocks, a rental, a marketing campaign or a new machine.

How do you calculate ROI?

Subtract the amount invested from the amount returned to get the gain, then divide the gain by the amount invested and multiply by 100. For example, investing $10,000 and getting back $15,000 is a $5,000 gain, and 5,000 ÷ 10,000 = 50% ROI. This calculator does that and, if you enter how long you held the investment, also computes the annualized ROI for a fairer comparison.

What is annualized ROI?

Annualized ROI converts a total return into an equivalent yearly rate, so investments held for different lengths of time can be compared fairly. A 50% return earned over three years is not as good as 50% in one year, and annualizing shows why: the three-year version works out to about 14.5% per year. It is calculated by taking the ratio of returned to invested, raising it to the power of one divided by the number of years, and subtracting one.

What is a good ROI?

There is no single answer, because ROI must be judged against risk, time and alternatives. The long-run average return of the U.S. stock market has historically been around 10% per year before inflation, so a good annualized ROI is often framed relative to that benchmark. A high ROI on a very risky bet may be worth less than a modest ROI on a safe one, which is why annualized ROI and risk should always be considered together.

What are the limitations of ROI?

Plain ROI ignores time entirely — a 100% return means something very different over one year than over ten — which is why the annualized figure exists. It also ignores risk, the timing of any cash flows in between, taxes and inflation, and it depends heavily on how you define cost and gain. Treat ROI as a quick, comparable starting point, and lean on the annualized number and other measures for serious decisions.

What is the difference between ROI and rate of return?

ROI is a single, total figure for the whole holding period and, on its own, carries no notion of time. Rate of return usually refers to a per-period figure, most often annual. The annualized ROI in this calculator bridges the two by turning a total ROI into a yearly rate. When people talk about an investment's annual return, they generally mean something close to that annualized figure rather than the raw total ROI.

How do you calculate ROI on real estate?

For property, ROI compares your profit or annual cash flow with the cash you actually put in. A common version is cash-on-cash return: your annual pre-tax cash flow divided by your total cash invested, meaning the down payment, closing costs and any renovation. If you put $60,000 into a rental and it nets $6,000 a year after all expenses and the mortgage, that is a 10% cash-on-cash ROI. Investors also use the capitalization rate, which divides net operating income by the property's value to compare deals independent of financing.

What is the difference between ROI and CAGR?

ROI is a simple total return over the whole period, while CAGR, the compound annual growth rate, is the smoothed yearly rate that would take your investment from its start value to its end value. ROI answers how much you made in total; CAGR answers what steady annual growth that represents. The annualized ROI in this calculator is close to CAGR for a lump-sum investment. Use total ROI for a quick headline, and CAGR when comparing investments held for different lengths of time.

How do you calculate ROI for a website or marketing campaign?

The formula is the same: subtract what you spent from what you gained, then divide by what you spent. For a website or marketing campaign, the gain is the extra revenue or profit the campaign produced and the cost is everything you put in, such as ad spend, tools and time. Marketers often measure revenue against advertising cost alone and call it return on ad spend, or ROAS. The hard part is attribution, honestly linking results to the campaign, so track conversions carefully and give the campaign enough time before you judge its ROI.