Stock profit formula
The basic formula is total proceeds minus total cost. Total cost includes buy price multiplied by shares plus buy-side charges. Total proceeds equals sell price multiplied by shares minus sell-side charges.
Why fees matter
Brokerage, exchange charges, taxes, and other costs can reduce profit or increase loss. A trade that looks profitable before charges may be close to break-even after fees.
How to use the result
Use profit/loss to understand the cash result, ROI to compare trades of different sizes, and break-even sell price to know the minimum exit price needed to recover costs.