Plan your future with our Retirement Budget Calculator

Stock Calculator

Enter shares, purchase price, sell price, broker commissions, and capital gains tax rate to calculate stock trade net profit, ROI, capital gains tax, break-even price, total cost basis, total commissions, trade cost and profit breakdown, and profit sensitivity by sell price.
Loading...
Luis GonzalezCreated by Luis GonzalezLast updated:

How to Use This Calculator

  1. 1

    Enter the Number of Shares

    Input the total quantity of shares you are buying and selling for this trade.

  2. 2

    Provide the Purchase Price

    Enter the price per share at which you initially bought the stock.

  3. 3

    Input the Sell Price

    Specify the price per share at which you sold or plan to sell the stock.

  4. 4

    Define Buy Commission

    Enter any broker commission paid when buying shares. Specify if it's a fixed dollar amount or a percentage rate.

  5. 5

    Define Sell Commission

    Input any broker commission paid when selling shares. Specify if it's a fixed dollar amount or a percentage rate.

  6. 6

    Set your CGT Rate (%)

    Enter your estimated Capital Gains Tax rate that will apply to any profit from this trade.

  7. 7

    Review your results

    Review net profit, ROI, capital gains tax, break-even price, total cost basis, total commissions, trade cost and profit breakdown, and profit sensitivity by sell price.

Example Calculation

An investor buys 15 shares of a stock at $500 each, incurring a $5 fixed buy commission. They later sell these shares at $580 each, with a $6 fixed sell commission, and face a 10% capital gains tax rate.

Number of Shares

15

Purchase Price ($)

500

Sell Price ($)

580

buyCommission

5

sellCommission

6

CGT Rate (%)

10

Buy Commission Type

$ Fixed

Sell Commission Type

$ Fixed

Results

$1,070.10 net profit; 14.26% ROI

Tips

Factor in All Costs

Always include all transaction costs, such as commissions, exchange fees, and regulatory fees, as these directly impact your break-even price and net profit. Even a $5 commission on a $500 trade represents a 1% cost.

Understand Capital Gains Tax

Distinguish between short-term (assets held < 1 year) and long-term (assets held > 1 year) capital gains, as they are taxed at different rates. Long-term rates are typically lower (0%, 15%, or 20% federally in 2025).

Break-Even is Your Minimum

Your break-even price is the absolute minimum sell price needed to cover all costs. Any price below this results in a loss. Use it as a critical benchmark for setting stop-loss orders or evaluating trade profitability.

Unpacking Your Stock Trade Profit and Loss

The Stock Calculator helps investors and traders analyze the full financial picture of a stock transaction. It goes beyond simple price differences by factoring in fixed or percentage broker commissions and capital gains tax, then reports net profit, return on investment (ROI), capital gains tax, break-even price, total cost basis, and total commissions.

The calculator also includes a trade cost and profit breakdown bar plus a sell-price sensitivity table. These outputs make it easier to see how different exit prices affect gross profit, tax, net profit, and ROI.

Tax Implications of Stock Trading in 2025

Understanding the tax implications of stock trading is crucial for maximizing your net profit. In the United States, capital gains are categorized as either short-term or long-term. Short-term capital gains, from assets held for one year or less, are taxed at your ordinary income tax rate, which can be as high as 37% for high earners in 2025. Long-term capital gains, from assets held for more than one year, typically benefit from lower preferential rates of 0%, 15%, or 20%, depending on your income level. It's also important to be aware of the "wash sale" rule, which prevents investors from immediately deducting a loss if they repurchase a substantially identical security within 30 days before or after the sale. Proper tax planning can significantly impact your overall investment returns.

The Core Calculations for Stock Trade Analysis

This Stock Calculator employs a series of logical steps to determine the profitability and tax implications of your stock trade. It meticulously accounts for all costs associated with both buying and selling, along with any applicable capital gains tax.

The primary calculations are:

Buy Cost = Number of Shares × Purchase Price
Sell Revenue = Number of Shares × Sell Price

Total Cost = Buy Cost + Buy Commission
Total Revenue = Sell Revenue - Sell Commission

Gross Profit = Total Revenue - Total Cost
Capital Gains Tax = Gross Profit > 0 ? Gross Profit × (CGT Rate / 100) : 0
Net Profit = Gross Profit - Capital Gains Tax

Number of Shares is the quantity traded, Purchase Price and Sell Price are the per-share values, Buy Commission and Sell Commission are broker fees, and CGT Rate is your capital gains tax percentage. Commissions can be entered as fixed dollar amounts or percentage rates.

💡 To understand the broader tax implications of selling any investment, including strategies for minimizing your tax burden, refer to our Tax Impact of Selling Investments Calculator.

Analyzing a Stock Sale: A Practical Example

Consider an investor who bought 15 shares of a growth stock at $500 per share, incurring a fixed $5 buy commission. After several months, they sell all 15 shares at $580 per share, paying a fixed $6 sell commission. Their estimated capital gains tax rate is 10%. They want to determine their net profit and ROI.

Here’s a step-by-step breakdown:

  1. Calculate Buy Cost: 15 shares × $500/share = $7,500
  2. Calculate Sell Revenue: 15 shares × $580/share = $8,700
  3. Determine Total Cost: $7,500 (Buy Cost) + $5 (Buy Commission) = $7,505
  4. Determine Total Revenue: $8,700 (Sell Revenue) - $6 (Sell Commission) = $8,694
  5. Calculate Gross Profit: $8,694 (Total Revenue) - $7,505 (Total Cost) = $1,189
  6. Calculate Capital Gains Tax: $1,189 (Gross Profit) × 10% (CGT Rate) = $118.90
  7. Calculate Net Profit: $1,189 (Gross Profit) - $118.90 (CGT) = $1,070.10
  8. Calculate Return on Investment (ROI): ($1,070.10 (Net Profit) / $7,505 (Total Cost)) × 100 = 14.26%

The investor realizes a net profit of $1,070.10, representing a 14.26% return on investment after all costs and taxes. The break-even price is $500.73 per share, total cost basis is $7,505.00, and total commissions are $11.00.

💡 To proactively plan your trades and set clear entry and exit points, including stop-loss levels, our Stock Buy/Sell Threshold Calculator can help you refine your strategy.

Brokerage Fees and Their Impact on Trading Profitability

Professional traders and astute investors meticulously track brokerage fees and commissions because these seemingly small costs can significantly erode overall profitability, especially for frequent traders or those executing smaller transactions. While many major brokers now offer commission-free stock trades, it's essential to recognize that other charges may still apply, such as regulatory fees, exchange fees, or commissions on options, mutual funds, and international trades. For example, even a modest $5 commission on a $500 stock purchase represents a 1% cost that the stock's price must overcome just to break even. Over many trades, these percentages compound, highlighting why understanding the full fee structure of your brokerage is crucial for accurately assessing the true net return on your investments.

The sensitivity table helps show this effect across a range of possible sell prices. A trade can look profitable before fees and taxes but become much less attractive after commissions and capital gains tax are included.

Tax Implications of Stock Trading in 2025

Understanding the tax implications of stock trading is crucial for maximizing your net profit. In the United States, capital gains are categorized as either short-term or long-term. Short-term capital gains, from assets held for one year or less, are taxed at your ordinary income tax rate, which can be as high as 37% for high earners in 2025. Long-term capital gains, from assets held for more than one year, typically benefit from lower preferential rates of 0%, 15%, or 20%, depending on your income level. It's also important to be aware of the "wash sale" rule, which prevents investors from immediately deducting a loss if they repurchase a substantially identical security within 30 days before or after the sale. Proper tax planning can significantly impact your overall investment returns.

Frequently Asked Questions

What is the difference between gross profit and net profit in stock trading?

Gross profit in stock trading is the profit calculated before accounting for all expenses, primarily capital gains taxes. It represents the difference between your total sale revenue (minus selling commissions) and your total cost basis (including buying commissions). Net profit, conversely, is the final profit remaining after all expenses, including capital gains tax, have been deducted from the gross profit, giving you the true take-home amount from your trade.

How do broker commissions affect stock trade profitability?

Broker commissions significantly affect stock trade profitability by increasing your total cost basis and reducing your total sale revenue. Even small fixed fees can erode margins, especially on smaller trades. For example, a $10 commission on a $1,000 trade represents a 1% cost that must be overcome by price appreciation just to break even. High-volume or small-value traders must pay close attention to commission structures.

What is the 'break-even price' in stock trading?

The break-even price is the specific stock price at which your total sale revenue exactly covers all your costs, including the original purchase price and all associated commissions and fees. At this price, you would neither make a profit nor incur a loss. Understanding your break-even price is essential for setting realistic profit targets and effective stop-loss orders, ensuring you know the minimum price required to avoid losing money on a trade.