This calculator helps you estimate the profit or loss from a stock trade. Enter your buy price per share, number of shares, sell price per share, and any commissions or trading fees you paid when buying and selling. The tool then computes your total cost, total proceeds, net profit or loss, and percentage return on investment (ROI).
It is designed for individual investors and traders who want a quick, clear view of how a trade performed or how a planned trade might turn out before placing an order.
The calculator uses straightforward arithmetic to break your trade into three main components: total cost, total proceeds, and net result. In plain-text form:
Written in a more compact way:
ROI (%) = (Proceeds − Cost) ÷ Cost × 100
The same idea can be expressed with MathML for clarity:
where P is total proceeds and C is total cost. A positive result indicates a gain; a negative result indicates a loss.
After you enter your trade details and run the calculation, you will typically see:
These metrics let you quickly answer questions such as:
In general, the higher the ROI, the more efficiently you used your capital. However, ROI should always be considered alongside risk, holding period, and your broader portfolio objectives.
Consider the following example to see how the calculator’s logic plays out step by step.
Scenario:
1. Compute total cost
Share cost = 150 × 20 = $3,000
Total cost = $3,000 + $7 = $3,007
2. Compute total proceeds
Gross sale value = 150 × 26 = $3,900
Total proceeds = $3,900 − $9 = $3,891
3. Compute net profit
Net profit = $3,891 − $3,007 = $884
4. Compute ROI
ROI (%) = ($884 ÷ $3,007) × 100 ≈ 29.4%
If you enter these same inputs into the calculator, you should see a profit around $884 and an ROI of just under 30%. This illustrates how even modest price differences can produce sizable percentage gains when leverage or concentrated positions are involved. It also shows how commissions slightly reduce your overall return.
Commissions and trading fees may seem minor, but they can materially affect your outcome, especially if you:
By entering buy-side and sell-side commissions separately, the calculator forces you to account for these costs. This can help you identify trades where apparent gains are mostly eaten up by fees. For brokers that advertise “zero-commission” trading, you can leave the commission fields at zero, but remember that other costs (such as bid–ask spreads or regulatory fees) may still reduce real-world profits.
The table below shows how the same trade can look different when you consider commissions explicitly.
| Scenario | Total Cost | Total Proceeds | Net Profit / Loss | ROI (%) |
|---|---|---|---|---|
| Ignoring commissions | $3,000 | $3,900 | $900 | 30.0% |
| Including $7 buy and $9 sell commission | $3,007 | $3,891 | $884 | ≈ 29.4% |
| Higher-fee broker (e.g., $20 total commissions) | $3,010 | $3,880 | $870 | ≈ 28.9% |
This comparison highlights that even small differences in fees can add up over many trades. Using the calculator consistently can help you choose position sizes and trading frequencies that leave more of your gross gains in your pocket.
This stock profit calculator is intentionally simple. It is built to answer the question, “If I buy at this price and sell at that price, with these commissions, what is my profit or loss?” To keep the tool fast and easy to use, it relies on several assumptions:
Because of these simplifications, the output should be treated as an estimate rather than an exact statement of after-tax, after-all-fees profitability. For precise accounting or tax reporting, rely on official broker statements or a qualified professional.
Many traders have situations that do not fit neatly into a simple buy-then-sell pattern. Here are a few common edge cases and practical ways to work with them using this calculator:
No. Taxes are not included automatically. If you want to factor in an estimated tax cost, you can add it to your commission values so that the total cost reflects those amounts.
Your break-even sell price is the price at which your net profit is zero. Set commissions as needed, then adjust the sell price in the calculator until the net profit or loss field is approximately zero. That sell price is your break-even point.
ROI in this tool is a simple percentage of your original cost and does not account for how long you held the position. Annualized return adjusts the percentage to a yearly rate. To evaluate trades held for very different time periods, annualized figures are more comparable than simple ROI.
Yes, with a small adjustment in interpretation. Enter your short entry price as the sell price and your buy-to-cover price as the buy price. A positive profit output means your short trade was profitable.
No. The calculator is for planning and educational purposes only. For official records, tax filings, or regulatory reporting, use your broker statements and consult with a qualified professional if needed.