A stock exchange is one of the most important parts of the global financial system, but what actually happens behind the scenes when you buy or sell a stock? This beginner-friendly guide explains how stock exchanges work, why companies list their shares, how brokers connect investors to markets, and how supply and demand influence stock prices.
What Is a Stock Exchange?
Imagine you want to buy shares of a major company such as Apple, Microsoft, Toyota, Reliance Industries, or another publicly traded business.
At the same time, thousands of other investors may also want to buy or sell shares of that company.
So, how do all these buyers and sellers find each other?
That's where a stock exchange comes in.
A stock exchange is an organised marketplace and financial infrastructure that facilitates the buying and selling of securities, including stocks.
You can think of it as a marketplace for investments rather than everyday goods.
Instead of buying groceries or electronics, participants trade ownership interests in companies and other financial securities.
But there's an important detail many beginners miss:
When you buy a stock on the secondary market, you are generally buying it from another investor, not directly from the company.
For example, if you buy 10 shares of a publicly traded company, another investor may be selling those 10 shares at the same time.
Your broker helps route the order, while the relevant market infrastructure helps facilitate the transaction.
What Does a Stock Actually Represent?
Before understanding stock exchanges, it helps to understand what you're actually buying.
A stock represents an ownership interest in a company.
Suppose a fictional company has 1 million shares outstanding.
If you own 10,000 shares, you own 1% of the company's outstanding shares, assuming those shares have equal ownership rights.
This is why stocks are also commonly referred to as equities.
Now imagine that the company wants to expand.
It needs money to build factories, develop new products, hire employees, enter new markets, or invest in technology.
One way to raise capital is by issuing shares to investors.
This is where the primary market comes into the picture.
Primary Market vs Secondary Market
The easiest way to understand these two markets is to follow where the money goes.
Primary Market
In the primary market, a company or other issuer sells newly issued securities to investors.
For example, imagine GreenTech wants to raise $100 million.
It issues shares to investors through an initial public offering, or IPO.
The capital raised from the offering goes to the company, subject to the structure and terms of the offering.
Secondary Market
After those shares are publicly traded, investors can buy and sell them among themselves.
Suppose you purchase 50 GreenTech shares from another investor.
Your purchase money generally goes to the seller rather than GreenTech.
That's the secondary market.
Most everyday stock trading that investors see on their brokerage apps takes place in this secondary market.
Primary vs Secondary Market: At a Glance
| Feature | Primary Market | Secondary Market |
|---|---|---|
| Main transaction | New securities are issued | Existing securities are traded |
| Seller | Company or issuer | Existing investor |
| Buyer | Investor | Another investor |
| Where the money goes | Generally to the issuer | Generally to the seller |
| Example | IPO | Buying shares on the open market |
The key idea is simple:
Primary market = new securities are issued.
Secondary market = existing securities change hands.
How Does a Stock Exchange Work?
Now let's follow a typical stock purchase.
Imagine you want to buy 10 shares of a company.
You open your brokerage app and enter an order.
Perhaps you decide:
"I want to buy 10 shares, but only if the price is $100 or less."
That's an example of a limit order.
Your broker receives the order and routes it to an appropriate trading venue.
If a compatible sell order is available, the system can match the orders and execute the trade.
The process may happen extremely quickly.
From your perspective, it may look like this:
You → Broker → Trading Venue → Matching Orders → Trade Executed
After execution, the transaction moves through the relevant clearing and settlement processes.
This is one reason modern stock markets can handle enormous amounts of trading activity.
Buyers, Sellers, Bids and Asks
At the heart of every market are two basic forces:
Buyers and sellers.
A buyer wants to purchase shares at a particular price.
A seller wants to sell shares at a particular price.
For example, imagine a stock has these orders:
Buyers
- $98
- $97
- $96
Sellers
- $99
- $100
- $101
The highest price a buyer is currently willing to pay is called the bid.
The lowest price a seller is currently willing to accept is called the ask or offer.
The difference between the bid and ask is the bid-ask spread.
If a buyer's order and a seller's order can be matched according to the market's rules, a trade can occur.
This simple interaction between buyers and sellers is a major part of how market prices are formed.
Why Do Stock Exchanges Exist?
You might ask:
Why not simply let investors contact each other directly?
Small numbers of private transactions could potentially happen that way, but imagine trying to coordinate millions of investors and enormous numbers of orders every day.
It would quickly become complicated.
Stock exchanges and other market infrastructures help create an organised environment for trading.
They provide systems, rules, technology, and processes designed to support orderly markets.
They can also impose listing standards on companies whose securities are admitted to trading.
Another major benefit is liquidity.
What Is Liquidity?
Liquidity describes how easily an asset can be bought or sold without significantly affecting its price.
Imagine a stock with millions of shares changing hands every day.
There may be many buyers and sellers willing to transact.
That generally makes it easier to enter or exit a position.
Now imagine a very thinly traded stock where only a few people are interested in buying or selling.
You might struggle to find a buyer or seller at the price you want.
That's why liquidity matters.
For investors, a highly liquid market can make transactions easier and potentially reduce the impact of large bid-ask spreads.
However, liquidity can change, particularly during periods of market stress.
What Is a Listed Company?
A listed company is a company whose securities have been admitted to trading on a particular exchange, subject to that exchange's listing requirements.
Companies generally have to meet certain standards before their shares can be listed.
Once publicly listed, companies typically have continuing obligations involving areas such as financial reporting, disclosures, governance, and regulatory compliance.
These requirements vary by country and market.
The goal is to provide investors with important information and help maintain an orderly public market.
Why Do Companies List Their Shares?
One of the biggest reasons companies go public is access to capital.
Imagine a growing technology company wants $500 million to expand internationally.
Rather than relying entirely on loans or private funding, it may decide to raise money from public investors by issuing shares.
That capital could potentially be used for:
- Building new facilities
- Developing products
- Hiring employees
- Expanding internationally
- Investing in technology
- Acquiring other businesses
- Funding research and development
Going public can also increase a company's visibility and potentially provide existing shareholders with a liquid market for their shares.
However, becoming publicly listed isn't free or effortless.
Companies face reporting requirements, regulatory obligations, market scrutiny, and ongoing costs.
So public ownership provides opportunities, but it also comes with responsibilities.
What Is a Stock Broker?
If the stock exchange is the marketplace, where does your investment app fit in?
That's where the broker comes in.
A broker is an intermediary that helps investors access financial markets.
Your brokerage platform may allow you to:
- Search for stocks
- View market prices
- Place buy and sell orders
- Monitor your portfolio
- Review account information
- Access research and other investment tools
The important distinction is:
The broker is your gateway to the market.
The exchange is one of the organised marketplaces where securities can be traded.
They perform different roles within the broader financial system.
Stock Exchange vs Stock Market: What's the Difference?
The terms stock exchange and stock market are often used interchangeably, but they aren't exactly the same.
The stock market is a broad term for the overall ecosystem in which stocks and related securities are bought and sold.
A stock exchange is a specific organised marketplace within that broader ecosystem.
Think of it this way:
Stock market = the overall ecosystem
Stock exchange = a specific marketplace within that ecosystem
There can be multiple exchanges and other trading venues operating within a country's financial system.
Major Stock Exchanges Around the World
Stock exchanges operate in financial centres across the globe.
Some well-known examples include:
- New York Stock Exchange — NYSE
- Nasdaq
- London Stock Exchange — LSE
- National Stock Exchange of India — NSE
- Bombay Stock Exchange — BSE
- Tokyo Stock Exchange — TSE
- Hong Kong Stock Exchange — HKEX
- Frankfurt Stock Exchange
Each market has its own rules, trading hours, listing standards, technology, regulatory environment, and market structure.
Yet the fundamental purpose remains similar:
Facilitate organised trading in securities.
What Determines a Stock's Price?
Here's a question almost every new investor asks:
Who decides the price of a stock?
The short answer is:
The interaction between supply and demand.
Imagine investors become very optimistic about a company.
Many people want to buy its shares, while relatively few shareholders want to sell.
Buyers may have to offer higher prices to attract sellers.
The market price can rise.
Now imagine the opposite.
Investors become concerned about the company's future.
More shareholders want to sell, while fewer buyers are willing to purchase.
The price may fall.
But supply and demand don't operate in isolation.
Stock prices can respond to many factors, including:
- Company earnings
- Revenue growth
- Interest rates
- Inflation
- Economic conditions
- Industry trends
- Government policies
- Competition
- Investor expectations
- Geopolitical developments
- Market sentiment
- Unexpected news
This is why a stock can move significantly even when the company's current financial results haven't changed much.
Markets are constantly processing expectations about the future.
What Happens When You Sell a Stock?
Let's reverse the process.
Suppose you bought 20 shares of a company and later decide to sell them.
You open your brokerage account and submit a sell order.
Your broker routes the order to the appropriate trading venue.
If a compatible buyer is available, the transaction can be executed.
The simplified process looks like this:
Sell Order → Broker → Trading Venue → Buyer Found → Trade Executed
After execution, the transaction goes through the relevant clearing and settlement process.
You ultimately receive the proceeds from the sale, subject to applicable fees, taxes, and other conditions.
The buyer receives the shares through the applicable settlement system.
What Are Clearing and Settlement?
These terms can sound intimidating, but the basic idea is straightforward.
Clearing involves processes that help determine the obligations resulting from trades.
Settlement is the process through which those obligations are completed.
For example, if you sell shares:
You owe the shares.
The buyer owes the money.
Clearing and settlement infrastructure helps process these obligations and complete the transaction.
This infrastructure is essential because financial markets handle huge numbers of transactions involving countless investors and institutions.
Are Stock Exchanges Safe?
This question needs a careful answer.
Stock exchanges operate within regulatory frameworks intended to support fair, orderly, and transparent markets.
But that does not mean investing in stocks is risk-free.
These are two very different things.
A regulated exchange can provide market rules and infrastructure.
It cannot guarantee that an investment will make money.
A company's profits can decline.
Its business model can fail.
Economic conditions can deteriorate.
Investor expectations can change.
And stock prices can fall dramatically.
In extreme situations, an investor could lose some or all of the money invested in an individual stock.
So remember:
A regulated market does not mean a risk-free investment.
Why Stock Exchanges Matter to the Economy
Stock exchanges aren't just places where investors watch prices move on a screen.
They play an important role in the broader financial system.
For companies, public markets can provide access to capital.
For investors, they provide opportunities to own shares in publicly traded businesses.
For the economy, financial markets can help channel capital toward businesses and investment opportunities.
For example, imagine a company raises $1 billion through a public offering.
It could potentially use that capital to build factories, develop technology, hire workers, or expand into new markets.
If the business succeeds, it may create additional economic value.
This is one reason functioning capital markets are important to modern economies.
A Simple Example: How Everything Connects
Let's put everything together with a fictional company called GreenTech.
GreenTech develops clean-energy technology and wants to raise $100 million to build a new manufacturing facility.
The company decides to go public.
It issues shares to investors through an IPO.
Investors purchase those newly issued shares.
GreenTech receives the capital raised through the offering.
Later, GreenTech's shares are traded in the secondary market.
Now imagine you want to buy 50 shares.
You open your brokerage account and place an order.
Your broker routes the order.
A seller is willing to sell 50 shares at a matching price.
The trade is executed.
You now own the shares.
Several months later, GreenTech announces stronger-than-expected earnings.
Investors become more optimistic.
Demand for the stock increases.
The market price rises.
You decide to sell your 50 shares.
Another investor buys them.
The shares change hands, and you receive the sale proceeds.
Notice something important:
GreenTech received money when it issued the new shares in the primary offering.
You receive money when you later sell your existing shares in the secondary market.
That's the difference between raising capital and trading existing shares.
Common Stock Exchange Misconceptions
Let's clear up some common misunderstandings.
"The Stock Exchange Owns the Companies Listed on It."
Not necessarily.
An exchange provides a marketplace and related infrastructure. Listing on an exchange does not mean the exchange owns the listed company.
"When I Buy a Stock, I'm Buying Directly From the Company."
Usually not in the secondary market.
You're generally buying shares from another market participant.
"The Exchange Sets the Stock Price."
It's more accurate to say that market prices emerge through the interaction of buy and sell orders and broader market forces.
"A Regulated Exchange Means I Can't Lose Money."
False.
Regulation and market infrastructure do not eliminate investment risk.
"The Stock Market Is Only for Wealthy Investors."
Not necessarily.
Many modern brokerage platforms allow individuals to participate with relatively small amounts of capital, depending on the market, broker, product, and applicable rules.
Stock Exchange vs Broker vs Company
One of the easiest ways to understand the entire system is to imagine three different players.
1. The Company
The company operates the business and may issue shares to raise capital.
2. The Stock Exchange
The exchange provides an organised marketplace and infrastructure for trading eligible securities.
3. The Broker
The broker provides investors with access to the market and facilitates the submission of orders.
So the simplified relationship is:
Company → Issues or Lists Shares
Exchange → Provides Trading Marketplace
Broker → Provides Market Access
Investor → Buys or Sells Shares
Once you understand these four roles, the stock market becomes much easier to follow.
Why Should Investors Understand Stock Exchanges?
You don't need to become a professional trader to understand how a stock exchange works.
But learning the basics can make you a more informed investor.
It helps you understand what happens after you press Buy or Sell.
It explains why a stock price changes.
It shows you the difference between a company and a stock exchange.
It clarifies the role of your broker.
And it helps you understand how companies raise capital from investors.
Most importantly, it gives you a better appreciation of what's happening behind the simple interface of an investing app.
That single Buy button connects you to a sophisticated financial network operating across markets around the world.
Stock Exchange Explained: Key Takeaways
Let's bring everything together.
A stock exchange is an organised marketplace and financial infrastructure for trading securities.
Companies can use public markets to raise capital by issuing shares.
Investors can buy and sell existing shares in the secondary market.
Brokers help investors access financial markets and submit orders.
Stock prices are influenced by supply and demand, along with company performance, expectations, economic conditions, interest rates, news, and many other factors.
Clearing and settlement processes help complete transactions after trades are executed.
And perhaps the most important point:
The stock market provides opportunities, but it never guarantees profits.
Understanding the system is one of the first steps toward becoming a more knowledgeable investor.
Final Thoughts
The next time you open your investing app and see a stock price moving up or down, remember what is happening behind that number.
There are buyers.
There are sellers.
There are brokers.
There are trading venues and exchanges.
There are clearing and settlement systems.
There are companies raising capital.
And there are millions of investors making decisions based on information, expectations, and risk.
That's what makes the modern stock market possible.
You don't need to understand every technical detail before you start learning about investing.
But understanding the foundation can make everything else easier.
Learn the market before trying to master it.
Frequently Asked Questions
1. What is a stock exchange?
A stock exchange is an organised marketplace and financial infrastructure where eligible securities can be traded.
2. What is the difference between a stock exchange and a stock market?
A stock exchange is a specific marketplace, while the stock market is a broader term for the overall ecosystem of stock trading.
3. Do companies receive money every time their shares are traded?
Usually not. Companies generally receive capital when they issue new shares. Secondary-market trades typically involve investors buying and selling existing shares.
4. What is a stock broker?
A stock broker is an intermediary that provides investors with access to financial markets and facilitates the placement of buy and sell orders.
5. Can you lose money by investing in stocks?
Yes. Stock prices can rise or fall, and investors can lose money. A regulated stock exchange does not guarantee investment returns.
Disclaimer: This article is for educational and informational purposes only. It is not financial, investment, tax, legal, or professional advice. Investing involves risk, including the possible loss of capital. Always conduct your own research and consider your financial circumstances and risk tolerance before making investment decisions.

COMMENTS