Stock Profit Calculator
Enter your buy price, sell price and share count, then add any buy or sell commissions to see the full picture of a trade. The calculator returns your total cost, total proceeds, dollar profit or loss, the percentage return on your cost, and the exact break-even sale price that covers both fees. Losing trades turn the profit figure red so you can spot a loss at a glance.
How to calculate stock profit
- Enter the Buy price, the price per share you paid.
- Enter the Sell price, the price per share you received or expect.
- Set Shares to the number of shares in the trade.
- Add any Buy commission and Sell commission your broker charges on each side.
- Read the Profit / loss headline, then the Total cost, Total proceeds and Break-even tiles.
- Click Copy results to copy the full summary to your clipboard.
Examples
A winning trade with fees on both sides
Buy $100, Sell $120, 10 shares, $5 buy fee, $5 sell fee
Profit $190.00 (18.91%), cost $1005.00, proceeds $1195.00, break-even $101.00
A losing trade
Buy $50, Sell $45, 100 shares, no commissions
Profit -$500.00 (-10%), cost $5000.00, proceeds $4500.00, break-even $50.00
Break-even lifted by commissions
Buy $20, Sell $20, 50 shares, $10 buy fee, $10 sell fee
Profit -$20.00 (-1.98%), cost $1010.00, break-even $20.40
Frequently asked questions
How is stock profit calculated?
Profit is total proceeds minus total cost. Total cost is the buy price times the number of shares plus the buy commission. Total proceeds is the sell price times the number of shares minus the sell commission.
What is the break-even price?
It is the sell price per share that would make your profit exactly zero once both commissions are paid. The tool computes it as the total cost plus the sell commission, divided by the number of shares, so at $101.00 in the worked example the trade neither gains nor loses.
How is the return percentage figured?
Return percent is profit divided by total cost, times 100. Because total cost includes the buy commission, the percentage reflects the true amount of money you committed, not just the share price times quantity.
Do I have to enter commissions?
No. The commission fields can stay at zero if you trade with a no-fee broker. When they are zero the break-even price equals your buy price and the numbers simplify to a plain price-times-shares calculation.
Does it handle a loss?
Yes. If proceeds come in below cost, the profit shows as a negative dollar figure and a negative percentage, and the headline turns red. The break-even tile still shows the sell price you would have needed to avoid the loss.
Are the results rounded?
Every dollar figure and the percentage are rounded to two decimal places for display. Values are formatted in US dollars, so a large cost appears as $1,005.00 with a thousands separator.
Does it include taxes, dividends or margin interest?
No. The calculator covers price, shares and trading commissions only. Capital gains tax, dividends received, and any margin interest are not part of the result, so treat the profit figure as pre-tax.
Can I use it for any currency?
The math works for any currency, but the labels and formatting are fixed to US dollars. If you trade in another currency, read the dollar sign as your own and the figures still hold.
Is my data private?
Yes. All calculations happen in your browser. No prices, share counts or results are sent to a server or stored.
Learn more
- How commissions affect your break-even price
Why trading fees raise the price a stock must reach before you profit, and how to read cost, proceeds and break-even together.
Related tools
Stock Average Calculator
Work out the average cost of a stock across multiple buys. Add each purchase to see your cost basis, total shares, and profit or loss.
Capital Gains Tax Calculator
Estimate 2025 US capital gains tax on a sale. Enter buy and sell prices, holding period, income and filing status to see your gain, rate and net proceeds.
Options Profit Calculator
Calculate profit, loss and breakeven for a single-leg call or put at expiration. See max profit, max loss and a full payoff table across prices.
401(k) Calculator
Project your 401(k) balance with employer match. Enter salary, contribution, match and return to see your contributions, the match and growth over time.
50/30/20 Budget Calculator
Split your monthly take-home pay with the 50/30/20 rule. See dollar amounts for needs, wants and savings each month and year. Free and private.
Amortization Schedule Calculator
Build a full loan amortization schedule. Enter the amount, rate and term to see each month's payment, principal, interest and balance, plus total interest.