1. Calculators
  2. Trading & Risk Management

Trading Cost Calculator

Work out what a stock trade really costs to open and close: commission, bid-ask spread, slippage and US regulatory fees, in dollars and basis points. Then see how much of a strategy's gross return those costs take, and measure the slippage on your own fills.

Updated Oct 16, 2026Free · no sign-upFormulas tested

Your inputs

The full cost of opening and closing one stock position: commission on both trades, the bid-ask spread, slippage and, optionally, US regulatory fees on the sale.

shares
$
Commission charged
$
Charged on each side: once to buy, once to sell.
$
Optional. Many per-share plans charge at least this much per order.
cents
The full quoted spread, ask minus bid. You pay half of it on each side.
cents
How far your fills land beyond the quote, on average. Measure it in the third tab.
US regulatory fees on the sale

Results

Round-trip cost$25.5012.7 bps of a $20,000 position, paid on every buy-and-sell
Cost in basis points
12.7 bps
1 bp = 0.01% of the position
Cost as % of position
0.127%
Break-even move per share
$0.0510
5.1¢, the price must move this far just to cover costs
Commissions (both sides)
$5.00
$2.50 per side
Spread cost
$10.00
Half of 2¢ on each of 2 trades
Slippage cost
$10.00
1¢ × 500 shares × 2 sides
Regulatory fees
$0.50
SEC $0.4120 + TAF $0.0830

Spread is the largest cost here (39% of the total). The stock has to move 0.127% in your favor before this trade makes a cent.

Round-trip cost in basis points at different trade sizes

CommissionSpreadSlippageRegulatory fees
051015202550 sh100 sh250 sh500 sh1,000 sh2,500 sh5,000 sh10,000 sh

Same share price and per-share costs, different numbers of shares. Spread and slippage scale with size, so in basis points they stay flat; a flat or minimum commission weighs most on small trades.

Cost by trade size

SharesPositionCommissionsRound-trip costBasis points
50$2,000$2.00$4.0520.2
100$4,000$2.00$6.1015.2
250$10,000$2.50$12.7512.7
500$20,000$5.00$25.5012.7
1,000$40,000$10.00$50.9912.7
2,500$100,000$25.00$127.4812.7
5,000$200,000$50.00$254.9512.7
10,000$400,000$100.00$509.9012.7

Results are estimates from the numbers you enter. They are not financial, tax or legal advice.

How to use the trading cost calculator

There are three tools. Cost per trade adds up everything you pay to buy a position and sell it again. Impact on returns shows what those costs do to a strategy. Slippage measured works out the slippage on a real fill so you can feed realistic numbers into the first tool.

For the cost per trade:

  1. Enter the number of shares and the share price.
  2. Choose how your broker charges commission: per share (often with a minimum per order) or a flat amount per trade. Either way it is charged twice.
  3. Enter the bid-ask spread in cents, from the quote at the time you would trade.
  4. Enter your average slippage per side in cents. If you do not know it, measure a few dozen fills with the third tool.
  5. Choose whether to include US regulatory fees on the sale.

For the impact on returns, enter the average gross return per trade from a backtest or your journal, the round-trip cost as a percentage of the position, and how many trades you make a year.

The formulas

Round-trip cost = 2 × C + S × N + 2 × s × N + Fees
Cost in basis points = Round-trip cost ÷ (N × P) × 10,000C is the commission per side (per-share rate × N, but not below the order minimum, or the flat fee), S the full bid-ask spread per share, s the slippage per share on each side, N the number of shares and P the share price.

The spread appears once, not twice. Measured from the midpoint, you pay half the spread when you buy at the ask and the other half when you sell at the bid, so a round trip costs the full spread on every share.

SEC fee = Sale proceeds × $20.60 ÷ 1,000,000
FINRA TAF = Shares sold × $0.000166, at most $8.30Charged on the sale only, so once per round trip. Brokers usually round these to the cent; the calculator does not.
Net return per trade = Gross return − Cost
Share of gross profit lost = Cost ÷ Gross return
Annual cost drag = Cost × Trades per yearAll as a percentage of the position. Slippage = (Fill − Expected) × Shares for a buy, (Expected − Fill) × Shares for a sell; a negative result is price improvement.

A worked example

You buy 500 shares at $40, a $20,000 position, and sell them later at the same price. Commission is $0.005 a share with a $1 minimum, the spread is 2 cents and you lose 1 cent a share to slippage on each fill.

Commissions come to $5.00, the spread costs $10.00, slippage another $10.00, and the regulatory fees on the sale add $0.50. The round trip costs $25.50, which is 12.7 bps of the position. The stock has to move $0.0510 a share in your favor before the trade breaks even.

The commission is the smallest part: spread and slippage together cost four times as much.

Where the money goes: commission, spread or slippage

Switching brokers changes only one line of the bill. For the same trade:

Commission plan Round-trip cost Basis points
$0.005 a share, $1 minimum $25.50 12.7 bps
$4.95 flat per trade $30.40 15.2 bps
Zero commission $20.50 10.2 bps

Even the zero-commission version costs $20.50, because the spread and slippage are paid to the market, not to the broker. For an active trader, a broker that fills orders a cent better can be worth more than one that charges nothing.

Why small orders and cheap stocks cost more

Costs quoted in cents behave differently from costs quoted in percent:

Trade Round-trip cost Basis points
50 shares at $40 $4.05 20.2 bps
500 shares at $40 $25.50 12.7 bps
5,000 shares at $40 $254.95 12.7 bps
4,000 shares at $5 $201.08 100.5 bps

The 50-share order pays the $1 minimum on each side, which lifts its cost to 20.2 bps. Above that size, spread and slippage scale with the share count, so the cost in basis points stays roughly flat.

The last row is the same $20,000 in a $5 stock. A two-cent spread is 0.05% of a $40 share but 0.4% of a $5 share, so the round trip costs 100.5 bps. Low-priced stocks are expensive to trade even when every per-share cost is identical.

Commission impact on a trading strategy

A strategy’s edge is a small number, and costs come straight out of it. With an average gross return of 0.6% per trade and costs of 0.15%, each trade keeps 0.45%: costs take 25.0% of the gross profit. At 100 trades a year the costs add up to 15.0% of the capital traded.

Two things make this worse in practice:

  • Thin edges. If the same strategy averaged only 0.2% gross, the same costs would take 75.0% of it, leaving 0.05% a trade. A small rise in spread or slippage would erase it.
  • Higher frequency. At 250 trades a year the drag rises to 37.5%. Edges per trade usually shrink as frequency rises while costs per trade do not.

A useful habit is to run every backtest with costs at least as high as your measured average, and to check how much the result degrades if they double.

Measuring slippage properly

Slippage is the cost most traders guess at. To measure it, record the price at the moment you decided to trade (the quote, or the signal price for a systematic strategy) and compare it with the average fill price from the execution report.

The example buy order expected $40 and filled at $40.03: $15.00 of slippage on 500 shares, or 7.50 bps. For a sell, the sign flips: selling at $39.97 against an expected $40 also costs $15.00.

Judge slippage on the average of many fills, split by entries and exits and by order type. Stop and market orders in fast markets slip the most; limit orders slip less but sometimes do not fill, and missed trades are a cost no fill report shows.

What this calculator does not include

  • Market impact. Large orders relative to a stock’s trading volume push the price, and that cost grows faster than the order size. Use the market impact calculator for big orders.
  • Short-sale costs. Borrow fees and dividends owed while short are not included.
  • Margin interest on borrowed money.
  • Exchange and clearing fees that some brokers pass through separately. Add them to the commission if yours does.
  • Other markets. Options, futures and forex have different fee structures.

The regulatory fees are US rates that change over time; the SEC resets its fee at least once a year.

Frequently asked questions

How much does a stock trade cost?
Add the commission on both trades, the bid-ask spread (half on the way in, half on the way out), slippage on both fills and, in the US, the SEC fee and FINRA trading activity fee on the sale. For 500 shares at $40 with a 2-cent spread, 1 cent of slippage per side and $0.005 a share in commission, the round trip costs $25.50, or 12.7 bps.
What is slippage in trading?
Slippage is the difference between the price you expected when you sent the order and the price you were filled at. Buying at $40.03 when the quote was $40 is 3.00¢ of slippage per share, 7.50 bps of the trade. It is largest for market and stop orders in fast or thin markets.
Are zero-commission brokers really free?
They charge no commission, but you still pay the bid-ask spread and any slippage, and those are usually the larger costs. In the example, removing the commission entirely still leaves a round trip of $20.50. Many US zero-commission brokers are paid by market makers for routing orders to them, so the quality of the fill matters more than the fee schedule.
What are the SEC fee and the FINRA TAF?
They are US regulatory fees charged on sales of stock, which brokers pass on to customers. The SEC Section 31 fee is $20.60 per million dollars of sale proceeds from April 4, 2026, and the FINRA trading activity fee is $0.000166 per share sold, capped at $8.30 per trade. On ordinary trade sizes they come to cents.
What is a basis point?
A basis point is one hundredth of a percent: 100 basis points make 1%. Quoting trading costs in basis points makes trades of different sizes comparable. A cost of 12.7 bps means the round trip takes 0.127% of the position.

Related calculators

All calculators →

This calculator is for education and planning. It uses the formulas described above and the inputs you provide; real results depend on fees, taxes, timing and other details that a general tool cannot know. PromtFinance does not give personal financial advice. Check important decisions with your provider or a qualified professional.