What Is the Stock Profit / Return Calculator?
This calculator tells you exactly how much money you made (or lost) on a stock trade and what that gain represents as a percentage return. It accounts for the buy price, the sell price, the number of shares traded, and any brokerage fees or commissions, giving you a clean net figure rather than a misleading gross number.
How to Use It
Enter the price you paid per share, the price you sold for, the total number of shares, and your combined buy + sell fees. The calculator returns your net profit, your return on investment (ROI), and a breakdown of total cost, total proceeds, and total invested capital. Leave fees at 0 for a quick gross estimate.
The Formula Explained
Net profit is the difference between sell and buy price multiplied by the number of shares, minus fees: $$\text{Profit} = (\text{Sell} - \text{Buy}) \times \text{Shares} - \text{Fees}$$ ROI measures that profit against what you actually committed: $$\text{ROI} = \frac{\text{Profit}}{(\text{Buy} \times \text{Shares}) + \text{Fees}} \times 100$$ Using total invested (including fees) in the denominator gives a more honest return figure than using cost alone.
Worked Example
Suppose you buy 10 shares at $100 each and sell them at $120, paying $15 in total fees. $$\text{Profit} = (120 - 100) \times 10 - 15 = \$200 - \$15 = \$185$$ Total invested \(= (100 \times 10) + 15 = \$1{,}015\). $$\text{ROI} = \frac{185}{1{,}015} \times 100 \approx 18.23\%$$
FAQ
Does it include taxes? No. The result is pre-tax. Capital gains tax depends on your jurisdiction and holding period, so subtract that separately.
What counts as fees? Include both the buy-side and sell-side commissions, plus any regulatory or transfer charges, as a single combined number.
Can I see a loss? Yes. If your sell price is below your buy price or fees exceed the gain, the net profit and ROI will display as negative.