How the Stock Market Works: A Complete Beginner's Guide
A clear, factual explanation of how the stock market works — covering stocks, exchanges, market indices, how prices are determined, and what drives market movements.
What Is the Stock Market?
The stock market is a collection of exchanges and over-the-counter markets where buyers and sellers trade shares of publicly listed companies. When a company "goes public" through an initial public offering (IPO), it sells a portion of its ownership to investors in the form of shares (also called stocks or equities). These shares can then be bought and sold among investors on secondary markets — what most people refer to when they say "the stock market."
The stock market serves two fundamental economic functions: it provides companies with access to capital to fund operations and growth, and it gives investors an opportunity to participate in a company's financial performance over time. Note: This article is for general educational purposes and does not constitute financial advice. Consult a qualified financial advisor before making investment decisions.
How Stocks Are Created and Traded
Going Public: The IPO Process
A private company that wishes to raise capital from public investors hires investment banks to underwrite an IPO. The underwriters help set an initial share price, manage regulatory filings with the Securities and Exchange Commission (SEC) in the U.S. (or equivalent regulators in other countries), and facilitate the sale of shares to institutional and retail investors. Once the IPO is complete, the company's shares are listed on an exchange and can be freely traded.
Historical examples include Google's IPO in August 2004 at $85 per share, and Amazon's IPO in May 1997 at $18 per share.
Stock Exchanges
Stock exchanges are organized marketplaces where securities are listed and traded under standardized rules. The major global exchanges include:
| Exchange | Country | Market Cap (approx.) | Notable Listings |
|---|---|---|---|
| New York Stock Exchange (NYSE) | USA | $25+ trillion | Berkshire Hathaway, Johnson & Johnson, JPMorgan |
| NASDAQ | USA | $22+ trillion | Apple, Microsoft, Amazon, Alphabet, NVIDIA |
| Shanghai Stock Exchange (SSE) | China | $7+ trillion | PetroChina, ICBC |
| Euronext | Europe (multi-country) | $6+ trillion | LVMH, Airbus, Stellantis |
| Tokyo Stock Exchange (TSE) | Japan | $5+ trillion | Toyota, Sony, SoftBank |
Market capitalization figures are approximate and fluctuate continuously.
How Stock Prices Are Determined
Stock prices are set by supply and demand. At any given moment, a stock's price reflects the most recent price at which a willing buyer and a willing seller agreed to transact. This happens continuously during market hours through a process called price discovery.
The Role of the Order Book
Modern exchanges operate using electronic order books. A bid is the highest price a buyer is willing to pay; an ask (or offer) is the lowest price a seller is willing to accept. A trade executes when a buyer's bid meets or exceeds a seller's ask. The difference between the best bid and best ask at any moment is called the spread. For highly liquid stocks like Apple or Microsoft, the spread is often just one cent.
What Moves Stock Prices?
In the short term, prices fluctuate based on:
- Earnings reports: Quarterly financial results are among the most significant price-moving events for individual stocks.
- Economic data: Reports on inflation, employment, GDP growth, and interest rates affect market-wide sentiment.
- News and geopolitical events: Product launches, regulatory decisions, mergers, wars, and elections all move markets.
- Investor sentiment: Fear and greed — often summarized by measures like the VIX (Volatility Index) — can drive prices away from fundamental values in the short term.
Over the long term, stock prices tend to reflect company fundamentals: revenue growth, profitability, competitive position, and future earnings potential.
Market Indices
No one tracks every individual stock to gauge overall market performance. Instead, indices aggregate the performance of a representative basket of stocks:
| Index | What It Tracks | Composition |
|---|---|---|
| S&P 500 | 500 largest U.S. companies by market cap | Market-cap weighted |
| Dow Jones Industrial Average (DJIA) | 30 large, prominent U.S. companies | Price weighted |
| NASDAQ Composite | All stocks listed on NASDAQ (~3,300) | Market-cap weighted |
| Russell 2000 | 2,000 smaller U.S. companies | Market-cap weighted |
| MSCI World | Large/mid-cap equities in 23 developed markets | Market-cap weighted |
The S&P 500 is widely considered the best single measure of U.S. large-cap equity performance and is the benchmark most professional fund managers are measured against.
Bull and Bear Markets
Markets move in cycles, broadly categorized as:
- Bull market: A sustained period of rising prices, typically defined as a 20% or greater increase from a recent low. The U.S. bull market from March 2009 to February 2020 lasted approximately 11 years — the longest on record at the time.
- Bear market: A sustained decline of 20% or more from a recent high. Bear markets are often associated with recessions, though not always. Examples include the dot-com crash (2000–2002, –49%), the 2008 financial crisis (–57%), and the COVID-19 crash (–34% in 33 days in early 2020).
- Correction: A decline of 10–19% from a recent high, typically shorter-lived than a full bear market.
Types of Market Participants
The stock market brings together a diverse range of participants:
- Retail investors: Individual investors trading through brokerage accounts (e.g., Fidelity, Charles Schwab, Robinhood). Since the 2010s, commission-free trading has dramatically increased retail participation.
- Institutional investors: Pension funds, mutual funds, insurance companies, and endowments managing trillions in assets. They account for the majority of daily trading volume.
- Hedge funds: Actively managed investment vehicles using complex strategies including short-selling, leverage, and derivatives.
- Market makers: Firms that continuously quote bid and ask prices, providing liquidity and ensuring trades can be executed quickly.
- High-frequency traders (HFT): Algorithmic trading firms that execute thousands of trades per second, profiting from tiny price discrepancies.
Long-Term Stock Market Returns
Historically, the U.S. stock market has delivered strong long-term returns despite periodic crashes and volatility. The S&P 500's average annual return, including dividends, has been approximately 10–11% per year over the past century in nominal terms (roughly 7% after adjusting for inflation). This compounding effect is why long-term equity ownership has historically been one of the most effective wealth-building strategies available to individuals.
However, past performance does not guarantee future results, and individual stock selection carries substantially more risk than diversified index investing.