Skip to content
CalculatorFly

ROI Calculator

Enter what you invested and what you got back. Add fees and how long you held it to see the annualized return, or compare two investments.

Investment details

I know the

Holding period as

Investment
Return on investment
-
FigureInvestment

Estimates only, not financial advice. Taxes, inflation and dividends you did not include are not counted.

How to use the ROI calculator

Enter how much you invested and how much you got back when you sold, or switch to Gain or loss if you only know the profit (use a minus sign for a loss). Add any costs such as trading commissions, closing costs or fund fees. To see the yearly rate of return, enter how many years you held the investment or the dates you bought and sold it. Tick Compare with a second investment to put two options side by side.

The formulas

ROI = (amount returned − total cost) ÷ total cost × 100

Annualized ROI = (amount returned ÷ total cost)1 ÷ years − 1

Total cost is the amount invested plus costs and fees. Annualized ROI is the compound annual growth rate (CAGR): the steady yearly return that would turn your cost into the amount returned over the same time. When you enter dates, years are the number of days between them divided by 365.25.

Worked example

Investment A: you put in $10,000, pay $200 in fees and sell 3 years later for $14,000. Your total cost is $10,200, so the profit is $3,800 and ROI is $3,800 ÷ $10,200 = 37.25%. Annualized, that is (14,000 ÷ 10,200)1/3 − 1 = 11.13% a year. Investment B turns $5,000 into $6,000 in 18 months: only 20% ROI, but (1.2)1/1.5 − 1 = 12.92% a year. B earned less in total but grew faster, so it was the better use of money per year.

FAQ

What is a good ROI?

It depends on risk and time. As a rough yardstick, the US stock market has returned around 10% a year before inflation over long periods, and high-yield savings accounts pay a few percent with almost no risk. Compare annualized ROI, not total ROI, when the holding periods differ.

Why is annualized ROI lower than total ROI divided by years?

Because returns compound. 37.25% over 3 years is not 12.4% a year: growing 11.13% a year for 3 years already gives 37.25%, since each year's gain also earns a return.

Should I include fees and taxes?

Include every cost you paid to buy, hold and sell, such as commissions, fund fees and closing costs, so the ROI reflects what you really earned. Taxes depend on your situation, so this calculator leaves them out; subtract them from the amount returned if you want an after-tax figure.

Is my information sent anywhere?

No. CalculatorFly runs every calculation on your device with WebAssembly. Nothing is uploaded or stored.