1. Calculators
  2. Corporate Finance & Capital Investment

ROI Calculator

Work out what an investment returned relative to what it cost, and convert it to a yearly rate. Compare several investments held for different lengths of time on equal terms.

Updated Oct 16, 2026Free · no sign-upFormulas tested

Your inputs

Enter what you put in, what you got back, and any costs along the way.

$
The money you put in at the start.
$
Fees, commissions, repairs or other money spent on the investment. Counted as part of the cost.
I know
$
Sale proceeds or current value, plus any income received (dividends, rent, interest).
years
Used for the annualized ROI. Fractions are fine: 18 months is 1.5.

Results

Return on investment+34.15%Net gain of $7,000.00 on $20,500.00 of total cost
Net gain
$7,000.00
Annualized ROI
+10.29%
Compounded over 3 years
Simple average a year
+11.38%
Total ROI ÷ years, not compounded
Total cost (invested + costs)
$20,500.00
Money multiple
1.34×
ROI lost to costs
3.35%

A 34.15% total return over 3 years works out to 10.29% a year compounded. Simply dividing by the years gives 11.38%, which overstates the yearly rate because it ignores compounding.

Results are estimates from the numbers you enter. They are not financial, tax or legal advice.

How to use the ROI calculator

The ROI tool measures one investment:

  1. Amount invested: what you put in at the start.
  2. Other costs: commissions, fees, repairs, legal costs or anything else spent on the investment. They are added to the cost, not subtracted from the return.
  3. Amount returned or gain. Enter what you got back in total (sale proceeds or current value, plus any income received), or switch to entering the gain before costs.
  4. Years held, if you want the annualized ROI. Fractions such as 2.5 are fine.

The Compare investments tool takes one row per investment, with the amount invested, the amount returned and the years held, and ranks them by annualized ROI.

The ROI formula

Total cost = Amount invested + Other costs
Net gain = Amount returned − Total cost
ROI = Net gain ÷ Total cost
Annualized ROI = (1 + ROI)1 ÷ years − 1The amount returned includes any income received along the way. The annualized ROI is the constant yearly rate that produces the same total return.

A worked example

You invest $20,000 and pay $500 in costs, for a total cost of $20,500.00. After 3 years you receive $27,500.

The net gain is $7,000.00 and the ROI is 34.15%: you got back 1.34× your total cost. Spread over 3 years, that is an annualized ROI of 10.29%.

Without the costs, the ROI would have been 37.50% instead of 34.15%. Fixed costs weigh most on small investments, so include every one of them.

Why ROI must be annualized to compare

A total ROI says nothing about how long it took. The same 34.15% looks very different depending on the holding period:

Years held Total ROI Annualized ROI
1 year +34.15% +34.15%
3 years (example) +34.15% +10.29%
6 years +34.15% +5.02%
10 years +34.15% +2.98%

The comparison tool shows how this changes a ranking. In its example, Investment A has the highest total ROI, 60.00%, but it took five years. Investment B returned less in total, yet grew money faster at 14.02% a year. When money can be reinvested once an investment ends, the yearly rate is the fairer basis for comparison.

Annualizing uses compounding, not simple division. Dividing 34.15% by 3 years gives 11.38% a year, which overstates the rate because each year’s growth builds on the previous year’s.

ROI versus IRR

ROI works cleanly when there is one amount in at the start and one amount out at the end. Most real investments are messier: a rental property pays rent every month, a savings plan adds money every year, a business makes several rounds of investment. ROI adds up all the money in and out regardless of when it moved, so a dollar received in year one counts the same as a dollar in year ten.

The internal rate of return handles this by valuing each cash flow at its own date. For a single investment and a single payoff, the IRR equals the annualized ROI. With several cash flows, use the IRR calculator, or its XIRR tool when the dates are irregular.

What this calculator does not include

  • Taxes. The ROI is before tax unless you enter after-tax amounts. In the US, gains on assets held longer than a year are usually taxed at lower long-term capital gains rates.
  • Inflation. The result is a nominal return. Our real return calculator removes inflation.
  • Risk. Two investments with the same ROI can carry very different risks of loss.
  • Opportunity cost. A positive ROI can still trail what the money would have earned elsewhere. The NPV calculator measures a return against a required rate.

Frequently asked questions

How do you calculate ROI?
Subtract the total cost of the investment from what it returned, then divide by the total cost: ROI = (Amount returned − Total cost) ÷ Total cost. With $20,000 invested, $500 of costs and $27,500 returned, the net gain is $7,000.00 and the ROI is 34.15%.
What is a good ROI?
It depends on the time it took and the risk involved. A total ROI only means something next to the holding period, which is why the annualized figure matters. Compare it with what a low-risk alternative such as Treasury bills, or a broad index fund, would have earned over the same years.
What is annualized ROI?
Annualized ROI is the yearly compound rate that would turn the cost into the amount returned over the holding period: (1 + ROI)^(1 ÷ years) − 1. It lets you compare a two-year investment with a ten-year one. In the example, 34.15% over 3 years is 10.29% a year.
Is ROI the same as IRR?
Only for a single amount in and a single amount out. When money goes in or comes out at several dates, such as monthly contributions or rental income, ROI ignores when each dollar moved. IRR accounts for the timing of every cash flow and is the better measure in that case.

Related calculators

All calculators →

This calculator is for education and planning. It uses the formulas described above and the inputs you provide; real results depend on fees, taxes, timing and other details that a general tool cannot know. PromtFinance does not give personal financial advice. Check important decisions with your provider or a qualified professional.