Basics

How the Stock Market Works: A Beginner's Guide

6 min readLast updated November 18, 2026

Short answer: The stock market is a set of exchanges where buyers and sellers trade shares of public companies. Prices move with supply and demand: more buyers than sellers pushes a price up, and the reverse pushes it down. You trade through a broker, and US exchanges are open from 9:30 a.m. to 4:00 p.m. Eastern Time.

What the stock market is

There is no single "stock market" building. It is a network of places where shares change hands. The SEC describes securities exchanges as "markets where securities are bought and sold" (investor.gov). In the US, the best-known are the New York Stock Exchange and Nasdaq.

When a company first sells shares to the public, that raises money for the company. After that, most trading happens between investors, so the company doesn't receive money when you buy from another investor.

Who is involved

  • Investors: you and everyone else buying and selling.
  • Brokers: firms that handle your orders. The SEC notes that broker-dealers charge a fee for handling trades (investor.gov). See how to buy your first stock.
  • Exchanges: the venues where orders are matched.
  • Regulators: in the US, the SEC oversees the markets, and FINRA is described as the front-line regulator of broker-dealers.

How prices are set

Every stock has two prices at any moment:

  • Bid: the highest price a buyer is willing to pay.
  • Ask: the lowest price a seller is willing to accept.

The gap between them is the spread. A trade happens when a buyer and a seller agree. The last price they agreed on is the price you see quoted. As new orders arrive, it changes.

An illustrative example

This one is made up. A stock shows a bid of $20.00 and an ask of $20.05, so the spread is 5 cents. If you place a market order to buy, you will typically pay close to the ask. If you place a limit order at $20.00, you wait until a seller accepts that price, and you may never get filled. Our first-stock guide explains both order types.

When the market is open

Stocks on US exchanges trade from 9:30 a.m. to 4:00 p.m. Eastern Time on trading days. Some brokers also offer extended-hours trading before and after that. The SEC warns that during extended hours "there generally is less trading interest and therefore less price competition", which "generally results in wider spreads between the bid and ask prices" (investor.gov). Beginners are usually better off trading during regular hours.

What moves prices

Prices change as people react to news and expectations: a company's earnings, a new product, a change in leadership, interest rates, or just mood. That's why the same stock can swing in a day without any change in the business. You can read about company events in its SEC filings.

What is an index?

An index tracks a group of stocks to show how a part of the market is doing. The S&P 500, for example, follows a group of large US companies. When people say "the market is up", they usually mean an index like that.

Common mistakes

  • Thinking a stock's price is fixed or "fair". It is simply the latest price two people agreed on.
  • Trading at odd hours without understanding the wider spreads.
  • Reacting to every daily move.
  • Forgetting that you are trading with other investors who may know more or less than you.

Educational content, not investment advice. This article describes US markets.

Frequently asked questions

What is the stock market?

A set of exchanges and other venues where people buy and sell shares of public companies.

Who sets a stock's price?

Buyers and sellers do. When more people want to buy than sell, the price tends to rise. When more want to sell, it tends to fall.

What are the US stock market hours?

Regular trading runs from 9:30 a.m. to 4:00 p.m. Eastern Time on trading days. Some brokers also offer extended-hours trading.

What is the bid-ask spread?

The gap between the highest price a buyer will pay (the bid) and the lowest price a seller will accept (the ask).

Do I trade directly on the stock exchange?

No. Individual investors trade through a broker, which sends the order to be executed.