How to use the stock profit calculator
- Enter the Number of shares you bought and sold.
- Enter the Buy price per share — what you paid for each share.
- Enter the Sell price per share — what you sold each share for.
- Add any Commission & fees (brokerage, regulatory, spread) as a total round-trip cost.
- Read the result. Total cost, proceeds, net profit and return on investment update as you type.
Worked example
Buy 100 shares at $50 and sell at $55, with $10 in fees. Cost is $5,000, proceeds are $5,500, and after the $10 fee your net profit is $490 — a 9.8% return on the $5,000 you invested.
The formula
Total cost = shares × buy price
Total proceeds = shares × sell price
Net profit = proceeds − cost − fees
Return % = net profit ÷ cost × 100
Your return on investment is measured against the money you actually put in (total cost), not the proceeds. A small fee has a bigger effect on a small position than on a large one, so always enter the real round-trip commission.