Calculation details
Planning estimate only, not financial, tax, or legal advice. Verify assumptions and current rules before making decisions.
This tool runs in your browser. Your calculator inputs and results are never transmitted to us or to ad/affiliate partners. Ads and sponsored links may set third-party cookies to serve and measure them, but they never receive your calculation values. If you explicitly save a scenario, its permitted fields stay in local browser storage until you clear them. See our Privacy Policy.
Use this result
Share the current inputs or ask ChatGPT to explain the calculation in context.
What does this calculator estimate?
A stock profit calculator computes gain or loss on a trade. Enter the buy and sell prices, shares, and fees to see profit, ROI, and breakeven.
- Profit = (sell − buy) × shares − fees
- ROI = profit ÷ cost basis × 100
- Fees reduce every trade's return
How stock trades are measured
Profit is the price difference times shares, minus trading costs. ROI normalizes the profit against what you put in, so you can compare trades of different sizes. Breakeven shows the price needed just to recover fees.
Limitations to watch for
The tool uses simple math — it doesn't model dividends, taxes on gains, or wash sales. Tax treatment depends on holding period (short vs long term). Slippage and bid-ask spreads add hidden costs beyond fees.
How to use it in practice
Log the actual buy and sell prices with fees for each trade. Use ROI to evaluate performance against benchmarks. Remember taxes: short-term gains are taxed as ordinary income in most jurisdictions.
['Enter the buy and sell prices per share.', 'Enter the number of shares and any fees.', 'Read profit, ROI, and breakeven.']
How stock profit is calculated
Profit per share is the sale price minus the cost basis, multiplied by shares, minus any fees. Buying 100 shares at $40 and selling at $55 produces $1,500 gross, less commissions — the calculator subtracts fees so the realized number matches reality.
Cost basis: the number that matters for taxes
Cost basis includes the purchase price plus commissions and any reinvested dividends. Selling above basis is a capital gain; below is a loss. The holding period decides short-term vs. long-term treatment — held over a year qualifies for the lower long-term capital gains rate. The calculator shows the gain/loss; your tax software applies the rate.
Buy and sell fees change the math
A $7 commission on a $2,000 purchase is 0.35 percent of the position — it must be earned back before the trade is profitable. High-fee platforms on small trades are the quiet killer of retail returns. The calculator includes fees in both the basis and the proceeds so the true net profit is visible.
Position sizing and risk
The same profit math applies to losses. A position worth 10 percent of your portfolio that drops 20 percent costs 2 percent of the portfolio; the profit calculator's reverse view makes the risk explicit. Use it before buying to know what a realistic decline means in dollars.
Comparing stock returns to other options
With the profit number in hand, compare the return against alternatives: a 7 percent expected market return, a 4 percent bond, or a savings account at 5 percent APY. The calculator turns a vague 'it did well' into a percentage you can compare against benchmarks.
How this calculator works
Formula
Profit = (sell price − buy price) × shares − buy fees − sell fees. Return on investment = profit ÷ (buy price × shares + buy fee) × 100. Breakeven price = buy price + fees ÷ shares.
Worked example
100 shares bought at $50 and sold at $60 with $10 in each fee: profit = $1,000 − $20 = $980, ROI ≈ 19.6%.
Assumptions to verify
- No dividends or distributions during the holding period.
- Fees are fixed per trade as entered.
- Simple, non-leveraged position.
Frequently asked questions
How do I calculate stock profit?
Profit = (sell − buy) × shares − fees. 100 shares from $50 to $60 with $20 in fees = $980.
What is ROI?
Return on investment: profit ÷ cost basis × 100. $980 ÷ $5,010 ≈ 19.6%.
What is the breakeven price?
The price at which you recover your cost including fees — anything above it is profit.
Do I owe taxes on gains?
Yes — capital gains tax applies, at lower rates for holdings over a year in most jurisdictions. Check local rules.
What are hidden costs?
Bid-ask spread and slippage — the difference between the quoted price and what you actually get.
Does this include dividends?
No — dividends are separate income. Add them to total return if you track them.
How do I compare to an index?
Use ROI and compare it to the benchmark's return over the same period — that tells you if you beat the market.
How do I calculate profit on a stock trade?
Shares × (sale price − cost per share) − fees = net profit.
Do fees really matter?
Yes — fees add to cost basis and subtract from proceeds; on small trades they are a meaningful percentage.
What is cost basis?
The total amount you paid for the shares, including commissions — the reference point for gains and losses.
Is this a capital gains calculator?
It shows the gain/loss in dollars; the tax rate depends on your holding period and bracket.
Cite this tool
BoringToolsKit. “Share Profit Calculator.” boringtoolskit.com/stock-calc/ (reviewed 2026-08-25). Free to reference in articles, syllabi, and answer posts with a link.
Privacy: Inputs and results stay in this browser. Any future sponsored recommendation or advertisement will be clearly labeled and kept separate from the calculation.