How to Calculate ROI

Return on investment compares the profit you made with the money you put in. The formula is simple, which is exactly why it is so widely used and so often misused: it ignores time, and it can be stretched to make almost anything look good.

The formula

ROI = (gain from investment − cost of investment) / cost of investment × 100. The gain includes anything you received back, such as a sale price or income. The cost includes everything you paid to get in, including fees and any money you spent to make the investment work.

The result is a percentage. A 25% ROI means you got back 25 cents of profit for every dollar you committed. Negative numbers mean a loss, and they are just as useful as positive ones.

Enter the cost and the return to get ROI and profit.

Open the ROI Calculator →

Three worked examples

Shares. You buy 200 shares at $40, paying $20 in commission, so the cost is $8,020. You sell at $52, paying $22 in commission, so you receive $10,378. Profit is $2,358, and ROI is 2,358 / 8,020 = 29.4%.

A small business. You buy a coffee cart for $30,000 and spend $4,000 on a new machine. Over two years it pays you $22,000 in profit, and you sell it for $20,000. Gain is $42,000 against a $34,000 cost, so ROI is 23.5%.

A renovation. You spend $45,000 on a kitchen and the house sells for $65,000 more than it would have without the work. ROI is 44.4%, before selling costs and the months of disruption.

Why time changes everything

A 30% ROI is excellent over one year and mediocre over ten. The raw formula treats them the same, because it has no time dimension. That is why annualised ROI exists: it converts the total return into an average yearly rate so investments of different lengths can be compared.

To annualise, use (1 + total return)1/years − 1. A 30% return over five years is 5.39% a year, not 6%. The compounding makes the true annual rate higher than simple division suggests.

What to include in the cost

The most common error is leaving things out. Commission, stamp duty, legal fees, platform charges, the cost of improvements and any taxes on the gain all belong in the calculation if you want a number that reflects reality.

Be equally careful with the gain. If you sold an asset, use what actually landed in your account after fees. If the investment pays income along the way, add it, because ignoring dividends understates the return.

Where ROI misleads

ROI says nothing about risk. A 40% return on a bet and a 40% return on a rental property look identical in the formula, but they are not the same kind of decision. It also ignores how long your money was tied up, which is why comparing two ROIs without the time frame is meaningless.

For projects with money coming in and out at different times, a single ROI hides the shape of the cash flow. Two projects with the same ROI can have very different risk if one pays back in year one and the other in year nine.

ROI versus other measures

A practical habit

Write the numbers down before you invest: what you pay, what you expect to receive, and when. Then calculate the ROI, the annualised version and the payback period together. If a decision only looks good under one of the three, it is worth a second look.

When you compare two options, use the same inputs for both. The most common dishonest comparison is measuring one option after costs and the other before.

Frequently asked questions

Can ROI be negative?

Yes. If you get back less than you put in, the result is a negative percentage, which is a loss.

Does ROI include taxes?

It can. For a true after-tax figure, deduct the tax you paid on the gain and any tax on income received.

What is a good ROI?

It depends on the risk and the alternatives available to you. A savings account might return 4% with almost no risk; a small business might return 25% with a real chance of losing everything.

Sources

General information only, not financial advice. Results are estimates; confirm real figures with your lender or a qualified adviser.

More free tools

Related guides