How to Calculate Profit From Stocks
Calculating profit from stocks starts with the simple idea of subtracting what you paid from what you received, but fees and taxes shape the final number. The core formula is: Profit = (Selling Price − Buying Price) × Number of Shares − Transaction Costs. Once you apply this, you can compare actual gains against the headline price movement and judge whether a trade was truly worthwhile.
More from this site
Keep reading the latest coverage
The Basic Calculation
Begin with the gross proceeds from the sale and subtract the original cost basis, which is what you paid for the shares plus any commission or fee paid at purchase. The result is your gross profit. Then subtract the selling commission and any other exit costs to arrive at net profit. For example, if you buy 100 shares at $50, pay a $5 commission, sell at $65, and pay another $5 commission, your gross profit is $1,500 and your net profit is $1,490.
Including Taxes and Holding Period
The holding period matters because it determines whether gains qualify as short-term or long-term. Short-term profits, from holdings of one year or less, are typically taxed as ordinary income, while long-term profits often receive a lower capital gains rate. You must also account for wash-sale rules and the impact of dividends, which can be taxed differently depending on whether they are qualified or ordinary. Keeping records of cost basis across multiple lots prevents overpaying taxes at filing time.
Common Mistakes That Distort Profit
- Forgetting to subtract commissions and platform fees from both sides of the trade.
- Using the headline share price instead of the actual proceeds after slippage or partial fills.
- Ignoring the cost basis of fractional shares or reinvested dividends.
- Treating paper gains as realized profit before the position is closed.
When to Use a Profit Calculator
A spreadsheet or profit calculator works well when you hold a few positions, but automated tools become valuable as you scale. Look for calculators that let you input exact trade dates, split-adjusted prices, and dividend reinvestments so the output reflects what you actually keep. The best approach pairs a reliable tool with a consistent habit of logging every trade, which makes tax time and performance review far less painful.