CEX vs DEX: what is the difference?
Centralized and decentralized exchanges let people access crypto markets, but they work differently. The biggest differences involve custody, execution, fees, liquidity, access and the risks you take on.
A centralized exchange (CEX) is operated by a company that manages the trading platform and usually controls custody of assets held in exchange accounts. A decentralized exchange (DEX) uses blockchain-based smart contracts or on-chain market infrastructure so users can trade from compatible wallets. A CEX is often more familiar for account-based trading and fiat services; a DEX can offer direct on-chain access and self-custody. Neither removes risk.
1. How a centralized exchange works
A CEX is a service run by an identifiable operator. Users generally create an account, complete any required identity or eligibility checks, deposit funds and place orders through the exchange interface. Many centralized platforms use an order book that matches buy and sell orders.
When assets are held in an exchange account, the user typically relies on the provider's custody and internal accounting systems. The provider may offer customer support, fiat deposit or withdrawal channels, advanced order types and account-level security controls. Availability varies by platform, country and product.
2. How a decentralized exchange works
A DEX generally lets users connect a self-custody wallet and interact with smart contracts or other on-chain trading infrastructure. Many DEXs use automated market makers and liquidity pools; others use on-chain order books or different designs.
Transactions are submitted to a blockchain and may require network fees, commonly called gas. Users are responsible for wallet security, selecting the correct network and reviewing transaction details. A transaction confirmed on-chain is generally difficult or impossible to reverse.
3. CEX vs DEX: the main differences
| Area | Centralized exchange (CEX) | Decentralized exchange (DEX) |
|---|---|---|
| Account access | Usually an account with the provider; identity checks may apply. | Usually a compatible wallet; some interfaces may add extra checks. |
| Custody | Assets held in an exchange account are generally under provider custody. | Users generally retain wallet key control while interacting with contracts. |
| Execution | Often uses an off-chain order book and internal matching engine. | Often uses smart contracts, liquidity pools or on-chain order mechanisms. |
| Costs | May include maker/taker fees, spreads, funding and withdrawal fees. | May include gas, pool or protocol fees, price impact and slippage. |
| Fiat access | Some providers support bank transfers or card services, depending on region. | Usually requires crypto already available in a compatible wallet or a separate on-ramp. |
| Support and recovery | May offer account support and formal recovery processes, subject to policy. | There may be no central operator able to reverse a transaction or restore lost keys. |
| Key risks | Custody, provider, account, operational and regulatory risks. | Smart-contract, wallet, token, transaction, liquidity and network risks. |
4. Fees: compare the full cost, not one headline number
On a CEX, check the maker and taker fee schedule for the exact product you intend to use. Spot, margin and futures fees can differ. Your final cost may also include the bid–ask spread, slippage, funding payments, conversion charges and withdrawal fees. VIP tiers or fee-token discounts may have conditions.
On a DEX, the quoted swap may include a liquidity-pool or protocol fee, while the blockchain charges gas separately. The execution price can move between quote and confirmation. A large order relative to pool liquidity may create price impact; slippage tolerance is not a guarantee of a better price.
5. Liquidity, spreads and execution
Liquidity affects how easily an order can be executed without moving the price significantly. On an order-book exchange, inspect the depth near the current price and the spread between the best bid and ask. On an automated market maker, consider pool depth, token concentration and the price impact shown by the swap interface.
Liquidity can change quickly during volatile markets. A familiar brand name does not guarantee deep liquidity for every trading pair, and a large displayed pool does not eliminate smart-contract or token risks.
6. Security and risk: different models, not risk-free models
CEX risks to understand
- Custody and counterparty exposure if the provider cannot return assets.
- Account compromise, phishing, withdrawal restrictions or operational outages.
- Regional restrictions, compliance checks and changes to supported products.
- Different protections and legal rights depending on the provider and jurisdiction.
DEX risks to understand
- Smart-contract vulnerabilities, exploits or flawed protocol design.
- Malicious or imitation tokens, fake interfaces and unsafe wallet approvals.
- Incorrect networks or addresses, lost recovery phrases and irreversible transfers.
- Low liquidity, price impact, MEV-related execution effects and volatile gas costs.
Basic precautions matter in both models: use official websites, enable strong account security where available, verify addresses and networks, read transaction prompts and never share passwords, private keys or seed phrases.
7. A practical checklist before using either model
- Confirm that the service is accessible and legally available where you live.
- Open the provider's official fee schedule, terms and risk disclosures.
- Check the exact asset, network and trading pair—not just the platform name.
- Estimate total costs, including spreads, gas, funding and withdrawals where relevant.
- Understand who controls custody and what happens if access is interrupted.
- For a DEX, verify the contract address from trusted official sources and review token approvals.
- Start with a small test transaction when appropriate; do not expose funds you cannot afford to lose.
Frequently asked questions
Is a CEX safer than a DEX?
Neither model is automatically safer. CEX users face provider, custody, account and regulatory risks. DEX users face smart-contract, wallet, token, transaction and liquidity risks. The relevant risks depend on the specific service and how it is used.
Do DEX swaps have no fees?
No. A DEX swap may involve network gas, pool or protocol fees, price impact and slippage. Some interfaces may also charge a separate service fee.
Can I use a DEX without a crypto wallet?
Most on-chain DEXs require a compatible wallet to connect, sign transactions and pay network fees. Check wallet and network compatibility before using the service.
Are funds held by a CEX always available for withdrawal?
No. Withdrawals can be affected by provider controls, maintenance, compliance checks, network conditions, liquidity or insolvency. Review the provider's terms and understand custody risk.
Explore our crypto guides, review the AUTOMATET verification methodology, or use the platform comparator to review published information. Always confirm current terms directly with the provider.