ROI Calculator

Use this ROI calculator to measure the return on any investment — the gain or loss in dollars, the ROI percentage, and the annualized return when you add the holding period.

1Enter the amount you invested
2Enter the amount you got back
3Optionally add the years to see the annualized return
$0.00total gain
—annualized return

Private by design: 100% in your browser — nothing is uploaded, no sign-up. This tool runs entirely on your device.

Every investment, business decision and marketing campaign eventually faces the same question: was it worth what it cost? ROI — return on investment — is the standard way to answer it, reducing the whole story to one comparable percentage. This calculator works it out from the two numbers that define any result: what you put in and what you got back. Add the number of years the investment ran for and it also gives the annualized return, the figure that lets you compare a two-year project with a ten-year one on equal terms. Whether the money went into shares, a rental property, a course, a machine or an advertising budget, the arithmetic is the same.

The ROI formula

Return on investment compares the gain with the stake:

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

The subtraction gives the gain — which can be negative, if less came back than went in. Dividing by the amount invested expresses that gain as a proportion of what you risked, and multiplying by 100 turns it into a percentage. The annualized return answers a different question: what steady yearly growth rate would turn the invested amount into the returned amount over the given years? That is (returned ÷ invested)1/years − 1, the same compound-growth maths that powers savings projections, run in reverse. ROI treats the whole period as one block; the annualized figure spreads it evenly across the years, which is why the two numbers are rarely close and why serious comparisons always use the annualized one.

Worked example

Invest $10,000 and get back $15,000 after 5 years. The gain is $15,000 − $10,000 = $5,000, and the ROI is $5,000 ÷ $10,000 × 100 = 50%. That sounds identical wherever it appears — but hold the same investment for 10 years instead of 5 and the annualized return drops from 8.45% a year to 4.14% a year, turning an impressive result into a mediocre one without a single dollar changing hands. Time is the invisible third number in every ROI claim, and any return quoted without a period attached is only half a fact.

Using ROI honestly

ROI's strength — its simplicity — is also its weakness, and three gaps matter. First, risk: a guaranteed 8% from a savings bond and a speculative 8% from a startup look identical as ROI, though no sensible person treats them the same. Second, completeness: the "amount returned" should include every dividend, interest payment or rent cheque the investment produced, and the "amount invested" should include purchase fees and costs, or the comparison quietly flatters the investment. Third, the time value of money: ROI ignores inflation entirely, so a 20% return over a decade of high inflation may be worth less in real terms than the headline suggests. None of this makes ROI useless — it makes it a first filter. Use it to rank options and kill obvious losers, then look harder at the survivors with the time, risk and costs properly counted.

One more distinction is worth keeping straight, because the two are often confused. ROI measures profit against the money invested; profit margin — covered by the Profit Margin Calculator on this site — measures profit against the revenue of a sale. A trader can earn a high margin on every item and still make a poor ROI if the money tied up in stock turns over too slowly, or accept thin margins and earn an excellent ROI by turning the same money over quickly. Knowing which question you are asking is most of financial literacy, and these two percentages answer different ones.

Frequently asked questions

What is ROI?

ROI — return on investment — measures how much you gained or lost compared with how much you put in, expressed as a percentage. An ROI of 50% means you got back your original money plus half as much again in profit. It is used for everything from shares and property to marketing campaigns and business equipment.

How is ROI calculated?

Subtract the amount invested from the amount returned to get the gain, divide the gain by the amount invested, and multiply by 100. For example, investing $10,000 and getting back $15,000 gives a gain of $5,000, and $5,000 ÷ $10,000 × 100 = 50% ROI.

What is a good ROI?

It depends entirely on the time involved and the risk taken. A 10% return in a month is exceptional; 10% over ten years is poor. Broad stock market investments have historically averaged around 7–10% per year. Compare any ROI against what a low-risk alternative would have earned over the same period before calling it good.

What is the difference between ROI and annualized return?

ROI is the total return over the whole period, however long that was. The annualized return spreads it into an equivalent yearly rate, so investments held for different lengths of time can be compared fairly. A 50% ROI over 5 years annualizes to 8.45% a year; the same 50% over 10 years is only 4.14% a year.

Can ROI be negative?

Yes — whenever you get back less than you put in. Invest $2,500 and sell for $2,000 and the gain is −$500, giving an ROI of −20%. A total loss, where nothing comes back at all, is an ROI of exactly −100%; ROI cannot fall below that, but it has no upper limit.

Should the amount returned include dividends, rent or other income?

For an honest figure, yes — count everything the investment paid you: the final sale value plus any dividends, interest or rent received along the way. Likewise, the amount invested should include purchase fees and costs. Leaving income out understates the return; leaving costs out overstates it.

What is the difference between ROI and profit margin?

ROI compares profit with the money invested to earn it, and is usually measured over months or years. Profit margin compares profit with the revenue from a sale, and is a snapshot of a single transaction or trading period. A shop cares about margin on each item; its owner cares about ROI on the money tied up in the shop.

What does ROI leave out?

Time, unless you also look at the annualized figure; risk, since a safe 8% and a coin-flip 8% show the same ROI; and inflation, taxes and fees, unless you fold them into the amounts you enter. ROI is a sharp, simple measure — best used alongside those considerations, not instead of them.

Is this ROI calculator free and private?

Yes. It is free with no sign-up, and the calculation runs entirely in your browser — the figures you enter never leave your device.

Related tools