Stock Profit Calculator
Work out the result of a share trade. Enter the buy and sell prices, the number of shares and the commission to see net profit, return and the break-even price.
Enter your buy price, sell price, share count and commission.
How stock profit is calculated
A share trade has two sides: what you pay to buy and what you receive when you sell. Commission and fees reduce the result on both sides.
Proceeds = sell price × shares − commission
Profit = proceeds − cost
Return = profit ÷ cost × 100
The break-even price is the sell price at which the profit is zero. It includes the commission paid on both trades, so it is slightly above the buy price.
Worked example
Buy 100 shares at 50 with a 5 commission: the cost is 5,005. Sell at 65 with another 5 commission: the proceeds are 6,495. The profit is 1,490, a return of about 29.8%.
The gain before fees is 15 per share. The break-even price is 50 + 10 ÷ 100 = 50.10, because the two commissions add 10 to the round trip.
Return versus gain
The percentage return puts the profit in context. A 1,000 profit on a 5,000 investment is a 20% return; the same 1,000 on a 50,000 investment is only 2%.
Return also ignores how long the position was held. A 20% gain over one year is different from 20% over ten years. Annualised return is a better comparison across holding periods.
Taxes and dividends
Taxes are not included. Capital gains tax may apply when shares are sold, and the rate depends on the holding period and your jurisdiction. Dividends received while holding the shares add to the total return but are taxed separately in many places.
Keep records of purchase dates, sale dates, prices and fees. These are needed to report the gain accurately.
Position sizing
Profit calculations are only part of the picture. Position size, diversification and risk tolerance matter more than a single trade result. A large gain on a small position does not move a portfolio much.
Consider the loss if the trade goes the other way. The same share count that produces a large profit can produce a large loss.
Fees and spreads
Commission is only one cost. The bid-ask spread, currency conversion, platform fees and taxes can all reduce the net result. For frequent trading, these costs compound quickly.
Use the actual fill prices rather than the quoted price to get an accurate figure.
What is not included
This estimate covers the share trade only. It excludes dividends, taxes, currency conversion, advisory fees and any account charges.
Common mistakes to avoid
Charging commission on one side only overstates profit. On 250 shares bought at 32 and sold at 38 with $8 each way, ignoring the sale commission adds $8 to a $1,484 result.
Using the quoted price rather than the fill price, or forgetting the spread, produces a profit that never appears in the account.
Confusing the percentage return with the absolute gain hides position size. A $1,484 gain on $8,008 is 18.5%, while the same gain on $80,000 would be under 2%.
Forgetting that commission is charged per order rather than per share understates costs on small trades, where the fixed charge dominates. Taxes are excluded, and a short holding period may be taxed at a higher rate.
How to check the result
Rebuild both legs: two hundred and fifty shares at thirty-two plus the eight-dollar fee gives a cost of 8,008, and the same count sold at thirty-eight less the fee gives 9,492. The difference is 1,484, which is 18.53% of the cost.
The break-even price should be 32.06, since the two commissions add $16 to the round trip.
Check the arithmetic at the per-share level: a $6 gross gain on 250 shares is $1,500, and deducting $16 of fees leaves $1,484.
The return must be positive whenever the sell price exceeds the break-even price, and negative below it; a mismatch means one leg used a different share count.
What changes the number most
Price change dominates, and it scales with share count. A $1 move on 250 shares is $250, while the same move on 1,000 shares is $1,000.
Fees matter most on small trades: $16 against a $1,484 profit is about 1%, but the same $16 against a $100 profit is 16%.
Holding period does not change the dollar profit but changes the annualised return, which is why 18.5% over three months and the same gain over three years are not comparable.
Position size changes the dollars at stake without changing the percentage, so a 20% gain on a large holding can dwarf a 100% gain on a tiny one.
Frequently asked questions
How do I calculate stock profit?
Subtract the total cost including commission from the net sale proceeds. Buying 250 shares at 32 with an $8 commission costs 8,008; selling at 38 after another $8 returns 9,492, so the profit is 1,484. Both sides must be included, using the actual fill prices from your confirmations.
How is return on investment calculated?
Divide the profit by the total cost and multiply by 100. A profit of 1,484 on a cost of 8,008 gives 18.53%. Use total cost rather than the share price alone, so commission sits in the denominator as well.
What is the break-even price?
It is the sell price at which the trade makes neither a profit nor a loss, after commissions on both sides. Buying at 32 with $16 of round-trip fees on 250 shares gives a break-even of 32.064. Selling below that loses money.
Should I include dividends?
Yes, for a total-return figure, because dividends are part of what the investment paid you. This calculator covers the price change only, so add dividends received while holding the shares. Tax treatment of dividends usually differs from capital gains.
Are taxes included?
No, the result is before tax. Capital gains tax depends on your jurisdiction, your holding period and your other income, so it cannot be applied from a single rate. Enter the after-tax figure separately if you need a net number.
Does this handle partial shares?
Only if the field accepts decimals, because fractional shares are not whole units. The calculator multiplies price by share count, so a decimal entry works arithmetically. For repeated purchases at different prices, use an average cost basis instead.
Sources & methodology
- U.S. Securities and Exchange Commission — investor education on stocks and fees.
- Financial Industry Regulatory Authority — trading costs and disclosures.
- Calculation method: net proceeds minus total cost, including commission on both trades.
Educational information only — not financial, tax or investment advice. Confirm important decisions with a qualified professional.