Module 1 ยท Lesson 4 of 23
๐ How the Stock Market Works
You know what stocks are โ now learn where they're traded, how prices are set, what happens when you click "buy," and why the market moves the way it does. This lesson takes you behind the scenes of the world's largest marketplace.
โ ๏ธ Important Disclaimer
This site is for educational purposes only and does not constitute financial advice. Investing involves risk, including the possible loss of principal. Always do your own research and consider consulting a qualified financial advisor before making investment decisions.
๐ In This Lesson
- Stock Exchanges: Where Stocks Are Traded
- Market Makers & the Bid/Ask Spread
- Order Types: Market, Limit, and Stop
- What Happens When You Click "Buy"
- Market Hours & Pre/Post Market
- Market Indexes: S&P 500, Dow, NASDAQ
- What Makes Stock Prices Move
- Bulls, Bears, and Market Cycles
- Key Takeaways
- Knowledge Check
๐๏ธ Stock Exchanges: Where Stocks Are Traded
A stock exchange is an organized marketplace where buyers and sellers come together to trade shares of publicly listed companies. Think of it like an enormous, highly regulated auction house that runs every business day.
The two major U.S. stock exchanges are:
| Exchange | Full Name | Key Facts |
|---|---|---|
| NYSE | New York Stock Exchange | The largest exchange in the world by market capitalization. Located at 11 Wall Street. Has a physical trading floor (though most trading is now electronic). Known for large, established "blue chip" companies. |
| NASDAQ | National Association of Securities Dealers Automated Quotations | The second-largest exchange globally. Fully electronic โ no physical trading floor. Known for technology companies. Home to Apple, Microsoft, Amazon, Google, and Meta. |
Other notable exchanges around the world include the London Stock Exchange (LSE), Tokyo Stock Exchange (TSE), Shanghai Stock Exchange (SSE), and Euronext. As a U.S. investor, you'll primarily interact with NYSE and NASDAQ.
๐ How Companies Get Listed
A company becomes publicly traded through an Initial Public Offering (IPO). This is when a private company first sells shares to the public. After the IPO, those shares trade on the exchange between investors โ the company itself doesn't receive money from these secondary-market trades. When you buy shares of Apple today, you're buying from another investor who's selling โ not from Apple directly.
๐ Market Makers & the Bid/Ask Spread
For a trade to happen, there needs to be both a buyer and a seller at an agreed price. But what if you want to sell right now and no one wants to buy at that exact moment? Enter market makers.
What Market Makers Do
Market makers are firms that commit to always being willing to buy and sell a particular stock. They stand ready on both sides of every trade, ensuring there's always someone to transact with. In return, they profit from the tiny difference between their buying and selling prices.
The Bid/Ask Spread
Every stock has two prices at any given moment:
| Price | What It Means | Who Sets It |
|---|---|---|
| Bid | The highest price someone is willing to pay (buy) | Buyers / market makers |
| Ask (Offer) | The lowest price someone is willing to accept (sell) | Sellers / market makers |
| Spread | The difference between bid and ask โ this is the market maker's profit | Determined by supply and demand |
๐ก Example: Reading a Bid/Ask
| Stock: XYZ Corp | Price |
|---|---|
| Bid | $49.95 |
| Ask | $50.00 |
| Spread | $0.05 (0.1%) |
If you want to buy immediately, you'd pay the ask price ($50.00). If you want to sell immediately, you'd receive the bid price ($49.95). That $0.05 difference is the cost of instant execution.
Spread Size Matters
| Stock Type | Typical Spread | Why |
|---|---|---|
| Large-cap (Apple, Microsoft) | $0.01 โ $0.02 | Extremely high trading volume; many market makers competing |
| Mid-cap | $0.02 โ $0.10 | Moderate volume; fewer competing market makers |
| Small-cap / penny stocks | $0.10 โ $1.00+ | Low volume; high risk for market makers, so they demand wider spreads |
Wide spreads are a hidden cost of trading. If you buy a stock with a $0.50 spread, you're effectively paying $0.50 per share extra just to enter the position โ and another $0.50 to exit. This is why thinly traded stocks can be expensive to trade even when commission is "free."
๐ Order Types: Market, Limit, and Stop
When you place an order to buy or sell a stock, you have several options for how the order is executed. The order type determines what price you get and whether the order fills immediately or waits.
The Three Essential Order Types
| Order Type | What It Does | Pros | Cons |
|---|---|---|---|
| Market Order | Buy or sell immediately at the best available price | Guaranteed to execute (if market is open) | You don't control the exact price โ could be worse than expected in fast-moving markets |
| Limit Order | Buy or sell only at your specified price or better | You control the maximum price (buy) or minimum price (sell) | May not execute if the market never reaches your price |
| Stop Order (Stop-Loss) | Triggers a market order when the stock hits a specified price | Protects against big losses โ sells automatically if price drops too far | In fast drops, actual execution price may be lower than your stop price (slippage) |
Real-World Examples
๐ Scenario: You Want to Buy XYZ (Currently $50.00)
| Order | What You Set | What Happens |
|---|---|---|
| Market Buy | "Buy 10 shares at market" | You get 10 shares immediately at ~$50.00 (give or take a few cents) |
| Limit Buy | "Buy 10 shares at $48.00 or less" | Order sits and waits. If XYZ drops to $48.00, your order fills. If it never drops that low, the order expires unfilled. |
| Stop-Loss | "If XYZ drops to $45.00, sell my 10 shares" | If XYZ drops to $45.00, a market sell order triggers automatically. Limits your loss to ~$5/share. |
Additional Order Modifiers
| Modifier | What It Means |
|---|---|
| Day Order | Order expires at end of trading day if not filled (default for most orders) |
| GTC (Good 'Til Canceled) | Order stays active until filled or you cancel it (usually up to 60โ90 days) |
| Stop-Limit | Combines stop and limit โ triggers a limit order (not market) when stop price is hit. More control but risk of non-execution. |
| All-or-None (AON) | Only execute if the entire quantity can be filled at once |
๐ก Best Practice for Beginners
For large, liquid stocks (Apple, VOO, etc.), market orders are fine โ the spread is tiny and you'll get a fair price. For smaller or more volatile stocks, use limit orders to avoid unpleasant surprises. Always use limit orders for options trades (which we'll cover later in the course).
โก What Happens When You Click "Buy"
Modern stock trading happens in milliseconds, but there's a surprising amount going on behind the scenes. Here's the journey of a typical trade:
in your brokerage app"] --> B["2๏ธโฃ Your broker routes
the order to the market"] B --> C["3๏ธโฃ Order reaches the
exchange or market maker"] C --> D["4๏ธโฃ Matching engine finds
a seller at an agreed price"] D --> E["5๏ธโฃ Trade executes โ
you get a confirmation"] E --> F["6๏ธโฃ Settlement (T+1) โ
money & shares officially transfer"] style A fill:#10b981,stroke:#059669,color:#fff style E fill:#10b981,stroke:#059669,color:#fff style F fill:#14b8a6,stroke:#0d9488,color:#fff
| Step | What Happens | Time |
|---|---|---|
| 1. Order Placed | You tap "Buy" in your app (Fidelity, Schwab, Robinhood, etc.) | Instant |
| 2. Order Routing | Your broker sends the order to the best available venue โ could be the exchange directly, a market maker, or an "alternative trading system" (dark pool) | Milliseconds |
| 3. Price Discovery | The exchange's matching engine compares your order against existing bids/asks | Microseconds |
| 4. Execution | If a match is found, the trade executes and both parties are notified | Microseconds |
| 5. Confirmation | You see the trade in your account โ shares appear, cash is deducted | Seconds |
| 6. Settlement (T+1) | The official transfer of money and shares between the parties through a clearinghouse. "T+1" means 1 business day after the trade date. | 1 business day |
โ ๏ธ Payment for Order Flow (PFOF)
Many "commission-free" brokers (like Robinhood) make money by sending your orders to market makers who pay the broker for the privilege. This is called Payment for Order Flow. The market maker profits from the spread, the broker gets a payment, and you get "free" trading. It's legal and regulated, but it means your execution price may be slightly worse than if the order went directly to an exchange. For small trades, the difference is negligible โ for very large trades, it can matter.
๐ Market Hours & Pre/Post Market
The U.S. stock market doesn't run 24/7. Here are the key trading sessions (all times Eastern):
| Session | Hours (ET) | Key Characteristics |
|---|---|---|
| Pre-Market | 4:00 AM โ 9:30 AM | Lower volume, wider spreads, reacts to overnight news and earnings releases. Not all brokers offer pre-market access. |
| Regular Hours | 9:30 AM โ 4:00 PM | Maximum liquidity and tightest spreads. This is when the vast majority of trading happens. This is when beginners should trade. |
| After-Hours | 4:00 PM โ 8:00 PM | Lower volume, wider spreads. Company earnings are often released right after close, causing big after-hours moves. |
Market Holidays
U.S. stock exchanges are closed on weekends and major holidays including New Year's Day, Martin Luther King Jr. Day, Presidents' Day, Good Friday, Memorial Day, Juneteenth, Independence Day, Labor Day, Thanksgiving Day, and Christmas Day. Some holidays have early close days (1:00 PM ET).
๐ก Best Practice
Stick to regular market hours for your trades, especially as a beginner. Pre-market and after-hours sessions have lower volume, wider spreads, and more volatile price swings. If you place a limit order outside of market hours, it may not execute at the price you expect.
๐ Market Indexes: S&P 500, Dow, NASDAQ
A market index is a measurement of a section of the stock market. It tracks a group of stocks to represent the performance of a broader market or sector. You can't buy an index directly, but you can buy index funds and ETFs that track them.
| Index | What It Tracks | Number of Stocks | Key Characteristics |
|---|---|---|---|
| S&P 500 | 500 of the largest U.S. companies | ~500 | The most widely used benchmark for "the market." Weighted by market cap โ larger companies have more influence. Covers ~80% of total U.S. market value. |
| Dow Jones Industrial Average (DJIA) | 30 large, well-known U.S. companies | 30 | The oldest and most famous index (since 1896). Price-weighted, not cap-weighted โ a quirk that makes it less representative. Still widely quoted by the media. |
| NASDAQ Composite | All stocks listed on the NASDAQ exchange | ~3,000+ | Heavy in technology and growth companies. When people say "the NASDAQ is up," they mean this index. More volatile than the S&P 500. |
| Russell 2000 | 2,000 small-cap U.S. companies | ~2,000 | The go-to benchmark for small-cap stocks. More volatile, higher growth potential. Seen as a gauge of the broader domestic economy. |
๐ "The Market" = Usually the S&P 500
When financial news says "the market was up 1% today," they almost always mean the S&P 500. When investors measure their portfolio's performance, they usually compare against the S&P 500 as a benchmark. If your portfolio gained 12% in a year when the S&P gained 15%, you underperformed "the market" โ even though you still made money.
๐ What Makes Stock Prices Move
At its core, a stock price is set by supply and demand. If more people want to buy than sell, the price goes up. If more want to sell than buy, the price goes down. But what causes those shifts?
| Factor | How It Moves Prices | Example |
|---|---|---|
| Company Earnings | Beating or missing earnings expectations is the #1 short-term price mover | Company reports 20% earnings growth vs. 10% expected โ stock jumps |
| Economic Data | GDP, unemployment, inflation, and consumer spending reports affect the whole market | Higher-than-expected inflation โ market drops on fear of rate hikes |
| Interest Rates | When the Federal Reserve raises rates, borrowing costs rise and stock valuations typically fall | Fed raises rates 0.50% โ growth stocks drop sharply |
| Industry News | Regulatory changes, technology breakthroughs, or sector-specific events | New drug approved โ pharmaceutical company's stock surges |
| Market Sentiment | Fear and greed drive short-term moves beyond what fundamentals justify | Panic selling during a crisis โ stocks drop well below fair value |
| Geopolitical Events | Wars, trade disputes, elections, and global crises create uncertainty | New tariffs announced โ companies with international exposure drop |
than Sellers"] -->|"Demand > Supply"| B["Price Goes UP โฌ๏ธ"] C["More Sellers
than Buyers"] -->|"Supply > Demand"| D["Price Goes DOWN โฌ๏ธ"] style A fill:#10b981,stroke:#059669,color:#fff style B fill:#10b981,stroke:#059669,color:#fff style C fill:#ef4444,stroke:#dc2626,color:#fff style D fill:#ef4444,stroke:#dc2626,color:#fff
๐ก Short-Term vs. Long-Term
In the short term, stock prices are driven by news, emotions, and speculation โ they can move wildly and unpredictably. In the long term, stock prices are driven by company earnings and fundamentals. This is why long-term investors can afford to ignore daily noise โ the fundamentals win over time.
๐๐ป Bulls, Bears, and Market Cycles
The stock market moves in cycles between optimism and pessimism, expansion and contraction. Understanding these cycles helps you stay calm when the market gets turbulent.
| Term | Definition | Historical Context |
|---|---|---|
| Bull Market ๐ | A sustained period where stock prices rise 20%+ from a recent low. Characterized by optimism, confidence, and economic growth. | The bull market from 2009 to 2020 lasted ~11 years โ the longest in history. |
| Bear Market ๐ป | A decline of 20%+ from a recent high. Characterized by pessimism, fear, and economic slowdown. | The 2008 financial crisis saw the S&P 500 drop ~57% from peak to trough. |
| Correction | A decline of 10โ20% from a recent high. Normal and healthy โ happens roughly once per year on average. | Most corrections recover within a few months. |
| Crash | A sudden, sharp decline (often 10%+ in days or weeks). Usually triggered by a specific event or panic. | COVID crash in March 2020: S&P 500 fell 34% in ~5 weeks, then recovered by August. |
Stocks rising
Optimism growing"] --> B["๐ Peak
Euphoria
Everything feels easy"] B --> C["๐ป Bear Market
Stocks falling
Fear spreading"] C --> D["๐ Trough
Maximum pessimism
Everyone panicking"] D --> E["๐ Recovery
Prices stabilize
Confidence returns"] E --> A style A fill:#10b981,stroke:#059669,color:#fff style B fill:#f59e0b,stroke:#d97706,color:#fff style C fill:#ef4444,stroke:#dc2626,color:#fff style D fill:#7c3aed,stroke:#6d28d9,color:#fff style E fill:#14b8a6,stroke:#0d9488,color:#fff
๐ Key Historical Perspective
Despite wars, recessions, pandemics, financial crises, and every other disaster imaginable, the U.S. stock market has always recovered and gone on to reach new highs. Every single bear market in history has eventually been followed by a new bull market. The market's long-term trend is up โ if you have the patience to stay invested through the downturns.
โ ๏ธ The Emotional Trap
The hardest part of investing isn't math โ it's psychology. At the peak, everyone is euphoric and wants to buy more. At the trough, everyone is terrified and wants to sell everything. Successful long-term investors do the opposite: they keep investing during downturns (when prices are cheap) and resist the urge to chase hype at the top. We'll cover trading psychology in detail in Lesson 22.
๐ฏ Key Takeaways
| Concept | What to Remember |
|---|---|
| Exchanges | NYSE and NASDAQ are the two major U.S. exchanges. Companies go public through IPOs. |
| Bid/Ask Spread | The spread is the cost of instant execution. Large-cap stocks have tiny spreads; small-cap can be expensive. |
| Order Types | Market orders = fast but no price control. Limit orders = price control but may not fill. Stop orders = automatic loss protection. |
| Settlement | Trades settle in T+1 (one business day). Your shares appear immediately but officially transfer the next day. |
| Market Indexes | "The market" usually means the S&P 500. It's the standard benchmark for performance. |
| Market Cycles | Bull and bear markets are normal. Every bear market in history has been followed by a recovery. Stay invested. |
๐ Knowledge Check
Test your understanding of how the stock market works.