CCalclabhub

Trading & Investing

How To Calculate Stock Profit

Stock profit is the difference between what the shares sold for and what they cost, minus the commission paid to the broker. It sounds trivial, but the fee is easy to forget and it is the difference between a gain and a loss on a small move.

Quick Answer

Net profit = Shares x (Sell - Buy) - Fees

Shares
Number of shares bought and sold
Buy
Price paid per share
Sell
Price received per share
Fees
Total round-trip commission

Multiply the number of shares by the buy price to get the cost and by the sell price to get the proceeds, then subtract the round-trip commission. Buying 100 shares at 50 and selling at 55 with 10 of fees nets 490, a return of about 9.8 percent.

What Is Stock Profit?

Stock profit is the money a trade actually makes after the broker has taken its commission. The price move is only half the story; the other half is the cost of executing the trade, which is charged on the way in and usually again on the way out.

The total cost is the number of shares multiplied by the buy price. It is the capital committed to the position and the base for the return calculation.

The total proceeds are the number of shares multiplied by the sell price. It is what the position returned when it was closed, before any fee is deducted.

Commission and fees cover the broker's charge and any regulatory or exchange levy. Many modern brokers advertise commission-free trading but still pass on a regulatory fee, a currency conversion charge or a spread, so the field should hold the true round-trip cost.

Net profit is the proceeds minus the cost minus the fees. It is the money added to the account, and it is the only figure that answers whether the trade was worth making.

Return on investment expresses the net profit as a percentage of the cost. It lets trades of different sizes be compared on a level footing and is the number most investors quote when describing performance.

The holding period affects the tax treatment in most jurisdictions. A gain held beyond a set period, often a year, is typically taxed at a lower long-term rate, while a shorter gain is taxed as ordinary income. The trade maths does not change, but the after-tax result does.

Dividends received while holding the shares are a separate source of return and are not part of the price-based profit. They should be added to the total return if the aim is to measure the whole investment rather than the trade.

Partial positions complicate the arithmetic. Selling only part of a holding means the cost has to be apportioned to the shares sold, and the remaining shares carry their own cost basis for the next calculation.

Slippage is the gap between the price a trader expected and the price actually filled. On a large order in a thinly traded stock the fill can be materially worse than the quote, which reduces the realised profit below the calculated figure.

Transaction costs weigh most heavily on small trades and frequent trading. A ten dollar round-trip fee on a five hundred dollar position is two percent, which is a large hurdle to clear before the trade breaks even.

The break-even sell price is the price at which the net profit reaches zero. Knowing it tells the investor how much the stock has to rise simply to cover the cost of the trade.

The calculator models the figures entered and nothing more. It does not know the spread, the tax treatment or any dividends received. Treat the output as the pre-tax profit on the price move and adjust for those items separately.

Formula

Cost = Shares x Buy; Proceeds = Shares x Sell

The two sides of the trade before fees.

SymbolMeaning
nShares
BBuy price
SSell price

Net = Proceeds - Cost - Fees; Return = Net / Cost

The realised profit and its return on the capital committed.

SymbolMeaning
PProceeds
CCost
FFees

How To Calculate Stock Profit

  1. 1

    Work out the total cost

    Multiply the number of shares by the buy price per share.

  2. 2

    Work out the total proceeds

    Multiply the same number of shares by the sell price per share.

  3. 3

    Subtract the commission

    Take the round-trip fees off the difference between proceeds and cost.

  4. 4

    Compute the return

    Divide the net profit by the total cost to express it as a percentage.

  5. 5

    Check the break-even price

    Add the fees divided by the shares to the buy price to see the price needed to break even.

Examples

Example 1: 100 shares, ten dollar commission

Number of shares
100
Buy price
50
Sell price
55
Commission and fees
10
StepCalculationResult
Total cost100 x 505000
Total proceeds100 x 555500
Net profit5,500 - 5,000 - 10490
Return on investment490 / 5,0000.098
Break-even sell price50 + 10 / 10050.1

Result: The trade costs 5000, returns 5500 and pays 10 in fees, so the net profit is 490, a return of 0.098 or about 9.8 percent, and the break-even sell price is 50.1.

Example 2: A losing trade with the same fees

Number of shares
250
Buy price
20
Sell price
18.50
Commission and fees
15
StepCalculationResult
Total cost250 x 205000
Total proceeds250 x 18.504625
Net profit4,625 - 5,000 - 15-390
Return on investment-390 / 5,000-0.078
Break-even sell price20 + 15 / 25020.06

Result: The price fall costs 375 and the 15 of fees deepen the loss, so the net result is minus 390, a return of -0.078 or about minus 7.8 percent, and the break-even sell price is 20.06.

Calculator

Net profit / loss

$490.00

Total cost
$5,000.00
Total proceeds
$5,500.00
Return on investment
9.80%

Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.

Prefer a full-width tool? Open the Stock Profit calculator page.

Common Mistakes

  • Ignoring the commission

    A ten dollar round trip on a five hundred dollar position is two percent. Leaving it out turns a losing trade into an apparent gain.

  • Using the sell price as the cost basis

    The cost basis is what was paid per share, not what the share is worth now. The two are only equal on the day of purchase.

  • Treating the price move as the return

    A rise from 50 to 55 is a ten percent price move but only a 9.8 percent return once the fee is paid. The two numbers answer different questions.

  • Forgetting the tax on a realised gain

    A gain becomes taxable when the shares are sold. The after-tax return depends on the holding period and the jurisdiction, so the pre-tax figure is not the final outcome.

  • Mixing up dividends with capital gains

    Dividends are income received while holding the shares and are separate from the price-based profit. Both contribute to total return but they are taxed differently.

  • Averaging down without tracking the basis

    Buying more shares at a lower price changes the average cost. Using the original buy price for the whole position misstates the profit on the eventual sale.

  • Trading so often that fees dominate

    High-frequency trading multiplies the round-trip cost. On a small account the fees can exceed the price movement and turn an active strategy into a net loss.

FAQ

How do I calculate stock profit?

Multiply the shares by the buy price to get the cost and by the sell price to get the proceeds, then subtract the commission. Divide the net result by the cost for the return.

Should I include the commission in the profit?

Yes. The commission is a real cost of the trade and reduces the net profit. Excluding it overstates the result, especially on small or frequent trades.

What is a good return on a stock trade?

There is no universal figure, but many investors compare against a broad market index. A trade that beats the index return after fees and tax has added value.

How does the holding period affect tax?

In many jurisdictions a gain held beyond a set period, often a year, is taxed at a lower long-term rate. Shorter gains are taxed as ordinary income. The rules vary by country.

Does this include dividends?

No. The calculation covers the price-based profit on the trade. Dividends received while holding the shares are a separate return and should be added for a total-return view.

What is the break-even sell price?

It is the buy price plus the fees divided by the number of shares. Selling at that price returns exactly what was invested, with no profit and no loss.

References

  1. [1]Investopedia, Return on investment — https://www.investopedia.com/terms/r/returnoninvestment.asp
  2. [2]IRS, Cost basis and capital gains — https://www.irs.gov/taxtopics/tc409
  3. [3]FINRA, Understanding trading commissions — https://www.finra.org/investors/insights/understanding-commissions