Stock Profit Calculator
Your profit, ROI and break-even — fees included.
At a glance
- Input:
- Numbers you enter
- Processing:
- Runs locally in your browser
- Privacy:
- Nothing you type is sent to a server
Last updated: 2026-11-12
Common use cases
- Working out profit on 100 shares bought at $50 and sold at $60 with $10 commission each way — $980 net, 19.6% ROI.
- Finding the break-even sell price before placing the order — $50.20 on the worked example.
- Comparing a 6-month trade with a 2-year hold through the annualised return.
- Checking what a short position makes if the price falls from $60 to $50 — $980 before dividends.
About this tool
Enter shares, buy and sell prices, commissions and (optionally) dividends and holding days to see gross and net profit, ROI, the break-even sell price, the annualised return and the sell price for a target gain — for long positions and short positions. The worked example: 100 shares, buy $50, sell $60, $10 commission each way — cost $5,010, proceeds $5,990, net profit $980, ROI 19.6%, break-even $50.20. Formulas: Profit = (Sell − Buy) × Shares − Fees; ROI = Profit ÷ Cost; annualised return = (Ending ÷ Starting)^(365 ÷ days held) − 1. Tax: US 2026 rates — short-term gains (held ≤ 1 year) are taxed as ordinary income (10–37%); long-term 0% / 15% / 20% (0% under ~$47,000 single / ~$94,000 married filing jointly). Estimates only — not investment or tax advice. Past performance does not guarantee future results. No live prices, no ticker lookup, no account — you enter the prices yourself, and everything runs locally in your browser.
How to use it
- Choose Long or Short — long buys first and sells later; short sells borrowed shares first and buys them back.
- Enter shares, the buy (entry) price and the sell (exit) price — 100 shares, $50 and $60 is the worked example.
- Enter the commissions on each leg — $10 each way in the example — plus any dividends, and the holding days if you want the annualised return.
- Read net profit ($980), ROI (19.6%) and the break-even price ($50.20) for the example.
- Enter a target gain to see the sell price that reaches it — $55.20 for a $500 target on the example.
Worked examples
Input: 100 shares, buy $50, sell $60, $10 commission each way
Output: Net profit $980 · ROI 19.6% · Break-even $50.20
Cost $5,010 (100 × $50 + $10); proceeds $5,990 (100 × $60 − $10); net $5,990 − $5,010 = $980; ROI $980 ÷ $5,010 = 19.6%; break-even $50 + $20 ÷ 100 = $50.20.
Input: 100 shares, buy $60, sell $50, $10 commission each way
Output: Net loss −$1,020 · ROI −16.97%
(50 − 60) × 100 − $20 = −$1,020; cost $6,010, so ROI −$1,020 ÷ $6,010 = −16.97%.
Input: 100 shares shorted at $60, covered at $50, $10 commission each way
Output: Net profit $980 · ROI 16.31% · Break-even cover $59.80
(60 − 50) × 100 − $20 = $980; base $6,010, so ROI 16.31%; cover above $59.80 and the short loses money.
Practical tips
- Break-even first: know the sell price that covers fees before you buy — $50.20 in the example, not $50.
- ROI beats raw profit for comparing trades — $980 on $5,010 (19.6%) is a better trade than $980 on $20,000 (4.9%).
- Annualised return needs the holding days — a 19.6% gain in 6 months is about 43% annualised, in 2 years about 9.3%.
Common mistakes
- Forgetting the second commission — fees are charged on both legs; $10 each way is $20, not $10.
- Reading ROI off the gross profit — ROI divides the NET profit (after fees) by the cost, not the sale proceeds.
- Treating a short's dividends as income — a short seller PAYS the dividends on borrowed shares; they reduce the profit.
How this compares
Brokerage apps show realised P&L after the fact, behind a login, and rarely show break-even or annualised return. This tool works before you trade — break-even, target-gain price and annualised return — with no account and no live prices. The tradeoff: you enter the prices yourself, there is no tax calculation (US 2026 rates are shown for reference only), and nothing is saved.
Good to know
- Estimates only — not investment or tax advice; past performance does not guarantee future results.
- No live prices, no ticker lookup, no account — all prices are entered by hand.
- Tax rates shown are US 2026 rates only (short-term 10–37% as ordinary income; long-term 0% / 15% / 20%); they change every year and other countries differ.
- Annualised return needs holding days and a positive ending value; it is a comparison aid, not a promise.
- Short positions use the entry value as the ROI base; margin interest and borrow fees are not modelled.
Frequently asked questions
How is stock profit calculated?
Profit = (Sell − Buy) × Shares − Fees. 100 shares bought at $50 and sold at $60 with $10 commission each way: (60 − 50) × 100 − $20 = $980 net.
What is the break-even sell price?
Buy price + total commissions ÷ shares: $50 + $20 ÷ 100 = $50.20. Sell above that and the trade is in profit before tax — dividends are a separate line, not part of break-even.
How is ROI different from profit?
Profit is dollars; ROI is profit ÷ cost. $980 on a $5,010 cost is 19.6% — the same $980 on a $20,000 cost would be only 4.9%.
What is the annualised return?
(Ending ÷ Starting)^(365 ÷ days held) − 1. It scales the return to a full year so a 6-month trade can be compared with a 2-year hold — 19.6% in 6 months is about 43% annualised, in 2 years about 9.3%. It needs the holding days.
How do short positions work here?
You sell borrowed shares first and buy them back later: profit = (short price − cover price) × shares − fees − dividends paid. Dividends are income on a long and a cost on a short.
Are taxes included?
No. The US rates shown are for 2026: short-term gains (held ≤ 1 year) are taxed as ordinary income (10–37%); long-term 0% / 15% / 20% (0% under ~$47,000 single / ~$94,000 married filing jointly in 2026). Rates change every year — check the current year, and other countries differ.
Are my prices uploaded?
No. Everything runs locally in your browser — no live prices are fetched, no ticker lookup, no account, nothing is stored.

