DEX vs CEX

Cryptocurrency exchanges are platforms where people buy, sell, and trade crypto assets.

There are two main types of exchanges: centralized exchanges (CEXs) and decentralized exchanges (DEXs). Each works differently and comes with its own trade-offs.

What is a centralized exchange (CEX)?

A centralized exchange is operated by a company that manages the platform, user accounts, and order matching.

Users typically create an account, deposit funds, and trade through the exchange’s interface. The exchange holds custody of assets until users withdraw them to a personal wallet.

What is a decentralized exchange (DEX)?

A decentralized exchange allows users to trade directly from their own wallets without depositing funds into a centralized platform.

DEXs operate through smart contracts on a blockchain and allow users to trade directly from their wallets without transferring custody to a centralized platform.

Key differences between DEXs and CEXs

Centralized exchanges prioritize ease of use and customer support but require users to trust the platform with custody.

Decentralized exchanges offer greater control over assets but require users to manage their own wallets and security.

The trade-off is usually between convenience and responsibility.

“Not your keys, not your coins”

The phrase “not your keys, not your coins” highlights how custody differs between platforms.

On centralized exchanges, private keys are held by the exchange on behalf of users. On decentralized exchanges, users retain control of their own keys through their wallets.

This concept was covered in the previous lesson and helps explain why custody choices matter when selecting an exchange.

Which is better for beginners?

For many beginners, centralized exchanges are easier to use and understand.

Decentralized exchanges can be useful once users are comfortable with wallets, transaction fees, and network selection. Using a DEX without understanding these basics can increase the risk of mistakes.

Common misunderstandings

A common misunderstanding is that decentralized exchanges are automatically safer.

While DEXs reduce reliance on intermediaries, users are fully responsible for transaction accuracy, wallet security, and interacting with smart contracts.

Key takeaway

Centralized and decentralized exchanges serve different purposes.

Understanding how each works helps you choose the right option for your experience level and goals.

Next lesson

Once you understand exchanges, it’s important to learn how to move crypto between wallets and platforms safely.

Read: Moving Crypto Safely →