Skip to content

How markets work

By Investor Wisdom Daily Team·

Jordan, a hypothetical first-time investor, taps “buy” on a phone app at 10:15 on a Tuesday morning and owns 10 shares a second later. It feels like buying from a shop. But there is no warehouse of shares behind the app. Somewhere, another investor or a professional trading firm agreed to sell at that moment, and a chain of computers matched the two of them. Knowing how that matching works explains three costs and surprises beginners meet early: the spread, after-hours price jumps, and why “the market” can be up while your stock is down.

A market is any place where buyers and sellers agree on a price. A stock exchange is an organised market for shares, with rules about who can trade, when, and how orders are matched. A broker is the firm that holds your account and sends your orders to the market. Prices come from an ongoing auction: buyers post what they will pay, sellers post what they will accept, and a trade happens when the two meet. An index boils thousands of these prices down to one number for a group of stocks.

Exchanges bring buyers and sellers together

Section titled “Exchanges bring buyers and sellers together”

A stock exchange is a marketplace where shares change hands. In the US, the best known are the New York Stock Exchange and Nasdaq. Today almost all trading is electronic: your broker sends your order to an exchange or another trading venue, where it is matched with someone who wants the other side of the trade.

You do not trade with the exchange directly. You open an account with a broker, and the broker handles the connection for you.

At any moment there are two prices for a stock:

  • the bid: the highest price a buyer is currently willing to pay;
  • the ask (or offer): the lowest price a seller is currently willing to accept.

The difference is the spread. Large, heavily traded companies usually have tiny spreads. Small or rarely traded stocks can have wide spreads, which is a hidden cost: buying at the ask and later selling at the bid loses the spread on the round trip.

A hypothetical large company shows a bid of $50.00 and an ask of $50.02.

  1. Spread: $50.02 − $50.00 = $0.02, two cents.
  2. If you buy 100 shares at the ask and sell them straight back at the bid, the round trip costs $0.02 × 100 = $2.
  3. As a share of the price paid: $0.02 ÷ $50.02 = about 0.04%.

That is small enough that most long-term investors can ignore it.

A hypothetical small company shows a bid of $4.90 and an ask of $5.10.

  1. Spread: $5.10 − $4.90 = $0.20.
  2. Buy 200 shares at the ask: 200 × $5.10 = $1,020.
  3. Sell them immediately at the bid: 200 × $4.90 = $980.
  4. You have lost $40 without the price “moving” at all: $40 ÷ $1,020 = about 3.92%.
Busy stock Thinly traded stock
Bid / ask $50.00 / $50.02 $4.90 / $5.10
Spread $0.02 $0.20
Round-trip cost as % of price paid about 0.04% about 3.92%

The second spread costs about 98 times as much, in percentage terms, as the first. The bid would need to rise from $4.90 to $5.10, just over 4%, just for you to break even. Someone who trades a stock like that often pays this cost again and again.

According to the NYSE hours and calendars page (opened 19 November 2026), the core trading session runs from 9:30 a.m. to 4:00 p.m. Eastern time, which is 6.5 hours or 390 minutes. Markets are closed on weekends and exchange holidays, and on some days, such as the day after Thanksgiving, trading closes early at 1:00 p.m., a session of 3.5 hours. For example, the NYSE calendar lists the exchange as closed on Thursday 26 November 2026 for Thanksgiving, with an early close on Friday 27 November and on Christmas Eve, Thursday 24 December 2026. Check the calendar for the current year, because holiday dates move.

Some brokers also offer trading before and after these hours, when fewer people trade, spreads are often wider and prices can jump more.

The closing price of a day is the last official price of the main session. Daily price statistics, such as a day’s percentage change, are usually based on closing prices of completed sessions.

An index is a list of stocks with a rule for combining their prices into one number. The S&P 500, for example, tracks about 500 large US companies, weighted by market value (float-adjusted market cap). When people say “the market was up 1% today”, they usually mean an index like this.

Worked example 3: why big companies move the index most

Section titled “Worked example 3: why big companies move the index most”

Build a tiny hypothetical index of three companies weighted by market cap:

Company Market cap Weight in the index
Large Co $600 billion 60%
Medium Co $300 billion 30%
Small Co $100 billion 10%
Total $1,000 billion 100%

Each weight is that company’s market cap divided by the $1,000 billion total.

  • If Large Co rises 5% and the others don’t move, the index rises 0.60 × 5% = 3%. Check: Large Co is now worth $630 billion, the total is $1,030 billion, 3% above $1,000 billion.
  • If Small Co rises 5% instead, the index rises only 0.10 × 5% = 0.5%.

So a market-cap-weighted index can be “up” even when most of its members are down, if the biggest ones rise. That is why your own stock can fall on a day when the headlines say the market rose.

You cannot buy an index itself, but you can buy a fund that holds the same stocks. An ETF (exchange-traded fund) trades on an exchange like a single stock. SPY, named here as an example and not a recommendation, is a widely held ETF that follows the S&P 500. We use it as the benchmark when we compare a stock’s performance with the market.

When more people want to buy than sell at the current price, buyers have to offer more and the price rises. When sellers outnumber buyers, the price falls. Every price you see is the result of this constant auction.

Use the investment return calculator to see the spread as a return. Enter a starting investment of 1020, nothing added per month, 1 year, and a final value of 980, the numbers from worked example 2. Notice the negative return of about 3.9%, from the spread alone. Then try 5002 and 5000 (100 shares of the busy stock at $50.02, sold at $50.00) and compare: the loss is a tiny fraction of a percent.

  • Looking only at the last price. The last trade may be minutes old. The bid and ask show what you can actually buy or sell at now.
  • Ignoring the spread on small stocks. A wide spread is a cost paid on every round trip, even with zero commission.
  • Trading outside the main session without realising it. Before and after hours, fewer traders and wider spreads can mean worse prices.
  • Reading “the market” as “my stocks”. A cap-weighted index is driven mostly by its largest members, so it can rise while most stocks fall.
  • Thinking the exchange is your counterparty. The exchange matches orders; the shares come from another investor or trading firm.
  • Quote screens in any broker app show the bid, the ask and often the size (shares) available at each. The gap between them is the spread from this lesson.
  • Exchange calendars: the NYSE hours and calendars page lists each year’s holidays and early closes, as of 19 November 2026 covering 2026 to 2028.
  • Fund documents for an index ETF name the index it tracks; the index provider publishes the method, such as float-adjusted market-cap weighting.
  1. A stock’s bid is $20.00 and its ask is $20.05. You buy 300 shares and sell them straight back. What does the spread cost you?
Show the answer to question 1

$15. The spread is $0.05, and $0.05 × 300 = $15.

  1. In a cap-weighted index, a company with a 30% weight rises 10% while everything else is flat. How much does the index move?
Show the answer to question 2

Up 3%: 0.30 × 10% = 3%.

  1. You place an order at 5:30 p.m. Eastern time. Is that in the core NYSE session?
Show the answer to question 3

No. The core session ends at 4:00 p.m. Eastern time. Your broker may offer after-hours trading, where spreads are often wider, or may hold the order for the next session.

  1. Who is on the other side when you buy a share through your broker?
Show the answer to question 4

Another investor or trading firm willing to sell. The exchange or venue matches the two orders; your broker routes yours there.

  • You trade through a broker; the exchange matches buyers and sellers in a continuous auction.
  • The bid-ask spread is a real cost, larger for small and rarely traded stocks.
  • The core US session runs 9:30 a.m. to 4:00 p.m. Eastern time; outside it, prices can be patchier.
  • An index measures a group of stocks, and in a cap-weighted index the biggest companies move it most; an index fund lets you own that group in one trade.

Key terms

For educational purposes only. This material does not provide investment advice.