Stock Profit Calculator
Calculate profit or loss on a share trade after commissions and fees.
About the Stock Profit Calculator
Enter how many shares you traded, the buy and sell prices, and the total of all charges (brokerage, exchange and regulatory fees, taxes on the trade). The calculator shows the profit or loss, the return on what you put in, and the breakeven sell price that would have covered every fee.
Fees matter most on small trades: a 10 fee on a 500 trade needs a 2% rise just to break even, but only 0.2% on a 5,000 trade.
The formula
Profit = shares × (sell − buy) − fees
- fees
- all charges for both the buy and the sell
- Return
- profit ÷ (shares × buy + fees)
- Breakeven price
- (shares × buy + fees) ÷ shares
Worked example
100 shares bought at 50 and sold at 62, with 10 of fees
- Bought for 100 × 50 = 5,000; sold for 100 × 62 = 6,200
- Profit = 6,200 − 5,000 − 10 = 1,190
- Return = 1,190 ÷ 5,010 = 23.75%; breakeven price 50.10
Things to keep in mind
- Before tax: capital gains tax depends on your country and how long you held the shares.
- Dividends received while holding are not included; add them for total return.
Questions people ask
Does this include tax?
No; capital gains tax depends on your country and holding period.
What about dividends?
Add any dividends received to the profit for total return.
How do I work out a loss?
Enter a sell price below the buy price; the result shows the loss and the percentage lost.