How the Stock Market Works
From order books to market makers — a plain-English breakdown of the actual mechanics behind stock trading.
We're recording short 2-3 minute video explainers for every lesson. The full written guide is ready below. Bookmark this page — the video will appear right here when it's ready.
You tap "Buy" on your phone and own shares of Tesla three seconds later. It feels like magic, but behind that simple tap is a sophisticated system involving brokers, exchanges, market makers, and clearinghouses — all working together to match millions of buyers and sellers in real time. Understanding this machinery doesn't just satisfy curiosity — it makes you a better investor.
How It Works
When you place a buy order, here's what actually happens, step by step:
Step 1: Your broker receives the order. Whether you use Schwab, Fidelity, or Robinhood, your broker is the middleman between you and the exchange. They're licensed, regulated, and legally obligated to get you the best available price.
Step 2: The order hits the exchange (or a market maker). Your broker routes your order to an exchange like the NYSE or NASDAQ, or to a market maker — a firm that constantly offers to buy and sell shares, pocketing the tiny spread between the bid (what buyers will pay) and the ask (what sellers want). Companies like Citadel Securities and Virtu Financial handle a huge percentage of retail trades.
Step 3: A match is found. If someone is willing to sell at your price, the trade executes. This typically happens in milliseconds. On a liquid stock like Apple, there are thousands of buyers and sellers at any given moment.
Step 4: Settlement. The trade officially settles in one business day (T+1 as of May 2024). During settlement, the clearinghouse — the DTCC in the U.S. — ensures that shares transfer from seller to buyer and cash flows the other way. Your brokerage handles all this behind the scenes.
There are different types of orders. A market order says "buy now at whatever the current price is." A limit order says "buy only if the price drops to $150 or lower." Market orders guarantee execution but not price. Limit orders guarantee price but not execution.
Why It Matters for Investors
Understanding the plumbing helps you avoid costly mistakes. Here are a few practical implications:
Liquidity matters. Heavily traded stocks like Apple or Microsoft have tight bid-ask spreads — maybe a penny. A thinly traded small-cap stock might have a 10-cent spread. That spread is a hidden cost you pay every time you trade.
Market hours matter. The U.S. stock market is open from 9:30 AM to 4:00 PM Eastern, Monday through Friday. Pre-market and after-hours trading exist but have lower liquidity, wider spreads, and more volatile prices. Placing market orders outside regular hours is risky.
Your broker's incentives matter. Many commission-free brokers earn revenue through "payment for order flow" — they route your trades to market makers who pay for the privilege. This is legal and usually harmless for small trades, but it's worth understanding that "free" doesn't mean "without cost."
Real Example
On January 28, 2021, GameStop (GME) stock went from $17 to $483 in less than a month as retail traders on Reddit's WallStreetBets bought aggressively. The mechanics of the market were on full display:
- Market makers struggled to keep up with the unprecedented volume.
- Clearing requirements spiked — the DTCC demanded billions in additional collateral from brokers.
- Robinhood halted buying because it couldn't post enough collateral to the clearinghouse. Users could only sell, not buy — and the stock plunged.
- Bid-ask spreads on GME widened to several dollars during peak volatility, meaning the "price" you saw on screen wasn't the price you'd actually get.
This wasn't a conspiracy — it was the plumbing of the market under extreme stress. Investors who understood how settlement, margin, and clearinghouses work weren't surprised. Those who didn't felt blindsided.
The lesson: knowing how the stock market works behind the scenes isn't just academic. In moments of volatility, that knowledge is the difference between making a calm decision and making a costly one.
Ready to put your mindset into action? Learn to trade options.
Beginner Course Back to Investor Mindset