CEX vs DEX: What's the Difference in Crypto?

CEX vs DEX in crypto — gold Bitcoin coin in front of a green candlestick trading chart on navy

Which exchange should you use — the one that holds your coins for you, or the one that never touches them? A CEX is a company that holds your coins and runs the trade for you. A DEX is software on a blockchain that lets you trade straight from your own wallet, with no company in the middle. That one split — who holds the coins — decides almost everything else: what you pay, what ID you show, and what happens when something goes wrong.

Key points:

  • A CEX holds your coins and your keys. A DEX never touches them — your own wallet signs each trade.
  • CEXs take bank money and give you support and deep order books. DEXs list every new token and ask for no account, but there is no one to call when a trade goes wrong.
  • Most active traders use both: a CEX to turn cash into crypto, a DEX for the rest.

What is a CEX, and how does it work?

A CEX, short for centralized exchange, is a company that runs a crypto marketplace. Coinbase, Binance and Kraken are the names most people know. You open an account, show your ID in a check called KYC — Know Your Customer, the identity check banks and exchanges run by law — and deposit money or crypto. From then on the exchange holds your coins in its own wallets, and your screen balance is an entry in the company's books, not coins in your pocket.

When you buy on a CEX, no trade happens on the blockchain at all. The exchange's matching engine pairs your order with someone else's inside its own system, in a fraction of a second, and updates the two balances. The blockchain only comes into play when you withdraw. It works a lot like a bank account: You own a claim on the company, and the company holds the keys.

That trust is also the risk. In November 2022, FTX, one of the biggest exchanges in the world, collapsed, and about $8 billion of customer money was lost. The coins were in the company's hands, not the customers' wallets. Every CEX asks for the same trust, and the FTX story is what that trust can cost.

What is a DEX, and how does it work?

A DEX, a decentralized exchange, has no company behind it at all. It is a set of smart contracts — programs that live on a blockchain and run exactly as written. You connect your own wallet, pick two tokens, and the contract does the trade. No account, no ID, no deposit. Your coins stay in your wallet until the trade settles.

Most DEXs price trades with an automated market maker, or AMM. Uniswap started the model in 2018. Instead of matching buyers with sellers, a pool of two tokens sits inside a contract, and a formula sets the price: The more of one token people buy out of the pool, the higher its price climbs. The rule behind it is a simple bit of maths called the constant product formula. All you need to know is that the pool always has a price, even at 3 in the morning, because the formula never sleeps.

Not every DEX uses a pool. Some, like Hyperliquid, run an order book on the blockchain itself, closer to how a CEX works but without the company. And the newest DEXs run on fast layer-2 chains, where a trade settles in two to four seconds and costs a few cents. PancakeSwap is the best-known AMM on BNB Chain, and the idea is the same on all of them: The code is the exchange.

Read also: What Is Crypto Swapping? A Simple Guide to DEXs

Read also: What Is a Crypto Exchange and How Does It Work?

How does the price get set on each one?

On a CEX the price comes from an order book. Buyers post bids, sellers post asks, and the engine matches them. The price on screen is the last price two people agreed on. On an AMM DEX there is no book and no one to agree with. The pool formula sets the price, and your own trade moves it: A big swap against a small pool pushes the price against you. Traders call that gap slippage, and it is the hidden cost of swapping on a thin pool.

CEX vs DEX, side by side

FeatureCEXAMM DEXOrder-book DEX
Who holds the coinsThe exchangeYour walletYour wallet
ID checkFull KYCNoneNone
Pay with a bank cardYesNoNo
Trade speedInstant2-15 seconds2-4 seconds
Fee on each tradeAbout 0.1%Gas plus 0.3%Gas plus a small fee

What do you actually pay on each one?

A CEX charges a trading fee on every order, often around 0.1% of the trade, and nothing else while your money stays inside. You pay again only when you withdraw, in a flat withdrawal fee. There is no network fee on the trade itself, because the trade never touches a blockchain.

A DEX charges two things: The pool takes a fee, often around 0.3% of the swap, and the blockchain takes a gas fee for running the trade. On Ethereum's main network that gas fee can run from $5 to $50 for one swap when the network is busy. On a cheap layer-2 chain it costs a few cents. So which one is cheaper? It depends on the chain, the size of your trade, and how busy the network is.

There is one more cost that only exists on a DEX. Your trade sits in public view for a few seconds before it settles, and fast bots can spot it and jump ahead of you. Traders call it MEV. A CEX hides that game inside the company. A DEX shows it to you in the price you get.

Which one is safer?

Ask ten crypto users which venue is safer and most will say the DEX, because no company can run off with your money. That is true — and it misses the other half of the story. Each side fails in its own way.

A CEX fails the way a company fails: hacks, fraud, bankruptcy. FTX took about $8 billion of customer money with it in 2022. A DEX fails the way code fails: a bug in the contract, a fake token dressed up to look real, or a slip of your own hand. Send coins to the wrong address and no one can reverse it — there is no support desk and no one in charge.

The scale tells you this is not a side debate. DEXs moved $213.3 billion in the 30 days to 15 November 2026, close to 16% of combined spot volume with CEXs, in DefiLlama figures quoted by CoinPaprika. CEXs still handle about 78% of spot trading.

My own read is simple: A DEX takes the company risk away and hands you the whole risk instead. That is a good deal only if you are ready to carry it — your keys, your checks, your mistakes, all yours.

Which one should you use?

Start from where your money is. If it is in a bank, you need a CEX, because a DEX cannot take a bank card. If the token you want is not listed on any big exchange, you need a DEX, because a DEX lists anything with a pool. Most people who trade more than once end up using both.

  1. Buy your first crypto on a CEX you have checked. Use a bank transfer, not a card, to keep the fee low.
  2. Move a small amount to your own wallet. Try one small swap on a DEX with money you can afford to lose, and watch the gas fee before you confirm.
  3. Write down what each trade cost you. The fee, the gas, the price you got against the price you saw — three numbers, one line each. After five trades you will know which venue is cheaper for you.
  4. Keep most of your coins off every exchange. Trade on the venue, store in your own wallet. An exchange is a market stall, not a vault.

Quick answers before you pick one

Can I use a DEX with no ID at all? Yes. You connect a wallet and trade — no account, no ID. But you still need crypto first, and turning crypto back into bank money almost always runs through a CEX, ID check included.

Is a DEX always cheaper than a CEX? No. On Ethereum's main network one swap can cost $5 to $50 in gas alone, while the same trade on a CEX costs a fraction of a percent. On a cheap layer-2 chain a DEX swap costs cents.

Can an exchange freeze my account? A CEX can, because it runs the accounts. A DEX has no accounts to freeze, but the team behind a token can sometimes block an address at the token's own code.

The FTX collapse is the warning this comparison keeps coming back to. About $8 billion vanished because customers trusted a company to hold their coins, and the company failed them. A DEX cannot fail you that way — but it will not save you either. Pick the venue that fits what you are doing, and treat every exchange as a place to trade, not a place to keep your money.

Read also: How to Check If a Crypto Exchange Is Safe Before You Deposit

Read also: What Is an Order Book in Crypto? How to Read Bids and Asks

— Muhammad Irfan

About the author: Muhammad Irfan is the founder and editor of BitByLine. He writes crypto news and beginner guides in simple, everyday language, so readers without a finance background can follow along. Read more about the editor.

This post is for learning only. BitByLine only explains and teaches — this is not financial advice, and we never tell anyone to buy or sell crypto. Whether you buy or not is always your own decision and your own risk. Always do your own research first.

Read our full Disclaimer.

Sources: CoinPaprika, DefiLlama, CoinGecko, CoinLedger, Screk, Uniswap Labs, Status.

Want the next guide in your inbox? Subscribe to the BitByLine newsletter.

Comments