Stock Profit Calculator
Calculate stock profit with our free Stock profit Calculator. Compare rates, see projections, and make informed financial decisions.
Reviewed for accuracy by Sahil, Senior Finance & Tax Editor
Stock Profit Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Profit = (Sell Price ร Shares - Commission) - (Buy Price ร Shares + Commission)
Worked example โ Total Profit: $4,580.02 | Return: 50.83% | Profit Per Share: $22.90
Formula
Profit = (Sell Price ร Shares - Commission) - (Buy Price ร Shares + Commission)
Where Sell Price = price per share at sale, Buy Price = price per share at purchase, Shares = number of shares traded, Commission = brokerage fee per trade. Percentage return is calculated as (Profit / Total Buy Cost) ร 100. Profit per share is Total Profit divided by number of shares.
Worked Examples
Example 1: Profitable Stock Trade
Problem:You bought 200 shares of a tech stock at $45 per share and sold at $68 per share. Commission is $9.99 per trade. What is the profit?
Solution:Total buy cost: 200 x $45 + $9.99 = $9,009.99 Total sell revenue: 200 x $68 - $9.99 = $13,590.01 Total profit: $13,590.01 - $9,009.99 = $4,580.02 Percentage return: ($4,580.02 / $9,009.99) x 100 = 50.83% Profit per share: $4,580.02 / 200 = $22.90
Result:Total Profit: $4,580.02 | Return: 50.83% | Profit Per Share: $22.90
Example 2: Stock Trade with a Loss
Problem:You bought 150 shares at $120 per share and had to sell at $95 per share. Commission is $9.99 per trade.
Solution:Total buy cost: 150 x $120 + $9.99 = $18,009.99 Total sell revenue: 150 x $95 - $9.99 = $14,240.01 Total loss: $14,240.01 - $18,009.99 = -$3,769.98 Percentage return: (-$3,769.98 / $18,009.99) x 100 = -20.93% Loss per share: -$3,769.98 / 150 = -$25.13
Result:Total Loss: -$3,769.98 | Return: -20.93% | Loss Per Share: -$25.13
Frequently Asked Questions
How do I calculate stock profit or loss?
Stock profit or loss is calculated by subtracting your total cost basis from your total sale proceeds. The cost basis includes the purchase price multiplied by the number of shares plus any commissions or fees paid when buying. Sale proceeds equal the sell price multiplied by the number of shares minus any selling commissions. The formula is: Profit = (Sell Price x Shares - Sell Commission) - (Buy Price x Shares + Buy Commission). For example, if you bought 100 shares at $50 with a $10 commission and sold at $75 with a $10 commission, your profit is ($7,500 - $10) - ($5,000 + $10) = $7,490 - $5,010 = $2,480. Remember to account for taxes on any gains.
What is the difference between realized and unrealized profit?
Realized profit (or loss) occurs when you actually sell a stock and lock in the gain or loss. This triggers a taxable event in most jurisdictions. Unrealized profit (also called a paper gain) is the theoretical profit you would make if you sold the stock at its current market price, but since you have not sold, no tax liability is created. For example, if you bought shares at $50 and they are currently trading at $75, your unrealized gain is $25 per share. If the price drops to $60 before you sell, your realized gain when you finally sell would only be $10 per share. This distinction is crucial for tax planning and portfolio management, as you have control over when to realize gains or losses.
How are stock trading commissions structured?
Stock trading commissions vary by broker and have changed dramatically over the years. Many major online brokers like Fidelity, Charles Schwab, and Robinhood now offer commission-free trading for US-listed stocks and ETFs. However, commissions still exist in several scenarios: options trades may charge $0.50-$0.65 per contract, international stocks may incur fees of $1-$50 per trade, broker-assisted trades typically cost $20-$50, and some specialized brokers charge per-share fees (e.g., $0.005 per share with minimums). Even with zero-commission brokers, there are hidden costs like payment for order flow, wider bid-ask spreads, and regulatory fees (typically fractions of a cent per share). Always check your broker's fee schedule for the complete cost picture.
How do taxes affect stock trading profits?
In the United States, stock trading profits are subject to capital gains taxes. Short-term capital gains (stocks held less than one year) are taxed as ordinary income, which can range from 10% to 37% depending on your tax bracket. Long-term capital gains (stocks held more than one year) benefit from preferential rates of 0%, 15%, or 20% depending on your taxable income. Additionally, high earners may pay an extra 3.8% Net Investment Income Tax. You can offset gains with losses through tax-loss harvesting โ if you have a $5,000 gain and a $3,000 loss, you only pay tax on $2,000. If your losses exceed gains, you can deduct up to $3,000 per year against ordinary income and carry forward remaining losses. Consider holding periods and tax implications before selling.
What is the annualized return and why does it matter?
Annualized return converts any holding period return into an equivalent annual rate, making it possible to compare investments held for different time periods on an equal basis. The formula is: Annualized Return = ((1 + Total Return)^(1/Years) - 1) x 100. For example, a 50% gain over 3 years annualizes to ((1.50)^(1/3) - 1) x 100 = 14.47% per year. This is more meaningful than the raw 50% figure because time matters enormously in investing. A 50% return in 6 months is exceptional (annualized 125%), while 50% over 10 years is mediocre (annualized 4.1%). When evaluating your trades, always compare annualized returns against benchmarks like the S&P 500's historical average of about 10% annually to assess whether your trading is actually adding value.
References
Background & Theory
History
Reviewed for accuracy by Sahil, Senior Finance & Tax Editor ยท Editorial policy
Related Calculators
๐งฎBond Yield to Maturity Calculator
Calculate bond yield to maturity with inputs, formulas, and instant results.
๐งฎInvestment Return Calculator
Calculate investment return with inputs, formulas, and instant results.
๐งฎBond Yield Calculator
Calculate current yield, yield to maturity, and yield to call for fixed income investments.
๐งฎROA Calculator
Calculate Return on Assets (ROA) to measure how efficiently a company uses its assets to generate profit. Free instant results.
๐งฎBond Duration Convexity Calculator
Calculate bond duration convexity with inputs, formulas, and instant results.
๐งฎBond Price Calculator
Calculate bond price with inputs, formulas, and instant results.
๐งฎPortfolio Rebalance Calculator (3-Asset)
Enter current and target allocations for stocks, bonds, and cash to see exact buy/sell amounts, drift, and turnover.
๐งฎInflation Adjusted Return Calculator
Calculate inflation adjusted return with inputs, formulas, and instant results.