Skip to content

How stock markets work

How are stock prices determined?

Stock prices are determined by buyers and sellers matching orders on an exchange, usually through a continuous order book. The price you see is the last traded price, meaning the level at which the most recent buy and sell orders met. Prices move as new orders arrive and existing orders are filled or cancelled.

The price is the last agreed trade

Stock prices are not set by a committee or a formula printed on the exchange. They emerge from a continuous auction in which buyers state the most they will pay and sellers state the least they will accept. When a buy and a sell meet at a compatible level, a trade occurs, and that trade price becomes the last traded price shown on screens.

The order book

Most electronic exchanges run an order book, a live list of orders that have not yet been filled. The bid side lists buy orders from the highest price down. The ask side, also called the offer, lists sell orders from the lowest price up. The best bid is the highest buy price waiting, the best ask is the lowest sell price waiting, and the difference between them is the spread.

A simple order book example

Imagine a hypothetical company, Example Ltd, with these resting orders. Prices are in $ and quantities are in shares.

Bids (buyers):

  • 300 shares at $49.90
  • 500 shares at $49.80
  • 200 shares at $49.50

Asks (sellers):

  • 100 shares at $50.10
  • 400 shares at $50.20
  • 250 shares at $50.50

The best bid is $49.90 and the best ask is $50.10, so the spread is $0.20. No trade is happening yet, because no buyer is willing to pay what the cheapest seller wants.

A buyer now places a market order for 150 shares. The order takes the best available asks first. 100 shares fill at $50.10, and the remaining 50 shares fill at $50.20. The last traded price becomes $50.20. The ask side now holds 350 shares at $50.20 and 250 at $50.50, so the best ask has moved up and the spread has widened to $0.30.

Next, a seller places a market order for 400 shares. It hits the best bids. 300 shares fill at $49.90, and 100 shares fill at $49.80. The last traded price falls to $49.80. The book now holds 400 shares of bids at $49.80 and 200 at $49.50.

Nothing about the company changed between these steps. Only the sequence of orders did, and the price followed the orders that were actually executed.

Limit orders and market orders

A limit order names the worst price the trader will accept and waits in the book if it cannot be filled immediately. A market order asks for an immediate fill at the best available prices, crossing the spread to do so. Limit orders give price control but no guarantee of execution. Market orders give speed but no guarantee of price, particularly in thin markets where the book is shallow.

What moves the price

  • Imbalance: if buy orders consistently outweigh sell orders, buyers work up the ask side and the price rises.
  • New information: earnings, news and economic data change how much participants are willing to pay.
  • Shallow liquidity: when few orders sit near the market, a modest trade can move the price a long way.
  • Changing expectations: a shift in how participants view the future can reprice a stock even without fresh facts.

Price discovery

The process by which many participants, holding different information and time horizons, converge on a traded price is called price discovery. The result is a useful reference point, but it is not a final verdict on value. Prices reflect the view of the people willing to trade right now, and they can overshoot in both directions.

What this means for long-term investors

Over a single day, the price is largely the output of the order book. Over years, the return you earn depends on the price you pay, the price you eventually receive, any dividends, and the costs and taxes along the way.

Illustrative assumption only: suppose you buy at $50.00 per share and later sell at $60.00, with no dividends and no costs. The price gain is 20%. That is one path among many, and the price could have been anywhere in between. Our pages on compound annual growth rate and volatility drag explore how the path itself affects long-run outcomes.

Common mistakes

  • Treating the last traded price as the company's worth.
  • Assuming the screen price is the price you will pay, especially with market orders in a wide spread.
  • Reading one trade or one minute of movement as a trend.
  • Confusing price change with total return, which also includes dividends, fees and taxes.

What to watch out for

Continuous trading offers transparency and liquidity, but it can amplify emotion during news events. Many exchanges use trading halts or price bands during extreme moves. The specific rules vary by market, so check the rules of the exchange you use and its official published guidance.

Frequently asked questions

Who decides the price of a share?

No single person or committee decides it. Each price is the outcome of many participants separately deciding whether to buy or sell at a given level, and the exchange's matching system pairs compatible orders. Because the book is constantly updated, the price reflects the collective view at that moment. It is a consensus of the present, not a verdict on the company's long-term value.

Is the last traded price the same as what I will pay?

Not always. The last traded price is the price of the previous trade, and your order may fill at a different level if the best available prices have moved. A market order accepts whatever the book offers, so in a wide spread or a thin market it can fill above or below the screen figure. A limit order protects the price but may not fill at all.

Why does the price move even when nothing has changed in the company?

Orders are constantly arriving and being cancelled, so the balance of buyers and sellers shifts minute by minute. Large orders in a thin book can push the price further than their size suggests, and sentiment can change without new company information. Much of this movement is short-term noise, which is why long-term investors usually focus on their time horizon and total return rather than individual price prints.

Educational content only — not investment, tax or legal advice. See our disclaimer.