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
Investing
Equity Return Calculator
Calculate total equity return from share price change and dividend yield. Enter buy price per share and sell price per share to see total return.
Investing
Total Investment Return Calculator
Calculate total investment return combining capital growth and income returns. Enter initial value and final value to see total return.
Financial Health
Index Fund vs Active Fund Calculator
Compare index fund vs active fund final wealth over a multi-decade horizon, accounting for the compounding effect of fee drag.
Formula Used
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.
Your stock trade of 100 shares bought at £12 and sold at £15 resulted in a net profit or loss of 280.00.
Inputs
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.
References
Frequently Asked Questions
What else to subtract?
Taxable?
Small trades worth it?
Still holding?
Related Calculators
Equity Return Calculator
Calculate total equity return from share price change and dividend yield. Enter buy price per share and sell price per share to see total return.
Total Investment Return Calculator
Calculate total investment return combining capital growth and income returns. Enter initial value and final value to see total return.
Index Fund vs Active Fund Calculator
Compare index fund vs active fund final wealth over a multi-decade horizon, accounting for the compounding effect of fee drag.
More Investing Calculators
Investing
100 Minus Age Asset Allocation Calculator
Calculate stock-vs-bond allocation using the 100-minus-age rule of thumb — see the suggested percentage split for any age you put in.
Investing
Active vs Passive Investing Calculator
Compare active and passive investment strategies accounting for fees across long horizons — the wealth gap from a percentage point of fee drag.
Investing
Annuity Present Value Calculator
Calculate the present value of an ordinary annuity from regular payments, periodic rate, and the number of periods until the stream ends.
Investing
APR to APY Calculator
Convert APR to APY for any compounding frequency to see the true effective annual yield — what you actually earn (or pay) on a given quoted rate.
Investing
Art Investment Calculator
Calculate art investment net returns including insurance and carrying costs, given purchase price, current value, and length of holding period.
Investing
Asset Allocation Calculator
Calculate suggested portfolio asset allocation by age and risk tolerance (stocks/bonds/cash). Enter risk tolerance 1-10 to see suggested stock and bond.
Explore Other Financial Tools
Utilities
Refrigerator Running Cost Calculator
Calculate refrigerator running cost by entering your fridge's kWh/year rating and local electricity rate to see annual and 10-year expenses.
Lifestyle
Long Distance Commute Lifetime Cost
Calculate true lifetime cost of a long-distance commute including time value — fuel, depreciation, and the hours you'll never get back.
E-commerce & Marketplace
Payment Platform Fee Calculator
Calculate annual payment platform fees from monthly transaction volume and fee structure. Enter percentage fee and flat fee per transaction to see annual fees.