Stock market mechanics, from orders to prices
The stock market is a regulated system where shares change hands and prices move as buyers and sellers meet.
By Daniel Okafor · Business Editor
8 min read
How does the stock market work: investors buy and sell shares of companies through brokers, and regulated exchanges or trading venues match those orders at agreed prices. The U.S. Securities and Exchange Commission describes stocks as ownership interests in corporations, and the market matters because it lets companies raise money and gives investors a way to own, trade and price those interests.
A stock price is not set by a committee. It is the result of buyers and sellers placing orders, brokers sending those orders into the market, and trading systems matching them under rules overseen by regulators such as the SEC and the Financial Industry Regulatory Authority, known as FINRA.
How does the stock market work day to day?
The day-to-day stock market is mostly a secondary market, which means investors trade shares that already exist. If one investor buys 100 shares of a public company, another investor, a market maker or another trading firm is selling those shares.
A broker is the firm or app that takes an investor’s order. FINRA describes broker-dealers as firms that buy and sell securities for customers or for their own accounts. When a customer taps buy or sell, the broker must handle that order under rules that include a duty to seek best execution, meaning a reasonable effort to get a favorable result under market conditions.
Orders can go to a stock exchange, such as a national securities exchange, or to another trading venue. An exchange is a regulated marketplace with rules for listing companies, accepting orders and publishing trade data. Other venues include alternative trading systems, which the SEC describes as regulated systems that bring together buyers and sellers but do not operate as full exchanges.
The basic matching process is straightforward. Buyers state what they are willing to pay, sellers state what they are willing to accept, and a trade happens when those prices line up. The highest price a buyer is currently willing to pay is the bid. The lowest price a seller is currently willing to accept is the ask. The gap between them is the bid-ask spread.
If a stock shows a bid of $49.98 and an ask of $50.02, a buyer who wants an immediate fill may pay about $50.02, while a seller who wants an immediate fill may receive about $49.98. The exact result depends on order size, available shares and how fast the market is moving.
Where do shares come from in the first place?
Shares usually begin with a company deciding to sell ownership stakes. In a private company, shares may be held by founders, employees and private investors. To sell shares to the broad public, a company can conduct an initial public offering, or IPO, which the SEC describes as the first time a company offers its shares to public investors under securities registration rules.
In an IPO, the company sells newly issued shares, and the money goes to the company after costs and underwriting arrangements. That is the primary market, where securities are sold by the issuer. After that, most trading happens in the secondary market, where investors trade with one another and the company usually does not receive money from each trade.
Companies can also issue more shares later through follow-on offerings, and they can reduce share count through buybacks, subject to securities law and corporate rules. These actions can affect each shareholder’s percentage ownership. If a company issues more shares and an investor does not buy any, that investor’s percentage stake can be diluted, meaning it becomes smaller.
Public companies must provide regular disclosures. The SEC requires listed public companies to file financial reports and disclose information that investors use to assess the business. Those reports do not guarantee a good investment result, but they give the market a common set of facts about revenue, profit, debt, risks and management’s discussion of the business.
Why do stock prices move?
Stock prices move because expectations change and orders reflect those changes. Investors look at company earnings, interest rates, inflation, industry conditions, regulation, competition and broad economic data. When more buyers are willing to pay higher prices than sellers are willing to accept, the price rises. When sellers accept lower prices to find buyers, the price falls.
The market also prices uncertainty. A company can report rising profit and still see its stock fall if investors expected better results. A company can report a loss and rise if investors believe the business is improving faster than expected. Price changes often reflect the gap between expectations and new information.
Supply and demand operate through the order book, which is the list of current buy and sell orders at different prices. For heavily traded stocks, many shares may be available near the current price. For thinly traded stocks, fewer orders may sit in the book, so a modest buy or sell order can move the price more.
Large professional investors, individual investors, market makers and automated trading firms all participate. A market maker is a firm that stands ready to buy and sell a security, seeking to profit from the spread and manage inventory risk. The SEC and exchanges regulate market-making activity, but market makers are not required to prevent a stock from falling or rising.
The last quoted stock price usually means the price of the most recent trade. It does not mean every investor could buy or sell unlimited shares at that number. A small order in a liquid stock may execute close to the displayed price, while a large order can fill at several prices as it consumes available shares.
What happens after you place an order?
The first choice is usually the order type. A market order tells the broker to buy or sell promptly at the best available price. The SEC warns that a market order guarantees speed of execution under normal conditions, not a specific price.
A limit order sets a maximum price for a buy or a minimum price for a sale. A buy limit order at $50 says the investor will buy only at $50 or lower. A sell limit order at $50 says the investor will sell only at $50 or higher. The trade-off is that the order may not fill if the market does not reach that price.
After the broker receives the order, it routes the order according to its systems and regulatory duties. Some orders go to an exchange. Some go to wholesalers or other trading firms that execute retail orders. Brokers must disclose order-routing practices under SEC rules, and customers can review those disclosures to understand how routing works.
If the order executes, the investor receives a trade confirmation showing the security, number of shares, price and fees or commissions if any apply. The trade then moves to clearing and settlement. Clearing is the process of confirming the details and preparing the transfer of money and securities. Settlement is the final exchange of cash for shares.
Under recent U.S. market rules, most stock trades settle one business day after the trade date, often called T+1. If an investor buys shares on a Monday, settlement normally occurs on Tuesday, assuming both are business days. The investor may see the position in the account right away, but the legal completion of the trade follows the settlement cycle.
How do indexes fit into the stock market?
An index is a measuring stick for a group of stocks. S&P Dow Jones Indices, MSCI and other index providers publish rules that define which stocks go into an index and how much weight each receives. The S&P 500, for example, is widely used as a gauge of large U.S. companies, though the index provider sets its own eligibility rules.
Indexes help investors answer a basic question: how did a broad part of the market perform? If one stock rises 5%, that says something about one company. If a broad index rises, that suggests many large stocks gained or heavily weighted stocks gained enough to lift the measure.
Many funds track indexes. A mutual fund or exchange-traded fund, known as an ETF, can buy a basket of stocks designed to follow an index. The SEC describes mutual funds and ETFs as pooled investment vehicles, meaning many investors’ money is combined and invested according to the fund’s stated strategy.
An index fund does not make the stock market safer by itself. It changes the way an investor gets exposure. Instead of buying one company, the investor owns a slice of many companies through the fund. That can reduce company-specific risk, but the fund can still lose value when the market segment it tracks falls.
Who keeps the market orderly?
The stock market relies on rules, disclosures and enforcement. In the United States, the SEC oversees securities markets, requires public-company disclosure and enforces federal securities laws. FINRA oversees broker-dealers under SEC supervision. Exchanges also write and enforce rules for their markets, subject to regulatory approval.
Regulators do not decide what a stock should be worth. Their role is to police fraud, require fair dealing, monitor market structure and make sure investors receive required information. A regulated market can still produce sharp losses, bubbles, panics and bad investments.
Trading halts and circuit breakers are tools used to slow trading during unusual moves or major news. Exchanges can halt trading in a stock while information is released, and market-wide circuit breakers can pause trading after severe index declines. These tools are designed to give market participants time to process information; they do not guarantee a particular price outcome.
For investors, the central point is that the stock market is a pricing system. It turns millions of views about future profits, risk and interest rates into trades. The price you see is the current meeting point of those views, filtered through order types, trading venues, liquidity and regulation.
The practical takeaway: the stock market works by matching buy and sell orders for ownership shares under a regulated system. A share’s price moves as expectations and orders change, so understanding brokers, order types, liquidity and settlement explains much of what happens after a person clicks buy or sell.