A share trade's real result is not just sell price minus buy price. Commissions on both sides and any tax on the gain change the figure. This calculator gives the net profit or loss, the percentage return on what you put in, and the price you need to sell at just to cover your costs.
It works for shares, ETFs or any asset bought and sold per unit, in any currency; the picker changes the symbol only.
01How it works
- Total cost = shares × buy price + buying commission.
- Sale proceeds = shares × sell price − selling commission.
- Profit before tax = proceeds − total cost.
- Tax is applied at your rate only when there is a profit. A loss is not taxed and no tax relief is assumed.
- Percentage return is the net (after-tax) result divided by total cost.
- Break-even sell price covers the purchase cost and both commissions, before tax.
The calculator handles one buy and one sell of the same number of shares (a long position). Dividends received, currency conversion, holding time and country-specific tax rules are not included.
Cost = Shares × Buy + Buy fee Proceeds = Shares × Sell − Sell fee Net = (Proceeds − Cost) × (1 − tax), tax only when Proceeds > Cost Return % = Net / Cost Break-even price = (Cost + Sell fee) / Shares
02Worked example
Buy 100 shares at 42.50 and sell at 51.20, with a commission of 5 each way and no tax.
- Total cost: 100 × 42.50 + 5 = 4,255.00.
- Sale proceeds: 100 × 51.20 − 5 = 5,115.00.
- Net profit: 5,115 − 4,255 = 860.00, a 20.21% return on what you put in.
- Break-even sell price: (4,255 + 5) ÷ 100 = 42.60.
With a 15% tax on the gain, tax is 129.00 and the net profit falls to 731.00 (17.18%).
03Questions
Why is the break-even price above the buy price?
Because commissions are paid on both the buy and the sell. The share price has to rise enough to cover them before the trade shows a profit.
Is the percentage return annualized?
No. It is the return for the whole trade, however long it was held. The ROI calculator can annualize a return over a holding period.
How is tax on the gain worked out?
As a flat percentage of the profit before tax. Real rules differ by country, holding period and account type, so the figure is only a simple estimate.
Does it handle short selling?
No. It assumes you buy first and sell later. For short trades, the position size calculator handles stops and targets on either side.