Skip to content
SmartDailyCalculator

Stock Profit Calculator

Enter the number of shares, the price you paid per share, the price you sold (or expect to sell) per share, and any buying and selling fees or commissions. The calculator shows total cost, total proceeds, profit or loss, per-share profit, and return on the amount invested.

Changes how amounts are shown. Values are not converted.

Pre-tax profit

$1,490.00

Shares
100
Total purchase cost (basis)
$5,005.00
Total sale proceeds
$6,495.00
Buying fees
$5.00
Selling fees
$5.00
Profit or loss per share
$14.90
Return on amount invested
29.77%

This is a pre-tax, pre-dividend estimate. It does not include dividends received, taxes, currency conversion, or market spreads.

If the sale price is below the purchase price, the result is a loss.

No share-price forecast is made. All prices and fees are values you supply.

Estimate only: Results are estimates for planning and education. They are not a quote, an offer of credit or a guarantee of any financial outcome. Actual rates, fees, taxes and returns vary; check with a qualified financial professional before making decisions.

How to use the Stock Profit Calculator

  1. Enter the number of shares bought and sold.
  2. Enter the purchase price per share.
  3. Enter the sale price per share.
  4. Enter any buying fees or commissions and any selling fees or commissions.
  5. Read total cost basis, total proceeds, profit or loss, per-share profit, and return on invested amount.

Stock trade profit formula

Total basis=shares×purchase price+buying fees
Total proceeds=shares×sale price−selling fees
Profit or loss=total proceeds−total basis
Return=profit or losstotal basis×100

Where:

shares
= number of shares bought and sold
purchaseprice
= price paid per share
saleprice
= price received per share
buyingfees
= commissions or fees paid when buying
sellingfees
= commissions or fees paid when selling
Show as plain text

Total purchase cost (basis) = shares × purchase price + buying fees Total sale proceeds = shares × sale price − selling fees Profit or loss = total proceeds − total basis Profit or loss per share = profit or loss ÷ shares Return on amount invested = profit or loss ÷ total basis × 100

Add buying fees to the share purchase cost to get the total basis. Subtract selling fees from the sale proceeds to get total proceeds. Profit or loss is proceeds minus basis. Return is profit or loss as a percentage of the amount invested.

Assumptions and limitations

  • All share counts, prices, and fees are supplied by the visitor; no market data is used.
  • The same number of shares is assumed to be bought and sold. Partial sales or multiple lots are not modeled.
  • Results are pre-tax and exclude dividends, taxes, and other transaction costs beyond the entered fees. Not investment advice.

Example: 100 shares bought at $50, sold at $65, $5 buying fee and $5 selling fee

  1. Total purchase cost: 100 × $50 + $5 = $5,005.
  2. Total sale proceeds: 100 × $65 − $5 = $6,495.
  3. Pre-tax profit: $6,495 − $5,005 = $1,490.
  4. Profit per share: $1,490 ÷ 100 = $14.90.
  5. Return: $1,490 ÷ $5,005 × 100 = 29.77%.

When to use the Stock Profit Calculator

  • Working out the pre-tax profit or loss on a completed or planned stock sale.
  • Comparing how buying and selling fees change the net result.
  • Seeing profit per share and return on the amount invested.

Stock Profit Calculator FAQs

Pre-tax?

Yes.

What if I sell for less than I paid?

The result is a negative profit (a loss). Total proceeds will be less than total basis, and the return percentage will be negative.

Can I use this for multiple purchases at different prices?

No. This calculator models a single purchase price and a single sale price. Multiple lots or average cost are not supported.

How this calculator was built and tested is explained in our methodology. Spotted a problem? Let us know.