Investing & Retirement
Stock Profit Calculator
Calculate profit or loss on a stock trade including commissions — dollar gain, percentage return and break-even sell price.
For information and education only — not financial advice. Results are estimates based on the numbers you enter; check important decisions with a qualified professional.
How to use
- 1Enter the number of shares, buy price and sell price.
- 2Add buy and sell commissions if your broker charges them.
How it's calculated
Profit = shares × (sell − buy) − commissions. Return = profit ÷ (shares × buy + buy commission).
Frequently asked questions
Does this include tax?
No. In the US, gains on shares held over a year are taxed at long-term rates (0/15/20%); shorter holdings at income tax rates.
What's the break-even price?
The sell price at which you cover the buy price plus both commissions.
Can I use it for short selling?
Enter the price you sold short as the buy price and the price you covered at as the sell price, then flip the sign.
Why commissions shift the real break-even point away from the purchase price
The naive assumption that you 'break even' by selling at exactly what you paid ignores that most brokers charge a commission on both the buy and the sell — the actual break-even price has to cover the original cost plus both commissions, which is why this calculator computes a distinct break-even figure rather than simply using the buy price.
Worked example: Stock Profit Calculator
Buying 100 shares at $50 with a $5 commission costs $5,005 total; selling at $62.50 with another $5 commission nets $6,245 — for a profit of $1,240, a 24.78% return. The break-even sell price for this exact position, accounting for both commissions, works out to $50.10 — slightly above the $50 purchase price, reflecting the $10 in total commissions spread across the 100 shares.
Why this calculator deliberately leaves out capital gains tax
US tax rules tax stock gains differently depending on how long the position was held — short-term gains (one year or less) are taxed at ordinary income rates, while long-term gains qualify for lower preferential rates — a distinction that depends on the investor's personal tax bracket and holding period, not anything calculable from the trade data alone. This tool shows the pre-tax economic outcome of the trade; the actual after-tax profit depends on factors outside what a simple profit calculator can know.
How the same fields model a short sale instead of a long one
Shorting a stock reverses the usual order of events — you effectively 'sell' first and 'buy' (cover) later — so entering the price you sold short as the buy field and the price you later covered at as the sell field, then reading the sign of the result, lets this calculator double as a short-sale calculator. A short seller profits when the 'sell' (cover) price comes in below the 'buy' (short) price, which is the opposite direction of profit from a standard long position using the same two fields. Keep in mind this workaround doesn't model the margin interest or stock-borrow fees a real short position accrues over time, both of which reduce actual short-selling profit below what the raw price difference alone suggests, and both of which keep accruing for as long as the short position stays open, unlike a one-time commission.
The headline says Loss when the trade is underwater
The main label is Profit when the money you receive is at least what the trade cost, and it switches to Loss when it is not. The number under that label is still the difference, so a loss shows as a negative amount rather than a separate red formula. Blank commission boxes count as zero. The page opens at 100 shares, bought at 50 and sold at 62.50, with both commissions empty, which is a $1,250 profit, a 25% return, and a break-even sell price of $50. Break-even is your full cost, including the buy commission, plus the sell commission, divided by the shares. A trade whose shares and buy price do not produce a cost above zero is rejected, and you are asked to enter the shares and the buy price.
Related tools
- Loss Recovery Calculator (Gain Needed After a Drop)
See what percentage gain you need to recover from a loss — a 50% drop needs a 100% gain — and how long it takes at a given return.
- Crypto Mining Profitability Calculator
Estimate mining profit from your hashrate, the network hashrate, block reward and electricity cost — daily, monthly and the break-even on hardware.
- ESPP Calculator
Estimate the gain from an employee stock purchase plan (ESPP) with a discount and lookback provision, and your return on the money contributed.
- Crypto Profit Calculator
Calculate profit or loss on a Bitcoin, Ethereum or any crypto trade from the amount invested, buy and sell prices, and exchange fees.
- Price Increase Impact Calculator
See how a price increase affects revenue and profit — and how many customers or sales you could lose before it stops paying off.
- ROAS Calculator (Return on Ad Spend)
Calculate return on ad spend (ROAS), ad-driven profit after product costs, and the break-even ROAS for your margin.