Formulas
Spread = ask − bid. Midpoint = (ask + bid) ÷ 2. Spread % of ask = spread ÷ ask × 100, and spread % of midpoint = spread ÷ midpoint × 100. Quote sources differ on which base they use; the midpoint version is the more common measure of liquidity.
Buying at the ask and selling straight back at the bid loses the whole spread: round-trip cost = spread × quantity. Against the midpoint, each side of a trade costs half the spread.
Worked example
Bid 99.50, ask 100.00. Spread = 0.50; midpoint = 99.75; spread is 0.5% of the ask and 0.50125% of the midpoint. On 100 shares, a round trip costs 50.00 before commissions.