Advertisement

📊 Profit & Loss Calculator

Calculate net profit or loss on any trade — stocks, crypto, forex, or options — including commissions and capital gains tax.

P&L Formula

Buy Total = Qty × Buy Price + Buy Commission
Sell Total = Qty × Sell Price − Sell Commission
Gross P&L = Sell Total − Buy Total
Tax = max(0, Gross P&L) × Tax Rate
Net P&L = Gross P&L − Tax
Break-even = (Buy Total + Sell Commission) ÷ Qty

Example

Buy 100 shares at $50 ($5 commission), sell at $65 ($5 commission), 15% capital gains tax.

Buy Total = 100×$50 + $5 = $5,005
Sell Total = 100×$65 − $5 = $6,495
Gross P&L = $6,495 − $5,005 = $1,490
Tax = $1,490 × 15% = $223.50
Net P&L = $1,266.50 (25.3% ROI)

Frequently Asked Questions

Gross profit = (Sell Price × Qty) − (Buy Price × Qty) − all commissions. After applying capital gains tax, you get your net profit.

Break-even is the sell price at which you recover your entire cost (buy price + all commissions). Above break-even you are profitable; below you are at a loss.

Capital gains tax directly reduces your net return. In the US, short-term gains (held <1 year) are taxed as ordinary income (up to 37%). Long-term gains are taxed at 0%, 15%, or 20% depending on income.

Assets held longer than one year qualify for long-term capital gains rates, which are significantly lower in most countries. Holding for the long term can reduce your tax burden considerably.

Related Calculators