Centralized vs. decentralized exchanges (CEX vs. DEX): how does trading differ?
Both let you swap one crypto asset for another, but they work very differently under the hood.
Centralized exchange (CEX)
- A company runs the platform, holds customer funds, and matches buy and sell orders on an order book.
- Usually supports deposits and withdrawals in regular currency.
- Typically requires identity verification.
- Offers customer support, account recovery, and familiar interfaces.
- You rely on the company's security and solvency.
Decentralized exchange (DEX)
- Runs on smart contracts. You trade directly from your own wallet.
- Many use automated market makers (AMMs): instead of matching orders, you trade against a pool of tokens, and a formula sets the price.
- Generally no account signup in the traditional sense, though front-end access may be restricted in some places.
- You keep custody until the moment of the swap.
Trade-offs at a glance
- Ease of use: CEX is usually simpler for beginners.
- Custody risk: CEX carries counterparty risk; DEX carries smart contract risk.
- Token selection: DEXs list almost anything, including scam tokens.
- Costs: CEXs charge trading fees and spreads; DEX trades pay pool fees plus network gas fees, and can suffer slippage on larger trades or thin pools.
- Front-running: DEX trades are visible before they're confirmed, which can be exploited.
Many people use both: a CEX as an on-ramp from regular currency and a DEX for specific tokens.
Which do you use more, and what pushed you that way? Have you been surprised by slippage or gas costs on a DEX swap?
Comments · 4
Worth adding that DEX trades are visible on-chain, and slippage can eat into small trades when liquidity is thin.
With a DEX, who is responsible if you send funds to the wrong address? Is there any recourse?
Usually none. On-chain transfers are final, so double check the address and try a small test amount first.
CEX: easier, custodial. DEX: you hold keys, more risk if you slip up.