On-Chain Forensics · Investigative Desk
Centralized vs Decentralized Exchanges (CEX vs DEX)

Centralized vs Decentralized Exchanges (CEX vs DEX)

Dr. Antoun ToubiaBy Dr. Antoun Toubia· Reverse Death Academy· 8 min read· Updated June 2026

Any time you buy, sell, or swap cryptocurrency, you go through an exchange. The catch is that exchanges don't all work the same way. They split into two families: centralized exchanges, usually shortened to CEX, and decentralized exchanges, usually shortened to DEX. Learning the difference early pays off, because it decides who holds your money, what details you have to hand over, and how much control stays with you.

A centralized exchange is run by a company that sits in the middle of every trade, much like a traditional broker or bank. A decentralized exchange is software running on a blockchain that lets people trade directly with one another, with no company holding their funds. Both let you move between coins. They just make very different trade-offs to get you there.

This guide walks through both in plain language. It is educational only and does not offer financial advice or recommend any specific platform. By the end you should know how each type works, how they stack up against each other, and how a beginner might pick the one that fits a given task.

Advertisement

What a Centralized Exchange (CEX) Is

A centralized exchange is an online platform run by a company that acts as the middleman for trading cryptocurrency. You create an account, deposit money or crypto, and the company holds it for you while you trade. Because the company keeps your funds on your behalf, this arrangement is called custodial: it has custody of your assets, the same way a bank holds the money in your account.

Most centralized exchanges match buyers and sellers through an order book. An order book is just a live list of everyone who wants to buy and everyone who wants to sell, along with the prices they will accept. When a buy order and a sell order line up, the exchange completes the trade. Traditional stock markets run on the same basic idea.

Centralized exchanges almost always require identity verification, known as KYC, which stands for Know Your Customer. To open an account you usually provide your name, an email address, and often a photo of an official document. They ask for this to comply with financial regulations in many countries.

  • Run by a company that holds your funds for you (custodial).
  • Uses an order book to match buyers and sellers.
  • Usually requires identity verification (KYC) to sign up.
  • Often feels familiar, like a banking app or online broker.

What a Decentralized Exchange (DEX) Is

A decentralized exchange is not a company at all. It is a set of programs called smart contracts that run on a blockchain. A smart contract is self-executing code that follows fixed rules automatically, with no human approving each step. Because the trading happens through this code, no single company holds your funds or stands between you and the other trader.

Rather than create an account, you connect your own crypto wallet to the exchange's website. The trade then happens straight from your wallet, and you keep control of your funds the whole time. This is called non-custodial, because you, not a company, have custody of your assets.

Many decentralized exchanges skip the traditional order book. They use a system called an automated market maker, or AMM, instead. With an AMM, users deposit pairs of tokens into shared pools called liquidity pools. When you swap one token for another, you trade against the pool, and a simple formula sets the price based on how much of each token the pool holds. The people who supply tokens to these pools earn a share of the fees in return.

  • Runs on smart contracts, not a company.
  • Non-custodial: your funds stay in your own wallet.
  • Often uses automated market makers and liquidity pools instead of an order book.
  • You usually connect a wallet rather than signing up with personal details.

Custody: Who Actually Holds Your Crypto

The single biggest difference between the two types of exchange is custody, meaning who controls your funds. A well-known phrase in crypto sums it up: not your keys, not your coins.

A private key is the secret that proves ownership of crypto and lets it be spent. On a centralized exchange, the company holds the private keys for the funds in your account. You see a balance on the screen, but you are trusting the company to honor it and to let you withdraw when you ask. That is convenient, yet it means your access depends on the company staying solvent, secure, and willing to release your funds.

On a decentralized exchange, you hold your own private keys in your personal wallet. No company can freeze your balance or refuse a withdrawal, because no company sits in the middle. The catch is responsibility: lose your keys or recovery phrase and no support team can restore your access, so the funds may be gone for good.

  • CEX: the company holds your keys, so it controls access to your funds.
  • DEX: you hold your keys, so you alone control your funds.
  • More control also means more personal responsibility for security.

Side by Side: A Practical Comparison

Lining up the two types across the factors that matter most to a beginner helps. Neither option is simply better. Each suits different needs.

  • Custody: A CEX holds your funds for you, while a DEX leaves them in your own wallet.
  • Identity (KYC): A CEX usually requires identity verification, while a DEX typically asks only that you connect a wallet.
  • Ease of use: A CEX tends to feel beginner-friendly, with familiar apps and customer support. A DEX requires you to manage a wallet and understand transactions yourself.
  • Fees: A CEX charges trading fees set by the company. A DEX charges a pool fee plus a blockchain network fee, sometimes called gas, which can rise when the network is busy.
  • Buying with regular money: A CEX often lets you deposit traditional currency from a bank card. A DEX usually only trades crypto for crypto, so you need to own some crypto first.
  • Asset range: A DEX may list a huge number of tokens very quickly, including brand-new ones. A CEX usually lists fewer tokens after some review.
  • Security model: A CEX concentrates many users' funds in one place, which can be a target for hackers or mismanagement. A DEX spreads custody to individual wallets but relies on its smart contract code being safe.
Advertisement

When a Beginner Might Use Each

For most newcomers, a centralized exchange is the simpler starting point. It usually lets you turn traditional money into crypto with a bank card or transfer, offers a familiar app, and gives you customer support if something goes wrong. If your goal is to buy a small amount of a well-known coin and learn the basics, a CEX tends to make that first step easier.

A decentralized exchange earns its place once you already own some crypto and feel comfortable managing a wallet. People turn to a DEX to swap between tokens a centralized platform does not list, or because they would rather keep custody of their own funds than trust a company with them. It rewards a little more knowledge and care.

Plenty of people end up using both for different jobs. They might buy crypto on a centralized exchange, withdraw it to their own wallet, and then use a decentralized exchange for specific swaps. There is no single correct path, only the approach that matches your comfort level and what you are trying to do.

  • Lean toward a CEX when: you are buying with regular money, just starting out, or want support.
  • Lean toward a DEX when: you already hold crypto, value self-custody, or need a token a CEX does not offer.
  • Whichever you choose, start small while you learn how it behaves.

Risks of Each Approach

Both types of exchange carry risks, and the risks differ in nature. Looking at them in a neutral way helps you decide how to act, without fear or hype.

With a centralized exchange, the main risk is that you are trusting a company with your funds. If that company becomes insolvent, is poorly managed, or gets hacked, your balance can be frozen or lost even though you did nothing wrong. The collapse of the exchange known as FTX in 2022 is a widely cited example, where many users could not retrieve funds the company had been holding. Account freezes and withdrawal pauses can also hit during periods of stress.

With a decentralized exchange, the risks shift onto you and onto the code. Since anyone can list a token, you may run into scam tokens built to lure buyers and then crash in value. There is also approval risk: to trade, you often grant a smart contract permission to access tokens in your wallet, and a malicious contract can abuse that permission. The Academy's scam guides, such as those on rug pulls, honeypot tokens, and token approval phishing, explain these dangers in detail.

  • CEX risks: company insolvency, hacks, account freezes, and withdrawal limits.
  • DEX risks: scam tokens, malicious or buggy contracts, and risky wallet approvals.
  • In both cases, learning the basics first is the strongest protection.

Putting It Together

The choice between a centralized and a decentralized exchange comes down to who holds your funds and how much responsibility you want to take on. A centralized exchange trades some control for convenience: it is easier to start with, but you depend on a company. A decentralized exchange trades some convenience for control: you keep custody, but you carry the full weight of securing your own keys and steering clear of bad tokens.

Neither model is universally safer. A reputable centralized exchange shields beginners from many self-inflicted mistakes, while a decentralized exchange shields you from the failure of any single company. The risks land in different places, and the right balance depends on your knowledge, your goals, and how much you are putting at stake.

As a beginner, the habit worth building is to understand a platform before you trust it with money. Learn how custody works, start with small amounts, and treat every new token and every wallet approval with healthy caution. With that mindset, both kinds of exchange become tools you can use thoughtfully rather than sources of confusion.

Key Takeaways

  • A centralized exchange (CEX) is run by a company that holds your funds, uses an order book, and usually requires identity verification (KYC).
  • A decentralized exchange (DEX) runs on smart contracts, lets you keep funds in your own wallet, and often uses automated market makers with liquidity pools.
  • The biggest difference is custody, captured by the phrase not your keys, not your coins.
  • A CEX is often easier for beginners and supports buying with regular money, while a DEX rewards more knowledge and self-custody.
  • CEX risks include company insolvency, hacks, and account freezes, as seen in the FTX collapse of 2022.
  • DEX risks include scam tokens and risky wallet approvals, covered further in the Academy's scam guides.
  • Many people use both types for different tasks, choosing based on comfort, goals, and how much is at stake.

Frequently Asked Questions

What is the main difference between a CEX and a DEX?+

A centralized exchange is run by a company that holds your funds and matches trades for you, while a decentralized exchange is software on a blockchain that lets you trade directly from your own wallet without a company in the middle.

Does not your keys, not your coins mean a CEX is unsafe?+

Not exactly. It means that when a company holds your private keys, you depend on it to keep your funds safe and let you withdraw. A reputable centralized exchange can be convenient, while a decentralized exchange lets you control the keys yourself.

Can I buy crypto with regular money on a DEX?+

Usually not directly. Most decentralized exchanges only swap one crypto for another, so you typically buy your first crypto on a centralized exchange and then move it to a wallet to use a DEX.

Why do decentralized exchanges list so many unknown tokens?+

Because anyone can create and list a token without approval, a DEX can offer a huge range of assets, including brand-new ones. That same freedom lets scam tokens appear, so caution matters.

Which type is better for a complete beginner?+

There is no universal answer, but many beginners start with a centralized exchange because it is easier to use and supports buying with a bank card. As you learn to manage a wallet, a decentralized exchange can become useful too.

Sources & Further Reading

This guide is general educational information, not financial, legal, or security advice. Crypto transactions are irreversible, always do your own research and verify independently before acting.