About the Stock Profit Calculator
Profit or loss on a stock trade after commissions, with percentage return — works for any asset you buy and sell.
Also known as: stock gain calculator, profit loss calculator, trade profit, stock loss calculator, p&l calculator, profit-loss.
How to use this calculator
- Enter shares, buy price, sell price, total commissions.
- The result updates instantly as you type — press Calculate (or Enter) at any time.
- Review the breakdown shown under the main result.
- Use Copy result or Share to save the answer or send a link with your inputs.
Formula
P/L = shares × (sell − buy) − fees
Worked example
Using the values pre-filled in the calculator above:
- Shares = 100
- Buy price = 45.2
- Sell price = 52.8
- Total commissions = 10
the calculator returns:
- Profit: 750
- Return on investment: 16.56%
- Proceeds: 5,280
- Cost: 4,520