Investing basics11 min read

What Is the Stock Market?

It isn't a place, and nobody sets the price. Here's what's actually on the other side of your order.

By Pavel Penev, MScFounder, TradeWize · 10+ years trading the markets

The stock market isn't a place.

There's no room where the prices get decided. It's a network of computers that match people who already own shares with people who want to buy them. When you buy a share, somebody else is selling you that exact share, at a price the two of you agreed on without ever meeting.

That's the whole thing. Everything else — exchanges, brokers, order books, market makers — is machinery for making that match happen fast and fairly. We'll go through it one piece at a time, following a single order the whole way.

The short answer

Somebody already owns the share you want, and they're willing to sell it. A computer matches your order against theirs, usually in well under a second. The price is whatever you two agreed — nobody published it and nobody approved it. Then, one or two working days later, the shares and the cash actually change hands. The company whose name is on the share isn't involved at any point.

You're not buying from the company

This is the part that surprises people, so it's worth saying plainly: when you buy shares in a company, the company gets none of your money.

It sold those shares once, years ago, and got paid once. After that they belong to whoever bought them, and they change hands between investors forever. Your money goes to the person who sold, not to the business. Where the company's money came from, and why it still cares about the price anyway, is its own article — primary vs secondary market, linked at the end.

So who is the person on the other side?

Sometimes it's an investor like you, selling because they need the cash. Sometimes it's a fund that has to sell because money left it that morning. Sometimes it's someone retiring.

And very often it's a firm whose entire business is being on the other side. They don't have a view on the company. They'll buy from you at one price and sell to the next person at a slightly higher one, thousands of times a day, and the difference is what they earn. They exist because somebody has to be there at the exact second you want to trade, and other investors won't reliably be.

So what's an exchange?

A list of orders, and a computer that matches them. That's it.

Everyone who wants to trade sends in what they'd be willing to do: "I'll buy 700 shares at $49.99." "I'll sell 600 at $50.00." Those orders sit there, in public, until something matches them or the person cancels. The list is called the order book, and it's the single most useful thing to picture when you're trying to understand what a market is.

The matching rule is simple enough to explain in one line: best price goes first, and where two orders offer the same price, whoever got there first goes first. The exchange has no opinion about what a company is worth. It doesn't set prices. It keeps a queue.

There is still a real trading floor at the New York Stock Exchange, with real people on it, and it films beautifully. Almost none of the market runs through it. The matching happens in data centres, in millionths of a second.

Where the price comes from

The price on your screen is history. It's the last trade that happened — the last two people who agreed. On a $50.00 share, that was $49.99.

The two prices that actually matter right now are different. There's the most anyone is currently willing to pay, which is $49.99. And there's the least anyone is willing to accept, which is $50.00. They're $0.01 apart, and between them there is nothing at all.

The order book on a $50 share
Nobody sets the priceEvery order resting on a $50.00 share, and what buying 5,000 would cost.PRICESHARES WAITINGSELLERS$50.052,200$50.041,800$50.031,500$50.021,200$50.01900$50.00600$49.99last trade — the last two people who agreed$0.01 gapBUYERS$49.99700$49.981,000$49.971,300$49.961,600$49.952,0005,000 shares eat 5 levels: $50.02 average, $110 over the screen price.

Everyone who has already said what they'd do. Sellers above, buyers below, and an empty cent in between.

Look at the sizes. There are only 600 shares available at the best price. Behind them sit more shares at $50.01, more again at $50.02, and so on — 8,200 in total across the whole visible queue.

That's why the price on your screen is really the price of the first few shares. Buy 10 shares and you pay $500 and never notice. Buy 5,000 shares and you empty the first 600 at $50.00, then the next level, then the next — 5 of them — and your last shares cost $50.04.

$250,000
what the screen said
$250,110
what you actually paid
$110
the cost of being big

$110 on a quarter of a million dollars is not a disaster. But it's the reason big investors break orders into pieces and feed them in slowly, and it's the reason a price is never quite a fact. It's a price for a certain number of shares, right now, and it moves when you lean on it. Which kind of order protects you from that is a separate question, and it has its own article: market vs limit vs stop orders.

Press buy. Here's what happens next

You tap a button and a confirmation appears about a second later. In that second your order was handed to somebody, priced, matched and recorded — and where it went depends on two things you probably never think about: how big it was, and which country you're in.

Try it: follow your order

You press buy. Here is everyone who touches it before those shares are yours — and what each of them made.

10 shares at $50.00 $500 at the price on your screen.

  1. 1You press buy

    You ask for 10 shares. The screen says $50.00.

    the moment you tap
    holding it: you
  2. 2Your broker decides where it goes

    You never chose a venue and your app never asked. This decision is your broker's, and it's the part nobody sees.

    40ms later
    holding it: your broker
  3. 3It's sold to a wholesaler

    A firm buys the right to fill your order. Two of them handle most of it. Your order never reaches an exchange.

    120ms later
    holding it: a wholesaler
  4. 4They fill you from their own shares

    They already own shares, so nobody had to be found. You get the best quoted price or a hair better.

    190ms later
    holding it: you own it now
  5. 5Your app says filled

    The whole thing took less time than reading this sentence.

    400ms later
    holding it: you
  6. 6It's yours the next working day

    The shares and the cash actually change hands one working day after the trade. Until then you own a promise.

    one working day later
    holding it: your broker's nominee, for you
You paid
$500

The price you saw is the price you got. No commission.

Your broker was paid
3.5c

Somebody bought your order — 0.4c a share. That is what "free" is made of.

Actually yours on
T+1

One working day. Until then you own a promise, not a share.

Notice what's missing: your order never went near an exchange.

The US result is the one worth sitting with. Your 10 shares never reached an exchange. Your broker sold your order to a firm, which filled it out of shares it already owned. That's the normal case, not an edge case: about 90% of small US orders are filled this way.

Your broker got 3.5 cents for it, at roughly 0.35 cents a share. That's what "commission-free" is made of. It isn't a scandal and it isn't charity — you get a price at or just inside the best quote, and somebody makes a fraction of a cent for being reliably there.

In the UK and across the EU, nobody is allowed to pay your broker for your order at all. The EU's ban finished phasing in on 30 June 2026; the UK banned it years earlier. So brokers there charge you a commission instead. Same order, same shares, a completely different set of hands — and you'd never know from the app.

Learn it by doing

Reading about it is one thing — it clicks when you do it. Practise this hands-on in a free, interactive lesson (Stage 5: How Markets Work Globally).

Try the free lesson →

Then two boring days, and it's yours

Your app says the trade is done, and in every way that matters to you, it is. But the shares and the cash haven't moved yet.

Settlement is the bit where they actually change hands. In the US and Canada that's one working day after the trade. In the UK, the EU and Switzerland it's still two, and all three move to one day on 11 October 2027. Until it settles, what you own is a promise that somebody will hand over shares.

And here's the part almost nobody knows: your name probably never appears on the company's share register. Your broker holds the shares on your behalf, pooled with everyone else's, and keeps a record saying which ones are yours. It's why your dividends and your voting rights arrive through the broker rather than from the company, and it's why the broker's regulation and protection scheme matter as much as its fees.

What you actually own

An entry in your broker's records saying you own the shares, backed by shares your broker holds. That entry is what the law protects, and it's why picking a regulated broker is the single most important safety decision in investing — well ahead of picking a stock.

The day has a shape, and the edges are strange

A market isn't equally busy all day. It opens in a rush, goes quiet over lunch, and then does an enormous amount of business in the last half hour.

One trading day
A trading day is not flatShare of the day's trading, every half hour, against what it costs.20bps5bpsthe spread, narrowing all day12%9:3011:0012:3014:0026%15:30opening auctionclosing auctionA quarter of the day trades in the last half hour — 9% in the closing match alone.US hours, 2025. From 6 December 2026: 23 hours a day.

Volume by half hour, against what it costs to trade. The busiest end of the day is also the cheapest.

About 25% of the day's trading happens after 3:30pm, and roughly 9% of it in a single match at the closing bell. That match is called an auction: instead of trading continuously, the exchange collects every order and settles them all at one price. The open works the same way.

The line falling across that chart is the cost of trading, and it tells you something useful. First thing in the morning the gap between the buy price and the sell price is around 20 basis points — about 10 cents on a $50.00 share. By the close it's nearer 5. Nobody has any idea what anything is worth at 9:31, and the price of that uncertainty is paid by whoever trades then.

Outside those hours you can still trade, in thinner sessions where fewer people are around and prices jump further on smaller orders. That's about to change: from 6 December 2026 both big US exchanges run 23 hours a day, five days a week, closing for one hour to tidy up. Whether that's good for anyone who isn't a professional is a genuinely open question.

Who else is in there

Mostly not people like you. Institutions — pension funds, insurers, index funds, endowments — hold about 80% of the value of the largest US companies. Add the firms that trade for a living and the algorithms working orders in slices, and the individual buying 10 shares is a rounding error.

That sounds discouraging. It's the opposite. Being small is the best position in this market: your order is tiny enough to fill instantly at the quoted price, you never move a price by showing up, and nobody is trading against you specifically because nobody has noticed you. The big investors envy that.

It also means the price already reflects an enormous amount of work. Thousands of well-paid people are reading the same filings you could read. When you buy at today's price, you're not outsmarting them — you're accepting their collective guess, which is a perfectly good reason to buy the whole market rather than pieces of it.

There's no such thing as "the" stock market

People say "the market went up" as though there were one. There are dozens, in every major country, each listing its own companies and keeping its own hours.

The biggest exchanges
There is no single stock marketWhat the companies listed on each one are worth, in $ trillions.World Federation of Exchanges, March 2026.Nasdaq$35tnNYSE$31tnShanghai$8.5tnJapan Exchange$8.2tnEuronext$7.4tnShenzhen$6.1tnHong Kong$5.9tnNSE India$5.3tnLondon$3.4tnNasdaq passed the NYSE in March 2026 — the first time ever.

What the companies listed on each one are worth. The top two are both in New York.

As of March 2026, Nasdaq's listed companies were worth about $35 trillion and the NYSE's about $31 trillion — the first time Nasdaq has ever been the bigger of the two. Together they dwarf everywhere else, which is why "the market" so often means the US market by default, and why a global index fund still ends up mostly American.

When you buy a global fund, it's buying on many of these at once, in different currencies and different time zones, and handling the fact that they're open at different hours. You never see any of that. It's the most underrated thing a fund does for you.

One last thing: the market isn't the economy

It's a common trap. Unemployment is up, the news is grim, and the market rises anyway — and it feels like proof that the whole thing is fake.

It isn't. The market is a few thousand listed companies, weighted by size, priced on what people think they'll earn years from now. The economy is everyone, including the corner shop and your neighbour's job, measured on what happened last quarter. They're different things measured over different time frames. Expecting them to move together is expecting a weather forecast to match yesterday's rain.

What you've got now is the machinery. A share you can own, a queue of people willing to trade it, a computer matching them, and a couple of days for the paperwork. Everything else in investing sits on top of that.

Who decides what a share is worth?

Nobody. The price is the last amount two people agreed on, and it moves when someone is willing to pay more or accept less. That's why the price changes when nothing about the company has changed — what changed is who wanted to trade.

Does the company get my money when I buy its shares?

No. Your money goes to whoever sold you the shares. The company was paid once, when it first sold them. It benefits from a high share price in other ways — raising money more cheaply, paying staff in stock — but your purchase sends it nothing.

Is there always someone to buy from?

In a big, widely traded company, effectively yes — there were 8,200 shares waiting to be sold within five cents in our example. In small, rarely traded companies there often isn't, and that's what "illiquid" means: you can own something you can't easily sell at a sensible price.

Why did my order fill at a slightly different price?

Because between tapping and matching, the queue changed. On a small order it's usually a cent or less. On a large one you can eat through several price levels — our 5,000 shares order paid $110 more than the screen price.

Do I need to understand any of this to invest?

No. You can buy an index fund every month for forty years without ever thinking about an order book. It's worth knowing anyway, because it makes the market much less mysterious — and a thing you understand is a thing you're less likely to panic about.

Written by

Pavel Penev, MSc

MSc Investment & Finance, Queen Mary University of London · 10+ years trading the markets

Pavel founded TradeWize after years of trading and an MSc in Investment & Finance from Queen Mary University of London. He writes these guides to teach the decisions, not just the theory.

More about TradeWize →

Terms in this article

Keep reading