Skip to content
KazamTools

ROI Calculator

Measure what an investment really earned, and compare investments held for different lengths of time.

By , Founder and editor-in-chiefLast reviewed

Investment length

$

Total cost, including fees.

$

Sale price or value now, plus income received.

years

Decimals are fine: 1.5 = 18 months.

Return on investment (ROI)

50%

Gain of $5,000.00 on $10,000.00 over 3 years.

Annualized ROI
14.47%
Steady yearly return (CAGR)
Investment gain
$5,000.00
Money multiple
1.50×
$15,000.00 back for $10,000.00
Amount returned
  • Amount invested$10,000.00 67%
  • Gain$5,000.00 33%

How this was calculated

ROI = (returned − invested) ÷ invested × 100

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

($15,000.00 − $10,000.00) ÷ $10,000.00 = 50%; (1.5000)^(1 ÷ 3.0000) − 1 = 14.47%

ROI ignores when money went in or came out between the start and the end. If you added or withdrew money along the way, use a money-weighted return (IRR) instead. Taxes and inflation are not included unless you count them in the amounts.

The link stores only the numbers above, never personal details.

Next: project future growth with the investment calculator, see compounding at work or measure return on ad spend.

How to use the ROI Calculator

  1. 1Enter the amount invested, including fees and other costs.
  2. 2Enter the amount returned: the sale price or current value, plus any income received.
  3. 3Enter how long you held it in years, or switch to dates and pick the start and end.
  4. 4Read the ROI, the gain and the annualized ROI.
  5. 5Click Compare another investment to rank up to three investments by annualized return.

How the ROI calculator works

Return on investment (ROI) tells you how much an investment earned compared with what it cost. It works for anything you put money into and later get money back from: shares, a fund, a rental property, a piece of equipment, a marketing campaign or a small business.

The calculator gives you three numbers:

  • ROI: the total gain as a percentage of what you put in.
  • Gain: the money you made (or lost).
  • Annualized ROI: the steady yearly return that would produce the same result. This is also called the compound annual growth rate (CAGR).
ROI = (amount returned − amount invested) ÷ amount invested × 100
Annualized ROI = (amount returned ÷ amount invested)^(1 ÷ years) − 1

Enter the length in years (decimals are fine: 1.5 means 18 months), or switch to From dates to use exact start and end dates. With dates, the calculator counts the days and divides by 365.25, the average year length including leap years.

Worked example 1: a simple investment

You buy shares for $10,000 (including fees) and sell them 3 years later for $15,000.

  • Gain: $15,000 − $10,000 = $5,000
  • ROI: $5,000 ÷ $10,000 = 50%
  • Annualized ROI: 1.5^(1/3) − 1 = 14.47% a year
  • Money multiple: 1.5× (you got back $1.50 for every $1)

Using the exact dates 1 January 2023 to 1 January 2026 gives 1,096 days, or 3.0007 years. The annualized ROI is then 14.468%, almost the same.

Worked example 2: why annualized ROI matters

Click Compare another investment to add up to three. The default comparison shows why total ROI alone can mislead:

Investment Invested Returned ROI Held Annualized ROI
A $10,000 $15,000 50% 3 years 14.47%
B $5,000 $7,500 50% 5 years 8.45%
C $8,000 $9,200 15% 1 year 15.00%

A and B both returned 50%, but A did it two years faster, so its yearly return is far higher. C had the smallest total ROI, yet its yearly pace was the best of the three. When you compare investments held for different lengths of time, rank them by annualized ROI.

Worked example 3: a house

You bought a home for $250,000 and sell it 8 years later for $400,000.

  • ROI: $150,000 ÷ $250,000 = 60%
  • Annualized ROI: 1.6^(1/8) − 1 = 6.05% a year

That looks good, but it leaves out a lot. To get a true ROI, add buying and selling costs, repairs and improvements to the amount invested. If the property earned rent, add the net rent to the amount returned. With a mortgage, the return on your own cash is different again, because borrowed money magnifies both gains and losses.

Same ROI, different speed

The table shows the yearly return behind a total gain of 50% and of 100% (doubling your money) over different holding periods.

Years held Annualized ROI for a 50% gain Annualized ROI for a 100% gain
1 50.00% 100.00%
2 22.47% 41.42%
3 14.47% 25.99%
5 8.45% 14.87%
10 4.14% 7.18%
20 2.05% 3.53%

Doubling your money sounds great, but over 20 years it is only 3.53% a year. That may not even keep up with inflation and safe savings rates.

Short holding periods

Annualizing a short period can give a wild number. A 30% gain in 6 months becomes an annualized ROI of 69%, because it assumes you could repeat that pace for a whole year. The calculator warns you when the holding period is under a year. For short trades, the plain ROI is often the more honest figure.

Getting the inputs right

  • Amount invested should include everything you paid: the price, commissions, fees, taxes on purchase and other costs. The SEC’s Investor.gov shows how even small yearly fees reduce returns over time.
  • Amount returned is what you got back when you sold, or what the investment is worth today, plus any income you received along the way, such as dividends, interest or rent.
  • Losses work too. If you invest $1,000 and get back $800, the ROI is −20%. If you lose everything, the ROI is −100%.

Limits of ROI

  • It ignores cash flows in the middle. If you added money every month, or took some out, simple ROI can be badly off. A money-weighted return such as the internal rate of return (IRR) handles that.
  • It ignores risk. A 10% return from a savings account and 10% from a single small company are not the same. Compare returns with options that carry similar risk.
  • It ignores taxes and inflation unless you build them into the amounts. Subtract tax from the amount returned for an after-tax ROI, and compare the annualized ROI with inflation over the same years for a real return.
  • Past results do not predict future ones. A high ROI on one investment says little about what it will do next.

Tips

  • Use annualized ROI to compare, and total ROI to describe a single result.
  • Write down every cost when you invest, so your ROI is honest later.
  • Benchmark it. Compare your annualized ROI with a low-cost index fund or a CD over the same period.

To project future growth from regular contributions, use the investment calculator. To see how a steady rate compounds, use the compound interest calculator. For marketing campaigns, the ROAS calculator measures revenue per dollar of ad spend, and the break-even calculator shows how many sales you need to cover your costs.

This calculator is for education. It is not investment or tax advice.

Cite this calculator

Using this calculator in an essay, report or article? Copy a ready-made reference. Check your teacher's or publisher's style guide for small differences.

APA
KazamTools. (2026, October 28). ROI calculator. Retrieved October 30, 2026, from https://kazamtools.com/finance/roi-calculator/
MLA
"ROI Calculator." KazamTools, 28 Oct. 2026, https://kazamtools.com/finance/roi-calculator/. Accessed 30 Oct. 2026.
Chicago
KazamTools. "ROI Calculator." Last modified October 28, 2026. Accessed October 30, 2026. https://kazamtools.com/finance/roi-calculator/.
Plain link
ROI Calculator (KazamTools): https://kazamtools.com/finance/roi-calculator/
HTML link
<a href="https://kazamtools.com/finance/roi-calculator/">ROI calculator</a> by KazamTools

Frequently asked questions

What is the ROI formula?

ROI = (amount returned − amount invested) ÷ amount invested × 100. If you invest $10,000 and get back $15,000, the ROI is $5,000 ÷ $10,000 = 50%.

What is annualized ROI?

It is the steady yearly return that would turn your investment into the amount returned over the same time: (returned ÷ invested)^(1 ÷ years) − 1. A 50% gain over 3 years is an annualized ROI of 14.47%. It is the same as the compound annual growth rate (CAGR).

Why compare investments by annualized ROI?

Total ROI ignores time. A 50% gain in 3 years (14.47% a year) is much better than a 50% gain in 5 years (8.45% a year). Annualized ROI puts investments of different lengths on the same footing.

What counts as the amount invested?

Everything you paid to make the investment: the purchase price plus commissions, fees and other costs. Leaving costs out makes ROI look better than it was.

What is a good ROI?

It depends on the risk and the time. Compare against what you could have earned elsewhere with similar risk, such as a savings account or CD for low-risk money, or a broad stock index fund for long-term investing.

Does ROI include taxes and inflation?

Not unless you include them in the amounts. For an after-tax ROI, subtract tax from the amount returned. For a real ROI, compare the annualized ROI with the inflation rate over the same years.

When is ROI the wrong measure?

When you added or withdrew money during the period. ROI only looks at the start and end. For regular contributions, a money-weighted return such as the internal rate of return (IRR) is more accurate.

How we keep this tool accurate

Written and checked by
Awais, founder and editor-in-chief
Last reviewed

Results are estimates for general information only and are not financial, tax or legal advice. Rules and rates change; check official sources or a qualified professional before you act. See how we build and check our calculators.

Was this tool helpful?

Add this roi calculator to your website (free)

Copy this code into any web page. The tool stays free, has no ads inside it, and works on phones. Please keep the credit link under it.

Want a live preview or light and dark colours? Open this widget in the widget builder, where you can also browse every free calculator widget.