Advertisement Space

Stock Trading P&L Calculator

Calculate your profit or loss including brokerage fees and understand tax implications.

Stock name or trading symbol
Total shares bought and sold
Price at which you bought
Price at which you sold
Buy transaction fee (% of amount)
Sell transaction fee (% of amount)
Tax on gains (LTCG/STCG rate)
For long-term vs short-term classification

Trading Results

Gross Profit/Loss

$0

Total Brokerage Paid

$0

Taxes on Gains

$0

Net Profit/Loss

$0

Total Investment
Final Amount Received
Return %
Holding Type

Detailed Calculation Breakdown

Stock Name -
Quantity Traded -
Buy Price per Share -
Total Buy Cost -
Buy Brokerage Fee -
Total Investment (with fees) -
Sell Price per Share -
Total Sell Value -
Sell Brokerage Fee -
Amount Received (after fees) -
Gross Profit/Loss -
Holding Period -
Tax on Gains (if profit) -
NET PROFIT/LOSS (After All Costs) -

Understanding Stock Trading Profit/Loss

What is Profit/Loss?

Profit/Loss (P&L) is the difference between what you invest in a stock and what you receive when you sell it, after accounting for all costs (brokerage fees) and taxes. It's not just the difference between buy and sell price - fees and taxes matter a lot!

Key Formula:
Gross P&L = (Sell Price - Buy Price) × Quantity
Net P&L = Gross P&L - Brokerage Fees (Buy + Sell) - Taxes on Gains

Brokerage Fees Impact

  • Buy Fee (0.5%): Added to your total cost. If you buy $10,000 worth, you pay $50 extra.
  • Sell Fee (0.5%): Deducted from your proceeds. If you sell $11,000 worth, you receive $10,945 only.
  • Total Impact: Fees can be 1-2% of transaction value. On a 5% profit, 1% fees can cut your profit in half!
  • Example: Buy 100 shares @ $100 ($10,000 + $50 fee = $10,050 invested). Sell @ $105 ($10,500 - $52.50 fee = $10,447.50). Net gain = $397.50 = 3.95% (not 5%)

Capital Gains Tax

  • Long-Term Capital Gains (LTCG): Held > 1 year. Tax rate typically 10-20%.
  • Short-Term Capital Gains (STCG): Held < 1 year. Taxed as ordinary income, 20-50%.
  • Tax Only on Gains: You don't pay tax on entire sale amount, only on profit. If you sell at loss, no tax.
  • Tax Impact on Returns: A 20% gain becomes 16% net if taxed at 20%. On 50% gain with STCG, net could be 25-30%.

Real-World Example

  • Buy: 100 shares @ $100 = $10,000 + 0.5% fee = $10,050 invested
  • Sell: 100 shares @ $115 = $11,500 - 0.5% fee = $11,425 received
  • Gross Profit: $11,425 - $10,050 = $1,375 (13.7% gross gain)
  • Tax (20% LTCG): $1,375 × 20% = $275
  • Net Profit: $1,375 - $275 = $1,100 (11% net gain)

Tax-Smart Trading Tips

Holding Period Matters

  • Long-Term (1+ year): Usually lower tax rate (10-20% LTCG). If profit, wait 1-year mark if possible.
  • Short-Term (< 1 year): Taxed at higher ordinary income rate (20-50% STCG). Avoid if possible.
  • Strategy: If stock up 15% in 11 months and STCG is 30%, wait 1 month for LTCG at 20% (saves 10% tax).

Tax Loss Harvesting

  • Sell Losing Stocks: If you have $50K loss on one stock, offset against $50K gain on another. No tax on net profit.
  • Carry Forward: Losses can carry forward to offset future year gains.
  • Caution: Wash sale rules prevent buying same stock back immediately after loss.

Position Sizing for Taxes

  • Partial Profit Taking: Sell in batches to spread tax load across years.
  • Hold Winners: Let big winners compound. Taxed only when sold, not while held.
  • Different Tax Lots: Sell highest-cost-basis shares first to minimize gains.

Frequently Asked Questions

How are capital gains taxed?

Long-term (1+ year): Lower rate (10-20%). Short-term (< 1 year): Higher rate (20-50%). Only gains are taxed, not sale amount. Loss can offset gains.

Do I owe taxes if I made a loss?

No tax on losses. But you can use losses to offset gains from other stocks. Carry forward unused losses to future years.

Why do brokerage fees matter?

On a 5% gain with 1% fees, you lose 20% of your profit. On frequent trading, small fees compound. Minimize trades to reduce fee impact.

Should I hold to get LTCG benefit?

If near 1-year mark, wait for LTCG (10-20% vs STCG 20-50%). Can save 10-30% tax. If fundamentals weak, exit regardless of holding period.

What if stock drops after I buy?

You have a loss. Hold for LTCG or harvest loss to offset other gains. Only hold losers if fundamentals still strong. Cut bad investments.

How much profit do I actually keep?

Net profit = Gross profit - Brokerage - Taxes. Don't forget to calculate all costs. Many surprised net profit is much lower than gross.

Is it worth trading frequently?

Frequent trading = frequent fees & STCG taxes. Probably not worth it unless making 20%+ per trade to offset costs.

How to minimize taxes on trades?

Hold 1+ year (LTCG), harvest losses to offset gains, hold winners long-term, sell high-cost-basis shares first. Trade less frequently.

Trading Scenarios & Examples

Winning Trade Example

  • Buy 50 shares @ $100: $5,000 + 0.5% fee = $5,025 invested
  • Sell 50 shares @ $130: $6,500 - 0.5% fee = $6,467.50 received
  • Gross Profit: $1,442.50 (28.7%)
  • Tax (20% LTCG): $288.50
  • Net Profit: $1,154 (23% net return)

Losing Trade Example

  • Buy 100 shares @ $50: $5,000 + 0.5% fee = $5,025 invested
  • Sell 100 shares @ $42: $4,200 - 0.5% fee = $4,179 received
  • Gross Loss: -$846 (-16.8%)
  • Tax: $0 (no tax on loss)
  • Net Loss: -$846 (-16.8%)

Break-Even Analysis

To break even, account for all fees. With 0.5% buy + 0.5% sell = 1% total fees, you need at least 1% stock price increase just to break even. If holding longer for LTCG tax benefit, the fee impact is smaller percentage-wise, but still real.

Advertisement Space