How to Calculate ROI — Return on Investment (Formula + 5 Worked Examples)

You put $10,000 into something — an ad campaign, a new machine, a few shares. A year later, the question is simple: did it pay? Learning how to calculate ROI takes about two minutes, and the answer is one division. Try your own numbers in our free Percentage Calculator as you read: use the “What percentage is ___ of ___?” mode with your net gain as the first number and your cost as the second, and you have your ROI. (The calculator has no dedicated ROI mode, so this is the honest way to use it — the percentage-change mode works too, with Old = cost and New = final value.)

ROI = (Net Profit ÷ Cost of Investment) × 100

That is the whole formula. Net profit is everything you got back minus everything you spent — and “everything” means every cost, not just the headline one. Cost of investment is the total amount you put in. Divide the first by the second, multiply by 100, and you have your return as a percentage. If the number is positive, you made money. If it is zero, you broke even. If it is negative, you lost money.

Here is what that looks like at a glance:

CostYou get backROI
$1,000$1,20020%
$1,000$1,50050%
$5,000$6,00020%
$5,000$7,50050%
$10,000$12,00020%
$10,000$15,00050%
$50,000$60,00020%
$100,000$125,00025%

This guide walks you through the formula step by step, then works five examples in five different places — a stock trade, a marketing campaign, a rental property, a piece of business equipment, and a head-to-head comparison of two investments — so you can see the arithmetic in the context you actually care about.

What Is Return on Investment (ROI)?

Return on investment — ROI for short — is the simplest way to answer “was it worth it?” It compares what an investment gained against what it cost, and expresses the answer as a percentage. Spend $1,000, get back $1,200, and your ROI is 20%. Spend $1,000, get back $800, and your ROI is −20%. One number, and it works the same way whether the “investment” is a share, an ad campaign, a rental flat or a training course.

The sign of the number does the first job for you. An ROI above 0% means you made a profit. An ROI of exactly 0% means you broke even — you got back precisely what you put in. An ROI below 0% means you lost money. That is why the figure shows up everywhere from boardrooms to personal finance blogs: it turns any decision into a single comparable number.

What ROI tells you — and what it doesn’t

ROI tells you how efficiently money turned into more money. It is brilliant at comparing two options of similar size and risk — a 50% return beats a 20% return, all else being equal. It is also brutally honest about losers: a negative ROI is hard to argue with.

What it does not tell you is just as important. It says nothing about time: a 50% return in one year and a 50% return in five years look identical, and they are not the same investment at all. It says nothing about risk: a safe 8% and a gamble that happened to pay 50% are not equally good decisions. And it only knows the costs you remembered to count — forget the fees, the taxes or the maintenance, and the number flatters you. One percentage cannot carry all three, which is why this guide has a section on annualized ROI and a section on the mistakes that quietly break the calculation.

The ROI Formula

The ROI formula has two forms, and they are the same calculation written two ways:

ROI = (Net Profit ÷ Cost of Investment) × 100

ROI = [(Final Value − Initial Value) ÷ Initial Value] × 100

The second form is just the first one with “net profit” expanded: final value minus initial value is the net profit, provided you have counted every cost. Use whichever form matches the numbers in front of you. If you know the profit directly, use the first. If you know what you paid and what you ended up with, use the second.

The three numbers you need

Every ROI calculation needs three numbers, and getting them right is where most of the work lives.

Net profit is everything you gained minus everything you spent. Not just the headline price — every cost. The purchase price, the commission, the fees, the taxes, the maintenance, the training, the closing costs. The word “net” is doing heavy lifting here: if a cost happened because of the investment, it belongs in the subtraction.

Cost of investment is the total amount you put in. For a share trade it is the price of the shares plus the commission. For a rental property it is the purchase price plus the closing costs. For a marketing campaign it is the ad spend. If you leave part of the cost out, the ROI comes out too high — and the error is always in the flattering direction.

Final value is everything you got back: the sale price, plus any income along the way — dividends, rent, savings. Add them all up before you subtract. A common slip is to count only the sale price and forget the income, which understates the return just as surely as forgetting a cost overstates it.

How to Calculate ROI in 3 Steps

These three steps work for anything — a share, a campaign, a property. The formula never changes; only the numbers do.

Step 1: Add up everything you spent (the true cost). Write down every cost the investment caused, not just the biggest one. Purchase price, fees, commissions, taxes, installation, training, ongoing costs. If you are unsure whether something counts, count it — leaving a cost out always makes the result look better than it is.

Step 2: Add up everything you got back (the final value). The sale price plus any income received along the way: dividends, rent, savings, whatever the investment paid you. This is the number people most often undercount, usually by forgetting the income and counting only the sale.

Step 3: Subtract, divide, multiply by 100. Net profit = final value − cost. Then ROI = (net profit ÷ cost) × 100.

Here it is on the smallest possible example. You invest $1,000 and get back $1,200. Net profit = $1,200 − $1,000 = $200. ROI = ($200 ÷ $1,000) × 100 = 20%. Three steps, one division, and you know where you stand. The five examples below use the same three steps on real-sized numbers.

5 Worked Examples

Once you know how to calculate ROI, the fastest way to make it stick is to work examples — and the fastest way to get it wrong is to practise on only one kind of investment. These five cover five different places the formula shows up, each with the full step-by-step arithmetic.

Example 1 — A stock trade (with dividends and commission)

You buy 100 shares at $40 each and later sell them at $52 each. Along the way you receive $150 in dividends and pay $25 in commission. What is your ROI?

First, the cost: 100 × $40 = $4,000.

Next, what you got back: the sale brings 100 × $52 = $5,200, plus $150 of dividends, so the final value is $5,200 + $150 = $5,350.

Now the net profit: $5,350 − $4,000 − $25 (the commission) = $1,325. Then ROI = ($1,325 ÷ $4,000) × 100 = 33.13%.

The lesson is in what the $1,325 is made of: a capital gain of $1,200 ($5,200 − $4,000), plus $150 of dividends, minus $25 of commission. If you had looked only at the share price — $40 to $52, a 30% rise — you would have missed the dividend and the commission entirely. The total return is $1,350 before costs, not just the price move.

Example 2 — A marketing campaign (the revenue trap)

You spend $8,000 on ads, and the campaign brings in $20,000 of revenue. The cost of the goods sold is 40% of revenue. What is the ROI?

This is the example that catches people out, because $20,000 of revenue from $8,000 of ads looks like a 150% return: ($20,000 − $8,000) ÷ $8,000 × 100 = 150%. That number is wrong, and the error is the most common ROI mistake there is — revenue is not profit.

Work it properly. Cost of goods is 40% of $20,000 = $8,000, so gross profit = $20,000 − $8,000 = $12,000. Net profit = $12,000 − $8,000 (the ad spend) = $4,000. ROI = ($4,000 ÷ $8,000) × 100 = 50%.

Fifty percent is still a good campaign — but it is not 150%. The difference is the cost of the goods, which the revenue figure hides. Whenever an ROI looks too good, check the numerator: profit, not revenue, goes in it.

Example 3 — A rental property (first year)

You buy a flat for $200,000 and pay $10,000 in closing costs. It rents for $1,500 a month, and the year’s expenses — tax, insurance, maintenance — come to $6,000. What is the first-year ROI?

First, the true cost: $200,000 + $10,000 = $210,000. The closing costs belong in the denominator — money you paid to own the property is money invested, even though it never became part of the flat’s price.

Next, the income: $1,500 × 12 = $18,000 of rent for the year. But rent is not profit. Net profit = $18,000 − $6,000 = $12,000. ROI = ($12,000 ÷ $210,000) × 100 = 5.71%.

Two things to notice. First, 5.71% looks small next to the stock trade’s 33.13%, but it is a first-year figure on an asset that also tends to rise in value — the ROI here counts only the rent, not any change in the property’s price. Second, if you had left the $10,000 of closing costs out, the answer would have been 6.00% instead of 5.71% — a small error, but one that always points in the flattering direction.

Example 4 — New equipment for a small business (negative ROI, then positive)

A small business buys a machine for $50,000, pays $5,000 for installation and $3,000 for training. It saves $12,000 a year in labour. What is the ROI after one year — and after five?

The true cost: $50,000 + $5,000 + $3,000 = $58,000. Installation and training are part of the investment, not extras to forget.

After year 1: the machine has saved $12,000, so net = $12,000 − $58,000 = −$46,000. ROI = (−$46,000 ÷ $58,000) × 100 = −79.31%. A dreadful-looking number — and a completely normal one for a first year, because the machine has only had twelve months to earn its cost back.

After five years: the machine has saved 5 × $12,000 = $60,000, so net = $60,000 − $58,000 = $2,000. ROI = ($2,000 ÷ $58,000) × 100 = 3.45%. The investment has turned positive, and the break-even point is $58,000 ÷ $12,000 = 4.83 years — just under five years to get the money back. If you want to see how the break-even point itself is worked out, our guide on how to calculate break-even point covers it step by step.

The lesson: a negative first-year ROI is not always a bad investment. The time window matters — and this is exactly why comparing a one-year ROI with a five-year ROI is a mistake, which the mistakes section below covers.

Example 5 — Annualized ROI: comparing two investments

Investment A returns 60% over 4 years. Investment B returns 40% over 2 years. Which is better?

The naive way is to divide by the years: A averages 60 ÷ 4 = 15% a year, B averages 40 ÷ 2 = 20% a year, so B wins. The naive way is wrong — not about who wins, but about by how much, because it ignores compounding.

The true annualized figures use the formula (1 + ROI)^(1 ÷ years) − 1. For A: (1.60)^(1 ÷ 4) − 1 = 12.47% a year. For B: (1.40)^(1 ÷ 2) − 1 = 18.32% a year. B still wins — but the gap is 5.85 percentage points, bigger than the 5-point gap the naive averages suggested.

Never divide total ROI by the number of years. Compounding makes the naive average wrong, and the longer the period, the more wrong it gets. The advanced methods section below explains when annualized ROI is the right tool and shows the spreadsheet formula.

The Advanced Methods

The formula above answers how to calculate ROI for a single investment. These three methods answer the harder questions that come next.

Annualized ROI

Annualized ROI converts a return into a per-year rate, so you can compare investments held for different lengths of time. The formula is:

Annualized ROI = (1 + ROI)^(1 ÷ n) − 1, where n is the number of years you held the investment.

Use it whenever the periods differ — a 60% return over four years against a 40% return over two, as in Example 5. Without annualizing, the longer investment always looks better than it is, because it had more time to grow. Investopedia’s ROI guide covers annualized ROI in depth with further examples if you want to go further.

One warning: annualizing assumes the return compounds smoothly, which real investments rarely do. It is a comparison tool, not a promise about what next year will bring.

Working backwards — what final value do you need?

Sometimes the question runs the other way: you have a target ROI in mind, and you want to know what final value would get you there. Rearrange the formula:

Required final value = Cost × (1 + Target ROI)

Say you want a 25% ROI on a $10,000 investment. The net gain you need is 25% of $10,000 = $2,500, so the final value you need is $10,000 + $2,500 = $12,500. If the investment cannot plausibly reach $12,500, the target is not realistic — and that is useful to know before you commit the money, not after.

ROI in Excel / Google Sheets

You do not need a calculator for ROI — a spreadsheet does it in one cell. Put the cost in cell A1 and the final value in cell B1, then in C1 type:

=(B1-A1)/A1

Format C1 as a percentage and you have the ROI. The same formula works in Excel and Google Sheets, and it is the fastest way to compare a list of options: one row per investment, and the best ROI is the biggest number in column C. Just remember to put the total cost in column A — every fee and extra, not just the headline price.

ROI is not the only percentage in finance, and the others measure different things. Mixing them up is how a good-looking number gets quoted for the wrong decision.

MetricWhat it measuresWhat goes in the denominatorAccounts for time?
ROIGain on one specific investmentCost of that investmentNo (unless annualized)
ROEProfit a business makes for its shareholdersShareholders’ equityNo
ROAProfit a business makes from everything it ownsTotal assetsNo
IRRThe annual rate at which an investment breaks even in present-value terms— (it is a rate, found by solving)Yes
Payback periodHow long it takes to get your money back— (it is a length of time)Yes, but ignores everything after payback

The practical difference: ROI answers “did this investment pay?”, while ROE and ROA answer “is the business profitable?”. IRR is the right tool when cash flows arrive unevenly over time — it is the rate that makes the net present value zero. Payback period tells you how fast you recover the cost, but says nothing about what the investment earns after that point. For most everyday decisions — a campaign, a machine, a share trade — ROI is the one you want.

What Is a Good ROI?

There is no single number, because a good ROI depends on what you invested in, for how long, and at what risk. The figures below are rough guides, labelled as such — not guarantees, and not targets you should chase blindly.

ContextTypical ROI (rough guide)
US stock market, long run≈ 10% a year
Savings account4–5% a year
Small-business projects15–30%+ expected
Rental property, first year5–8% cash-on-cash

Read the table with the risk in mind. A savings account pays 4–5% with almost no risk, so a stock-market average of about 10% is the reward for accepting years when the market falls. A small business expecting 15–30% is also accepting the chance of losing money outright — the higher figure is the price of the risk, not a free lunch. And a rental property’s 5–8% first-year figure counts only the rent, not any rise in the property’s value, so it understates the full return in a rising market and overstates it in a falling one.

The honest benchmark is the alternative: what would the same money have earned somewhere safer? If a project’s ROI cannot beat a savings account after accounting for its risk and your time, the safer option was the better investment.

Real-Life Uses of ROI

ROI shows up anywhere money goes out in the hope that more comes back. A marketing team uses it to judge a campaign: $8,000 of ads that return $4,000 of net profit is a 50% ROI, and the next campaign has a number to beat. A small business uses it on equipment: the machine in Example 4 pays for itself in 4.83 years, so the owner knows exactly when the purchase starts earning. A company uses it on training: a $5,000 course that lifts a team’s output enough to add $15,000 of profit is a 200% return — and a course that adds nothing is a −100% one. A buyer uses it on a franchise or a new location: the projected ROI is the number the whole decision hangs on. And an investor uses it before committing money anywhere, comparing two options side by side with annualized ROI so the comparison is fair.

Common Mistakes When Calculating ROI

Using revenue instead of profit. The marketing trap from Example 2: $20,000 of revenue from $8,000 of ads is not a 150% ROI, because the cost of the goods has not been taken out. Profit, not revenue, goes in the numerator.

Forgetting hidden costs. Fees, commissions, taxes, maintenance, training, installation, closing costs, ongoing costs. Every one of them belongs in the cost, and every one you forget makes the ROI look better than it is. The error is always in the flattering direction, which is why it is so easy to miss.

Ignoring time. A 50% ROI over one year and a 50% ROI over five years are not the same investment. Compare returns over different periods only with annualized ROI, never with the raw percentages.

Comparing unlike investments. A 50% return on a gamble and a 20% return on a safe investment are not a 50-beats-20 decision — the risk is different, the periods may be different, and the money at stake may be different. Compare like with like, or say plainly what is different.

Counting the same money twice. The sale price is what you got back and the purchase price is what you spent — the gain is the difference, and neither side gets counted twice. A dividend you actually received in cash is separate income and does count, but a dividend that was automatically reinvested into more shares is already inside the sale price. Count it once, not twice.

Frequently Asked Questions

How do you calculate ROI as a percentage?

The short version of how to calculate ROI as a percentage is: subtract the cost from the final value to get the net profit, divide by the cost, and multiply by 100. ROI = (Net Profit ÷ Cost of Investment) × 100. Invest $1,000, get back $1,200, and the ROI is ($200 ÷ $1,000) × 100 = 20%.

What is a good ROI?

It depends on the investment, the period and the risk. As rough guides — not guarantees — the long-run US stock market averages about 10% a year, a savings account pays 4–5%, small-business projects are often expected to return 15–30%+, and a rental property’s first-year cash-on-cash return is typically 5–8%. The honest benchmark is the alternative: what would the same money have earned somewhere safer?

Can ROI be negative?

Yes. ROI is negative whenever you get back less than you put in. In Example 4 above, the new equipment shows −79.31% after one year because it has only saved $12,000 against a $58,000 cost. A negative ROI does not always mean a bad investment — it can simply mean the investment has not had enough time yet.

What is annualized ROI, and when do I need it?

Annualized ROI converts a return into a per-year rate so you can compare investments held for different lengths of time. The formula is (1 + ROI)^(1 ÷ years) − 1. You need it whenever the periods differ — for example, a 60% return over four years against a 40% return over two years. Never just divide the total ROI by the number of years; compounding makes that answer wrong.

What is the difference between ROI and ROE?

ROI measures the gain on one specific investment against what that investment cost. ROE — return on equity — measures the profit a whole business makes against its shareholders’ equity. ROI answers "did this investment pay?", while ROE answers "is the business profitable?". See the comparison table above for the full picture.

How is ROI different from profit margin?

Profit margin is profit as a share of revenue — how much of each dollar of sales the business keeps. ROI is profit as a share of cost — how much each dollar invested earned back. A campaign can have a high profit margin and a low ROI, or the reverse, because the two percentages divide by different numbers. If you want the margin side of the story, our guide on how to calculate profit margin explains it step by step.

The Bottom Line

You now know how to calculate ROI: add up the true cost, add up everything you got back, subtract, divide, multiply by 100 — and annualize it when the periods differ. The formula takes two minutes; the discipline is in the costs you remember to count and the time you remember to account for. Run your own numbers in our free Percentage Calculator and see where your investment stands.

Related calculators: Percentage Calculator, Profit Margin Calculator, Loan Calculator, Budget Planner

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top