🧮 Business Tool

Stock Profit Calculator

Calculate your exact profit or loss on any stock trade, including brokerage fees.

📈

Stock Profit Calculator

Enter your trade details

$
$
$
Net Profit
$1,490.00
Total Cost (buy)$5,000.00
Total Proceeds (sell)$6,500.00
Return %29.80%
Net Profit = (Sell Price − Buy Price) × Shares − Fees. This does not account for capital gains tax, which varies by jurisdiction and holding period.

How Stock Profit Is Calculated

Your real profit on a stock trade is more than the price difference. It's the total you received when selling, minus the total you paid when buying, minus any fees or commissions charged on either side of the trade.

Total Cost = Buy Price × Shares
Total Proceeds = Sell Price × Shares
Net Profit = Total Proceeds − Total Cost − Fees
Return % = Net Profit ÷ Total Cost × 100

Break-even sell price = Buy Price + (Fees ÷ Shares).

Worked Example: A Profitable Trade

You buy 100 shares at $50, sell them at $65, and pay $10 in total fees.

  1. Total cost = $50 × 100 = $5,000
  2. Total proceeds = $65 × 100 = $6,500
  3. Net profit = $6,500 − $5,000 − $10 = $1,490
  4. Return = $1,490 ÷ $5,000 = 29.8%

Worked Example: A Losing Trade

Same purchase, but you sell at $45 instead. Proceeds = $4,500, so net result = $4,500 − $5,000 − $10 = −$510, a return of −10.2%. Fees always add to a loss; they never soften it.

To break even on this trade, you'd need to sell at $50 + ($10 ÷ 100) = $50.10 per share.

Why Fees Matter More Than You Think

Fixed fees hurt small trades far more than large ones. Here's the same $10 in total fees at different trade sizes, each with a 5% price gain:

Amount investedGain before fees (5%)Net after $10 feesReturn after fees
$200$10.00$0.000.0%
$1,000$50.00$40.004.0%
$5,000$250.00$240.004.8%
$20,000$1,000.00$990.004.95%

Many brokers now advertise commission-free stock trades, but other costs can still apply: small regulatory fees on sales, currency conversion fees on foreign shares, and the bid-ask spread. Enter whatever your broker's trade confirmation shows in the fees field. The same logic applies to any sale — see how payment fees eat into small transactions in our guide to reducing payment fees.

Return % vs. Dollar Profit

Return percentage lets you compare trades of different sizes fairly, while dollar profit tells you the actual cash impact. A 50% return on $200 is less money than a 5% return on $10,000. Neither accounts for time: a 10% gain over one month is far better than 10% over three years. To compare holding periods, use annualized return: (1 + Return)365 ÷ Days Held − 1.

Multiple Purchases and Average Cost

If you bought the same stock several times at different prices, use your average cost per share as the buy price. Average cost = total amount paid for all shares ÷ total shares. For example, 50 shares at $40 plus 50 shares at $60 is $5,000 for 100 shares, an average of $50.

Taxes and What This Calculator Leaves Out

Results are before tax. In the US, gains on shares held one year or less are short-term and taxed at ordinary income rates, while gains on shares held longer than a year are long-term and usually taxed at lower rates. Other countries have different rules. The calculator also excludes dividends received while you held the shares. For exact tax obligations, consult a tax professional.

Frequently Asked Questions

How do I calculate profit on a stock?
Multiply the sell price by the number of shares, subtract the buy price times the number of shares, then subtract all fees. For 100 shares bought at $50 and sold at $65 with $10 in fees, profit is $1,490.
How do I calculate the return percentage on a stock trade?
Divide net profit by the total amount you paid for the shares, then multiply by 100. A $1,490 profit on a $5,000 purchase is a 29.8% return.
What price do I need to sell at to break even?
Add your total fees divided by the number of shares to your buy price. With a $50 buy price, 100 shares, and $10 in fees, the break-even sell price is $50.10.
Should I include fees if my broker is commission-free?
Yes, if any apply. Commission-free brokers may still pass on small regulatory fees on sales, and trades in foreign shares can include currency conversion costs. Use the totals from your trade confirmation.
Does this calculator include capital gains tax?
No. Results are before tax. Tax depends on your country, holding period, and income. In the US, shares held more than one year usually qualify for lower long-term capital gains rates.
How do I handle shares bought at different prices?
Use your average cost per share: divide the total amount paid for all shares by the total number of shares, and enter that as the buy price.

Related Calculators and Guides