MAEXO

CEX vs DEX explained

Guide

Crypto practical5 min

CEX vs DEX explained

A centralised exchange (CEX) holds your funds and matches trades on its own order book. A decentralised exchange (DEX) executes trades through smart contracts while assets stay in your wallet. The core trade-off is convenience and depth versus custody and control.

How each one actually works

On a CEX you deposit funds to an account the exchange controls. Trades happen in the exchange's internal database and only touch the blockchain when you withdraw. That is why they are fast and cheap to trade on.

On a DEX you connect a wallet and sign a transaction. The swap happens on-chain against a liquidity pool or an on-chain book, and you never hand custody to anyone.

The trade-offs side by side

  • Custody — CEX holds your keys; DEX leaves them with you
  • Access — CEX requires identity verification; most DEXs do not
  • Liquidity — CEXs are usually deeper on major pairs
  • Listings — DEXs list new tokens far earlier, with far more risk
  • Cost — CEX fees are predictable; DEX costs include gas and price impact
  • Recovery — a CEX can reset your access; on a DEX nobody can

Which risk are you taking?

They are not the same risk, and it is worth being explicit about which one you are accepting.

Example

A CEX exposes you to counterparty risk — the venue failing, freezing withdrawals or being hacked. A DEX exposes you to smart-contract and user-error risk — a bug, a malicious approval, or a swap into the wrong token contract.

A practical split

Many users do both: fiat on-ramps, large liquid trades and recurring buys through a regulated CEX, then withdraw longer-term holdings to self-custody and use a DEX only for what a CEX will not list. The rule that survives every cycle is that funds you are not actively trading should not be sitting on an exchange.

Break-even calculator

Compare total costs across venues before you choose one.

FAQ

Common questions

Which is safer, a CEX or a DEX?

Neither is universally safer. A regulated CEX reduces technical risk but adds counterparty risk; a DEX removes the counterparty but puts every mistake permanently on you.

Do DEXs require KYC?

Most do not, since you interact directly with contracts. Front-ends may still apply geographic restrictions.

Why is my DEX swap price worse than quoted?

Price impact and slippage. Trading a large size against a small liquidity pool moves the price as the swap executes.

Related

Read next

HIGH RISK WARNING: Trading Forex and leveraged derivative products (CFDs) or crypto involves significant risk and is not suitable for all investors. Leverage magnifies both gains and losses. You do not own or have rights to the underlying assets. You may lose all your invested capital; never speculate with funds you cannot afford to lose. Information on this site is general and does not constitute personalized financial advice. Past performance does not guarantee future results. Please ensure you fully understand the risks and review our legal documents section.