CalcPad

Stock Profit Calculator

Calculate your profit or loss from buying and selling stocks, including commissions and annualized return.

$

The price you paid per share.

$

The price you sold (or plan to sell) per share.

How many shares you bought.

$

Commission or fee paid when buying (many brokers charge $0).

$

Commission or fee paid when selling.

years

How long you held (or plan to hold) the stock.

How to Calculate Stock Profit

Stock profit is calculated by subtracting your total cost (purchase price times shares plus commissions) from your total proceeds (sale price times shares minus commissions). The formula is:

Profit = (Sell Price × Shares - Sell Commission) - (Buy Price × Shares + Buy Commission)

For example, if you bought 100 shares at $50 and sold them at $75, your gross profit would be $2,500. After accounting for any commissions, you get your net profit.

Return on Investment (ROI) expresses this profit as a percentage of your initial cost, making it easy to compare different trades regardless of size. Annualized return adjusts the ROI to reflect a yearly rate, which is useful for comparing investments held for different time periods.

Understanding Annualized Return

Annualized return converts your total return into an equivalent yearly rate, allowing fair comparison between investments held for different durations. A 50% gain over 5 years is very different from a 50% gain over 6 months.

The formula is: Annualized Return = (Ending Value / Beginning Value)^(1/Years) - 1

For context, the S&P 500 has delivered roughly 10% annualized returns historically (before inflation). If your annualized return consistently exceeds this benchmark, your stock picks are outperforming the broader market.

The Impact of Trading Commissions

Most major online brokers now offer commission-free trading for stocks and ETFs, including Fidelity, Charles Schwab, and Robinhood. However, commissions still apply in several situations:

  • Options trading: Typically $0.50-$0.65 per contract.
  • OTC stocks: Some brokers charge fees for over-the-counter stocks.
  • International stocks: Foreign exchange and settlement fees may apply.
  • Full-service brokers: Traditional brokers may still charge per-trade fees.

Even small commissions add up over time, especially for frequent traders. A $5 round-trip commission on a $500 trade is a 1% drag on returns before the stock even moves.

Frequently Asked Questions

How do I calculate profit on a stock I haven't sold yet?
Use the current market price as the sell price. This gives you your unrealized gain or loss. Keep in mind that unrealized gains can change until you actually sell, and you won't owe taxes until the position is closed.
What is the difference between ROI and annualized return?
ROI is the total percentage gain or loss on your investment regardless of how long you held it. Annualized return converts that total return into a yearly equivalent rate. For example, a 50% ROI over 5 years equals about 8.4% annualized return, while a 50% ROI over 1 year is 50% annualized.
Should I include dividends in my stock profit calculation?
This calculator focuses on price-based gains. For a complete picture of your total return, you should also account for any dividends received. Use our Dividend Calculator to estimate dividend income separately, then add it to your price-based profit for total return.
How do stock splits affect profit calculations?
Stock splits change the number of shares and the price per share but not the total value of your investment. If you bought 100 shares at $200 and a 2-for-1 split occurs, you now have 200 shares at $100 each. Use your adjusted share count and cost basis when calculating profit.

Related Calculators