A cryptocurrency exchange is a platform where you can buy, sell, or swap digital assets — but not all exchanges work the same way. The most important divide in the industry is between centralized exchanges (CEXs) and decentralized exchanges (DEXs), and the difference goes far deeper than branding. Understanding it will shape how you store your funds, how much you pay in fees, and how much trust you place in third parties.
What is a Centralized Exchange?
A centralized exchange is a company-run platform that acts as an intermediary between buyers and sellers. Think of it like a traditional stock brokerage: you open an account, deposit funds, and the company handles order matching, recordkeeping, and custody of your assets.
When you deposit crypto into a CEX, you are handing control of your private keys to the platform. The coins show up in your account balance, but the exchange holds the actual keys. This is summarized by the phrase common in crypto: “not your keys, not your coins.” For a deeper look at why keys matter, see public and private keys.
How CEXs work in practice
CEXs use an order book model. Buyers submit bids and sellers submit asks; the exchange’s matching engine pairs them up. This is the same model used by stock exchanges, and it is well understood and efficient at high volumes.
To use a CEX you typically must complete identity verification — providing a government ID and sometimes a selfie. This is a legal requirement called KYC (Know Your Customer), designed to prevent money laundering and fraud.
Examples of CEX features:
- Fiat on-ramps: you can deposit dollars, euros, or other national currencies directly
- Customer support and account recovery if you forget your password
- Advanced order types (limit orders, stop-losses) for trading
- Regulatory compliance in multiple jurisdictions
The custody risk
The trade-off for that convenience is counterparty risk. If the exchange is hacked, goes bankrupt, or freezes withdrawals, your funds could be inaccessible or lost entirely. This is not hypothetical — notable hacks and failures in crypto history include the collapse of Mt. Gox in 2014 and FTX in 2022, both of which wiped out billions in customer funds held on centralized platforms.
What is a Decentralized Exchange?
A decentralized exchange (DEX) is a protocol — usually a set of smart contracts — that allows users to trade directly from their own wallets without handing custody to anyone. There is no company in the middle, no account to create, and no identity verification required to use the basic trading functions.
Instead of an order book, most DEXs use an automated market maker (AMM) model. Liquidity is pooled by other users who deposit token pairs into smart contracts, and prices are set algorithmically based on the ratio of tokens in each pool. You trade against the pool, not against another person placing an opposite order.
Because trades settle directly on the blockchain, you retain control of your keys throughout the process. The DEX smart contract temporarily handles the swap, but your funds never sit in someone else’s custody. For more on how wallets and custody work, see crypto wallets explained.
The trade-offs of DEXs
DEXs offer genuine benefits, but they come with real costs:
| Feature | Centralized Exchange (CEX) | Decentralized Exchange (DEX) |
|---|---|---|
| Custody of funds | Exchange holds your keys | You hold your keys |
| Identity verification | Usually required (KYC) | Usually not required |
| Fiat on-ramp | Yes (bank transfer, card) | Rarely — crypto only |
| Speed | Near-instant (off-chain matching) | Depends on blockchain speed |
| Fees | Trading fee (often 0.1–0.5%) | Trading fee + network gas fee |
| Asset selection | Curated by the exchange | Any token with a liquidity pool |
| Account recovery | Yes (email/phone reset) | No — losing your seed phrase is permanent |
| Hacking risk | Exchange is a high-value target | Smart contract bugs are the main risk |
The network fee — called gas — is worth highlighting. Every DEX trade is a blockchain transaction, so you pay the underlying network’s fee on top of the trading fee. On busy networks this can make small trades expensive. On cheaper networks or layer-2 chains the gas cost is often negligible, but it is always present.
Comparing the Trust Models
The philosophical difference between CEXs and DEXs is really a question of where you place your trust.
On a CEX, you trust a company: its security team, its solvency, its compliance with the law, and its willingness to honor withdrawals. On a DEX, you trust code: the smart contract does exactly what it is programmed to do — no more, no less.
Neither is risk-free. A centralized exchange can be hacked, freeze withdrawals, or collapse. A DEX smart contract can contain bugs that allow an attacker to drain funds, or a token in a pool can be worthless. The nature of the risk differs, not the existence of risk.
Which should you use?
There is no universal answer. Many people use both depending on the task:
- Buying with fiat (dollars, euros) almost always requires a CEX, since DEXs only accept crypto.
- Swapping tokens on a chain where you already have a wallet is often faster and cheaper on a DEX.
- Long-term storage should generally happen in a self-custody wallet, not on any exchange.
- Accessing new or niche tokens that a CEX has not listed may require a DEX.
Hybrid and Evolving Models
The line between CEX and DEX is blurring. Some newer platforms offer non-custodial trading with fiat on-ramps. Some CEXs are adding on-chain settlement features. And layer-2 networks are making DEX trades fast and cheap enough to compete with centralized platforms on user experience.
The underlying principle remains the same, however: the more custody you hand to a third party, the more convenience you typically gain — and the more counterparty risk you accept.
Key Takeaways
- A CEX is a company-run intermediary that holds your private keys; a DEX is a smart contract protocol where you keep custody throughout.
- CEXs offer fiat on-ramps, customer support, and familiar account-based interfaces, but expose you to company-level risks like insolvency or hacks.
- DEXs give you full custody and require no identity verification, but charge gas fees on every trade and offer no account recovery.
- Both carry real risks — CEXs carry counterparty risk, DEXs carry smart contract risk.
- For long-term holdings, neither type of exchange is the right place to store your crypto; a self-custody wallet is.
- Most people use CEXs to convert fiat to crypto, then move assets to their own wallets or use DEXs for on-chain swaps.
Next up: How to Buy Your First Crypto