How a Stock Trade Executes From Click to Settlement

A stock trade appears instant. An investor taps "buy" on a brokerage app, a confirmation appears seconds later, and shares show up in the account. But between that tap and that confirmation, the order passes through a chain of intermediaries, regulatory checks, routing decisions, and matching algorithms that most investors never see. Understanding how a stock trade executes is not just an academic exercise. It affects the price received, the speed of execution, and in rare but important situations, whether the trade settles at all.

The Order Originates

Every trade begins with an instruction: buy or sell a specific number of shares of a specific security at a specific price (or at the best available price). This instruction is called an order, and its characteristics determine how it will be handled.

A market order says "buy at whatever the current best price is." A limit order says "buy only at this price or better." A stop order says "become a market order if the price crosses this threshold." Each type carries different risks and advantages, but the routing process begins the same way for all of them.

When an investor submits an order through Charles Schwab, Fidelity, Interactive Brokers, Robinhood, or any other broker-dealer, the brokerage's order management system receives the instruction. The system validates the order against the account's buying power (or share holdings for a sell), checks for any trading restrictions, and assigns an order ID. This takes milliseconds.

The order then enters the routing phase, and this is where the process gets interesting.

Order Routing Decisions

The broker must decide where to send the order. This is not a simple question, because there are more than 60 venues in the United States where an equity order can execute. These include 16 registered stock exchanges (NYSE, Nasdaq, NYSE Arca, CBOE BZX, IEX, and others), roughly 30 alternative trading systems (dark pools), and several wholesale market makers that execute orders internally.

SEC Regulation NMS requires that orders receive the National Best Bid and Offer (NBBO). If the best bid for a stock is $150.00 on the NYSE and the best offer is $150.02 on Nasdaq, those prices define the NBBO. A market buy order must fill at $150.02 or better, regardless of which venue the broker sends it to. This regulation is the backbone of the U.S. equity market structure.

Within the NBBO constraint, brokers have significant discretion. Some factors in the routing decision:

Speed. Some venues execute orders faster than others. Latency differences are measured in microseconds, and while this matters enormously for high-frequency trading firms, it has minimal impact on retail investors.

Price improvement. Wholesale market makers like Citadel Securities and Virtu Financial often offer to fill retail orders at prices slightly better than the NBBO. If the NBBO is $150.00 bid / $150.02 offer, a wholesaler might fill a buy order at $150.015, saving the investor half a cent per share. On a 100-share order, that is $0.50. Across millions of orders, it adds up.

Rebates and fees. Exchanges operate maker-taker pricing models. A "maker" order that adds liquidity to the order book receives a rebate (typically $0.002 per share). A "taker" order that removes liquidity pays a fee (typically $0.003 per share). Some venues invert this model. Brokers factor these economics into routing decisions.

Payment for order flow. Some brokers, particularly those offering commission-free trading, receive payment from wholesale market makers for routing retail orders to them. This practice is controversial but legal. The broker receives revenue, the market maker gets access to retail flow (which tends to be less informed than institutional flow), and the investor may or may not receive the best possible execution quality. The SEC has scrutinized this arrangement extensively.

The Matching Process

Once the order arrives at a venue, it enters the matching engine. This is a computer system that maintains an order book, a continuously updated list of all resting buy and sell orders, sorted by price and time priority.

The matching logic follows price-time priority in most venues. The best-priced order gets filled first. Among orders at the same price, the earliest arrival gets priority. Some venues use variations, including pro-rata matching (common in options markets) or discrete pricing that rounds to minimum increments.

For a market buy order arriving at an exchange, the matching engine looks at the best available sell order (the lowest ask price) and matches them. If the buy order is larger than the best ask, it fills partially at that price and the remainder matches against the next best ask price, and so on until the entire order is filled. This process, called "walking the book," is why large orders can receive worse average prices than small ones.

Limit orders that cannot match immediately are placed on the order book as resting orders, waiting for a counterparty to arrive. They earn the maker rebate if they eventually execute because they added liquidity that was consumed by a later order.

The matching process completes in microseconds. The venue sends an execution report back to the broker, which forwards a trade confirmation to the investor. This entire chain, from click to confirmation, typically takes less than one second for liquid stocks during market hours.

Post-Trade Processing

The confirmation is not the end. It is the beginning of the post-trade process, which is where the actual transfer of ownership occurs.

The executing venue sends trade data to the consolidated tape, a real-time feed of all executed trades that updates the public price and volume for each security. This feeds the quotes displayed on financial websites, TV tickers, and brokerage platforms.

The trade also enters the clearing process. Clearing is the calculation of obligations: who owes what to whom. In the United States, the National Securities Clearing Corporation (NSCC), a subsidiary of the Depository Trust & Clearing Corporation (DTCC), handles equity clearing for virtually all trades.

The NSCC performs netting, a critically important function. If Broker A owes Broker B 1,000 shares of Apple and Broker B owes Broker A 800 shares of Apple, the NSCC nets this to a single obligation: Broker A owes Broker B 200 shares. Across the entire market, netting reduces the total volume of shares and cash that must actually change hands by more than 98%. Without netting, the daily settlement obligations would be unmanageable.

Settlement: T+1

Settlement is the actual transfer of shares from seller to buyer and cash from buyer to seller. Since May 2024, the standard settlement cycle for U.S. equities is T+1: one business day after the trade date.

Before 2024, settlement was T+2 (adopted in 2017), and before that it was T+3. The progression toward faster settlement reduces counterparty risk, the danger that one party fails to deliver between trade and settlement.

The Depository Trust Company (DTC), another DTCC subsidiary, handles the actual transfer. Most shares exist in "street name," meaning they are registered to the DTC's nominee (Cede & Co.) rather than to individual investors. Ownership changes happen through book-entry adjustments within the DTC's systems. Physical stock certificates still exist in rare cases, but they complicate and slow the settlement process.

On settlement day (T+1), the DTC debits shares from the selling broker's account and credits the buying broker's account. Simultaneously, cash moves in the opposite direction through the Federal Reserve's Fedwire system or through DTC's own cash settlement process. If both sides deliver, the trade is settled and the process is complete.

When Things Go Wrong

The system works smoothly the vast majority of the time, but failures do occur.

Failed trades. If the selling broker does not have shares to deliver on settlement day, the trade "fails." The NSCC tracks fails and imposes charges on the failing party. Persistent fails can trigger mandatory close-outs, where the NSCC buys shares in the open market and charges the cost to the failing firm. During the meme stock frenzy of January 2021, failed trade volumes spiked dramatically as the system strained under unprecedented retail trading activity.

Broker insolvency. If a broker-dealer goes bankrupt between trade and settlement, the Securities Investor Protection Corporation (SIPC) covers customer accounts up to $500,000 in securities and $250,000 in cash. The NSCC's risk management models also collect margin from member firms to cover potential losses from failed settlements.

Market-wide disruptions. Technology failures, natural disasters, and extreme market events can disrupt the settlement process. After Hurricane Sandy in 2012, the NYSE closed for two consecutive days, the first weather-related closure since 1985. The settlement cycle extended accordingly. The infrastructure has redundancy built in, but it is not immune to disruption.

The Role of the Clearing Broker

Many investors interact with an "introducing broker," which handles the customer relationship but does not actually hold customer assets or process settlements. The introducing broker routes trades to a "clearing broker" (or "clearing firm") that handles the back-office functions: trade confirmation, clearing through the NSCC, settlement through the DTC, and custody of customer assets.

Large firms like Fidelity and Charles Schwab are self-clearing, meaning they handle both the customer-facing and back-office functions. Smaller brokers typically contract with clearing firms. Apex Clearing, for instance, provides clearing services for several fintech-oriented brokers.

The clearing broker is responsible for meeting margin requirements with the NSCC, which can increase sharply during volatile markets. In January 2021, Robinhood's clearing operations faced margin calls from the NSCC that forced the broker to restrict purchases of heavily traded stocks like GameStop, illustrating the real-world impact of clearing mechanics on investors.

How Execution Quality Is Measured

The SEC requires brokers to publish quarterly execution quality reports (Rule 605/606 reports). These disclose statistics including:

Effective spread: the difference between the execution price and the midpoint of the NBBO at the time of order receipt. A narrower effective spread means better execution quality.

Price improvement: the percentage of orders that execute at prices better than the NBBO. If the NBBO for a stock is $100.00 / $100.02 and a buy order fills at $100.01, the investor received $0.01 per share in price improvement.

Fill rate: the percentage of orders that execute fully. Limit orders may not fill at all if the price never reaches the limit level.

Speed of execution: how quickly orders are filled, measured in milliseconds.

Investors can review these reports to assess whether their broker is providing competitive execution quality. In practice, differences between major brokers are small for retail-sized orders in liquid stocks, but they become meaningful for larger orders, less liquid stocks, or strategies that depend on precise execution prices.

The Full Journey

From the investor's perspective, buying a stock takes seconds. From the market's perspective, the journey involves the brokerage's order management system, a routing decision across dozens of potential venues, a matching engine operating in microseconds, post-trade processing through the consolidated tape, clearing through the NSCC with multilateral netting, and final settlement through the DTC on T+1.

Each link in this chain has been engineered, regulated, and refined over decades. The result is a system that processes billions of shares daily with a remarkably low failure rate. But it is not invisible, and at moments of stress, the mechanics matter. The investors who understand the plumbing are better equipped to handle the situations where it backs up.

Nazli Hangeldiyeva
Written by
Nazli Hangeldiyeva

Co-Founder of Grid Oasis. Political Science & International Relations, Istanbul Medipol University.

View full profile →

Put these principles into practice. Track fundamentals, build portfolios, and analyze stocks with AI-powered insights.

Start Free on GridOasis →