Calculate your net profit from stock trades after accounting for buy and sell commissions and capital gains tax. Enter your trade details below for an instant breakdown.

Stock Profit Calculator

How Stock Profit Is Calculated

Your net profit from a stock trade depends on more than just the price difference between buying and selling. Brokerage commissions reduce your proceeds on both ends of the transaction, and capital gains taxes take a percentage of any profit above your cost basis.

This calculator handles the complete profit equation: total cost of acquisition (shares × buy price + commission), total proceeds from sale (shares × sell price – commission), gross profit, tax liability on gains, and your final net profit after all deductions.

Understanding Capital Gains Tax

Capital gains tax rates in the United States depend on how long you held the investment. Short-term gains on assets held less than one year are taxed as ordinary income, with rates ranging from 10% to 37% depending on your tax bracket. Long-term gains on assets held longer than one year receive preferential rates of 0%, 15%, or 20%.

Most investors fall into the 15% long-term capital gains bracket. Single filers earning between $47,026 and $518,900 in 2024 pay 15% on long-term gains. High earners above those thresholds pay 20%, plus a potential 3.8% Net Investment Income Tax.

How to Use This Calculator

Number of Shares – Total shares bought and sold.

Buy Price Per Share – The price you paid when purchasing the stock.

Sell Price Per Share – The price at which you sold.

Buy/Sell Commission – Many brokers now offer zero-commission trades. If your broker charges fees, enter them here. Enter 0 if none.

Capital Gains Tax Rate – Enter your applicable tax rate. Use 15% for long-term gains (held over 1 year) for most investors, or your marginal income tax rate for short-term trades.

Practical Examples

Long-Term Investment

You bought 100 shares of an ETF at $150 per share two years ago and sell at $210 today. With zero commissions and a 15% long-term capital gains rate, your net profit after tax is $5,100 on a $15,000 investment.

Active Trading Scenario

A day trader buys 500 shares at $45 and sells at $48.50, paying $4.95 commission each way. At a 32% short-term tax rate, the $1,750 gross profit drops to $1,181.27 after commissions and taxes. Those seemingly small costs consumed over 32% of the gain.

Tips for Maximizing After-Tax Stock Profits

Hold investments for at least one year when possible. The difference between short-term and long-term capital gains rates can be 10-20 percentage points, which directly impacts your bottom line.

Use tax-loss harvesting to offset gains. Selling losing positions to realize capital losses can offset your capital gains dollar-for-dollar, reducing or eliminating your tax bill.

Consider tax-advantaged accounts. Profits inside a Roth IRA grow completely tax-free. Traditional IRA and 401(k) profits are tax-deferred until withdrawal.