The Stock Profit/Loss Calculator determines your gain or loss on stock investments. It accounts for buy price, sell price, number of shares, and trading commissions to show your net profit, return percentage, and annualized return.
How the Formula Works
Profit = (Sell Price − Buy Price) × Shares − Total Commissions. ROI = Profit ÷ Total Investment × 100.
How to Use This Calculator
Enter the buy price per share and number of shares
Enter the sell price per share
Optionally enter commission fees
View your net profit/loss and return percentage
Tips & Best Practices
Always factor in commissions and fees when calculating actual returns
Short-term capital gains (held < 1 year) are taxed at your regular income rate; long-term gains (held > 1 year) get favorable tax rates
Dollar-cost averaging reduces the impact of buying at market highs
Diversification across sectors and asset classes reduces portfolio risk
Important Limitations
Does not calculate tax obligations on gains
Does not account for dividends received during the holding period
Past stock performance does not predict future results