Stock Trade Cost: Formula, Worked Example and Order-Price Limits

A stock trade calculator can estimate the cash and fees for a planned order, but it cannot choose a stock, guarantee an execution price or decide whether an investment is suitable. This guide replaces a title that promised an interactive calculator with a repeatable manual calculation and the order-price limits to check. The page does not contain a live quote feed or order-entry form.

What to calculate before an order

For a simple buy, start with the number of shares and a price assumption. The order value is shares × assumed price. Add the broker’s disclosed commission, exchange or regulatory charges, taxes where applicable and any account-specific fee. For a sell, subtract those charges from proceeds instead of adding them to cost.

Keep the assumed price, quote time, order type, share count and fee schedule together. A calculation made from a delayed quote is only a dated estimate; it is not an executable quote.

A worked buy and sell example

Suppose an investor plans to buy 50 shares at an assumed $20 per share. The order value is 50 × $20 = $1,000. If the broker’s current disclosure shows a $3 commission and no other applicable charge in this simple example, the estimated cash needed is $1,000 + $3 = $1,003.

If those 50 shares are later sold at an assumed $23 per share, the gross proceeds are 50 × $23 = $1,150. After a separate $3 sell commission, the simplified proceeds are $1,150 − $3 = $1,147. The difference between the buy cash requirement and sell proceeds is $147 in this hypothetical example, before taxes, bid-ask spread, market movement, currency conversion and any other broker or regulatory charge.

See also  ATR: Everything You Need To Know

The result is arithmetic under the stated assumptions. It does not establish a profit from a completed trade or tell you what price the market will accept.

Order type changes what “price” means

Investor.gov explains that a market order seeks immediate execution but does not guarantee an execution price. A limit order specifies a price or better, while a stop order becomes a market order when its stop price is reached. That means a calculator based on one assumed price can differ from the actual fill or fail to fill at all.

Before calculating, identify the order type and the broker’s current routing and execution terms. Do not treat the last-traded price as the price a market order must receive.

What the calculator cannot confirm

It cannot determine whether a stock is undervalued, whether a broker is cheapest for every investor, or whether a trade fits your time horizon and risk capacity. It also cannot reliably include a tax liability without the investor’s jurisdiction, holding period, account type and current tax rules. Those inputs require separate current records.

A repeatable checklist

  1. Write down the exact symbol, share count, order type and quote timestamp.
  2. Use a price range for buy and sell assumptions; do not label one quote as guaranteed.
  3. Copy commissions, platform charges, taxes and exchange fees from the broker’s current schedule.
  4. Check buying power, settlement obligations and whether the account permits the instrument.
  5. Recalculate after a material price change or when the broker changes the order terms.

Sources and review date

See also  How To Track Stocks In Excel

Sources reviewed November 26, 2026. The example is hypothetical and excludes unstated broker charges, taxes, spread and currency effects. This is educational information, not investment advice, a live quote or an order-execution guarantee.