ROI Calculator

ROI calculator: work out return on investment as a percentage, net gain or loss, and annualized ROI per year from your cost, final value and years.

Runs in your browser. Files never leave your device.
Total Return on Investment
45.00%

Net Gain: $4,500.00

Annualized ROI: 13.19% / year

Percentages are rounded to 2 decimals (halves up).

About the return on investment calculator

Work out the return on investment of a marketing campaign, a new machine, a property or a share purchase. Enter what you put in, what you got back and, if you like, how many years it took. The ROI calculator shows the ROI percentage and the net gain or loss, plus the annualized ROI per year when you give it the years.

Total ROI tells you how much an investment made relative to its cost. Annualized ROI turns that into a yearly rate, and that's the fairer way to compare a 45% return earned over three years with a 40% return earned over five. Both figures update as you type.

How ROI and annualized ROI are calculated

The net gain is the final value minus the initial investment. ROI is that gain divided by the initial investment and multiplied by 100. Amounts are taken to the cent and the percentages are rounded to 2 decimals, with halves rounded away from zero, using exact decimal arithmetic rather than floating point, so 0.1 + 0.2 never turns into 0.30000000000000004.

Annualized ROI is the compound annual growth rate (CAGR): the single yearly rate that would turn the initial investment into the final value over the number of years you enter. It is only shown when a time horizon is filled in. Fractions of a year work, so 0.5 means six months and 0.25 means three months. If the final value is 0, the annualized figure is −100%, a total loss whatever the period.

net gain       = F − I
ROI (%)        = (F − I) ÷ I × 100
annualized ROI = ((F ÷ I)^(1 ÷ n) − 1) × 100

I = initial investment (more than 0)
F = final returned value (0 or more)
n = time horizon in years (optional, up to 200)

Don't divide total ROI by the number of years: returns compound, so the yearly figure comes out wrong. A 45% gain over three years is not 15% a year. It's 13.19% a year, compounded three times, is what gets you from $10,000 to $14,500.

Assumptions and limits

  • The final value should include everything the investment returned: the sale price plus any rent, dividends or extra profit received, minus selling costs. The calculator does not add income or costs separately.
  • Annualized ROI assumes one steady compound rate and no money added or taken out along the way. For several deposits and withdrawals at different dates, an internal rate of return (IRR) in a spreadsheet is the right measure.
  • Taxes, fees and inflation are not taken into account. The $ sign is only a label; the result is the same in rupees, pounds, euros or any other currency.
  • Enter plain numbers with a dot for decimals and no thousands separators (12500.50, not 12,500.50). The initial investment must be more than 0 and the final value cannot be negative.
  • Annualizing a short period magnifies it: an 87.5% gain in three months works out to about 1,136% a year, which is rarely repeatable. Treat annualized figures for periods under a year with caution.

Worked examples

Marketing ROI: $2,500 of ad spend that brought in $3,400 of gross profit

Enter 2500 as the initial investment and 3400 as the final value. The net gain is $900 and the campaign ROI is 36.00%. Use the profit the campaign produced, not its revenue, or the ROI will look far better than it was. If the campaign ran for six months, entering 0.5 years shows an annualized ROI of 84.96%.

net gain = 3,400 − 2,500 = 900
ROI = 900 ÷ 2,500 × 100 = 36.00%
annualized over 0.5 years = (1.36^2 − 1) × 100 = 84.96%

Investment return over 3 years: $10,000 grows to $14,500

The net gain is $4,500 and the total ROI is 45.00%. With 3 in the time horizon, the annualized ROI is 13.19% a year. A property bought for $150,000 and sold for $210,000 after five years has a total ROI of 40.00% but only 6.96% a year, so the three-year investment did better even though the totals look close.

(14,500 ÷ 10,000)^(1/3) − 1 = 1.45^0.3333 − 1 = 0.1319  →  13.19% a year

A negative ROI: equipment bought for $40,000 and sold for $31,000

When the final value is lower than the cost, the result shows in red. The net change is −$9,000 and the ROI is −22.50%. Spread over two years, that is an annualized ROI of −11.97%, meaning the equipment lost about 12% of its value each year.

Total ROI compared with annualized ROI

Results from this calculator. The same total ROI can mean very different yearly returns depending on how long it took.

Initial → final valueYearsTotal ROIAnnualized ROI
$5,000 → $10,0001100.00%100.00%
$5,000 → $10,0007100.00%10.41%
$10,000 → $14,500345.00%13.19%
$150,000 → $210,000540.00%6.96%
$40,000 → $31,0002−22.50%−11.97%
$1,200 → $01−100.00%−100.00%

How to use the ROI Calculator

  1. Enter the initial investment. The full cost: purchase price, ad spend or project budget, including set-up costs.
  2. Enter the final returned value. What you sold it for or got back, plus any income it earned along the way.
  3. Add the time horizon in years. Optional. Fill it in to see the annualized ROI; decimals such as 1.5 work. Leave it empty for total ROI and net gain only.

Frequently asked questions

How do you calculate ROI as a percentage?

Subtract the cost from what you got back, divide by the cost and multiply by 100. Buying stock for $2,000 and selling it for $2,600 gives a gain of $600, and 600 ÷ 2,000 × 100 = 30% ROI.

What is the difference between ROI and annualized ROI?

ROI is the total return over the whole holding period, however long it was. Annualized ROI is the compound yearly rate that produces the same result, so it lets you compare investments held for different lengths of time. Doubling your money in one year and in seven years are both 100% ROI, but 100% and 10.41% a year.

How do I calculate the ROI of a marketing campaign?

Enter the campaign cost as the initial investment and the gross profit the campaign brought in (sales revenue minus the cost of the goods sold) as the final value. The net gain is then the profit left after paying for the campaign. Using revenue instead of gross profit overstates the return. Revenue divided by ad spend is a different measure, usually called ROAS (return on ad spend).

Can ROI be negative?

Yes. If the final value is less than the initial investment, the net gain and ROI are negative and shown in red. The lowest possible result is −100%, when the final value is 0 and the whole investment was lost.

Does the ROI calculator include inflation and taxes?

No, the result is a nominal return before tax. To adjust for inflation, use (1 + ROI) ÷ (1 + inflation) − 1: a 10% return with 3% inflation is a real return of about 6.8%. Deduct taxes and fees from the final value if you want an after-tax figure.

What is a good return on investment?

There is no single number. Ask whether the annualized ROI beats what the same money could earn elsewhere at similar risk, such as in a savings account, or what your business pays to borrow. The riskier the investment, the more it needs to earn to be worth it.

Results are estimates for information and planning only, not financial or investment advice. They do not include taxes, fees or inflation, and past returns do not predict future ones. Talk to a qualified financial adviser before making investment decisions.

This tool runs entirely in your browser. What you enter or upload stays on your device and is never sent to our servers.