DEX, SWAPS & DEFI

DEX vs CEX: How Crypto Trading Venues Differ

Compare decentralized and centralized crypto exchanges by custody, trade execution, fees, and the checks to make before placing an order.

In brief

A centralized exchange typically manages an account and trade execution through its service, while a decentralized exchange uses onchain programs or smart contracts to process trades. The custody model, settlement, fees, and trading mechanics depend on the venue and product.

  • A trade on a centralized exchange may be recorded in its internal account system before any blockchain withdrawal.
  • A decentralized exchange trade can require a wallet signature and an onchain transaction.
  • The label alone does not explain a platform’s custody, fees, or execution model.

What do CEX and DEX mean?

A centralized exchange (CEX) is a trading service operated by a company. Customers typically use an account, and the service may hold assets on their behalf and record trades in its own systems. A decentralized exchange (DEX) uses blockchain programs or smart contracts to facilitate token trades. Many DEX workflows connect a user’s wallet and submit a transaction to a network.

These are broad labels, not complete descriptions of every product. Some services combine components or provide an interface to markets operated by other protocols. Check the specific product’s terms, custody arrangement, and trade path.

Custody and control

On a custodial exchange, the service controls the private keys for assets it holds. A balance shown in your account may be an obligation recorded by the service rather than a separate onchain token balance that you control directly. Deposits and withdrawals may touch a blockchain, while trades between customers can settle internally.

In a self-custody DEX workflow, you generally authorize transactions from your wallet and remain responsible for its keys. That can offer more direct control over signing and onchain settlement, but it also means that lost keys, mistaken approvals, or malicious transactions can create losses. A wallet does not store the tokens themselves; it manages the keys used to access them. The SEC’s investor bulletin on crypto custody explains the distinction between self-custody and third-party custody.

How trades are executed

A CEX may match orders through an internal order book or another venue-specific method. A DEX can use liquidity pools, onchain order books, or a route through multiple markets. “DEX” does not mean every trade uses the same pricing mechanism.

An onchain transaction also introduces network processing and settlement. The displayed quote can change before execution, and the transaction may fail if its conditions are no longer met. Network fees may still apply to a failed transaction, depending on the chain. Read slippage, liquidity, and latency for more on why a quote and final outcome may differ.

Fees and practical trade-offs

Compare the complete cost rather than a single headline fee. A CEX may have trading, deposit, withdrawal, or spread costs. A DEX trade can involve a market fee, network fee, and price impact. The fee structure and available protections vary between services and markets.

The venue also affects the steps you take. Before using a CEX, check how deposits, withdrawals, custody, and account access work. Before using a DEX, check the network, token address, transaction details, approvals, fees, and the program or protocol you are interacting with. Ethereum.org’s guide to token swaps describes one common wallet-connected DEX flow.

Questions to answer before trading

  • Who controls the private keys while assets are held by the service?
  • Is the trade recorded internally, onchain, or through both steps?
  • Which market mechanism determines the price and available liquidity?
  • Which trading, network, withdrawal, or other fees apply?
  • What happens if an order or transaction fails?
  • Can you withdraw the resulting asset, and on which network?

There is no single venue type that fits every use. Read the current product terms and network details, then compare them with the way you want to trade. For the difference between spot assets and derivatives, see spot vs perpetual futures.

This guide is educational, not a recommendation to buy, sell, or copy any asset or wallet. Crypto trading can result in substantial losses.