Stock Profit Calculator

Calculate profit or loss from your stock trades quickly and accurately. This tool helps individual investors, savers, and financial planners track returns on equity investments. Get a detailed breakdown of net gains, including fees and taxes.
📈 Stock Profit Calculator

How to Use This Tool

Follow these simple steps to calculate your stock trade profits:

  1. Enter the total number of shares you bought and sold in the Number of Shares field.
  2. Input the price per share when you bought (Buy Price) and sold (Sell Price) the stock.
  3. Add any commissions or fees you paid to your broker for both the buy and sell transactions.
  4. Enter your applicable capital gains tax rate as a percentage, if you want to account for taxes.
  5. Select your preferred currency from the dropdown menu.
  6. Click the Calculate Profit button to see your detailed profit breakdown.
  7. Use the Reset button to clear all fields and start a new calculation.

Formula and Logic

This calculator uses standard stock profit calculation formulas:

  • Total Buy Cost = (Number of Shares × Buy Price Per Share) + Buy Commission
  • Total Sell Revenue = (Number of Shares × Sell Price Per Share) - Sell Commission
  • Gross Profit = Total Sell Revenue - Total Buy Cost
  • Tax Amount = Gross Profit × (Tax Rate / 100) (only applied if Gross Profit is positive)
  • Net Profit = Gross Profit - Tax Amount
  • Return on Investment (ROI) = (Net Profit / Total Buy Cost) × 100

All calculations are based on the values you enter, and tax is only deducted from positive gross profits. Losses are not taxed.

Practical Notes

Keep these finance-specific factors in mind when using this tool:

  • Broker commissions vary widely—many modern brokers offer $0 commission trades for stocks, but some still charge per transaction or share.
  • Capital gains tax rates differ for short-term holdings (less than 1 year, taxed as ordinary income) and long-term holdings (1 year or more, taxed at lower preferential rates).
  • This tool does not account for dividend income, only profits from stock price changes. Add dividend earnings separately if needed.
  • ROI calculated here is total return, not annualized. To get annualized ROI, divide by the number of years you held the stock.
  • Always verify your broker's fee schedule and consult a tax professional for accurate tax liability estimates.

Why This Tool Is Useful

Individual investors often forget to factor in fees and taxes when calculating trade profits, leading to inaccurate estimates of their actual returns. This tool automates those calculations and provides a detailed breakdown so you can track your investment performance accurately. Financial planners can use it to quickly generate trade profit reports for clients, and savers can evaluate whether a particular stock trade aligns with their financial goals.

Frequently Asked Questions

Does this calculator account for dividends?

No, this tool only calculates profit from stock price appreciation or depreciation. Dividend income is not included in the calculation, as it is a separate income stream from your stock holdings.

How is capital gains tax applied?

Tax is only deducted from positive gross profits. If your trade results in a loss, no tax is applied. The tax rate you enter should reflect your marginal capital gains tax rate, which depends on your income level and how long you held the stock.

Can I use this for mutual fund or ETF trades?

Yes, the underlying logic applies to any equity trade where you buy and sell shares at a specific price. Just enter the number of shares, buy/sell prices, and applicable fees for the mutual fund or ETF.

Additional Guidance

Small trades can be heavily impacted by commissions and fees, so always include those costs in your calculations. Track all your trades in a personal finance spreadsheet to compare against this calculator's results and identify patterns in your investment performance. Remember that past profits do not guarantee future returns, and you should consider market risk and your overall portfolio diversification before making new trades.