Stock Calculator

Enter the shares, the buying and selling prices and the commissions to find the profit, the return and the break-even price.

Updated

Enter to calculate Esc to clear

Stock Calculator

Our Stock Calculator works out what a share trade really earned once the broker has been paid. Enter the number of shares, the buying and selling prices and the commission on each side, and the profit or loss appears at once, with the return on investment, the total cost, the net sale proceeds, each commission and the break-even selling price. Use it before a trade to set a target price, or after one to see the true result.

Quick answer

Stock profit is net sale proceeds − total cost: 100 shares bought at 250 and sold at 275 with 0.5% commission each way give 27,362.50 − 25,125 = 2,237.50.

  • Return: 2,237.50 ÷ 25,125 × 100 ≈ 8.91% on the money put in.
  • Commissions: 125 to buy and 137.50 to sell take 262.50 off the 2,500 price gain.
  • Break-even: the shares must sell above about 252.51 to make any profit.

Stock Profit Formula

A trade has two sides. The buying side costs the share price plus the broker’s commission; the selling side brings in the share price minus the commission. Profit is what is left between them.

Total cost = shares × buy price
  + buy commission
Proceeds = shares × sell price
  − sell commission
Profit = proceeds − total cost
  • Commission (%): the broker’s fee as a percentage of the trade value. Leave it empty or enter 0 for a commission-free broker.
  • ROI: profit ÷ total cost × 100, the return on the money actually spent.
  • Break-even price: total cost ÷ (shares × (1 − sell commission)), the lowest selling price with no loss.

How to Calculate Stock Profit

You buy 100 shares at 250 and sell them at 275, paying 0.5% commission on each side:

Cost = 25,000 + 125
  = 25,125
Proceeds = 27,500 − 137.50
  = 27,362.50
Profit = 2,237.50
  1. Find the total cost. 100 × 250 = 25,000, plus 0.5% commission of 125, gives 25,125.
  2. Find the net proceeds. 100 × 275 = 27,500, less 0.5% commission of 137.50, gives 27,362.50.
  3. Subtract. 27,362.50 − 25,125 = 2,237.50 of profit.
  4. Work out the return. 2,237.50 ÷ 25,125 × 100 ≈ 8.91%.
Total cost 25,125 Net proceeds 27,362.50 Profit 2,237.50 ≈ 8.91%
Drawn to scale: the dark end of the lower bar is the profit left after both commissions.

Stock Profit Examples

TradeProfit (ROI)
200 shares, 10 → 12, no commission400
(20%)
40 shares, 50 → 65, 1% each way554
(≈ 27.43%)
100 shares, 250 → 275, 0.5% each way2,237.50
(≈ 8.91%)
50 shares, 400 → 380, 0.25% each way−1,097.50
(≈ −5.47%)

With no commission the profit is simply the price gain times the shares. In the second trade 20.20 to buy and 26 to sell take 46.20 off a 600 gain. The last trade sold below the purchase price, so both commissions add to the loss.

How Commissions Cut Your Return

Without commission, the 250 to 275 trade would earn 100 × 25 = 2,500, a 10% return on 25,000. The two commissions cost 125 + 137.50 = 262.50, so the profit falls to 2,237.50 and the return to about 8.91%. Commissions matter most on small price moves and on frequent trading, where they are a large share of each gain.

Break-Even Selling Price

The break-even price is the selling price at which the net proceeds exactly equal the total cost. The selling commission is taken from the sale, so the price must cover it as well:

25,125 ÷ (100 × 0.995)
  ≈ 252.51

So the shares bought at 250 must sell above about 252.51 before the trade shows a profit. With no commission on either side, the break-even price is just the buying price.

What This Calculator Leaves Out

  • Dividends. Cash paid while you held the shares adds to the real return; see the dividend calculator.
  • Taxes. Capital gains tax depends on your country and how long you held the shares.
  • Flat fees. Some brokers charge a fixed fee per trade; convert it to a percentage of the trade value first.
  • Time. ROI does not say how long the money was tied up, so 8.91% over a month and over five years look the same.

To measure price growth on its own, try the capital gains yield calculator.

Key Terms

Total cost
Purchase value plus buy commission.
Net proceeds
Sale value minus sell commission.
Commission
The broker’s fee for a trade.
ROI
Profit ÷ total cost × 100.
Break-even
Sell price with no profit or loss.

How to Use the Stock Calculator

  1. Enter the shares and buying price. Type the number of shares, such as 100, and the price paid per share, such as 250.
  2. Enter the selling price and commissions. Type the selling price per share, such as 275, and the broker’s commission on each side as a percentage, such as 0.5. Leave a commission empty if there is none.
  3. Read and copy the result. The profit or loss appears as you type, with the ROI, total cost, net proceeds, both commissions and the break-even price. Press Copy to copy it, or Clear or Esc to start again.

Example: 200 shares bought at 10 and sold at 12 with no commission give 200 × 12 − 200 × 10 = 400 of profit, a 20% return.

Who Can Use This Calculator?

Stock TradersCheck a trade after fees
Long-Term InvestorsSee the real gain on a sale
New InvestorsLearn how commissions work
PlannersSet a break-even target
Finance StudentsPractise return problems

Frequently Asked Questions (FAQs)

How do I calculate profit on a stock?

Profit = net sale proceeds − total cost. Total cost is shares × buying price plus the buy commission; net proceeds are shares × selling price minus the sell commission.

What is the profit on 100 shares bought at 250 and sold at 275 with 0.5% commission?

It is 2,237.50: the shares cost 25,125 including 125 of commission and sell for 27,362.50 after 137.50 of commission. The return is about 8.91%.

How do I calculate the return on a stock trade?

ROI = profit ÷ total cost × 100. A profit of 400 on a total cost of 2,000 is a 20% return.

What is the break-even price of a stock?

It is total cost ÷ (shares × (1 − sell commission)). For 100 shares costing 25,125 in total with 0.5% sell commission, it is about 252.51.

How do commissions affect stock profit?

They are paid on both the purchase and the sale, so they raise the cost and cut the proceeds. On the 250 to 275 trade they take 262.50 off a 2,500 gain.

Can I use this calculator for a loss?

Yes. 50 shares bought at 400 and sold at 380 with 0.25% commission each way lose 1,097.50, about −5.47%.

Does the stock calculator include dividends or taxes?

No. It covers the price change and commissions only. Add any dividends received, and check your local capital gains tax rules, separately.

Is the Stock Calculator free?

Yes. It is completely free, needs no sign-up, and can be used as many times as you like.

Sources

Use our Stock Calculator to see the real profit, return and break-even price of a trade after commissions.