Skip to main content

How to Calculate Return on Investment and Compare Your Results

What Return on Investment Means and Why It Matters

Return on investment, or ROI, is a single number that tells you how much profit you made (or lost) on money you put into something, expressed as a percentage. It answers the question: for every dollar I invested, how many cents did I gain or lose?

ROI lets you compare one investment against another on equal footing. A stock that gained $500 sounds better than a bond that gained $200 until you learn you invested $10,000 in the stock and $1,000 in the bond. The bond's ROI is 20 percent; the stock's is 5 percent. ROI strips away the dollar amounts and shows you the actual return rate.

You calculate ROI the same way whether you are measuring a single stock, a mutual fund, real estate, or your entire portfolio. The formula is simple, but the details matter—especially how you handle the time period and what counts as a gain or loss.

Key Takeaways

  • ROI is calculated by dividing your net profit (or loss) by the amount you invested, then multiplying by 100 to get a percentage.
  • Net profit means the current value of your investment minus what you paid for it, minus any fees or costs you incurred.
  • Time matters: a 10 percent ROI over one year is much better than a 10 percent ROI over five years, so always state the time period.
  • ROI does not account for when you put money in or took it out, so annualized return or money-weighted return may give you a clearer picture for longer holdings.
  • Comparing ROI across different investment types requires knowing whether each figure includes dividends, interest, and fees.

The Basic ROI Formula and How to Use It

The formula is: ROI = (Ending Value − Beginning Value − Costs) ÷ Beginning Value × 100

Say you bought 100 shares of a stock at $50 per share. Your beginning value is $5,000. Five years later, those shares are worth $75 each, so your ending value is $7,500. You paid $50 in trading commissions when you bought and $50 when you sold, for total costs of $100. Your net profit is $7,500 − $5,000 − $100 = $2,400. Divide that by your beginning value: $2,400 ÷ $5,000 = 0.48. Multiply by 100: 48 percent ROI over five years.

The costs matter. If you ignore the $100 in commissions, you get 50 percent ROI instead of 48 percent. Over many investments, those small differences add up. Costs include trading commissions, advisory fees, account maintenance fees, and any taxes you paid during the holding period (though tax treatment varies by account type and location).

One common mistake: forgetting to include dividends or interest. If your stock paid $200 in dividends over those five years, your ending value is not $7,500—it is $7,500 plus the $200 you received, for $7,700. Your net profit becomes $2,600, and your ROI becomes 52 percent. Always check whether the value you are using already includes reinvested dividends or whether you need to add them separately.

Why Time Period Changes Everything

A 20 percent ROI sounds identical whether it happened over one year or ten years, but it is not. Money that grows 20 percent in one year is far more powerful than money that grows 20 percent over a decade, because you can reinvest the gains sooner.

When you compare investments, always state the time period. "My stock returned 20 percent" is incomplete. "My stock returned 20 percent over three years" tells a real story. If you want to compare a three-year return to a five-year return, you need to convert both to an annual rate.

Annualized return is ROI converted to an average yearly rate. The formula is more complex than simple ROI because it accounts for compounding, but most investment platforms calculate it for you. If your investment grew from $10,000 to $13,310 over three years, your total ROI is 33.1 percent, but your annualized return is about 10 percent per year. That matters when you are deciding whether to hold or sell.

Accounting for Money You Added or Withdrew

Simple ROI works cleanly when you invest a lump sum and do nothing else. But most people add money over time—monthly contributions to a 401(k), quarterly additions to a brokerage account, or a withdrawal when they need cash.

When you add or withdraw money during the holding period, simple ROI becomes misleading. Say you invested $10,000 in a fund on January 1. On July 1, you added $5,000 more. On December 31, your account was worth $16,500. Simple ROI would be ($16,500 − $15,000) ÷ $15,000 = 10 percent. But that ignores the timing: the first $10,000 was invested for the full year, while the second $5,000 was invested for only six months. The actual performance was better than 10 percent.

Money-weighted return (also called internal rate of return) accounts for the timing and size of each deposit and withdrawal. It is the rate of return that makes the math work out when you factor in exactly when each dollar went in or came out. Most investment platforms and tax software calculate this for you. If you are tracking performance yourself, this is where a spreadsheet or investment calculator becomes essential.

Comparing ROI Across Different Investment Types

A stock's ROI and a bond's ROI are not automatically comparable, because they may or may not include the same things. One stock figure might include reinvested dividends; another might not. One bond figure might include interest; another might show only price appreciation.

Before you compare, ask: Does this number include all income (dividends, interest, distributions)? Does it account for fees? Does it include taxes? The answers determine whether you are really comparing apples to apples.

A mutual fund's ROI should include reinvested dividends and distributions, because that is how the fund reports performance. A real estate investment should include rental income, not just property appreciation. A savings account's ROI is simply the interest rate, because there are no other components. When you pull numbers from different sources, verify that each one is calculated the same way, or adjust them so they are.

Common Mistakes That Skew Your Results

Forgetting to include fees is the most common error. A brokerage account that returned 8 percent but charged 0.5 percent in annual fees actually returned 7.5 percent. Over decades, that 0.5 percent compounds into a significant difference. Always subtract fees from your ending value before you calculate ROI.

Ignoring taxes is another major one, especially in taxable accounts. If you sold an investment at a gain and owed capital gains tax, that tax reduces your actual return. Some investors calculate ROI before taxes (the "pre-tax return") and after taxes (the "after-tax return") separately, so they can see both numbers. In tax-advantaged accounts like 401(k)s and IRAs, you typically do not owe tax until withdrawal, so you can ignore taxes during the holding period.

Mixing time periods without converting them is a third trap. Comparing a one-year return to a three-year return using simple ROI will mislead you. Convert both to annualized returns, or state clearly that you are comparing different time spans.

Survivorship bias affects people who track multiple investments. If you calculate ROI only on investments that are still open, you ignore the ones that lost money and you closed. Your average ROI will look better than it actually was. Track all investments, including the losers, to get an honest picture of your performance.

Tools and Methods for Tracking ROI Over Time

Spreadsheets are the simplest tool. Create columns for beginning value, ending value, costs, time period, and ROI. Plug in the formula, and you can track dozens of investments side by side. Most people use Excel or Google Sheets for this, and templates are widely available.

Investment platforms—brokerages, robo-advisors, and portfolio trackers—calculate ROI automatically. Fidelity, Vanguard, Charles Schwab, and most other major brokers show your ROI on each holding and on your entire account. They typically offer both simple ROI and money-weighted return, and many let you filter by time period. The downside is that you see only investments held at that platform; if you have accounts at multiple brokers, you need to combine the numbers yourself.

Tax software like TurboTax and H&R Block calculates ROI on investments you sold during the year, because you need that number to report capital gains. This is useful for tracking realized gains, but it does not help you monitor holdings you still own.

Financial advisors can calculate ROI for you, but you are paying for that service. If you have a simple portfolio—a few index funds in a 401(k) and a brokerage account—your broker's built-in tools are usually enough.

Frequently Asked Questions

What is the difference between ROI and return on equity?

ROI measures your personal investment return—how much profit you made on money you invested. Return on equity (ROE) is a company metric that measures how efficiently a business uses shareholder money to generate profit. They use similar math but measure different things. ROI is what you care about as an investor; ROE is what you look at when deciding whether to buy a company's stock.

Should I include taxes when I calculate ROI?

It depends on the account type. In a 401(k) or traditional IRA, you do not owe tax until you withdraw, so ignore taxes during the holding period. In a taxable brokerage account, capital gains tax reduces your actual return, so many investors calculate both pre-tax and after-tax ROI to see the full picture. Your tax rate depends on how long you held the investment and your income level, so the after-tax number is harder to predict in advance.

Can ROI be negative?

Yes. If your investment lost value, your ROI is negative. If you invested $5,000 and it is now worth $4,000, your ROI is −20 percent. Negative ROI happens in down markets, with poor investment choices, or when fees and losses outpace any gains. Tracking negative ROI is just as important as tracking positive ROI, because it shows you which investments are not working.

What is a good ROI?

It depends on the investment type, the time period, and current market conditions. Historically, the stock market has returned about 10 percent per year on average over long periods, but individual years vary widely. Bonds typically return less. Savings accounts return whatever the interest rate is. Compare your ROI to a relevant benchmark—the S&P 500 for stocks, the Bloomberg Aggregate Bond Index for bonds—to see whether you are doing better or worse than the market average.

How do I calculate ROI if I made multiple deposits?

Use money-weighted return instead of simple ROI. Most investment platforms calculate this automatically. If you are doing it by hand, you need a spreadsheet or financial calculator that can solve for internal rate of return. The formula is complex because it weights each deposit by how long it was invested, but the concept is simple: it shows you the actual return rate accounting for when each dollar went in.