I spent 18 years as a credit union loan officer, and the most common mistake I saw was people quoting a return that ignored fees, time or taxes. This page shows all three, so the number you walk away with is one you can actually compare.
How to use the ROI calculator
Enter your numbers in the boxes above. The calculator only needs five inputs, and each one has a specific job:
- Amount invested: the purchase price or deposit, the money you started with.
- Total amount returned: everything you got back, including sale proceeds, dividends, interest or rent collected.
- Years held: how long the money was tied up. Use decimals for part years (18 months is 1.5).
- Fees and other costs: commissions, closing costs, repairs, advisory fees, anything you paid that is not the purchase price.
- Tax rate on the gain: your capital gains or ordinary income rate. Enter 0 to ignore tax.
The stacked bar under the results splits your returned amount into the money you put in, fees, tax and profit after tax. If you see almost no profit slice, that is usually the fee and tax drag talking, not bad luck.
How ROI is calculated
ROI answers one question: for every dollar I spent, how many dollars of profit came back? In plain words, take what you got back, subtract your total cost, divide by your total cost, then multiply by 100.
Total cost here means the amount invested plus fees. So the formula is: ROI = (amount returned - amount invested - fees) / (amount invested + fees) x 100.
The annualized version asks a different question: what steady yearly growth rate would have produced the same result? Divide the amount returned by the total cost, raise that to the power of 1 divided by the years held, subtract 1, and multiply by 100. It compounds, so it is not simply ROI divided by years.
For the after-tax lines, the calculator subtracts tax on the gain only (never on a loss) from the amount returned, then repeats the same two calculations.
Worked example: $10,000 grows to $15,000
These are the defaults in the calculator. You invest $10,000, pay $200 in fees, and three years later you get back $15,000. Your total cost is $10,200.

The net gain is $15,000 minus $10,200, which is $4,800. Divide $4,800 by $10,200 and you get 0.4706, so the total ROI is 47.06%. Annualized, that is 1.4706 to the power of one third, minus 1, or about 13.72% a year.
Now apply a 15% tax to the $4,800 gain: that is $720, leaving $4,080 of profit. After-tax ROI is $4,080 divided by $10,200, exactly 40.0%. Annualized, that is about 11.87% a year. Fees and tax together cut the yearly rate by almost two points, which is why I always run both versions.
Why annualized ROI matters more than total ROI
A 50% gain sounds great until you ask how long it took. Total ROI ignores time completely, so it can make a slow investment look as good as a fast one. Annualized ROI fixes that by putting everything on a per-year footing.
Here is what the same 50% total return looks like depending on how long it took:
| Years held | Total ROI | Annualized ROI |
|---|---|---|
| 1 | 50% | 50.00% |
| 2 | 50% | 22.47% |
| 3 | 50% | 14.47% |
| 5 | 50% | 8.45% |
| 10 | 50% | 4.14% |
One edge case: annualizing a holding period under a year can produce eye-catching numbers. A 5% gain in two months annualizes to over 30%, but you cannot assume you will find another two-month deal that pays the same. Treat annualized figures under a year as a comparison tool only.
What changes your ROI the most
Three things move the result more than anything else: your total cost, how long you held, and what you count as “returned.” Small changes in cost have an outsized effect because cost is the divisor. A $200 fee on a $1,000 investment takes 20 points of ROI off the table, while on $100,000 it barely registers.
Time is the second lever. Because annualized ROI compounds, stretching the same dollar gain over more years drops the yearly rate quickly, as the table above shows.
Dividends, interest and rent you received along the way belong in "total amount returned." Leaving them out understates your ROI, sometimes by a lot.
The third lever is what you include as cost. On a rental or a flip, repairs, closing costs and carrying costs can be 10% or more of the price. If you want to model dividends reinvested over time, the dividend reinvestment calculator shows how much of a return comes from compounding rather than price growth.
Mistakes that make ROI look better than it is
The first one I saw again and again was people calculating ROI on the purchase price and forgetting the extras. A member bragged about a 30% return on a rental, then admitted the number skipped a new roof and six months of vacancy. Once we added those back, it was closer to 12%.

Other common errors:
- Ignoring time, so a 20% gain over seven years gets compared with a 20% gain over one.
- Skipping taxes and then being surprised by the bill.
- Forgetting inflation. At 3% inflation, a 4% annual return is only about 1% in real terms.
- Mixing in extra deposits. If you added money later, simple ROI overstates how hard your original money worked.
- Reporting only winners. If you bought several positions, include the losers.
If you bought a stock in several lots, work out your blended cost first with the stock average calculator, then use that as the amount invested. For one-off trades with share counts and commissions, the stock calculator profit page does the per-share math for you.
Try this: Pick your last investment and list every cost, including fees, repairs and the interest you paid to borrow. Add them to the “fees and other costs” box and see how far your ROI drops.
How taxes change your ROI in 2026
Tax is where the gap between a headline ROI and your real ROI opens up. In the US, a gain on something held for more than one year is generally taxed at long-term capital gains rates of 0%, 15% or 20%, depending on your taxable income. Gains on holdings of one year or less are taxed as ordinary income, which can be much higher.
For 2026, the 0% rate applies to taxable income up to roughly $49,450 for single filers and $98,900 for married couples filing jointly, with the 20% rate starting well above $500,000. I would confirm those thresholds on IRS.gov before relying on them, since the IRS publishes them each year. Higher earners may also owe the 3.8% net investment income tax, which starts at $200,000 of modified AGI for single filers and $250,000 for joint filers.
The type of account matters as much as the rate. Gains inside a Roth IRA are not taxed on qualified withdrawals, so set the tax rate to 0 and compare with the Roth IRA calculator. State tax adds on top in most states, so include it in your rate if it applies to you.
What is a good ROI?
There is no single answer, because ROI depends on risk and time. A sensible benchmark is what you could have earned with little risk, such as Treasury bills or an insured CD, which you can check on treasury.gov or at your bank. If your investment did not beat that after fees and tax, it did not pay you for the risk.
For stocks, many people compare against a broad market index over the same dates. Long-run US stock returns have averaged high single digits to around 10% a year before inflation, but individual years swing widely, so judge over many years rather than one.
For real estate, ROI mixes rent, appreciation and borrowing costs. The cap rate calculator strips out financing to show the property’s income yield on its own, which helps when you compare buildings.
When ROI is the wrong tool
ROI works best for a single deposit and a single payout. It struggles when money moves in and out at different dates, because it cannot tell whether your cash was invested for one year or five. For irregular cash flows, the NPV calculator discounts each payment to today’s dollars, which gives a fairer verdict.
ROI also says nothing about risk. A 12% return from a diversified fund and a 12% return from one speculative bet look identical on this page. And if you are projecting forward rather than looking back, the future value of investment calculator is the better fit, ideally paired with the future inflation calculator to see what the result buys.
Finally, borrowed money changes the picture. If you financed half the purchase, ROI on your own cash can look much bigger than the asset’s return, and much worse on the downside. Measure it on the cash you actually put in, and include interest as a cost.
ROI Calculator: common questions
What is the ROI formula?
ROI equals your net gain divided by your total cost, times 100. Net gain is what you got back minus everything you put in, including fees. A $4,800 gain on $10,200 of total cost is a 47.06% ROI.
What is the difference between ROI and annualized ROI?
ROI is the total return over the whole holding period, whether that was six months or ten years. Annualized ROI converts it into a steady yearly rate so investments of different lengths can be compared fairly.
Can ROI be negative?
Yes. If you get back less than your total cost, the gain is negative and so is the ROI. A 50% loss needs a 100% gain to get back to even, which is why losses hurt more than the percentage suggests.
Does this ROI calculator include taxes?
It shows both versions. The headline figure is before tax, and the after-tax lines apply the rate you enter to any gain. Use your own long-term or short-term capital gains rate, and treat the result as an estimate.
How do I calculate ROI with several deposits?
Simple ROI breaks down when money goes in at different times, because it treats every dollar as if it was invested on day one. Use an internal rate of return or a net present value approach instead, which weighs each deposit by its date.