Skip to content
FinToolSuite
Updated May 14, 2026 · Investing · Educational use only ·

Stock Profit and Loss Calculator

Profit or loss from a stock trade.

Calculate stock profit and loss from any trade. Enter buy price, sell price, shares, and commissions to see net gain or return percentage.

What this tool does

This calculator computes the net profit or loss from buying and selling a stock position. It takes your purchase price, sale price, number of shares, and total commissions paid (both on entry and exit), then calculates the dollar amount gained or lost and expresses it as a percentage return relative to your initial investment. The result shows what remains after all trading costs are deducted. Price difference and share count are the primary drivers of the outcome, while commissions reduce the final profit or increase the loss. For example, you might use this to review a completed trade and see how much you actually kept after fees. The calculator assumes a simple buy-and-sell scenario and does not account for dividends, taxes, or holding period effects. Results are shown for educational illustration of trade mechanics.


Enter Values

People also use

Formula Used
Sell price
Buy price

Spotted something off?

Calculations or display — let us know.

Disclaimer

Results are estimates for educational purposes only. They do not constitute financial advice. Consult a qualified professional before making financial decisions.

100 shares bought 12, sold 15, 20 commission: (15-12) × 100 - 20 = 280 profit. 23.3% return on 1,200 cost. Commissions eat return especially on small trades — brokerage matters.

A worked example

Try the defaults: buy price of 12, sell price of 15, shares of 100, total commissions of 20. The tool returns 280.00. You can adjust any input and the result updates as you type — no submit button, no reload. That's the real power here: seeing how sensitive the output is to one or two assumptions.

Here's a second scenario: you buy 500 shares at a price of 45, sell them at 52, and pay 125 in total commissions (entry and exit combined). The calculation runs as follows:

  • Gross profit = (52 − 45) × 500 = 3,500
  • Net profit = 3,500 − 125 = 3,375
  • Initial investment = 45 × 500 = 22,500
  • Percentage return = (3,375 ÷ 22,500) × 100 = 15.0%

In this case, commissions represent 0.56% of the gross gain, leaving the overall return relatively unscathed. The same 125 in costs on a smaller trade, by contrast, would consume a much larger slice of profit.

What moves the number most

The result responds to Buy Price, Sell Price, Shares, and Total Commissions. Not every input has equal weight. Adjusting one input at a time toward extreme values shows which ones move the result most.

Why investors run this

Most people's intuition for compounding is wrong — not because the math is hard, but because linear thinking doesn't account for curves. Running numbers through a calculator like this one is the cheapest way to recalibrate that intuition before making an irreversible decision about contribution rate, asset mix, or retirement age.

Common scenarios where this matters

  • Short-term trading: When hold periods are brief, commissions and bid-ask spreads form a larger percentage of total return, making this calculation more sensitive to cost.
  • Position sizing: Traders evaluating whether to buy 100 shares or 1,000 shares can model how trade size affects the final dollar and percentage outcome.
  • Entry and exit planning: Comparing two different exit prices or two different purchase prices illustrates the minimum gain needed to break even after costs.
  • Broker selection: Swapping one commission figure for another shows the impact of brokerage fee structures on net returns.

What this does and does not capture

The calculator does compute the net profit or loss after subtracting all commissions from the gross gain. It expresses that outcome both in absolute currency terms and as a percentage return on your initial outlay.

The calculator does not account for taxes on gains, dividend income received during the holding period, changes in share price between purchase and sale that occur in real time (volatility), or the opportunity cost of capital tied up in the position. It treats the trade as a single transaction with a fixed entry and exit price, not a series of partial fills or adjustments.

Educational illustration

This result is for educational illustration only and models one scenario under simplified assumptions. Actual trading outcomes depend on market conditions, order execution, timing, and factors outside the scope of this tool.

Example Scenario

Your stock trade of 100 shares bought at £12 and sold at £15 resulted in a net profit or loss of 280.00.

Inputs

Buy Price:£12
Sell Price:£15
Shares:100
Total Commissions:£20
Expected Result280.00

This example uses typical values for illustration. Adjust the inputs above to match a specific situation and see how the result changes.

Sources & Methodology

Methodology

The calculator computes profit or loss by taking the difference between the sell price and buy price per share, multiplying by the number of shares held, then subtracting total commissions paid. This models a straightforward buy-and-hold trade where you purchase at one price and sell at another. The calculation assumes commissions are fixed and known upfront, applies no adjustment for timing or market conditions between trades, and does not account for dividend income, corporate actions, or partial position sales. Results reflect nominal gains or losses without consideration of tax liabilities, transaction fees beyond those entered, or the impact of holding period on returns.

Frequently Asked Questions

What else to subtract?
Dividend withholding tax, Stamp Duty (0.5% on purchase), FX fees for foreign stocks.
Taxable?
Capital gains tax above annual allowance. tax-advantaged account-held stocks CGT-exempt.
Small trades worth it?
20 commission on 1,000 trade = 2% drag. Eats often first 5% of return. Trade larger amounts or use zero-commission brokers.
Still holding?
Use current market price as sell — shows unrealised P&L.

Related Calculators

More Investing Calculators

Explore Other Financial Tools