Finance / How the stock market works

How the stock market works

What a share is, who the brokers and exchanges are, and how waiting buy and sell orders turn into a price. Seven steps with one invented company.

Beginner7 steps~7 min
Kite Co. — an invented company with 100 shares
Buyer — wants shares; buy orders are blue
Seller — offers shares; sell orders are red
Exchange — the marketplace that matches orders
// THE SHORT VERSION

In 30 seconds

A share is a slice of ownership in a company. A company first sells shares to the public in an IPO, and that money goes to the company.

After that, investors trade the shares among themselves through brokers on an exchange. The company gets nothing from those trades.

The exchange keeps an order book of buy and sell orders. A trade happens when a buyer and a seller agree, and the latest trade is “the price”. An index adds many companies into one number.

How the stock market works, step by step

STEPS01 / 07

Kite Co. and all prices are invented. Real markets add fees, banks that run the IPO, many order types and several exchanges. This explains the mechanism and is not investment advice.

STEP 01 / 07 A company in 100 slices
THE MATH
Kite Co. = 100 shares 1 share = 1% of the company
  1. Step 1: A company in 100 slices. A share is a small slice of ownership in a company. Our invented company, Kite Co., is divided into 100 equal shares, so one share is 1% of it. Whoever holds shares is a part-owner, with a say in votes and a claim on any profits the company pays out.
  2. Step 2: The first sale: an IPO. To raise money, Kite Co. sells 40 of its shares to the public for the first time, at $20 each. This first sale is an initial public offering (IPO). The $800 goes to the company, which can spend it on growing the business; the founders keep the other 60 shares.
  3. Step 3: After that: second-hand. Once shares are out, their owners can sell them on to other investors. Ada sells 5 shares to Ben at $20 each: Ben pays Ada $100. Kite Co. is not part of this trade and gets nothing from it. Almost all of what people call “the stock market” is this second-hand trading.
  4. Step 4: Brokers and the exchange. Ada and Ben never meet. Each uses a broker, a firm licensed to pass customers’ orders to a stock exchange. The exchange is the marketplace: it collects buy and sell orders for every listed company and matches them. When a buy and a sell agree on price, a trade happens.
  5. Step 5: The order book. For each company the exchange keeps an order book: every waiting buy order (bid) and sell order (ask), sorted by price. Here the keenest buyer offers $19.90 and the cheapest seller wants $20.10. The gap between them is the spread. Nothing trades until someone accepts the other side’s price.
  6. Step 6: A trade sets the price. A new buyer wants 8 shares now and will pay up to $20.20. The exchange fills the order from the cheapest sellers first: 6 shares at $20.10, then 2 at $20.20. The “share price” in the news is just the price of the latest trade, now $20.20. Eager buyers push it up; eager sellers push it down.
  7. Step 7: An index: many in one. An index sums up many companies in one number. This invented index adds up the value (shares × price) of three companies and calls yesterday’s total 100. Today the total is 1% higher, so the index reads 101, even though one company fell. Most well-known indexes weight companies by value like this, so big ones move them most.
VALUES SO FAR
shares100company
IPO····first
raised····company
best bid····buyers
best ask····sellers
spread····gap
order····new
last····price
index····basket
// BEFORE

Learn this first

Nothing. This concept starts from scratch.

// AFTER

Learn next

Nothing builds on this one yet. See every finance concept.

Spotted a mistake on this page?