💹 Stock Profit Calculator
Calculate trading profit/loss with commissions, fees, and capital gains taxes
📊 Trade Details
📊 Your Results
Enter your trade details and click Calculate to see your profit/loss analysis.
📚 Understanding Stock Profit Calculation
How It Works
This calculator helps you determine your actual profit or loss from stock trades by accounting for all costs including commissions, fees, and capital gains taxes. It provides a complete picture of your trading performance.
Key Formulas
- Total Cost Basis: (Number of Shares × Buy Price) + Buy Commission
- Gross Proceeds: (Number of Shares × Sell Price) - Sell Commission
- Gross Profit: Gross Proceeds - Total Cost Basis
- Net Profit After Tax: Gross Profit - (Gross Profit × Tax Rate)
- ROI: (Net Profit / Total Cost Basis) × 100
- Annualized Return: ((1 + Total Return)^(12/Months) - 1) × 100
- Break-even Price: (Total Cost Basis + Sell Commission) / Number of Shares
Capital Gains Taxes
Short-term Capital Gains (< 1 year):
- Taxed as ordinary income at your marginal tax rate
- Rates range from 10% to 37% depending on income bracket
- No preferential treatment - same as salary or wages
Long-term Capital Gains (> 1 year):
- 0% for single filers with income up to $44,625 (2024)
- 15% for single filers with income $44,626 to $492,300
- 20% for single filers with income over $492,300
- Married filing jointly thresholds are roughly double
- Additional 3.8% Net Investment Income Tax for high earners
Wash Sale Rule
The IRS wash sale rule prohibits claiming a tax deduction for a security sold at a loss if you purchase a "substantially identical" security within 30 days before or after the sale.
- Applies to losses only, not gains
- 30-day window before and after the sale (61 days total)
- Loss is added to cost basis of replacement security
- Holding period carries over to new position
- Applies to stocks, options, and similar securities
Trading Costs to Consider
- Commissions: Most brokers now offer $0 commissions on stocks
- Bid-Ask Spread: Difference between buy and sell prices
- SEC Fees: Small fee on stock sales (about $0.0000278 per dollar)
- FINRA TAF: Trading Activity Fee on sales (up to $0.000166 per share)
- Exchange Fees: Vary by exchange and order type
- Margin Interest: If trading on margin
Trading Tips
- Always factor in all commissions and fees when calculating profitability
- Consider holding stocks for over 1 year to benefit from lower long-term capital gains rates
- Keep detailed records of all trades for tax purposes
- Use stop-loss orders to limit potential losses
- Be aware of the wash sale rule when selling losing positions
- Consider tax-loss harvesting to offset gains with losses
- Track your cost basis accurately for each position
- Understand the difference between FIFO, LIFO, and specific identification
Break-Even Analysis
The break-even price is the minimum sell price needed to recover your total investment including all fees. This is crucial for setting realistic profit targets and stop-loss levels.
- Break-even = (Cost Basis + Total Fees) / Number of Shares
- Must exceed break-even to make any profit
- Higher fees increase break-even price
- Consider break-even when setting limit orders
Tax Reporting
- Report capital gains/losses on Schedule D (Form 1040)
- Brokers provide Form 1099-B with transaction details
- Short-term and long-term gains reported separately
- Net capital losses can offset up to $3,000 of ordinary income
- Excess losses carry forward to future years
- Wash sales are reported on Form 8949
Frequently Asked Questions
How do I calculate my stock profit?
Stock profit = (Sell Price - Buy Price) × Number of Shares - Total Commissions - Taxes. For example, if you buy 100 shares at $50 and sell at $60, your gross profit is $1,000. Subtract commissions and taxes to get net profit.
What's the difference between gross and net profit?
Gross profit is your gain before taxes and fees. Net profit is what you actually keep after paying all commissions, fees, and capital gains taxes. Net profit is the true measure of your trading success.
Should I hold stocks for over a year?
Holding stocks for over 1 year qualifies for long-term capital gains rates (0%, 15%, or 20%), which are significantly lower than short-term rates (10-37%). For most investors, this tax savings makes long-term holding advantageous, but consider your overall investment strategy and market conditions.
What is the break-even price?
The break-even price is the minimum sell price needed to recover your total investment including all fees. If you bought 100 shares at $50 with $10 commission, your break-even is about $50.10 per share. You must sell above this price to make any profit.
Do I still pay commissions when trading?
Most major brokers (Robinhood, Fidelity, Schwab, E*TRADE) now offer $0 commission stock trading. However, you still pay the bid-ask spread, SEC fees, and FINRA fees. Some brokers charge for options, mutual funds, or broker-assisted trades.
What is the wash sale rule?
The wash sale rule prevents you from claiming a tax loss if you buy the same or substantially identical security within 30 days before or after selling at a loss. The loss isn't permanently lost - it's added to the cost basis of the replacement shares, deferring the tax benefit.
How is annualized return calculated?
Annualized return accounts for compounding over time using the formula: ((1 + Total Return)^(12/Months)) - 1. For example, a 20% return over 6 months equals about 44% annualized. This helps compare investments held for different periods.