How Does the Stock Market Work?

The stock market is a network of exchanges and trading systems where buyers and sellers trade shares of public companies. Prices move because the balance between buyers and sellers keeps shifting as people react to company results, news, interest rates and their own expectations. Nobody controls the price, and nobody can reliably predict where it will go next.
Understanding the machinery helps the ups and downs feel less mysterious. This page is part of the foundations in our Investing 101 section, and it focuses on how the system works rather than what to buy.
What the stock market actually is
When people say "the market," they usually mean a few things at once:
- Stock exchanges, which are organized marketplaces with rules for listing companies and matching trades.
- Other trading venues, electronic systems that also match buy and sell orders.
- Brokerages, the firms that take your order and send it to be filled.
- Market indexes, which track a group of stocks so people can describe how "the market" did on a given day.
An index is a measuring stick, not something you can directly own. Funds that try to copy an index are a separate product, covered in our guide to index funds.
How a company ends up on the market
A private company can sell shares to the public for the first time in an initial public offering, or IPO. After that, its shares trade between investors. When you buy a share on an exchange, you're almost always buying it from another investor, not from the company. The company got its money at the IPO, or in later share sales.
To stay listed, public companies must file regular reports. Those filings are public, which is one reason the market depends on information being widely available.
How a trade happens
Here's the basic path of an order:
- You tell your brokerage you want to buy a certain number of shares.
- The brokerage routes the order to an exchange or another trading venue.
- Your order is matched with someone willing to sell at a price you accept.
- The trade settles, meaning the shares and cash officially change hands.
Two prices matter at any moment. The bid is the highest price buyers are offering. The ask is the lowest price sellers will accept. The gap between them is called the spread. A market order buys or sells at the best available price right now. A limit order sets the most you'll pay or the least you'll accept, so it may not fill if the price doesn't reach your limit.
Why prices move
Prices move when the mix of buyers and sellers changes. Common reasons include:
| What happens | How it can affect prices |
|---|---|
| A company reports profits | Buyers may pay more or less depending on whether results beat or miss expectations |
| Interest rates change | Can change how attractive stocks look compared with bonds and savings |
| Big news or uncertainty | Can lead many people to buy or sell at once |
| Shifts in mood | Fear and excitement can push prices far from what a business seems worth |
Notice that expectations matter as much as facts. A company can report good news and still see its price fall if investors were hoping for even better. That's why short-term moves often look random. Our guide to market volatility explains why swings are a normal part of owning stocks and how people try to avoid panic decisions.
Stocks and bonds trade in different ways
Stocks are only part of the picture. Bonds, which are loans to governments and companies, also trade between investors, often through dealers rather than on exchanges. Their prices respond to interest rates and the borrower's financial health. Our guide to bonds explained covers how they work and where their risks come from. Before going further with either one, it helps to understand exactly what you own when you buy a share; stocks explained covers that.
A hypothetical example of supply and demand
Imagine a made-up company, Riverbend Bakeries, whose shares last traded at a hypothetical $40. One morning it announces a new product. Many investors want to buy, but few current owners want to sell at $40. Buyers start offering $41, then $42, until enough sellers are willing to part with shares. The price rises because of demand, not because anyone decided it should.
A week later, a report suggests the product launch is delayed. Now more owners want to sell than buyers want to buy, and the price drifts down as sellers accept lower offers. These numbers are invented to show the mechanics. Real prices can move much more or less, and in either direction.
Who watches over the market
In the US, the Securities and Exchange Commission (SEC) oversees the securities markets, and FINRA oversees brokerage firms and their representatives. Rules require public companies to disclose information and require brokers to follow standards when handling your orders. Regulation reduces some risks, but it doesn't protect you from losing money when prices fall.
The main risks to understand
All investments carry risk, including the possible loss of the money you invest, and past performance doesn't guarantee future results. With stocks in particular:
- Prices can fall quickly and stay down for long periods.
- A single company can fail, wiping out its shareholders.
- Trading more often usually means more costs and more chances to act on emotion.
- News and social media can create sudden swings that have little to do with a business's long-term value.
Because no one can predict short-term moves, many long-term investors focus on what they can control: time horizon, diversification, costs and their own behavior. A licensed professional, such as a fee-only fiduciary adviser, can help you think through how much stock market risk fits your situation.
Words to know
- Share: one unit of ownership in a company.
- Exchange: an organized marketplace where shares trade.
- Index: a list of stocks used to measure part of the market.
- Bid and ask: the best price buyers offer and sellers accept.
- Volatility: how much and how quickly prices move up and down.
Something to do today
Pick any public company you know and look up its current bid, ask and spread through a free quote service. Then ask yourself: "What would need to change for buyers to want this more, or less?" If you're ready to think about your own first steps, our guide on how to start investing lays them out in order.
Want a structured investing course?
Some people like the structure of a paid program. This button opens a third-party investing course, newsletter or program from one of our advertising partners. Its claims are its own, not ours, and we haven't verified any results it describes. Investing involves risk, including loss of money. Never invest money you can't afford to lose, and weigh any offer against our investment red flags checklist.
See the partner program →We may be paid when you click. The program shown can change. Read its terms before you buy anything. How this works
Frequently asked questions
Who sets stock prices?
No single person does. A stock's price is the most recent price at which a buyer and a seller agreed to trade. When more people want to buy than sell at current prices, the price tends to rise, and the reverse tends to push it down.
Is the stock market the same as the economy?
Not exactly. The market reflects investors' views about companies' future profits, which are tied to the economy but can move differently, and sometimes the two head in opposite directions for a while.
Can the stock market go to zero?
An individual company's stock can lose all its value if the business fails. A broad market is made of many companies, so it behaves differently, but it can still fall sharply and stay down for long periods.



