How the stock market works, in one sentence: companies sell slices of ownership called shares, and investors then buy and sell those shares with each other through brokers and exchanges at prices set by supply and demand. This guide is for complete beginners. By the end you will understand who the players are, what really happens when you click “buy”, why prices move, and which rules and regulators protect you.
This lesson contains affiliate links. As an Amazon Associate, StockMarketPartner.com earns from qualifying purchases, at no cost to you.
- A stock is a share of ownership in a company. Companies sell shares to raise money; investors buy them hoping for price gains, dividends or both.
- After the first sale, almost all trading is between investors. The company does not receive money when you buy its shares from another investor.
- Prices move because buyers and sellers keep changing what they are willing to pay, mostly based on expectations about future profits.
- Stocks can and do lose money. According to Investor.gov, large-company stocks as a group have lost money in about one out of every three years.
- The SEC, FINRA and SIPC each play a different role in protecting investors, but none of them protects you from a falling share price.
Table of Contents
What the stock market actually is
“The stock market” is not one building or one website. It is a network of exchanges, trading venues, brokerage firms and investors, all connected electronically, where shares of public companies change hands. When news anchors say “the market was up today”, they usually mean that a stock index, such as the S&P 500 or the Dow Jones Industrial Average, rose. An index is just a basket of stocks used as a scoreboard.
It helps to split the market into two parts:
- The primary market is where a company sells new shares for the first time, for example in an initial public offering (IPO). Money flows from investors to the company.
- The secondary market is where investors trade existing shares with each other. This is what most people mean by the stock market. When you buy a share here, your money goes to another investor who is selling, not to the company.
Why companies sell stock
According to Investor.gov, the SEC’s investor education site, a stock is a type of security that gives its holder a share of ownership in a company, which is why stocks are also called equities. Investor.gov lists several reasons companies issue stock, including paying off debt, launching new products, expanding into new markets and building new facilities.
Selling shares lets a company raise money without borrowing it. The trade-off is that the original owners now share future profits, and voting control, with outside shareholders.
Investors, in turn, buy stock for three main reasons that Investor.gov describes: capital appreciation (the price rises), dividends (the company pays out part of its earnings) and the right to vote on company matters. Most stock is common stock, which carries voting rights. Preferred stock usually has no vote but gets paid dividends first, and preferred holders stand ahead of common holders if a company is liquidated. For a deeper look, read What is a stock?
Maple Bakery Inc. wants $10 million to open 20 new stores. Instead of taking a bank loan, it sells 1 million new shares at $10 each in an IPO. You buy 50 shares for $500, so you now own a tiny slice of Maple Bakery. A year later you sell those 50 shares to another investor for $12 each. You receive $600 (before fees and taxes), and Maple Bakery receives nothing from that second sale, because the shares simply moved from you to the buyer.
The main players
| Player | What it does |
|---|---|
| Public companies | Issue shares and must file regular financial reports with the SEC. |
| Investors and traders | Individuals, plus institutions such as pension funds, mutual funds and ETFs, that buy and sell shares. |
| Brokers | Firms that hold your account and send your orders to the market. You cannot trade on an exchange directly; you go through a broker. |
| Exchanges and trading venues | Electronic marketplaces such as the NYSE and Nasdaq that match buy and sell orders. Some trades also happen on other venues run by brokers and market makers. |
| Market makers | Firms that continuously quote a price to buy (the bid) and a price to sell (the ask), so there is usually someone on the other side of your trade. |
| Regulators | The SEC (a federal agency) and FINRA (which oversees brokerage firms) write and enforce the rules. |
Investor.gov notes that you can buy stocks through a discount or full-service broker, through some companies’ direct stock plans or dividend reinvestment plans, or indirectly through a stock fund. If you are ready to choose a firm, our guide to opening a brokerage account lists what to compare.
How the stock market works when you place an order
Here is the life of a typical trade, step by step:
- You choose an order type. Investor.gov describes the most common ones. A market order buys or sells right away but does not guarantee the price. A limit order sets the worst price you will accept, so it controls price but may never fill. A stop order turns into a market order once a trigger price is reached. Our lesson on order types covers each one with examples.
- Your broker routes the order. The broker sends it to an exchange or another trading venue, looking for a match.
- A match happens. Your buy order is paired with someone’s sell order. For a market order, you generally pay around the current ask price when buying, or receive around the bid when selling. The gap between the two is the bid-ask spread, a small hidden cost on every trade.
- The trade settles. Settlement is when the cash and shares officially change hands. The SEC adopted rules on February 15, 2023 that shortened the standard settlement cycle from two business days (T+2) to one (T+1), with a compliance date of May 28, 2024. So a trade made on Monday normally settles on Tuesday.
When can you trade? The New York Stock Exchange lists its core trading session as 9:30 a.m. to 4:00 p.m. Eastern Time on business days. Many brokers also offer pre-market and after-hours sessions, but those usually have fewer participants, wider spreads and bigger price swings.
Open the free trading simulator and place one market order and one limit order on the same stock with fake money. Compare the prices you get and note whether the limit order filled at all. It is the fastest way to feel the difference.
What makes prices go up and down
A stock’s price is simply the last price at which a buyer and a seller agreed to trade. If more people want to buy than sell at the current price, buyers have to offer more and the price rises. If sellers outnumber buyers, the price falls.
What changes people’s minds? Mostly expectations about the company’s future profits, and how much those future profits are worth today. Common drivers include:
- Company news: earnings reports, new products, lawsuits, a change of CEO, or, as Investor.gov puts it, something like a faulty product.
- The economy and interest rates: higher rates can make future profits worth less today and make bonds more attractive compared with stocks.
- Market-wide events: political events, wars, pandemics and financial crises can push almost every stock down together.
- Emotion: fear and greed can push prices far above or below what the fundamentals seem to justify, at least for a while.
The key point for a beginner is that short-term price moves are very hard to predict, even for professionals.
You can lose money in stocks, and sometimes a lot of it. Investor.gov notes that large-company stocks as a group have lost money in about one out of every three years, and if a company goes bankrupt, common shareholders are last in line and may get nothing. Only invest money you will not need for several years, keep an emergency fund in cash first, and spread your money across many companies rather than betting on one or two.
Who protects investors
Several organizations make the market safer to use. Each has a specific job, and it is worth knowing what each one does not do.
The SEC
The U.S. Securities and Exchange Commission describes its mission as protecting investors, maintaining fair, orderly and efficient markets, and facilitating capital formation. It requires public companies to disclose financial information, oversees exchanges and brokers, and brings enforcement actions against fraud. Investor.gov notes that public companies generally must file reports with the SEC quarterly and annually, which you can read for free.
FINRA
FINRA is a self-regulatory organization that writes and enforces rules for brokerage firms and their registered representatives, under SEC oversight. Its free BrokerCheck tool lets you look up a broker’s background.
SIPC
If a brokerage firm fails and customer assets are missing, the Securities Investor Protection Corporation can step in. According to SIPC, its protection limit is $500,000 per customer, which includes a $250,000 limit for cash. SIPC is clear that it does not protect against the decline in value of your securities. In other words, SIPC protects you if your broker goes under, not if your stocks go down.
Investing vs trading: two ways to use the market
People use the same market in very different ways:
- Long-term investors buy shares, often through diversified funds, and hold them for years. They aim to share in the long-run growth of businesses. Investor.gov notes that investors who stuck with stocks over long periods, such as 15 years, have generally been rewarded, but past results never guarantee future ones.
- Traders buy and sell over days, hours or minutes, trying to profit from short-term moves. This is much harder than it looks, involves higher costs, and research consistently finds that most day traders lose money.
Neither approach is a sure thing. If you are not sure which one fits you, read investing vs trading vs gambling before you put real money in.
Before buying your first stock, write down three things: why you are buying, how long you plan to hold, and what would make you sell. If you cannot answer those, you are probably not ready to buy yet.
If you want one book that explains how markets behave and why most people struggle to beat them, this classic is a good start:
A Random Walk Down Wall Street
A readable tour of how stock prices behave, why they are so hard to predict, and why low-cost diversified investing works for most people.
Third-party video shown for education. Its views are the creator's own, not advice from StockMarketPartner.
Frequently asked questions
Do I need a lot of money to start investing in the stock market?
No. Many brokers have no account minimum, and some let you buy fractional shares with small amounts. The bigger question is whether you have an emergency fund and no high-interest debt first. See how to start investing with little money.
Does the company get my money when I buy its stock?
Only when you buy newly issued shares, such as in an IPO. Most purchases happen on the secondary market, where your money goes to the investor who sold the shares to you.
Who sets the price of a stock?
Nobody sets it alone. The price is wherever buyers and sellers agree to trade, and it changes constantly as their views and orders change.
Can a stock go to zero?
Yes. If a company fails, its common stock can become worthless. That is one reason diversification across many companies matters so much.
What happens to my stocks if my broker goes out of business?
Your securities are normally held in your name and transferred to another firm. If assets are missing, SIPC protection may apply up to $500,000, including up to $250,000 in cash, but SIPC does not cover market losses.
Is the stock market just gambling?
Long-term investing in diversified, profitable businesses is different from gambling because companies produce real earnings over time. Short-term speculation, especially with borrowed money, can look a lot like gambling. Know which one you are doing.
Sources
- Investor.gov (SEC), Stocks – FAQs
- Investor.gov (SEC), Types of Orders
- U.S. Securities and Exchange Commission, Mission
- U.S. Securities and Exchange Commission, SEC Finalizes Rules to Reduce Risks in Clearance and Settlement (T+1) (2023)
- New York Stock Exchange, Holidays and Trading Hours
- SIPC, What SIPC Protects
Reviewed against SEC, FINRA, Investor.gov and other primary sources. Last checked: November 22, 2026.