At any moment a market shows two prices: the bid, the best price someone will pay you (you sell at this price), and the ask, the best price someone will sell to you (you buy at this price).
The gap between them is the spread. You always buy a little higher than you could immediately sell: every round trip therefore starts with a small loss.
The spread often pays the market maker, who displays both prices at all times. It is measured in cents, as a percentage of the price or, on forex, in pips.
It varies with liquidity and time of day: very tight on major currency pairs and large stocks, wider on small assets, at night and around announcements.
Examples
SPREAD-X (fictional market) : The two lines frame the last price of this fictional market: the ask on top, where you buy, the bid below, where you sell. The further apart they are, the more each round trip costs you.
2001: US stocks switch to decimals : Until 2001, US stocks were quoted in fractions of a dollar, often in steps of 1/16, i.e. 6.25 cents. The switch to decimal prices, completed in April 2001, allowed one-cent gaps and sharply reduced the spreads paid by investors.
Key terms
Bid
Best buying price offered: the price at which you can sell
Ask
Best selling price offered: the price at which you can buy
Spread
Gap between the ask and the bid
Pip
Small unit of change in currency pairs (0.0001 on EUR/USD)