Stock Profit Calculator
Work out profit, return on cost and the break-even sell price for a stock trade, including commission, fixed fees and tax you enter yourself.
Worked example (default values)
Inputs: Shares = 100; Buy price per share = 50; Sell price per share = 62.5; Buy commission (%) = 0.1; Buy fixed fee = 0; Sell commission (%) = 0.1; Sell fixed fee = 0; Tax on gains (%) = 15.
Results: Gross profit (price difference) = 1,250.00; Total fees = 11.25; Net profit before tax = 1,238.75; Tax = 185.81; Net profit after tax = 1,052.94; Return on cost = 24.75 %; Total cost (incl. fees) = 5,005.00; Break-even sell price = 50.1001.
Formula
Cost = shares x buy price x (1 + buy%) + buy fixed fee. Proceeds = shares x sell price x (1 - sell%) - sell fixed fee. Net = proceeds - cost. Tax = max(0, net) x tax%. Break-even sell price = (cost + sell fixed fee) / (shares x (1 - sell%)).
Assumptions and limits
- Fees and tax rate are your inputs; loss offsetting, holding periods and exemptions are not modelled.
- Dividends and currency effects are not included.
- Results are estimates for planning. They are not financial, tax or legal advice.
About Stock Profit Calculator
The Stock Profit Calculator shows what a trade really earned after commission, fees and tax. Enter the shares, the buy and sell prices and your costs.
Example
100 shares bought at 50 and sold at 62.50, with 0.1% commission each way and 15% tax on gains: gross profit 1,250, return on cost 24.75% before tax.
Break-even sell price
See the exact price where the sale just covers what you paid plus all fees: 50.10 in the example.
Fixed fees
Add a fixed fee per trade if your broker charges one, as well as the percentage commission.
Losing trades
Sell below your cost and the tool shows the loss including fees; no tax is charged on a loss.
What is not included
Loss offsetting, holding periods, tax exemptions, dividends and currency effects. Not financial or tax advice.
Private
Everything is worked out in your browser. Nothing you type is uploaded.
The formula
Profit = (sell price x shares) - (buy price x shares) - all fees. Return % = profit / total cost x 100.
Short-term vs long-term gains
Many countries tax shares held for a short time at a higher rate than shares held longer. In the US, the dividing line is one year.
How to use Stock Profit Calculator
- Enter the number of shares and the buy and sell price per share.
- Enter the buy and sell commission percentages and any fixed fees.
- Enter your tax rate on gains, or 0 if no tax applies.
- Read the net profit, tax, return on cost and break-even price, then press Copy result.
For information only, not investment advice. Investments can go down as well as up, and past results do not guarantee future results.
Help & FAQ
How is net profit calculated?
Proceeds minus cost, where cost = shares x buy price x (1 + buy%) + buy fixed fee and proceeds = shares x sell price x (1 - sell%) - sell fixed fee.
Is the return on cost before or after tax?
Before tax. In the default example 1,238.75 / 5,005 = 24.75%. The after-tax return would be 21.04%.
What is the break-even sell price?
The price at which the sale just covers your cost and fees. The default example gives 50.1001.
How is tax calculated?
Tax rate x net profit, applied to a positive gain only. 15% x 1,238.75 = 185.81.
What happens with a loss?
Tax is 0 and the loss stands as shown. 100 shares sold at 40 gave -1,009.00 and a return of -20.16%.
Does it include dividends?
No. Dividends and currency effects are not included.
Does it model loss offsetting or holding periods?
No. Enter the tax rate that applies to your case.
Do fixed fees matter?
Yes, especially on small trades. Two fixed fees of 5 raised the break-even price from 50.1001 to 50.2002.
Can we leave commissions at zero?
Yes. They are optional, as are the fixed fees.
Which currency does it use?
Any. It uses only the numbers you enter.
Is this financial advice?
No. It is a calculator for planning. It does not recommend any trade.
Is our data uploaded?
No. The calculation runs in your browser.