Trading guides

Orders and Execution

Bid-Ask Spread Calculator and Formula

By Trading Statement

On this page

The bid-ask spread is the ask price minus the bid price. The bid is the highest displayed buying price and the ask is the lowest displayed selling price in the quote. Divide the difference by their midpoint to express the spread as a percentage.

Calculate the bid-ask spread

$0.04 per share · 0.2% of midpoint

Midpoint $20.00 · Estimated round-trip spread cost $4.00

Assumes both sides fill at the displayed quotes. Excludes fees and price changes.

How to calculate the bid-ask spread

Dollar spread = ask − bid. Midpoint = (bid + ask) ÷ 2. Percentage spread = (ask − bid) ÷ midpoint × 100. Multiply the dollar spread by the share count to estimate the round-trip spread cost before fees.

At $19.98 bid and $20.02 ask, the spread is $0.04 and its midpoint is $20.00. Relative to the midpoint, the full spread is 0.20%. Buying 100 shares at the ask and immediately selling at the unchanged bid costs $4 before fees.

A single buy at the ask costs $2 more than a hypothetical fill at the midpoint in this example. Be clear about whether you are reporting a one-way cost relative to a benchmark or the full cost of crossing both ways.

Compare size as well as quoted price

If only 25 shares are available at the best ask, a 100-share order may reach more expensive offers. The displayed spread gives a snapshot for the quantity available at those prices.

A wide spread can make a strategy with small targets expensive. A narrow spread can still mask limited depth or fast-changing quotes. Use actual fills to measure the realized cost for the amount you trade.

Compare spreads relative to price and size

A $0.10 spread around $10 is 1% of the midpoint. Around $100 it is 0.10%. Dollar spreads that look identical can impose very different costs relative to the capital deployed.

Record the best bid and ask at your decision time and the actual average execution price. A passive limit order may avoid crossing the spread, but it may not fill. Compare both cost and execution rate when evaluating a change in order handling.

Sources