How to calculate ROI
ROI (return on investment) measures how much you gained compared with what you put in, as a percentage. The formula is simple, but a single ROI number hides how long it took. Here is the formula, worked examples, and the annualized version that makes two investments actually comparable.
Work out your return on investment, profit and annualised return.
Return on investment, or ROI, is the single most common way to measure whether something was worth the money. It takes what you got back, compares it with what you put in, and expresses the result as a percentage, so you can line up a share purchase, an ad campaign and a new machine on the same scale. The formula takes ten seconds. The part almost everyone misses is that a plain ROI number says nothing about how long it took, which is exactly where a good-looking investment can turn out worse than a boring one. This guide covers the formula, worked examples for investing, marketing and business, and the annualized version that makes the comparison honest. It is general information, not financial advice.
The formula
ROI is the net gain divided by the cost, turned into a percentage.
ROI = (Net return ÷ Cost of investment) × 100
The net return is simply what you ended up with minus what you paid: Net return = Final value − Initial cost. So the whole thing can be written as (Final value − Cost) ÷ Cost × 100. A positive answer is a gain, a negative answer is a loss, and zero means you broke even. Everything else in this guide is just this one calculation applied carefully.
A simple worked example
Say you invest 1,000 and later sell for 1,300. Your net return is 1,300 − 1,000 = 300. Your ROI is 300 ÷ 1,000 × 100 = 30 percent. For every unit you put in, you got 0.30 back on top. If instead the investment fell and you sold for 850, the net return is 850 − 1,000 = −150, so the ROI is −150 ÷ 1,000 × 100 = −15 percent, a loss. The sign matters as much as the number.
Marketing ROI: mind what counts as "return"
ROI is just as common outside investing, and this is where people trip up. Suppose you spend 500 on ads and they bring in 2,000 of sales. It is tempting to say the ROI is 2,000 ÷ 500 = 400 percent, but 2,000 is revenue, not gain. The net return is the 2,000 minus the 500 you spent to get it: 1,500. So the ROI on the ad spend is 1,500 ÷ 500 × 100 = 300 percent. Always make sure the top of the formula is your gain, not your gross takings, or you will overstate every result. (Marketers who prefer to track gross return against spend use a separate measure, ROAS, covered below.)
Annualized ROI: why time changes the answer
Here is the trap. Two investments both return 50 percent. One did it in a single year; the other took five years. They are not remotely as good as each other, yet their plain ROI is identical. To compare fairly you need annualized ROI, the equivalent return per year.
Annualized ROI = ((Final value ÷ Cost) 1 ÷ years) − 1
Take an investment that grows from 1,000 to 1,728 over three years. The total ROI is (1,728 − 1,000) ÷ 1,000 = 72.8 percent, which sounds excellent. But annualized, it is (1,728 ÷ 1,000) raised to the power of 1 ÷ 3, minus 1. That is the cube root of 1.728, which is 1.2, so the annualized ROI is 20 percent per year. A different investment with the same 72.8 percent total return spread over ten years would annualize to only about 5.6 percent a year (1.728 to the power of 1 ÷ 10, minus 1), far worse than 20, even though the headline looks identical. Whenever two options cover different time spans, annualize before you compare.
This is exactly what the "both return 50 percent" trap hides. Investment A returns 50 percent in one year, so its annualized ROI is 50 percent. Investment B also returns 50 percent, but takes five years: 1.5 to the power of 1 ÷ 5, minus 1, is about 8.4 percent a year. Same headline, completely different investments, and only the annualized figures show it.
You can also run the formula backwards to find the total return a target rate needs. The required final value is cost × (1 + rate) raised to the number of years. So to earn 8 percent a year for five years, 1,000 must grow to 1,000 × 1.085 = 1,469, a total ROI of about 46.9 percent. If someone offers you a lump-sum deal promising "45 percent over five years", that is the figure to hold it against: it is slightly below what a steady 8 percent a year would give.
ROI, ROAS and ROE: not the same thing
Three similar-looking terms get mixed up:
| Measure | What it compares | Typical use |
|---|---|---|
| ROI | Net gain ÷ total cost | Any investment or project |
| ROAS | Revenue ÷ ad spend (gross, not net) | Advertising campaigns |
| ROE | Net profit ÷ shareholders' equity | Company profitability |
ROAS deliberately uses gross revenue, which is why a 4x ROAS (400 percent, meaning 4 in revenue for every 1 of ad spend) can still be a loss: if making and delivering the product eats more than 75 percent of revenue, you lose money even at 4x. ROE measures how well a company uses its owners' money. ROI is the general-purpose one.
What ROI does not tell you
ROI is useful precisely because it is simple, but that simplicity hides things. It ignores time unless you annualize it. It ignores risk: a 30 percent ROI from a government bond and a 30 percent ROI from a lottery-like bet are not equal. And it depends entirely on what you count as the cost; leave out fees, your own time, or maintenance and the number flatters you. Treat ROI as a first filter, then look at how long, how risky, and what was left out.
Where you use it
ROI turns up everywhere money meets a decision: an investment held and sold, a marketing campaign, a training course, a new tool or machine for a business, a rental property, even a home improvement weighed against the value it adds. The formula is always the same; the skill is defining "return" and "cost" honestly, and annualizing when the timelines differ.
The short version
ROI is your net gain divided by your cost, times 100: (final value minus cost) ÷ cost × 100. Make sure the top is your actual gain, not gross revenue, or you overstate it. A single ROI figure ignores time, so when two options cover different periods, use annualized ROI (the per-year equivalent) to compare them fairly, and remember ROI says nothing about risk or anything you left out of the cost. To run the numbers, the free ROI calculator does the gain-over-cost maths, and for the percentage step on its own our percentage calculator handles it.
Frequently asked questions
How do you calculate ROI?
ROI is your net return divided by the cost of the investment, multiplied by 100. The net return is the final value minus what you paid, so the full formula is (final value minus cost) divided by cost, times 100. For example, 1,000 that grows to 1,300 gives (1,300 minus 1,000) divided by 1,000 times 100 = 30 percent.
What is a good ROI?
It depends entirely on the time period and the risk, which is why a single figure can mislead. As a rough benchmark, long-run US stock market returns have averaged roughly 7 to 10 percent a year before inflation (about 5 to 7 percent after inflation), though any single year varies widely and past returns do not guarantee future ones. So a one-year ROI above that is a good result, but one year proves little. Always compare ROI on a per-year (annualized) basis and against how much risk you took.
What is the difference between ROI and annualized ROI?
Plain ROI is the total gain over the whole period, ignoring how long it took. Annualized ROI converts that into an equivalent yearly rate, so a 72.8 percent total return over three years becomes 20 percent a year. Use annualized ROI whenever you compare investments that ran for different lengths of time, or the longer one will look better than it is.
Can ROI be negative?
Yes. If the final value is less than what you paid, the net return is negative and so is the ROI. For example, paying 1,000 and selling for 850 gives an ROI of minus 15 percent. A negative ROI simply means the investment lost money; the size of the negative number tells you how much, as a share of what you put in.
What is the difference between ROI and ROAS?
ROI uses your net gain (return minus all costs) divided by the cost, so it reflects actual profit. ROAS (return on ad spend) uses gross revenue divided by ad spend, so a 400 percent ROAS (4 in revenue per 1 of ad spend) can still be a loss once product and overhead costs are removed, which happens whenever those costs exceed about 75 percent of revenue. ROI is the truer profitability measure; ROAS is a quick advertising efficiency gauge.
What should I include in the cost when calculating ROI?
Everything you had to spend to get the return: the purchase price plus fees, commissions, taxes where relevant, maintenance, and ideally the value of your own time if it was significant. Leaving costs out inflates the ROI and makes a weak investment look strong. A consistent, honest definition of cost is what makes two ROI figures comparable.