MoneyFinancial Math

ROI
calculator.

Work out what an investment returned, in total and per year, with income and fees.

Before you rely on this result.This is an estimate for planning. Banks, lenders and other providers apply their own rules, fees and rounding, so confirm figures with them before you commit to a financial decision. Sources used on this page.

How it's worked out

Return on investment, or ROI, compares what you gained with what you put in. Income such as dividends goes on the side of what you got back. Fees and commissions go on the side of what you put in.

got back\displaystyle \text{got back}=final value+income\displaystyle {}=\;\text{final value} + \text{income}
put in\displaystyle \text{put in}=invested+costs\displaystyle {}=\;\text{invested} + \text{costs}
ROI\displaystyle \text{ROI}=got back−put input in\displaystyle {}= \frac{\text{got back} - \text{put in}}{\text{put in}}

That number has no time in it. A gain of 80% is excellent over one year and modest over thirty. The annualized return fixes this by finding the steady yearly rate that would turn one amount into the other.

annualized\displaystyle \text{annualized}=(final value+incomeinvested+costs)1years\displaystyle {}= \left(\frac{\text{final value} + \text{income}}{\text{invested} + \text{costs}}\right)^{\frac{1}{\text{years}}}−1\displaystyle {}- 1

This is also known as compound annual growth rate, and it is the same rate that Excel's RRI function returns. It treats everything as one start and one end. If income reached you earlier, the true rate is higher, so the tool also works out an internal rate of return with income spread evenly across whole years.

1+real\displaystyle 1 + \text{real}=1+annualized1+inflation\displaystyle {}= \frac{1 + \text{annualized}}{1 + \text{inflation}}

The last line removes inflation with the exact relation, as set out in a Federal Reserve paper. Subtracting one rate from the other is a close shortcut, and it drifts when rates are high.

Worked examples

Nora sells shares after five years

Nora paid $10,000 plus a $20 commission, collected $1,200 of dividends and sold for $18,000. Her profit is $9,180 on $10,020, an ROI of 91.62%, and her money multiplied 1.92 times.

Over 5 years that is 13.89% a year. With dividends spread across each year, the internal rate is 14.36%, which is higher because she had that cash sooner.

At a 15% tax rate on her gain, ROI drops to 77.87% and the yearly figure to 12.21%. Before tax and after 3% inflation, the yearly figure is 10.57%. She would break even at a sale price of $8,820, and she would have needed $23,850 for a 150% ROI.

Open this example in the tool

A slow gain against a quick one

Two results on $10,000
ResultFinal valueYearsROIAnnualized
Slow$18,000580%12.47%
Quick$15,000250%22.47%

The slow one has the larger total, and the quick one has the higher yearly rate. Neither settles it alone, because the real question is what happens to the quick money for the other 3 years.

The answer is one number: 6.27% a year. If you can earn more than that on the $15,000 until year 5, the quick result wins. If you can only earn less, the slow one does.

Open this example in the tool

A shop judges a three-month campaign

A shop spends $5,000 on a campaign. In three months it brings $12,000 of sales and $7,400 of gross profit. On sales the ROI looks like 140%. On profit it is 48%, and profit is the one that pays the bills. Google Ads Help defines ROI the same way, as net profit against costs.

Annualizing would claim 379.79% a year. That figure assumes the shop could repeat the result four times in a row with its profits. The CFA Institute's 2026 reading on the GIPS standards, the code for investment firms reporting results, says returns for periods under a year must not be annualized. Quote the 48% and the three months. When a project competes for a budget, count staff time and ongoing fees as well as the purchase price, and set the result against the lowest return that would justify the risk and effort.

Open this example in the tool

Reading your result

Read the percent with its time. A 100% ROI means you doubled your money. The table shows how much the time changes what that means.

The same 100% ROI over different periods
Years to doubleAnnualized return
1100%
325.99%
514.87%
107.18%
203.53%

A gain of 80% over 5 years is not 16% a year. Dividing gives that figure, but compounding means the steady rate is only 12.47%. In reverse, a steady 10% takes about 6.2 years to reach the same 80%.

Compare like with like, and remember risk. ROI has no measure of risk in it, so 20% from a startup and 20% from a bond are not the same result. As Investor.gov puts it, investors seek higher returns as risk rises. The SEC defines an annual rate of return as the percentage change in value over the year. Fund pages often quote a figure after their own costs with dividends reinvested, so count your own fees and dividends the same way before you set the two side by side.

Common mistakes

  • Using revenue as the amount back. Sales are not profit. The shop's ROI swings from 140% to 48% on this one choice.
  • Taking fees off the final value instead of adding them to the cost. Nora's result would read 91.8% and not 91.62%. The profit is the same and the base is different, so pick the method and use it on both investments.
  • Using this formula with money added along the way. A single start and end cannot handle regular deposits. Use a dated method such as XIRR, which takes a date for each payment and uses a 365-day year.
  • Ignoring what a loss needs to recover. A drop of 30% needs a gain of 42.86% to get back to where you started, because the gain is on a smaller base.

Questions people ask

ROI adds no time and treats all your deposits alike. XIRR is a yearly rate that counts how long each dollar was invested. If you added a lot of money late, that money had little time to grow, so a small total ROI can go with a large XIRR. Neither is wrong; they answer different questions. For several dated cash flows, the IRR in the net present value calculator fits better than a single ROI.

Sources