Centralized vs Decentralized Exchanges (CEX vs DEX)
CEX vs DEX explained: how centralized and decentralized exchanges work, custody, fees, KYC, liquidity, security risks and which suits different needs.
A centralized exchange (CEX) is a company that holds your funds and matches trades in its own system, while a decentralized exchange (DEX) is a set of smart contracts on a blockchain that lets you trade directly from your own wallet without handing over custody. In short, a CEX trades convenience and support for trust in a company; a DEX trades that trust for self-custody, at the cost of more personal responsibility and different technical risks.
Most people start on a centralized exchange because it accepts bank money and feels familiar. Many later use DEXs to access tokens not listed elsewhere or to keep control of their keys. Knowing the differences helps you choose the right tool for each task and avoid the specific mistakes each one invites.
How a Centralized Exchange Works
- 1You create an account and complete identity checks (KYC).
- 2You deposit bank money or crypto; the exchange credits your account balance.
- 3You place orders, which are matched against other users' orders in the exchange's internal order book.
- 4Balances change in the exchange's database. Crypto moves on-chain only when you deposit or withdraw.
The exchange controls the private keys to the wallets holding customer funds. That's why its security, solvency and honesty matter so much. Our explainer on what a crypto exchange is covers the basics.
How a Decentralized Exchange Works
- 1You connect a self-custody wallet to the DEX's website or app.
- 2You choose tokens to swap. Most DEXs use automated market makers (AMMs): liquidity pools of two tokens priced by a formula.
- 3You approve the token and sign the swap transaction in your wallet.
- 4The smart contract executes the swap on-chain and sends the new token to your wallet.
Uniswap is one of the best-known AMM-based DEXs. Other DEXs use on-chain order books or aggregate prices across many pools. See automated market makers explained for how pricing works.
CEX vs DEX at a Glance
| Feature | Centralized exchange (CEX) | Decentralized exchange (DEX) |
|---|---|---|
| Custody | Exchange holds your funds | You hold your funds in your wallet |
| Account | Required, with KYC | No account; connect a wallet |
| Bank deposits | Usually supported | Not directly |
| Trading model | Order book run by the company | Smart contracts, usually liquidity pools |
| Token selection | Curated listings | Anyone can create a pool for any token |
| Costs | Trading fees, withdrawal fees, spreads | Pool fees, network gas, price impact |
| Support | Customer service | Community forums; transactions are final |
| Main risks | Hacks, insolvency, account freezes | Smart-contract bugs, phishing, fake tokens, slippage |
| Transparency | Depends on disclosures and proof of reserves | Trades and pools are visible on-chain |
Advantages and Disadvantages
Centralized exchanges
Pros:
- Easy on-ramp from bank accounts and cards.
- Familiar interface, order types and customer support.
- Deep liquidity on major trading pairs.
- Password recovery if you forget your login.
Cons:
- You trust the company with your assets. Exchange failures have caused large customer losses; see what happens to your crypto if an exchange goes bankrupt.
- Accounts can be frozen or restricted.
- Personal data is stored by the company.
- Limited token selection.
Decentralized exchanges
Pros:
- Self-custody throughout the trade.
- Access to a wide range of tokens, often as soon as they launch.
- Transparent, on-chain execution.
- Available wherever the blockchain is accessible, subject to local law.
Cons:
- Anyone can list anything, including copycat and scam tokens.
- Smart-contract bugs and exploits can affect pools.
- Phishing sites imitate popular DEXs.
- Network fees and slippage can make small trades costly.
- Mistakes are usually irreversible.
Safety Tips for Each
On a CEX:
- 1Check the exchange is licensed or registered where you live.
- 2Use strong, unique passwords and app-based two-factor authentication. See how to secure your exchange account.
- 3Withdraw long-term holdings to your own wallet if you're comfortable managing keys.
On a DEX:
- 1Bookmark the official site and use only that bookmark.
- 2Verify token contract addresses before swapping; names mean nothing.
- 3Set a sensible slippage tolerance and check price impact.
- 4Review and revoke token approvals you no longer need.
- 5Start with a small test trade.
Our step-by-step guide to using a DEX for the first time walks through a first swap.
Which Should You Use?
- Buying crypto with bank money for the first time: a reputable, licensed CEX is usually the simplest start.
- Trading major coins with tight spreads: large CEXs and large DEX pools on low-fee networks can both work well.
- Accessing a new or niche token: often only available on DEXs, which is exactly where most scams live, so research is essential.
- Keeping control of your assets: DEXs with a self-custody wallet.
You can browse exchanges on our exchanges page and decentralized venues on our DEX page.
Whichever you use, keep records of your trades, deposits and withdrawals. Both kinds of trading can have tax consequences depending on where you live, and good records make reporting much easier.
Bottom line
A CEX is a company you trust to hold your funds and run the market; a DEX is code you interact with directly while keeping custody. Neither is risk-free. Use a CEX for convenience and fiat access with strong account security, use a DEX when self-custody and token access matter, and verify everything — especially contract addresses — before you trade.
Frequently asked questions
Is a DEX safer than a centralized exchange?
It depends on the risk. A DEX removes the risk of an exchange losing or freezing your funds, because you keep custody in your own wallet. But it adds smart-contract risk, phishing risk and the risk of buying fake tokens, and there is usually no support desk if you make a mistake. Each has different dangers.
Do I need KYC to use a DEX?
The smart contracts behind a DEX generally do not require identity verification; you only need a compatible wallet. Some website front-ends restrict access from certain countries. To get crypto into your wallet in the first place, most people use a centralized exchange or other service that does require KYC.
Why are fees different on a CEX and a DEX?
A centralized exchange charges trading fees set by the company and processes trades in its own database. A DEX charges a pool or protocol fee plus a blockchain network fee for every transaction. On busy networks, network fees can make small DEX trades expensive, while on low-fee networks DEX trades can be cheap.
Can I buy crypto with a bank card on a DEX?
Not directly. DEXs swap one crypto asset for another. Some DEX interfaces integrate third-party payment providers that sell crypto for card payments, but those providers are centralized services with their own fees and identity checks.
