How to use it
- Enter the buy price, sell price and number of shares.
- Add the fee and tax rates if you know them; leave them empty otherwise.
- Your profit after costs, the return and the break-even sell price appear.
What this calculates
Fees on both trades and tax on the sale make profit differ from the simple price change. This calculator subtracts every cost to show real profit, return and the sell price that covers them. It is plain arithmetic, not investment advice.
The formulas
- Fee rate f and tax rate t (each as a decimal)
- Cost = buy price × shares × (1 + f)
- Proceeds = sell price × shares × (1 − f − t)
- Profit = proceeds − cost, return = profit ÷ cost × 100, break-even price = buy price × (1 + f) ÷ (1 − f − t)
Worked examples
- Buy 50 shares at 100 and sell at 120, fee 0.1% per trade, no tax → profit 989.00, return 19.76%, break-even price 100.20
- Buy 10 shares at 250 and sell at 230, fee 0.1% per trade, no tax → loss 204.80, return -8.18%, break-even price 250.50
- Buy 100 shares at 20 and sell at 26, no fees or tax → profit 600.00, return 30.00%, break-even price 20.00
Frequently asked questions
What fee and tax rates should I enter?
They differ by broker and market and change over time. Check your broker and the current rules, or leave them empty to see the price change only.
How is a loss shown?
Profit and return show as negative numbers.
Are dividends and capital gains tax included?
No. Use the dividend calculator for dividends; capital gains tax is not included.
What is the break-even sell price?
It is the sell price at which profit is zero after all fees and taxes. You need to sell above it to make a real gain.
Can I use it for foreign stocks?
Yes, but fees and taxes differ by market, so enter amounts in that currency and the actual fee rates. Gains or losses from exchange-rate moves are not included.
Can I compare investments held for different lengths of time?
The return here covers the whole holding period. To compare investments of different lengths you need an annualized return, which is a separate calculation.
What if I bought the stock in several lots?
Work out your average price first, then enter it as the buy price. The average price calculator on this site does that.
Are my numbers stored?
No. Everything is calculated in your browser and nothing is sent to a server or saved.
Last updated 2026-12-02 · For reference only; not investment, tax or legal advice.