$30 trillion is moving daily through a machine almost nobody understands - how the stock market works
Disclaimers
Affiliate Disclaimer:This site contains affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you. We only promote products we believe will add value to our readers.
For more information, please see our Affiliate Disclaimer Page.
Financial Disclaimer:Investing and trading in stocks, bonds, and other financial instruments carries inherent risks. The content on this blog is not intended to serve as financial or investment advice. Please consult with a certified financial advisor before making any investment decisions.
While we strive to provide accurate and up-to-date information, we do not guarantee the accuracy, completeness, or timeliness of any information provided. Any reliance you place on the content of this blog is strictly at your own risk.
Please see our Disclaimer Page.
This content is free thanks to our sponsors
Sponsored Ad – I may earn a commission if you click and buy
Table of Contents
Think about the last time you used a vending machine. You put in money, pressed B7, and a bag of Doritos appeared. You didn't think about the warehouse that restocked it, the pricing algorithm that set the cost, or the mechanical conveyor that dropped the bag. It just worked.
That's exactly how most people experience the stock market. They open an app, tap "buy," and — presto — they "own Apple." The invisible machinery underneath? Almost nobody thinks about it.
When you buy a stock, you're not buying it from Apple. You're buying it from a specific person who decided, at that exact moment, they wanted to sell.
The exchange is just the vending machine in the middle — matching the two of you together in under a millisecond.
About 58% of Americans own stocks. Fewer than 1 in 5 can correctly explain how a trade is actually executed — yet the system moves more money in a single day than the entire GDP of France.
The world's most intense eBay auction — running 6.5 hours a day
Imagine eBay, except instead of one auction ending in 7 days, there are 8,000 auctions running simultaneously, each updating thousands of times per second, and the auctioneer is a computer that matches buyers and sellers faster than you can blink.
That's a stock exchange. At the heart of it is something called the order book — a live, constantly updating list of everyone who wants to buy a stock (and at what price) and everyone who wants to sell (and at what price). The gap between the highest buyer and the lowest seller is called the spread. Every trade that happens is just two entries in this list finding each other.
Here's a live order book simulation. Hit the button to watch what happens when a market order arrives:
| Last trade price: $147.82 ACME Corp (simulated) | |||
| Bids (buyers) | Asks (sellers) | ||
| Price | Qty | Price | Qty |
| Spread: $0.04 | |||
Press the button to see a trade execute.
Every time you press that button, you're watching what happens millions of times a day. A buyer and a seller find each other. The spread shifts. The last price updates. The number everyone calls "the stock price" is simply the price of the most recent match — nothing more philosophical than that.
Once you see it this way, price movements stop feeling mysterious. Heavy buying pressure depletes the asks and pushes price up. Heavy selling depletes the bids and pushes it down. Supply and demand made tangible: a live ledger, not an abstract force.
Three ways to interact with the machine
Not all orders are equal. The type you place determines how the machine treats you.
| Investor | Order type | What happens | Trade-off |
|---|---|---|---|
| Keisha, 27 (retail) | Market order | Fills instantly at the lowest available ask price | Guaranteed fill, but no price control |
| Dev, 44 (pension fund, 500,000 shares) | Algorithmic slicing | Order broken into hundreds of small pieces across the day to avoid moving the market | Minimises market impact, but takes hours |
| Priya, 35 (retail) | Limit order at $146 | Stock dips to $146.12 then bounces. Order never fills. | Exact price control, but may never execute |
Dev's situation deserves a closer look. If he placed 500,000 shares as a single market order, he'd work through the ask side of the book level by level — paying progressively higher prices. Think of it like trying to buy 500,000 concert tickets without the scalpers noticing the demand spike. Here's how a well-managed institutional trade actually unfolds:
| Time | Shares acquired | Avg price | Note |
|---|---|---|---|
| 9:30 AM — Open | 40,000 | $147.80 | Blending into opening volume |
| 11:00 AM | 150,000 | $147.91 | Market noticed buying pressure, price drifted up |
| 1:30 PM | 310,000 | $147.88 | Average improves after a mid-day dip |
| 3:50 PM — Close | 500,000 | $147.96 | Market impact cost ~$80,000. Considered a good result. |
Note: Keisha, Dev, and Priya are hypothetical examples to illustrate order types. Real outcomes vary based on market conditions, order size, and execution venue.
The spread compounds quietly over time
On Apple, the bid-ask spread is often one cent. On a small-cap stock with thin volume, it can be $0.40 or more. Every time you buy and sell, you pay the spread twice. Use the calculator below to see what that costs:
| Trade size ($): | $10,000 | |
| Spread ($): | $0.10 | |
| Trades per year: | 10 |
| Cost per round trip | Annual friction | Drag on capital |
|---|---|---|
| $20 | $200 | 2.0% |
This is why liquidity matters so much, and why professional traders obsess over execution quality in a way most retail investors never consider.
What most people believe vs. what actually happens
| Common belief | What actually happens |
|---|---|
| You're buying shares from the company itself | You're buying from another investor who wants to sell right now |
| "The market" sets a fair, consensus price | The price is the last agreed-upon match between two specific people |
| Zero-commission means completely free | You still pay the spread — the gap between bid and ask — on every trade |
| You own the shares the moment you buy | Settlement takes until the next business day (T+1) |
| The stock exchange is one place | Trades route across dozens of venues: NYSE, NASDAQ, dark pools, and more |
The part nobody tells you: you don't own it yet
When your trade executes, you don't immediately own the shares. There's a two-step process most investors have never heard of.
First, the trade executes — buyer and seller are matched, price agreed. Then comes settlement, which in the US happens the next business day (called T+1). During that window, a clearinghouse sits in the middle, guaranteeing both sides will follow through — the buyer delivers cash, the seller delivers shares.
The clearinghouse takes on counterparty risk so that you never have to worry whether the person on the other side will actually show up. It's the least glamorous part of the system, and arguably the most important. Without it, every trade would be a handshake deal with a stranger.
The simpler path still exists
If none of this complexity interests you — and that's completely valid — the answer is simple: buy low-cost index funds, hold them for decades, and ignore everything above. The mechanics described here still apply underneath, but a fund manager handles all execution decisions on your behalf.
But if you're ever placing individual trades, understanding the machine you're interacting with — the order book, order types, spreads, and settlement — changes what "being careful" actually means in practice.
"The stock price isn't discovered by some wise collective intelligence. It's the last price two specific people agreed on, matched by a computer in under a millisecond."
You're not buying from a company. You're not buying from "the market." You're buying from another person who, for their own reasons, decided right now was the right moment to sell. The exchange is just the world's most sophisticated matchmaker — running six and a half hours a day.