Return on investment (ROI) is a percentage that compares the profit an investment produced with the money it consumed. The formula is ROI = (net profit ÷ total cost) × 100, and those three inputs work the same way for a stock position, a rental house, a delivery van or an ad campaign.

What is the return on investment formula?

The return on investment formula is ROI = (net profit ÷ total cost) × 100. Net profit is everything the investment returned minus everything it consumed, and total cost is every dollar that went in, including fees that never appear on a purchase contract.

The simplicity is both the point and the weakness. Investor.gov notes that annual rates of return can be calculated several legitimate ways, so two investors in the same asset can publish different ROI figures and both be right.

A useful habit: restate the denominator before you act on a number. A 40% return on a $500 fee and a 40% return on a $500,000 property deserve different reactions even though the percentage matches.

What counts as cost and what counts as profit?

Cost is every dollar the investment consumed and return is every dollar it produced. The fees people skip are usually the ones that turn a headline ROI into something ordinary.

ItemWhere it goes
Purchase priceTotal cost
Commissions, closing costs, loan feesTotal cost
Repairs, insurance, property tax, holding costsTotal cost
Rent, dividends or interest receivedTotal return
Sale price minus selling costsTotal return
Net profitTotal return − total cost

Borrowed money does not create profit by itself. A loan shrinks the cash you put in and adds interest to the cost column, which is why the same property can show two very different ROI figures to a cash buyer and a financed buyer.

One cost the formula cannot hold neatly is opportunity cost. Money tied up in a rental for five years was not in a Treasury ladder or an index fund, and a 6% return that looked fine alone may not look fine next to the alternatives.

How do you calculate ROI step by step?

Add up the cost, add up the return, subtract, divide by the cost, and multiply by 100.

Step 1: Total the cost

Sum the purchase price and every transaction and holding cost attached to the asset. Your own unpaid time stays out unless you would otherwise have billed someone for it.

Step 2: Total the return

Add sale proceeds after selling costs to any income received while you owned the asset. If you still hold it, use a current valuation and label the result unrealized.

Step 3: Subtract to get net profit

Net profit = total return − total cost. A negative result is a loss, and the formula will hand you a negative percentage rather than an error message.

Step 4: Divide by cost and multiply by 100

Divide net profit by total cost, then multiply by 100. Dividing by the final value instead of the cost is a different ratio and always flatters the answer.

Step 5: Annualize if the hold was not one year

Plain ROI ignores time. A 14.7% return over three years and a 14.7% return over one year are not the same investment, and annualizing is what makes them comparable.

What does a full ROI calculation look like?

Here is the whole thing end to end on a stock position held for three years.

You buy 200 shares at $50 and pay a $200 commission. Three years later you sell at $60 a share and pay $300 in selling costs.

  1. Total cost: 200 × $50 = $10,000, plus $200 in commission = $10,200.
  2. Total return: 200 × $60 = $12,000, minus $300 in selling costs = $11,700.
  3. Net profit: $11,700 − $10,200 = $1,500.
  4. ROI: $1,500 ÷ $10,200 = 0.1471, or 14.7%.

The commission and the selling cost together moved the answer by more than five percentage points. Had both been ignored, the same trade would have shown 20%.

How do you annualize ROI?

Divide by the number of years for a simple annual figure, or compound it for the rate your money actually earned.

  • Simple: 14.7% ÷ 3 = 4.9% a year.
  • Compounded: (1 + 0.147)^(1/3) − 1 = 0.0468, or 4.7% a year.

The gap is small over three years and wide over twenty. Annualizing also flatters short holds: a one-month gain of 5% becomes 60% on the simple method, which says more about the shortness of the month than the quality of the investment.

Compounding is what the simple method misses. The CFPB’s example shows $1,000 at 5% becoming $1,050 after the first year and $1,102.50 after the second, because the second year earns interest on the first year’s interest. The Rule of 72 is the quick check: 72 ÷ 9 = about 8 years to double at 9%.

Investor.gov also notes that a monthly return multiplied by 12 gives an annual percentage rate, a simple annualization rather than a compounded one. Say which method you used; the labels look similar and the numbers do not.

What is a good ROI?

A good ROI beats your realistic alternatives after tax and inflation, for the same level of risk. No single number clears that bar for everyone.

Published benchmarks give you a floor. The FDIC national savings rate was 0.38% as of May 18, 2026, so cash barely counts.

The 10-year Treasury real yield was 2.66% on November 9, 2026, and that figure is already inflation-adjusted. Freddie Mac put the 30-year fixed mortgage at 7.11% on November 12, 2026, so borrowed money costs more than either benchmark.

That last figure matters. A project returning 6% while financed at 7.11% loses ground with every dollar borrowed.

Why does inflation change the answer?

Inflation shrinks what a nominal ROI will buy, so strip it out before comparing returns across years.

CPI-U rose 22.0% over the five years ending October 2026. An investment that returned 30% over that stretch grew 1.30 ÷ 1.22 = 1.066, about 6.6% in real terms, or near 1.3% a year compounded. The nominal number looked more than twice as good as the real one.

How do taxes change ROI?

Taxes come off the gain, so they always lower ROI, and the rate depends on the asset and your income.

For 2026 long-term capital gains, the 15% bracket runs up to $613,700 of taxable income for married filing jointly and $545,500 for single filers. The 3.8% net investment income tax applies above $250,000 of MAGI for joint filers and $200,000 for single or head of household.

Rerun the stock example with a 15% tax on the $1,500 gain: $1,500 × 0.85 = $1,275, and $1,275 ÷ $10,200 = 12.5%. Same trade, noticeably smaller result.

How is ROI applied to rentals and business loans?

Real estate usually needs a cash-based version of the formula because most buyers borrow. Cash-on-cash return divides annual pre-tax cash flow by the cash actually invested, which is the figure partners and lenders ask for.

A $200,000 rental bought for cash with $3,000 in closing costs and $2,000 of repairs has $205,000 invested. First-year rent of $18,000 minus $6,000 of expenses leaves $12,000, so ROI is $12,000 ÷ $205,000 = 5.85%. Total return on a rental also includes any appreciation and loan principal paid down, so a full figure is usually higher than the cash-only one.

Business projects work the same way, with loan interest and fees dropped into the cost column before you divide.

MetricFormulaBest for
ROI(net profit ÷ total cost) × 100Deals with a clear start and end
Annualized ROI(1 + ROI)^(1/n) − 1Comparing holds of different lengths
Cash-on-cashAnnual cash flow ÷ cash investedRentals bought with a mortgage
IRRRate that sets net present value to zeroCash flows that change year to year

Common mistakes

  • Dividing by the sale price instead of the cost, which inflates every result.
  • Leaving out closing costs, selling costs, commissions and holding costs.
  • Treating borrowed money as profit rather than as a smaller down payment plus interest.
  • Comparing a two-year ROI with a ten-year ROI without annualizing either.
  • Quoting a pre-tax ROI to someone who will owe the tax.
  • Using ROI alone for investments with uneven cash flows, where IRR does the job.