Free Tool
Stock profit calculator
Profit = (shares x sell price minus selling fees) minus (shares x buy price plus buying fees) plus dividends. Buy 100 shares at $50, sell at $58 with no fees and you make $800, a 16% return. Add a holding period for the annualized rate and a target return for the sell price that reaches it.
Result
Profit of $800.00
16.00% return on $5,000.00 invested, 100 shares bought at $50.00 and sold at $58.00.
- Total cost (shares x buy + fees)
- $5,000.00
- Proceeds (shares x sell minus fees)
- $5,800.00
- Dividends
- $0.00
- Net profit or loss
- $800.00
- Return
- 16.00%
- Annualized return
- 16.00%
- Break-even sell price
- $50.00
- Sell price for a 20% return
- $60.00
Every $1.00 move in the price changes the result by $100.00 on this position.
How the numbers are built
Cost is what the position took to open, shares times the buy price plus the buying fee. Proceeds are what closing it returns, shares times the sell price minus the selling fee. The difference, plus any dividends collected along the way, is the profit. Return divides that by the cost, so the same $800 is a 16% return on $5,000 and a 4% return on $20,000.
Formula
cost = shares x buy + buy fee
proceeds = shares x sell - sell fee
profit = proceeds - cost + dividends
return = profit / cost
annualized = (1 + return) ^ (12 / months) - 1
break-even sell = (cost + sell fee - dividends) / shares
Annualizing matters when you compare trades of different lengths. A 16% gain in a year is 16% a year. The same gain in three months is about 81% a year, and in four years about 3.8% a year, which is less than a plain index fund did over most four-year stretches. The holding period field makes that comparison honest.
A worked example
100 shares bought at $50 with a $4.95 commission, sold at $58 with another $4.95. Cost $5,004.95, proceeds $5,795.05, profit $790.10, a 15.8% return. Held 12 months, that is 15.8% annualized; held 3 months, about 79.8%. Break-even was $50.10, the two commissions spread across 100 shares. A 20% target needed a sell at $60.11.
The number to decide before you buy
The sell price for a target return is the one row on this page worth writing down in advance. Most losing trades were not bad entries; they were good entries with no exit, held until a gain became a loss. Deciding the target and the stop first, from the stop-loss calculator, turns the exit into a rule. Our piece on position sizing covers the other half: how much to buy so the loss, if it comes, is one you planned for.
Done for you
JorgAI sets the profit target and the stop before the trade, then holds you to them.
Choose your target and your stop rule once. Every auto-trade goes to your broker with both attached, the position is watched around the clock, and the exit happens at the number you decided on, not the one you feel like on the day. Your money stays in your own brokerage account.
Free to start. A two-minute setup quiz builds your rules. Your money stays in your own brokerage account.
Questions people ask
- How do I calculate profit on a stock?
- Profit is what you received when you sold, minus what you paid to buy, minus fees on both sides, plus any dividends collected while you held it. Divide that profit by the total cost to get the return as a percentage. The calculator does all four steps and shows each one.
- What is the difference between return and annualized return?
- Return is the total gain as a percentage of cost, however long it took. Annualized return restates it as a yearly rate, so a 20% gain over four years (about 4.7% a year) can be compared with a 10% gain over six months (about 21% a year). Use the holding period field to see it.
- Why is my break-even price above what I paid?
- Fees. If you paid a commission or per-share fee to buy and will pay one to sell, the stock has to rise enough to cover both before the trade is flat. Commission-free brokers make this gap tiny; per-trade brokers can make it noticeable on small positions.
- Does this include taxes?
- No. Capital gains tax depends on your income, how long you held the shares and where you live, and this tool does not know any of that. Treat the result as the pre-tax number and apply your own rate for the after-tax figure.
Keep reading
- Stock average calculator: your cost basis across several buys
- Broker fee calculator: what fees cost over a year
- Stop-loss calculator: the exit on the other side
- Best time of day to buy and sell stocks
These tools are for education. They do not know your account, your taxes or your broker's exact fees, and nothing here is investment advice. Trading involves risk of loss.
Get the weekly market read and new tools by email
One email a week: what moved, what the data says, and the next free tool when it ships. No spam, unsubscribe in one click.