Stock Profit Calculator

Enter your number of shares, purchase price, sell price, and any buy/sell commissions to calculate your stock profit or loss. The Stock Profit Calculator returns your net profit, return on investment (ROI), total purchase value, total sell value, and commission costs — so you know exactly where you stand on any trade.

Total number of shares purchased

Price you paid per share

Price you sold (or plan to sell) per share

Commission paid when buying the stock (enter 0 if none)

Commission paid when selling the stock (enter 0 if none)

Results

Net Profit / Loss

--

Return on Investment (ROI)

--

Total Purchase Value

--

Total Sell Value

--

Total Commission Paid

--

Initial Investment (incl. Buy Commission)

--

Investment Breakdown

Frequently Asked Questions

How do you calculate stock profit or loss?

Stock profit is calculated by subtracting your total purchase cost from your total sell proceeds, then deducting any commissions. The formula is: Net Profit = (Sell Price × Shares) − (Purchase Price × Shares) − Buy Commission − Sell Commission. A positive result means a profit; a negative result means a loss.

What is Return on Investment (ROI) for a stock trade?

ROI measures how much you gained or lost relative to your initial investment. It is calculated as: ROI = (Net Profit ÷ Initial Investment) × 100. For example, if you invested $10,010 and made a net profit of $1,980, your ROI would be approximately 19.78%.

Does the Stock Profit Calculator account for commissions?

Yes. You can enter both a buy commission and a sell commission. These are subtracted from your gross profit to give you the true net profit. Many modern brokers charge $0 commission, so you can simply enter 0 for both fields.

What isn't included in this stock profit calculation?

This calculator does not account for capital gains taxes, dividend income, stock splits, currency exchange effects, or margin interest. For a full picture of your investment returns, consider consulting a financial advisor or using a more comprehensive portfolio tool.

Can I use this calculator if I haven't sold my shares yet?

Absolutely. You can enter your target or projected sell price to estimate what your profit or ROI would be if you sold at that price. This is useful for setting profit targets or evaluating whether a trade is worth making.

What is the difference between gross profit and net profit on a stock trade?

Gross profit is simply the difference between your total sell value and total purchase value (Sell Price × Shares − Purchase Price × Shares). Net profit deducts all commissions from that figure, giving you the actual amount you walk away with after all transaction costs.

How does the number of shares affect my profit?

Profit scales linearly with the number of shares. If you double the number of shares, your gross profit doubles, but your commission costs remain the same (since they are fixed per trade). This means larger share quantities tend to reduce the proportional impact of commissions on your ROI.

Is this calculator suitable for all types of stocks and markets?

This calculator works for any stock trade where you know the buy price, sell price, number of shares, and commissions — regardless of the exchange or market. However, it assumes all values are in the same currency, so you would need to convert prices manually for cross-currency trades.

More Finance Tools