1. Home
  2. Calculators
  3. How to calculate ROI
Return on investment

How to calculate ROI

Subtract what you put in from what you got back, then divide by what you put in. That's ROI. The details are where people go wrong.

Estimates only, not tax advice. DoesWhat tax calculators use US federal figures for tax year 2026 from the IRS; state and local taxes are not included.

The ROI formula

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

Buy something for $2,000, sell it for $2,600, and the gain is $600. $600 ÷ $2,000 = 0.30, so ROI is 30%. If you sold for $1,700 instead, the gain is −$300 and ROI is −15%.

Count every cost

The most common mistake is leaving costs out of "amount invested". Include purchase fees, commissions, shipping, setup, repairs, subscriptions and anything else you had to pay to get the return. A rental property's ROI should include closing costs, repairs and property management, not just the purchase price. A course or tool should include the hours you spent if you value your time.

Annualized ROI: adjusting for time

Plain ROI ignores how long the money was tied up. A 30% return in one year is excellent; 30% over ten years is about 2.7% a year. To compare fairly, annualize it:

Annualized ROI = (amount returned ÷ amount invested)1 ÷ years − 1

Total ROIOver 1 yearOver 3 yearsOver 10 years
30%30.0%/yr9.1%/yr2.7%/yr
50%50.0%/yr14.5%/yr4.1%/yr
100%100%/yr26.0%/yr7.2%/yr

This is the same idea as compound annual growth rate (CAGR).

Marketing ROI

For ads and campaigns, use profit, not revenue, in the "returned" box. If a $1,000 campaign brought in $4,000 of sales and the products cost you $2,500 to make and deliver, the gross profit is $1,500. ROI on revenue would read 300%, but ROI on profit is ($1,500 − $1,000) ÷ $1,000 = 50%. Only the second tells you whether the campaign made money.

Also watch attribution. If some of those customers would have bought anyway, the campaign's true return is lower than the sales it's credited with.

Worked example: comparing two options

Option A: put $5,000 into equipment that saves $1,500 a year for 4 years. Total return $6,000, ROI = ($6,000 − $5,000) ÷ $5,000 = 20%. Over 4 years that's about 4.7% a year annualized (treating the savings as if they all arrived at the end, which understates it slightly).

Option B: put the same $5,000 into an investment that grows to $6,500 over 3 years. ROI = 30%, about 9.1% a year.

B looks better on both measures, but A might be less risky and frees up time. ROI is a strong first filter; it's not the whole decision.

ROI vs. return on equity and other cousins

You'll meet related ratios. Return on equity (ROE) divides a company's net income by shareholders' equity. Return on assets (ROA) divides it by total assets. Return on ad spend (ROAS) divides revenue by ad cost, which, as above, ignores product costs. They share the same idea, gain relative to what was put in, but measure different "put in" amounts, so don't compare one with another directly.

What ROI doesn't tell you

  • Risk. Two investments with the same ROI can have very different chances of losing money.
  • Size. 100% ROI on $50 is less useful than 10% on $50,000.
  • Cash timing. ROI treats all money as arriving at the end; investments that pay along the way need a different measure, such as IRR.

For long-term saving with regular contributions, the retirement calculator is a better fit than ROI.

Frequently asked questions

What is the formula for ROI?

(Amount returned − amount invested) ÷ amount invested × 100.

What is a good ROI?

It depends on risk and time. Compare the annualized ROI against what a simple alternative, such as an index fund, would have returned.

How do I calculate ROI over several years?

Use annualized ROI: (returned ÷ invested) to the power of 1 ÷ years, minus 1.

Should ROI use revenue or profit?

Profit, wherever you can. Revenue ignores the cost of what you sold.

Keep reading

Related tools

See everything in Calculators →