How the Stock Market Works, From Orders to Short Squeezes
The stock market works by matching buyers and sellers of company shares through brokers, exchanges and market makers, with prices moving to wherever the next trade happens; most people buy hoping prices rise, short sellers borrow and sell shares hoping prices fall, and a short squeeze is what happens when a heavily shorted stock rises and short sellers rush to buy back at the same time.
Run your own numbers: ROI calculator and Options profit calculator
From the outside the stock market looks like a room of people shouting at screens. From the inside it looks like a lot of computers politely routing orders, which is less cinematic and more useful to understand.
Follow one order from your phone to a fill, then flip it around and see what selling short does. The squeeze makes sense after that.
Worked example: shorting 100 shares at $50
You borrow 100 shares of a made-up company through a margin account and sell them at an example $50: $5,000 lands in your account. You still owe the lender 100 shares.
Price falls to $40. You buy 100 back for $4,000, return them, and keep $1,000: ($50 - $40) x 100.
Price rises to $80. Buying back costs $8,000. Your result: ($50 - $80) x 100 = -$3,000. At $150 it is -$10,000. A stock you buy can only fall to zero; a stock you short has no ceiling, so neither does the loss.
We left out borrowing costs to keep the math visible. In real life "short sellers are subject to the margin rules and other fees and charges may apply (including interest on the stock loan)."
| Buy back at $40 | $1,000 |
|---|---|
| Buy back at $80 | -$3,000 |
| Buy back at $150 | -$10,000 |
| Shares owed the whole time | 100 |
Who is on the other side of your trade
When you tap buy, the order goes to your broker first. Investor.gov: "Many investors who trade through online brokerage accounts assume they have a direct connection to the securities markets, but they don't." "Broker-dealers charge a fee to handle trades between the buyers and sellers of securities."
Your broker can send the order to an exchange or to a market maker. "A "market maker" is a firm that stands ready to buy or sell a stock listed on an exchange at publicly quoted prices." Some market makers pay brokers for orders; "This is called “payment for order flow.”" Whatever the route, "your broker has a duty to seek the best execution that is reasonably available for its customers' orders."
Where the shares come from in the first place
"Stocks are a type of security that gives stockholders a share of ownership in a company." A company usually gets onto the market through an initial public offering, or IPO, and from then on it must keep reporting. "The SEC makes these documents publicly available without charge on its EDGAR website".
After that first sale, the trading you see is investors swapping shares with each other. The company only gets money when it sells new shares. The SEC's job, in its words, is "to maintain standards for fair, orderly, and efficient markets."
The three order types worth knowing
Pick the order type before you pick the price.
- Market order: "This type of order guarantees that the order will be executed, but does not guarantee the execution price."
- Limit order: "A limit order is an order to buy or sell a security at a specific price or better."
- Stop order: "When the stop price is reached, a stop order becomes a market order." That last part is why a stop can fill well past your stop price in a fast market.
Short selling, in the SEC's words
"Having a “long” position in a security means that you own the security." "A "short" position is generally the sale of a stock you do not own." "The investor later closes out the position by returning the borrowed security to the stock lender, typically by purchasing securities on the open market."
It also comes with chores: "If the borrowed stock pays a dividend, the short seller is responsible for paying the dividend to the person or firm making the loan." And Investor.gov puts it bluntly: "Short selling is for the experienced investor."
How a short squeeze happens
Short sellers lose when the price rises. "If the price of the stock rises and you buy it back later at the higher price, you will incur a loss." Many protect themselves with orders to buy back if the price climbs: "Investors generally use a buy stop order to limit a loss or protect a profit on a stock that they have sold short."
Now picture a stock that a lot of people have shorted. Good news pushes the price up. Some short sellers buy back to stop the bleeding, their stops fire as market orders, and all that buying pushes the price higher, which forces the next group to buy. The price is now rising because people are being forced to buy, not because anyone changed their mind about the company. When the forced buying ends, the price can fall just as fast.
Stock splits: what changes and what does not
A stock split changes the number of shares and the price per share, not the size of your stake. In a two-for-one split you hold twice as many shares at half the price, and the company is worth the same right after. Companies do it to bring the share price down. Your broker adjusts your holdings on its own, and the market then moves the price for normal reasons. A split is not a bonus, and it is not a signal that a stock will rise.
Bull markets and bear markets
A bull market is a long stretch of rising prices, a bear market a long stretch of falling ones. Neither has an official definition, and people mostly agree on which one they were in only after the fact. For an index fund holder the useful part is that both come around, and the plan does not change when the animal does.
FAQ
What is a short squeeze in simple terms?
A short squeeze is a fast price jump in a stock that many investors have bet against. As the price rises, short sellers buy shares back to cap their losses, and that buying pushes the price up further, forcing more of them to buy. It can end as quickly as it started.
How does short selling make money?
You borrow shares, sell them at today's price, and hope to buy them back cheaper later to return to the lender. The difference between your sale price and buy-back price is your profit or loss, minus interest on the borrowed shares, fees, and any dividends you must pay the lender.
Why is short selling risky?
Because a price can rise without limit, so the loss can be larger than the money you started with. You also need a margin account, your broker can demand more money or close your position if the price rises, and you pay to borrow the shares for as long as you stay short.
Who sets the price of a stock?
Nobody sets it alone. The price is wherever the last trade happened between a buyer and a seller. If more people want to buy at the current price than sell, the price tends to move up until enough sellers appear, and the other way round. News and earnings change what people are willing to pay.
What happens when I click buy in a brokerage app?
Your order goes to your broker, which routes it to an exchange, a market maker or another venue. It fills at the best price available there, which may differ slightly from the price you saw, especially in a fast market. A limit order lets you cap the price you are willing to pay.
Sources
- SEC Investor.gov, Stock Purchases and Sales: Long and Short, checked
- SEC Investor.gov, Types of Orders, checked
- SEC Investor.gov, Executing an Order, checked
- SEC Investor.gov, Market Participants, checked
- SEC Investor.gov, Public Companies, checked
- SEC Investor.gov, Stocks, checked