What is a DEX almost always comes paired with a second question: how is it actually different from the centralized exchanges most people start out using? The honest answer is that they settle trades in fundamentally different ways, and each trade-off matters more or less depending on what you’re actually trying to do.
{{IMAGE:assets/images/vs-featured.webp}}
How each one actually settles a trade
A centralized exchange (CEX) runs a private, off-chain order book on its own servers. When your buy order matches someone else’s sell order at a compatible price, the exchange’s matching engine executes the trade internally and updates both account balances — nothing is broadcast to a public blockchain in that moment. A DEX has no private order book or matching engine at all in the AMM model that’s now dominant; your trade executes as a smart-contract transaction against a public liquidity pool, visible on-chain the moment it’s confirmed.
Custody: who holds the funds

On a CEX, once you deposit, the exchange holds custody of your funds until you withdraw — your account balance is really a claim against the exchange’s own holdings, tracked in its internal database. On a DEX, your funds never leave your own wallet until the exact moment a trade executes; there’s no deposit step and nothing sitting in an exchange-controlled account in between trades. This is the structural reason a CEX can be hacked and lose customer funds in a way a DEX generally can’t — there’s no central pot of user funds for an attacker to target the same way.
{{IMAGE:assets/images/vs-custody.webp}}
Liquidity and slippage in practice
A large, established CEX aggregates order flow from a huge number of users, which tends to produce deep liquidity and tight spreads, especially for major trading pairs. A DEX’s liquidity is only as deep as what’s actually been deposited into that specific pool by liquidity providers — a major pair on a leading DEX can rival CEX liquidity, but a smaller or newer token’s pool can be thin enough that even a moderate trade produces meaningful slippage.
| Factor | Typical CEX | Typical AMM-based DEX |
|---|---|---|
| Custody | Exchange holds funds | User holds funds until the moment of trade |
| Account required | Yes, usually with identity verification | No — connect a wallet directly |
| Trade execution | Off-chain, matched by the exchange | On-chain, settled by a smart contract |
| Liquidity depth | Aggregated across all users | Limited to what’s in that specific pool |
| Recourse if something goes wrong | Exchange support may be able to help | Generally none — settled trades are final |
When each one tends to make more sense
A CEX tends to fit better for large trades in major pairs where deep liquidity and fast execution matter most, or for anyone who’d rather not manage wallet security and token approvals directly. A DEX tends to fit better when self-custody matters, when trading a token that isn’t listed on a CEX at all, or when avoiding an account/identity-verification step is a priority. Neither choice is universally correct — see how a DEX actually executes a trade for the mechanism behind the DEX side of that trade-off.
Fees: what you’re actually paying for

The two fee structures aren’t directly comparable line for line. A CEX typically charges a single trading fee, often lower on high-volume tiers, deducted from the trade itself with no separate network cost. A DEX trade carries two potential costs: the pool’s own trading fee (paid to liquidity providers) and a separate network gas fee paid to the blockchain to process the transaction, which fluctuates with network congestion and is entirely independent of the DEX or pool involved. On a congested network, the gas fee alone can exceed what a CEX would have charged for the same trade — a detail that a headline “0.3% trading fee” comparison often leaves out.
{{IMAGE:assets/images/vs-fees.webp}}
