Stock Market BasicsLesson 2 of 100About 5 minutes

How Does the Stock Market Work?

At its core, the stock market is a matching place. Investors place orders, brokers route them to an exchange, and the exchange finds the best match when the price works for both sides.

Start the lesson

Introduction

A stock market is really just a matching system

Most people picture the stock market as a place where companies sell shares directly. In reality, investors usually place orders through a broker, and the broker sends that order to an exchange such as NSE or BSE. The exchange then looks for a matching buyer or seller at a compatible price. If the order fits, the trade is executed.

The short version

You place an order, the exchange finds a match, and the trade is settled electronically. Your shares then show up in your demat account.

This is a simplified explanation. In real life, trading and settlement follow exchange, clearing-corporation, depository, and regulatory rules.

How a trade happens

The journey of a stock-market order

Here is a simple version of what usually happens when you buy a listed share.

  1. 1

    Place your order

    You choose a share, how many you want, and an order type using your broker's trading account.

  2. 2

    The exchange finds a match

    The broker sends your order to an exchange, where it may match with a compatible order from another investor.

  3. 3

    Payment and shares are settled

    The market's settlement process arranges payment from the buyer and delivery of shares from the seller.

  4. 4

    The shares appear in your demat account

    After settlement, your purchased shares are held electronically in your demat account.

What does the broker do?

It gives you access to the market and helps route your buy or sell order to the exchange.

What does the exchange do?

It runs the marketplace where buy and sell orders are matched under strict rules.

A simple real-world example

Suppose you buy 10 shares at ₹100 each. The trade value is ₹1,000 before charges. Once the trade is matched, the shares are delivered to your demat account after settlement.

See how orders match

Would this buy order match?

Try a simplified order-book example. A seller is offering shares at an illustrative best ask of ₹102. Select a buy order to see what its price condition means.

Choose your order type

Illustrative best available sell price

₹102

A market buy seeks to match with the best available seller. In this simplified example, it could match at ₹102, if shares are available. The execution price is not guaranteed.

Educational simulation only: real order books can change rapidly, may have multiple price levels and quantities, and follow exchange rules. This is not a live quote or a trading recommendation.

A limit buy at ₹100 will not match a seller asking ₹102. A market buy may match at the best available price instead, but that price can change. This is one way buyers and sellers help determine a share's market price.

What to keep in mind

A few beginner mistakes to avoid

  • Assuming every order will execute

    A limit order may stay unfilled if the market never reaches your price. It can also be only partially filled.

  • Treating a market order as a guaranteed price

    A market order prioritizes speed, not a fixed price. The actual execution price can move, especially in fast or thin markets.

  • Mixing up trading and demat accounts

    A trading account is used to place orders. A demat account is where shares are held electronically.

  • Forgetting costs and risk

    Brokerage and charges can change the final number. A trade can be completed and still end up in a loss.

Key points

Remember how a trade happens

  • Investors place orders through a broker.
  • The exchange matches compatible buy and sell orders.
  • A secondary-market trade is between investors.
  • Clearing and settlement arrange payment and share delivery.
  • A demat account holds shares electronically.
  • Market orders and limit orders work differently.

This lesson is for education only, not personalized financial, tax, or investment advice. Investments in securities are subject to market risks; read all related documents carefully.

Test yourself

5-question quiz

Choose one answer for each question, then check your score.

  1. 1.What does a stock exchange do?
  2. 2.In a typical secondary-market trade, who sells the share to the buyer?
  3. 3.What is the main difference between a market order and a limit order?
  4. 4.What is the role of a demat account?
  5. 5.What can happen if no seller is willing to sell at your limit-buy price?

Answer all five questions to see your score.

Previous lesson · 1 of 100

What Is the Stock Market?

Review the basic idea of shares, companies, and stock exchanges.

Next lesson · 3 of 100

What Is a Share?

Understand what a share represents and what it means to own one.