You buy at a stock quote’s ask, the lowest price a seller will take, and sell at its bid, the highest a buyer will pay. The gap between them costs you the moment you buy, and it’s usually widest on stocks that trade few shares. When it’s wide, use a limit order to set the most you’ll pay.

Source