Stock Gain Calculator: Stock Increase, Profit and ROI

Use this free stock gain calculator to calculate stock profit, stock loss, and percentage return in seconds. It also works as a stock increase calculator: enter your buy price, sell price, number of shares, and fees to see gross gain, net profit, ROI, and annualized return when you add dates.

📈 Stock Gain Calculator
The price you paid for each share.
The price you sold (or plan to sell) each share.
How many shares you bought.
Optional. Buy + sell commissions combined.
Please fill in buy price, sell price, and number of shares.
Your Results
Net Profit / Loss
Total Cost
Total Revenue
Gross Gain / Loss
Total Fees
📅
Annualized Return (CAGR)

Ready to put your gains to work? Trade crypto with no KYC required on Bitunix.

How to Use the Stock Gain Calculator

Using this stock gain calculator is simple. Enter four things: the price you paid per share, the price you sold at, how many shares you had, and any fees you paid. Click Calculate My Gain and you will see your profit or loss right away.

Want to know your annualized return? Toggle on the date option and enter your buy and sell dates. The calculator will show your CAGR (Compound Annual Growth Rate). That tells you how fast your investment grew each year.

Stock Increase Calculator Examples

A stock increase calculator answers two questions at once: how many dollars did the stock move, and what percentage did you gain or lose? The dollar gain helps you see total profit. The percentage gain helps you compare one trade with another.

Example: you buy 50 shares at $40 and sell them at $52. The stock increased by $12 per share. Your gross stock gain is $600 because $12 times 50 shares equals $600. Your percentage gain is 30% before fees because $12 divided by $40 equals 0.30.

Fees change the final answer. If you paid $5 to buy and $5 to sell, your net profit is $590. That is why the calculator includes a fees field instead of only showing the price difference.

  • Buy price: what you paid for one share.
  • Sell price: what you received for one share.
  • Shares: how many shares you bought and sold.
  • Fees: commissions, trading costs, or platform fees from the full round trip.
  • Percent gain: net profit divided by your starting cost.

What Each Number Means

Here is a quick breakdown of each result the calculator shows you.

Total Cost

This is the total money you put in. It equals your buy price times the number of shares. For example, if you bought 100 shares at $50 each, your total cost is $5,000.

Total Revenue

This is the total money you got back. It equals your sell price times the number of shares. If you sold those 100 shares at $75, your total revenue is $7,500.

Gross Gain or Loss

Gross gain is your profit before fees. It is simply total revenue minus total cost. In the example above, that is $7,500 minus $5,000, which equals $2,500.

Net Profit After Fees

Net profit is what you actually keep. It takes your gross gain and subtracts any commissions or trading fees. If your broker charged $10 total, your net profit would be $2,490.

Return on Investment (ROI)

ROI shows your gain as a percentage of what you invested. A 50% ROI means you made 50 cents for every dollar you put in. It is the fastest way to compare one trade to another.

Annualized Return (CAGR)

CAGR stands for Compound Annual Growth Rate. It shows how much your investment grew per year on average. A 50% total return over 5 years is very different from a 50% return over 6 months. CAGR lets you compare them fairly.

According to Investopedia, CAGR is one of the most useful ways to measure investment growth because it smooths out the ups and downs over time.

Why Fees Matter More Than You Think

Fees seem small. But they add up fast. A $10 commission on a $500 trade is 2% of your money gone before you even start. On a $50,000 trade, that same $10 is almost nothing.

Many brokers today offer zero-commission trades. But some charge fees for options, mutual funds, or certain ETFs. Always check before you buy. Small fees on repeated trades can eat thousands of dollars over time.

This calculator lets you add your total fees so you see your real profit, not just the gross number.

How to Calculate Stock Gain By Hand

You do not need the stock gain calculator to do this math. Here is the formula:

Gross Gain = (Sell Price – Buy Price) x Number of Shares

Net Profit = Gross Gain – Total Fees

ROI % = (Net Profit / Total Cost) x 100

Example: You buy 200 shares at $30. You sell them at $45. You paid $15 in fees.

  • Total Cost: 200 x $30 = $6,000
  • Total Revenue: 200 x $45 = $9,000
  • Gross Gain: $9,000 – $6,000 = $3,000
  • Net Profit: $3,000 – $15 = $2,985
  • ROI: ($2,985 / $6,000) x 100 = 49.75%

Easy enough to do on paper. But when you are making many trades, a calculator saves time and prevents mistakes.

What Is a Good Return on a Stock?

The S&P 500 has returned about 10% per year on average over the long term. That is the standard many investors use as a benchmark.

If your stock returned 10% or more per year, you beat the average. If it returned less, a simple index fund might have done better for you.

But short-term returns can be wild. Stocks can gain 50% in a month or lose 40% in a week. That is why most experts suggest holding for the long term and not chasing quick wins.

Tax on Stock Gains

This calculator shows your pre-tax profit. In the US, stock gains are taxed. The rate depends on how long you held the stock.

  • Short-term gains: Held one year or less. Taxed as ordinary income (10% to 37%).
  • Long-term gains: Held more than 1 year. Taxed at 0%, 15%, or 20% depending on your income.

For the IRS overview of capital gains and losses, see IRS Topic 409 on capital gains and losses.

Holding a stock for more than one year can make a big difference in your tax bill. A $10,000 profit taxed at 37% leaves you $6,300. That same profit taxed at 15% leaves you $8,500. That is $2,200 more just by waiting a few extra months.

Always talk to a tax professional about your specific situation. This calculator is for planning purposes only.

Stock Gains, Taxes, and Losses

The calculator shows pre-tax profit. Your after-tax result depends on your account type, holding period, income, and whether the gain is short term or long term. For the tax side, read our guide to brokerage account taxes.

If the calculator shows a loss, that number may still matter. In a taxable account, realized losses can sometimes offset realized gains. Our tax-loss harvesting guide explains the basic rules and wash-sale issues to watch before selling just for the deduction.

When Should You Sell a Stock?

Knowing your stock gain is only part of the picture. Knowing when to sell is just as important. Here are a few common reasons investors sell.

You Hit Your Target Price

Many investors set a target price before they buy. When the stock reaches that price, they sell. This removes emotion from the decision. You made a plan and you stuck to it.

The Company Changed

Sometimes the reason you bought a stock no longer applies. A key executive left. The company changed its business model. A competitor arrived. If the story changed, it is okay to exit.

You Need the Money

Life happens. If you need cash for something important, selling a stock is fine. Use this calculator to see exactly what you will walk away with after fees.

Rebalancing Your Portfolio

If one stock grew a lot, it might now be too large a part of your portfolio. Selling some shares to rebalance is a smart, low-drama reason to take gains.

More Tools to Help You Invest Smarter

Once you know your stock gain, you might want to plan your next move. These free calculators can help:

  • DCA Calculator: See how investing a fixed amount every month can grow your portfolio over time, no matter what the market does.
  • Share Profit Calculator: Calculate profit on any stock position with more detailed breakdowns including partial sales.
  • Brokerage Account Taxes: Learn how stock gains, dividends, and taxable account activity may be taxed.
  • Tax-Loss Harvesting: See how realized losses may offset capital gains in a taxable account.

Frequently Asked Questions

Subtract your buy price from your sell price, then multiply by the number of shares. That gives you gross gain. Subtract fees to get net profit.

A stock increase calculator shows how much a stock rose in dollars and as a percentage. It can also show total profit once you add the number of shares and fees.

Gross gain is profit before fees. Net profit is what remains after commissions, platform fees, and other trading costs.

Divide net profit by your starting cost, then multiply by 100. If you invested $4,000 and made $800 after fees, your percent gain is 20%.

No. The calculator shows pre-tax profit. Stock gains in a taxable account may be taxed as short-term or long-term capital gains.

Yes. The same buy price, sell price, quantity, and fee math works for ETFs, mutual funds, crypto, and other assets.

If your sell price is lower than your buy price, the calculator shows a negative result. In a taxable account, losses can sometimes offset gains through tax-loss harvesting.