CEX vs DEX: centralized vs decentralized crypto exchanges
Centralized exchanges hold your coins and accept bank cards; DEXs let you trade from your own wallet. Compare custody, fees, KYC, risks and who each one suits.
CryptoGroup Newsroom · · 7 min read

Quick verdictUse a reputable centralized exchange to get from bank money into crypto; use a DEX when you want to trade from your own wallet and are comfortable managing keys and smart-contract risk.
Jump to the verdict ↓On this page
Almost every crypto journey starts on an exchange — but "exchange" covers two very different things. A centralized exchange (CEX) is a company that runs a trading platform and holds customers' funds, much like a broker. A decentralized exchange (DEX) is software running on a blockchain that lets people swap tokens directly from their own wallets, with no company holding the money in between. This guide explains how each works, what you give up and gain, and how to choose.
How a centralized exchange works
When you sign up to a CEX, you create an account, verify your identity and deposit money by bank transfer or card. The exchange keeps your coins in its own wallets and records your balance in an internal database. When you buy, your order is matched against other customers' orders in the exchange's order book; the coins usually do not move on the blockchain until you withdraw them.
That design makes centralized exchanges fast and familiar: you get customer support, password resets, fiat on- and off-ramps and often extras such as staking or recurring buys. The trade-off is custody — until you withdraw, the exchange controls the private keys. The collapses of Mt. Gox in 2014 and FTX in 2022 showed what can happen when a platform loses or misuses customer funds. Most regulated exchanges must also run KYC (know-your-customer) checks and can freeze accounts under court orders or their own rules.
If you are buying for the first time, our step-by-step guide on how to buy bitcoin walks through a typical CEX purchase.
How a decentralized exchange works
A DEX is a set of smart contracts — programs deployed on a blockchain such as Ethereum, Solana or a layer-2 network. You connect a self-custody wallet, approve the contract to use a specific token and sign a transaction. The swap settles on-chain, and the new tokens land straight in your wallet.
Most popular DEXs use an automated market maker (AMM): instead of matching buyers and sellers, they hold pools of two tokens supplied by liquidity providers, and a formula sets the price based on the pool's balance. Others, such as Hyperliquid, run a full on-chain order book. Because anyone can create a pool, DEXs often list new tokens long before centralized platforms — which is both their appeal and a major source of risk.
There is usually no account and no identity check at the protocol level, though some website front-ends block certain countries. You pay the blockchain's network fee (gas) on top of the trading fee, and large trades in thin pools can suffer slippage, meaning you get a worse price than quoted. To learn the wider landscape, start with what DeFi is.
Side-by-side comparison
| Centralized exchange (CEX) | Decentralized exchange (DEX) | |
|---|---|---|
| Who holds your funds | The exchange, until you withdraw | You, in your own wallet |
| Sign-up | Account plus identity checks (KYC) | Connect a wallet; no account |
| Buying with bank money | Yes: cards, bank transfers | Rarely; you usually need crypto first |
| Fees | Trading fee or spread; withdrawal fees | Trading fee plus network (gas) fees |
| Token choice | Curated listings | Almost anything, including scams |
| Main risks | Hacks, insolvency, account freezes | Smart-contract bugs, scams, user error |
Pros and cons of centralized exchanges
+ Pros
- Easy way to turn euros, dollars or hryvnia into crypto and back
- Familiar apps, customer support and account recovery
- Deep liquidity on major pairs, so large orders fill at close to the quoted price
- Regulated platforms are subject to licensing, audits and consumer rules
− Cons
- You rely on the company's security and solvency while funds sit there
- Identity checks and data sharing are mandatory on regulated platforms
- Withdrawals and accounts can be paused or frozen
- Limited choice of smaller or newer tokens
Pros and cons of decentralized exchanges
+ Pros
- You keep control of your keys and coins at all times
- No account, no sign-up queue and access to a huge range of tokens
- { "Transparent": "trades and pool balances are visible on the blockchain" }
- Works around the clock as long as the blockchain runs
− Cons
- Mistakes are final; there is no support desk to reverse a bad transaction
- Smart-contract bugs and malicious token approvals can drain wallets
- Network fees and slippage can make small or illiquid trades expensive
- Copycat tokens and fake front-end websites are common
Fees and costs in practice
On a centralized exchange you typically pay a trading fee (often lower for "maker" orders and higher volumes) or a spread built into "instant buy" prices, plus fees for card deposits and crypto withdrawals. Instant-buy buttons are convenient but usually cost more than placing an order on the exchange's trading screen.
On a DEX the total cost is the pool or protocol fee, the network fee and any slippage. On busy networks a simple swap can cost more in gas than the trade is worth, while on low-fee chains and layer-2 networks it can cost cents. Always look at the "minimum received" figure before confirming.
Security: different risks, not zero risk
Neither option is "safe" by default. With a CEX the main risks are counterparty risks: hacks of the exchange's hot wallets, mismanagement, insolvency or account restrictions. Choosing licensed platforms, enabling app-based two-factor authentication and not leaving large balances on the exchange all reduce that risk.
With a DEX the risk shifts to you and the code: a lost recovery phrase, a phishing site, a buggy contract or a malicious token. A hardware wallet keeps your keys offline even when you connect to DeFi apps, and our guide on how to store crypto safely explains how to protect your seed phrase.
Which should you use?
Many people use both. A common pattern is to buy with bank money on a reputable centralized exchange, withdraw to a personal wallet, and use a DEX only when they need a token or feature that centralized platforms don't offer. If you only want exposure to major coins and value support and simplicity, a well-regulated CEX may be all you need. If you value self-custody and on-chain access and are willing to learn how wallets, gas and approvals work, a DEX gives you more control — along with more responsibility.
Our verdict
CEX for on-ramps and simplicity, DEX for self-custody and on-chain tokens
Use a reputable centralized exchange to move between bank money and crypto and to trade major coins with support on hand. Use a decentralized exchange when you want to trade straight from your own wallet — and only once you understand keys, gas fees and token approvals.
Frequently asked questions
Is a DEX safer than a centralized exchange?
It removes the risk of an exchange losing or freezing your funds, but adds risks of smart-contract bugs, scams and your own mistakes. Neither is risk-free.
Do I need to verify my identity to use a DEX?
The smart contracts themselves do not ask for identity, but some website front-ends restrict certain countries, and the fiat on-ramps you use to buy crypto usually require identity checks.
Can I buy crypto with a bank card on a DEX?
Usually not directly. Most people buy crypto on a centralized exchange or through a regulated on-ramp first, then move it to a wallet to use on a DEX.
Why are DEX fees sometimes so high?
Besides the trading fee, you pay the blockchain's network fee, which rises when the network is busy, and large trades in small pools can lose value to slippage.
Are trades on a DEX taxable?
In many countries swapping one crypto for another is a taxable event wherever it happens. Rules differ by country, so check local guidance or a tax adviser.
This article is for information only and is not financial advice. Crypto assets are volatile; do your own research. Read our disclaimer
More from Exchanges
View all →Read next

Goldman, Wells Fargo, Morgan Stanley bet on tokenization
Q3 earnings calls showed how Goldman Sachs, Wells Fargo and Morgan Stanley each expect to profit from tokenization: more trading, faster payments, more advice.

Ether margin longs on Bitfinex climb as prices stall
Bitfinex traders hold about 367,500 ETH in margin longs against under 9,000 ETH in shorts, while bitcoin and ether trade flat into a quiet Saturday evening.

Fidelity's Solana health check: reliable, but too concentrated
Fidelity's FCAT says Solana has gone two years without a major outage, yet 18 validators, one host and two EU cities hold an outsized share of its stake.