Home Live Ticker Fear & Greed
Sign in

Crypto Fundamentals

Centralized vs. Decentralized Exchanges: CEX and DEX Compared

Spot the edge. Swoop in.

A centralized exchange (CEX) is a company that holds your account and, commonly, your keys. A decentralized exchange (DEX) protocol lets you trade from your own wallet through smart contracts instead. Neither removes trust from the equation — it just changes who or what you are trusting. This guide compares custody, fees, liquidity, and the specific risks each model carries.

Direct Answer

A centralized exchange (CEX) is a company-operated trading platform that maintains customer accounts and commonly controls the private keys for deposited assets. A decentralized exchange (DEX) is a blockchain-based protocol that lets users trade through smart contracts or liquidity pools while generally retaining control of their own wallet.

The two models solve the same problem — matching a buyer with a seller — in structurally different ways. A CEX intermediates the trade through a company's internal systems and account ledger. A DEX intermediates it through code that runs the same way for everyone who calls it. Which one is "better" depends on what you value more: the convenience and recoverability of a managed account, or removing a single company from custody of your assets.

How a Centralized Exchange Works

A centralized exchange is built around an account, not a wallet you control:

  1. A deposit is sent to an address the exchange controls, not one the user holds the keys to.
  2. The exchange credits the user's internal account balance rather than moving assets to a personal wallet.
  3. Trades commonly occur on the exchange's internal ledger, matching buyers and sellers without necessarily creating an individual on-chain transaction for every fill.
  4. A withdrawal is the point at which the exchange actually initiates a blockchain transaction, moving assets from its own holdings to the address the user specifies.

In exchange for that custody arrangement, a centralized exchange typically offers account recovery if credentials are lost, customer support for disputes and errors, fiat on-ramps and off-ramps for converting to and from traditional currency, and compliance or identity-verification procedures required of a regulated or semi-regulated financial intermediary.

How a Decentralized Exchange Works

A decentralized exchange protocol is built around a wallet the user already controls:

  1. The user connects a self-custody wallet directly to the protocol's interface — no account, login, or deposit into a company-held address is involved.
  2. The trade executes through a smart contract, commonly against a liquidity pool using an automated market maker (AMM) formula, or in some designs through an on-chain order book.
  3. Because an AMM prices trades off the pool's own balance, the trader's own order can move the effective price against them as it consumes available liquidity — this is price impact.
  4. Network transaction fees apply in addition to whatever fee the protocol itself charges, so a trade's total cost is not just the protocol's advertised rate.

Account recovery on a DEX is limited to whatever the connected wallet itself supports. No company can reset access, freeze a mistaken transfer, or issue a refund — the protocol only executes what it is instructed to execute.

CEX vs. DEX at a Glance

CriterionCentralized exchangeDecentralized exchange
Key controlThe exchangeThe user
Account recoveryOften availableLimited to the wallet's own recovery design
Fiat accessCommonUsually indirect
Asset availabilitySelected by the operatorBroader and often permissionless, including higher-risk tokens
Main dependencyThe company's operations and solvencySmart contracts, network conditions, and available liquidity
Transaction visibilitySome activity occurs off-chain, on an internal ledgerTrades generally settle on-chain
Common riskWithdrawal freeze or custodian failureContract exploit, malicious token, or slippage

Custody Is the Core Distinction

Every other difference in the table above follows from one decision: who holds the keys. On a centralized exchange, the number displayed as an account balance is a claim on the exchange's obligation and ability to deliver the underlying assets — it is not, itself, proof that the exchange holds a matching amount somewhere it can access on demand. If the exchange becomes insolvent, freezes withdrawals, or is compromised, a customer's practical access can be impaired regardless of what the exchange's own interface displays.

On a decentralized exchange, the trader is directly responsible for wallet security — losing a seed phrase or signing a malicious transaction has no company to appeal to. What the trader avoids is counterparty exposure to a single company holding the assets on their behalf. Neither arrangement is strictly safer; each trades one category of risk for a different one.

DEX-Specific Risks Worth Understanding

CEX-Specific Risks Worth Understanding

Decision Framework

Before choosing a venue for a particular trade, work through:

Neither Model Eliminates Trust

A decentralized exchange can still depend on front-end hosting, a governance process, price oracles, liquidity providers, and the underlying blockchain network functioning correctly. Using one does not mean "no trust required" — it means trusting a different set of things than a single centralized operator. Evaluating a DEX means evaluating those dependencies specifically, not assuming that "decentralized" is a synonym for "risk-free."

CEX vs. DEX FAQs

Is a decentralized exchange safer than a centralized exchange?

Not automatically. A decentralized exchange can reduce custody risk because trades commonly happen from a user's own wallet, but it introduces smart-contract, liquidity, token-verification, and transaction-signing risk instead. A centralized exchange removes most of those technical risks but adds custodial and counterparty risk tied to the operator's solvency, security, and policies.

Why would I need identity verification on a centralized exchange but not a decentralized one?

Centralized exchanges are typically operated by a company subject to applicable financial-services regulations, which commonly include identity-verification requirements. Decentralized exchange protocols are generally accessed directly through a wallet without a company intermediary collecting that information, though the specifics vary by protocol and jurisdiction.

Can I lose money to slippage on a decentralized exchange?

Yes. Trading against a liquidity pool can move the effective execution price against the trader as the trade itself consumes available liquidity, especially for larger trades in less-liquid pools. Reviewing expected price impact before confirming a trade helps manage this risk.

What is a token approval, and why does it matter on a decentralized exchange?

A token approval is a permission granted to a smart contract allowing it to spend a specified token from a user's wallet, generally required before a decentralized exchange can execute a trade on the user's behalf. Granting an unnecessarily broad or unlimited approval, or approving a malicious contract, can expose more of a wallet's holdings than intended if that contract is later compromised or was deceptive from the start.

If a centralized exchange gets hacked, do I lose my funds?

It depends on the exchange's security practices, insurance arrangements if any, and how it handles the aftermath — outcomes have varied significantly across past incidents in the industry. Because the exchange controls the underlying keys, a customer's practical recovery depends entirely on that company's response rather than on the customer's own actions.

Do decentralized exchanges require a company to operate?

Decentralized exchange protocols are generally designed to operate through smart contracts without requiring an operating company to execute trades, but many protocols still depend on a front-end website, a development team for upgrades, and sometimes a governance process — so some degree of centralized involvement is common even in nominally decentralized designs.

Which is better for a beginner: a centralized or decentralized exchange?

There is no universal answer. A centralized exchange is often simpler for beginners because of fiat access, customer support, and account recovery, but it requires trusting the operator with custody. A decentralized exchange requires more technical understanding of wallets, network fees, and transaction verification, but removes reliance on a single company holding the funds.

Related Guides