FinanceCalculatorHub

Stock Profit Calculator

Calculate your profit or loss on any stock trade, including brokerage commissions.

Trade Details

$
$
$
$

Trade Results

Net Profit / Loss

After commissions: —

Total Invested

Total Proceeds

Gross Return

Net Return

What Is a Stock Profit Calculator?

A stock profit calculator computes the profit or loss from a stock trade based on buy price, sell price, number of shares, and any brokerage commissions. It shows both the gross gain (ignoring fees) and the net gain (after commissions), along with your percentage return on the capital invested. These figures help traders evaluate actual trade performance and compare opportunities on an apples-to-apples basis.

While most modern brokers like Fidelity, Schwab, and Robinhood offer commission-free stock trades, options trades, mutual funds, and trades through full-service brokers may still carry transaction costs. Our calculator lets you input both buy-side and sell-side commissions so your profit figure is accurate to the dollar.

How to Calculate Stock Profit

The core formula is straightforward:

  • Total cost = (buy price × shares) + buy commission
  • Total proceeds = (sell price × shares) − sell commission
  • Net profit / loss = total proceeds − total cost
  • Percentage return = (net profit / total cost) × 100

For example, buying 100 shares at $150 ($15,000 total) and selling at $195 ($19,500 total) generates a $4,500 gross profit. With a $5 commission on each side, the net profit is $4,490 and the return is 29.9% on the $15,005 invested. The bar chart above visualizes the cost vs. proceeds so you can see the gap at a glance.

Understanding Return on Investment for Stocks

The percentage return calculated here is a simple return, not an annualized return. A 30% return over two years is very different from a 30% return over two months. To compare investments that were held for different periods, you would use the Compound Annual Growth Rate (CAGR) formula. Our Investment Return Calculator handles this calculation if you need it.

Return on investment for stocks also doesn't account for dividends received during the holding period. If you held a dividend-paying stock, add total dividends received to the proceeds before calculating return for a complete picture of profitability.

Tax Implications of Stock Profits

Stock profits are subject to capital gains tax, and the rate depends on how long you held the shares:

  • Short-term capital gains (held under 1 year): taxed as ordinary income at your marginal rate (10%–37%)
  • Long-term capital gains (held 1+ year): taxed at 0%, 15%, or 20% depending on income

This distinction can dramatically affect your after-tax profit. A $4,500 gain taxed as short-term income in the 22% bracket nets only $3,510, while the same gain taxed at the 15% long-term rate nets $3,825 — a $315 difference just from holding longer. High-income investors may also owe the 3.8% Net Investment Income Tax (NIIT) on top of capital gains rates. Always consult a tax professional for personalized guidance.

Common Mistakes When Calculating Stock Profits

  • Ignoring wash-sale rules. If you sell a stock at a loss and repurchase the same or substantially identical security within 30 days, the IRS disallows the loss for tax purposes.
  • Forgetting dividend reinvestment adjustments. If you enrolled in a DRIP plan, your cost basis increases with each dividend reinvestment, potentially reducing taxable gain.
  • Not tracking cost basis across multiple purchases. If you bought shares at different prices over time (dollar-cost averaging), your average cost basis matters. Use FIFO, LIFO, or specific-shares accounting depending on your broker's settings.
  • Overlooking stock splits. A 2-for-1 stock split doubles your share count and halves the price — your total investment value doesn't change, but you must adjust per-share figures in any profit calculation.