Finance Calculators

How to Calculate ROI (Return on Investment) With Examples

ROI measures profit against cost. Learn the formula, annualized ROI, and the mistakes that make investments look better than they are.

2 min read·Updated 2026-05-14

Return on investment answers one question: for every dollar you put in, how much did you get back? It is the simplest way to compare investments, projects and even marketing campaigns on a level playing field.

The basic formula

ROI = (Net Profit / Cost) × 100%

Net profit is the gain minus the cost. If you invest $1,000 and end with $1,300, your net profit is $300 and ROI is $300 / $1,000 = 30%.

A worked example

You buy shares for $5,000, pay $50 in fees, receive $400 in dividends over three years, and sell for $6,200 after $50 in selling fees.

ItemAmount
Sale proceeds$6,200
Buy cost + fees$5,050
Selling fees$50
Dividends$400
Net profit$1,500

ROI = $1,500 / $5,100 = 29.4% over the holding period. Notice that fees and dividends had to be included — ignoring them flatters the result.

Why "over three years" matters

A 29.4% total return achieved over three years is not the same as 29.4% in one year. To compare investments of different lengths, annualize it:

Annualized ROI = ((1 + ROI)^(1/years) - 1) × 100%

Here, (1.294)^(1/3) - 1 ≈ 8.97% per year. That number is comparable to any other investment's annual return.

The mistakes that inflate ROI

  • Forgetting costs: fees, taxes and commissions reduce real returns.
  • Ignoring time: a 20% return in one month beats 20% over five years.
  • Ignoring risk: a risky 15% is not better than a safe 10% until you weigh the chance of loss.
  • Using gross instead of net: always subtract total cost, not just the purchase price.

ROI beyond investing

Businesses use the same math for projects and marketing. Spend $2,000 on ads that generate $5,000 in sales and ROI is ($5,000 - $2,000) / $2,000 = 150%, before accounting for the cost of goods sold. Use the Break-Even Calculator to find the sales level at which a project stops losing money, then layer ROI on top.

Run the numbers

The ROI Calculator handles costs, gains and the annualized figure in one step. To see how a return compounds year after year, extend it with the Compound Interest Calculator.

Frequently asked questions

What is a good ROI? It depends on risk. Historically a diversified stock portfolio has averaged around 7-10% per year after inflation, so any return should be judged against that benchmark and the risk taken.

Can ROI be negative? Yes. If you end with less than you invested, ROI is negative — a $1,000 investment that falls to $800 has an ROI of -20%.

Is ROI the same as profit? No. Profit is an absolute amount; ROI expresses profit as a percentage of the cost, which is what makes different-sized investments comparable.

Tools used in this guide

Related guides