DeFi Intel

CEX vs DEX: What's the Difference?

Plain-English explainer · Updated 2026-07-01 · By DeFi Intel

How it works

A CEX such as Coinbase, Binance, or Kraken works like a brokerage. You deposit crypto or fiat into accounts the exchange controls; from that point your balance is an entry in the company's internal database. Trades run through a central limit order book and matching engine entirely off-chain, which is why CEX trades are instant, gas-free, and can support high-frequency market making. The blockchain is only touched on deposit and withdrawal. In exchange, you accept counterparty risk, KYC requirements, and the possibility of frozen withdrawals.

A DEX such as Uniswap or Curve is a set of smart contracts. There is no deposit step: you connect a self-custody wallet, sign a transaction, and the contract swaps tokens atomically on-chain. Most spot DEXs use an automated market maker (AMM) model, where liquidity providers pool token pairs and prices follow a formula such as Uniswap's x*y=k, rather than an order book. Some derivatives DEXs (dYdX, Hyperliquid) run order books with on-chain settlement.

The practical differences follow from where settlement happens. DEX users pay gas, face slippage and MEV such as sandwich attacks, and can trade any token someone has pooled, permissionlessly. CEX users get fiat on-ramps, deeper books for large orders, and customer support, but must trust the operator's solvency and security.

Why it matters

The CEX-vs-DEX choice is fundamentally about custody. Every major exchange failure—Mt. Gox in 2014, FTX in 2022—was a CEX failure: users lost funds not because a blockchain broke, but because a company holding their assets did. DEXs remove that counterparty, replacing it with smart-contract risk and personal responsibility for keys. The distinction also drives regulation—CEXs are licensed, KYC-gated fiat gateways, while DEX protocols are neutral code with contested legal status—and market structure: CEXs still dominate fiat on-ramping and deep liquidity, while DEXs enable permissionless listings and composability with the rest of DeFi. Most experienced users treat them as complements: on-ramp on a CEX, trade and self-custody on-chain.

Real-world examples

In November 2022, FTX—then one of the largest CEXs—froze withdrawals and filed for bankruptcy after it emerged that roughly $8 billion in customer deposits had been funneled to its affiliated trading firm, Alameda Research. Users' balances were database entries backed by assets that were no longer there. Throughout the collapse, Uniswap's smart contracts kept executing swaps uninterrupted, and on-chain data showed record outflows from centralized exchanges into self-custody wallets—the clearest live demonstration of the custody difference between the two models.

FAQ

Is a DEX safer than a CEX?

They carry different risks. A CEX exposes you to counterparty risk: the operator can be hacked, become insolvent, or freeze withdrawals, as Mt. Gox and FTX showed. A DEX removes that middleman but adds smart-contract risk, plus full personal responsibility for your keys—lose your seed phrase or sign a malicious transaction and no support desk can reverse it.

Which is cheaper to trade on, a CEX or a DEX?

It depends on trade size and chain. CEX spot fees typically run around 0.1% with no gas cost. DEX swaps combine a pool fee (commonly 0.01%–1%) with network gas—negligible on rollups, meaningful on Ethereum mainnet during congestion. For large orders, CEX order-book depth often beats AMM slippage; DEX aggregators narrow the gap by routing across pools.

Do DEXs require KYC?

The protocols themselves don't—anyone with a wallet can interact with the smart contracts directly. Some hosted front-ends apply geo-restrictions or token blocklists for legal reasons. CEXs, by contrast, are regulated businesses that require identity verification, which is also why they remain the main bridge between bank accounts and crypto.

Related terms

Go deeper

Browse the complete crypto glossary to explore related terms and concepts.

Browse Glossary

Entities mentioned