Orders and executionMarket Foundations

Bid–ask spread

On this page

In brief

The gap between the current ask and bid. Buying and immediately selling at an unchanged quote incurs this gap.

How do you calculate the bid–ask spread?

A two-sided quote has a bid at which buyers are willing to buy and an ask at which sellers are willing to sell. Subtract the bid from the ask to get the spread and divide by their midpoint for a relative measure. A bid of 49.98 and ask of 50.02 give a spread of 0.04, or 0.08% of the midpoint of 50.

FX spreads are often expressed in pips. Identify the pair’s quote unit before converting. A purchase immediately followed by a sale crosses the full spread if the quote stays fixed and size is available. If P&L already uses the two execution prices, the spread is already embedded. Record commissions and any additional execution costs separately.

Why can execution be costly even with a narrow spread?

The best bid and ask only cover the size available at those prices. Suppose the 49.98/50.02 quote has just 10 units offered. A market order to buy 30 may fill the remaining 20 at higher prices. Record price and quantity at each level and compute the weighted average to estimate the larger order’s cost.

Spreads change with liquidity and quoting conditions. Quiet periods, news and session transitions can differ from active trading. A useful simulation compares median spreads across periods and keeps slippage relative to the pre-order quote on the relevant side in a separate field.

Compare spreads in consistent units

A spread of 0.10 means different relative costs at prices of 10 and 1,000. Divide by the midpoint and multiply by 10,000 for basis points. Retain absolute spread, relative spread and order size together.

A pip, tick and total cash charge are different units. Convert each into account currency using size and any multiplier. Another trader’s one-lot cost cannot be applied directly to a smaller paper order.

Put the spread inside the strategy budget

An expected gross move of 0.06 per unit cannot cover a round-trip spread of 0.04 plus commission of 0.03. Match executable price assumptions and costs before interpreting directional accuracy as an edge.

Repeated small trades repeatedly cross spreads, while fewer trades can retain exposure longer. Hold the signal fixed and vary a spread threshold, reporting trade count, missed opportunities and net results together.

Build a session-level spread table

Sample bid and ask at fixed times with event and session labels. Check continuity and missing sides before calculating a median and upper quantiles. Describe both ordinary conditions and occasional widening instead of relying on one average.

Replay the same order under ordinary and widened fictional spreads. Compare round-trip cost, the break-even move and remaining risk budget. Specify a rule for missing quotes, rather than filling them with favourable assumptions.

The GUTL perspective

The spread is a cost hurdle. For short-horizon signals, first test whether the expected move can cover it and other execution costs.

Everyday example

A bookshop buys a book for 20 and sells it for 30. Buying it and immediately selling it back costs 10 even without a change in quotes.

Simulation example

The simulated GBP/USD bid is 1.2621 and the ask is 1.2624. The 0.0003 gap is 3 pips. The spread cost of a round trip in 5,000 pounds is 1.50 US dollars.

Can the spread be calculated from a candle close?

The spread requires contemporaneous bid and ask prices. A candle usually summarises one price series. Use a two-sided quote or an order book to match the bid and ask before subtracting them.

Student comments

Further reading

3 articles