Skip to content
Home / Learn / How a trade works

Foundation lesson 2 of 22 · Folder 1 — Start here

The weekly goal: one lesson a week. Twenty-two weeks for the foundation, no streak to lose — the path waits where you left it.

How a trade works

Every trade is a meeting between a bid and an ask. Here is what happens in between.

In this lesson: explain how a trade actually happens — bid, ask, and spread — and tell whether a given order fills at once, rests, fills partly, or never fills. Reading: about 6 min · Practice: about 4 min

Illustration of two hands exchanging a framed share certificate with a price tag hanging from its corner, representing a trade

The bid and the ask

Every stock has two prices at any moment. The bid is the highest price anyone is currently willing to pay. The ask is the lowest price anyone will currently accept. The gap between them is called the spread. A trade happens when someone accepts the other side's price — a bidder lifts the ask, or someone offering shares hits the bid.

Two ways to place an order

A market order says “complete this at whatever the current price is.” It takes the best available bid or ask immediately. A limit order says “complete this only at my price or better.” What happens next depends on that price. A marketable limit order — for a buyer, a limit at or above the current ask; for a seller, a limit at or below the current bid — can complete right away, like a market order with a price cap. A nonmarketable limit order — for a buyer, a limit below the ask — does not complete right away. It rests in the order book and may complete later, in part, or never. Market orders prize speed and certainty of completion; limit orders prize control over price. Neither is universally better — they solve different problems. A useful default for beginners: when the spread is a penny and the stock trades millions of shares a day, the two order types behave almost identically. When the spread is wide, the choice matters a great deal.

Quote: bid $29.90 · ask $30.00 Limit buy 100 @ $30.00 marketable — meets the ask FILLS AT ONCE at $30.00 Limit buy 100 @ $29.50 nonmarketable — below the ask RESTS IN THE BOOK may fill later, or never Market buy 500 takes 300 @ $30.00, FILLS IN PARTS remaining 200 at the next ask one quote, three outcomes — the order type and the limit decide
Illustrative example: with a bid of $29.90 and an ask of $30.00, a limit buy at $30.00 is marketable and fills at once; a limit buy at $29.50 is nonmarketable and rests in the book; a market buy for 500 shares takes the 300 offered at $30.00 and the remaining 200 at whatever ask comes next.

Who is on the other side

There is always someone on the other side of your trade. It might be another individual, a pension fund, or a professional firm whose entire business is quoting bids and asks all day. You never need to know who it is. The exchange matches orders automatically, pairing each order with the best available counterparty in fractions of a second. This is worth internalizing: every price you see already reflects someone willing to transact there. You are never “taking” a price from an empty market — you are accepting terms that a real participant offered.

The price you see is not always the price you get

Quotes move constantly. By the time your order arrives, the best bid or ask may have shifted — especially in fast-moving markets or in stocks where few shares change hands. With a market order you accept that uncertainty; with a limit order you cap it, at the cost that your order might never complete.

Why spreads differ

The spread is not fixed. In heavily traded stocks, competition among those quoting prices squeezes the spread to a penny or less — there is always someone willing to shade their price to win the trade. In thinly traded stocks the spread can be wide, because quoting a tight price there means taking on real risk with little reward. As a rule of thumb: the more shares changing hands each day, the tighter the spread, and the closer the price you see is to the price you get.

After the trade

Once matched, the trade settles: shares and cash officially change hands, usually one business day later. Your brokerage handles all of this invisibly. The shares simply appear in your account, and the cash leaves it. Nothing further is required of you.

What a trade costs you

Every round trip has transaction costs beyond the shares themselves. First, the spread: an order that completes immediately against the best bid or ask pays slightly more than the midpoint on the way in and receives slightly less on the way out — a resting order that someone else completes against does not pay that crossing cost in the same way. Second, your brokerage may charge a commission or take payment for routing your order — either way, someone is compensated for handling it. Neither cost is large on its own. But they apply to every single trade, win or lose, which is why frequent trading needs a genuine edge just to break even: the costs compound silently while you focus on the wins.

Taxes are separate from transaction costs. Tax is not charged by the exchange or your broker to complete a trade; it is a later obligation on profits, handled through the tax system. Short holding periods are generally taxed at higher rates than long ones. Keep the two buckets apart in your head: transaction costs are the price of trading; taxes are a share of any profit, owed afterwards.

Worked example: Reading a quote

Illustrative figures only, to show how bid, ask and orders interact.

PriceShares available
Bid (willing to pay)$49.95200
Ask (willing to accept)$50.05300

Spread: $0.10. Hypothetical outcomes from this one quote: (1) Immediate execution — a market order to buy 100 shares, or a marketable limit order to buy 100 at $50.05, completes at once at $50.05 (total $5,005). (2) Resting order — a nonmarketable limit order to buy 100 at $50.00 does not complete now; it rests in the book as a new bid at $50.00. (3) Partial fill — a limit order to buy 400 at $50.05 finds only 300 shares offered at $50.05, so 300 complete and the remaining 100 rests at $50.05 unless you cancel it. (4) No fill — if the price never trades at $50.00 and the $50.00 order expires or is cancelled, it completes not at all. Same quote, four different results — the order type and limit price decide which one you get.

the spread: $0.04 bid $49.98 highest price offered to pay ask $50.02 lowest price accepted a trade happens when a bid and an ask meet
Two prices, one gap: the bid is $49.98 and the ask is $50.02, a spread of $0.04. Some orders cross it to fill at once; others rest and may fill later, in part, or never.

Practice

The quote for a fictional stock is: bid $29.90 for 200 shares, ask $30.00 for 300 shares. Three orders arrive. (a) A limit order to buy 100 shares at $30.00. (b) A limit order to buy 100 shares at $29.50. (c) A market order to buy 500 shares. For each one: does it fill at once, rest, fill partly, or never fill — and at what price?

Answers: (a) The limit price meets the ask, so it is marketable — it fills at once, all 100 shares at $30.00. (b) At $29.50 the order is below every ask, so it rests in the book; it may fill later or never. (c) It takes all 300 shares offered at $30.00, and the remaining 200 fill at whatever ask comes next — a market order promises execution, not a price.

Listen to this lesson

Audio edition: recorded from an earlier draft of this lesson. The text on this page is the current reviewed version — where the two differ, the text governs.

Terms in this lesson: Bid · Ask · Limit order · Market order

From readers

Questions, answered

No questions answered here yet — yours could be the first.

For research and education purposes only. Not financial advice. Last reviewed: October 24, 2026.
Written at golden hour.