When people talk about "buying crypto," they usually mean using an exchange. But not all exchanges work the same way under the hood. The two broad categories — centralized exchanges (often abbreviated CEX) and decentralized exchanges (DEX) — solve the same problem using very different machinery. Understanding that machinery helps explain why each one behaves the way it does.
A centralized exchange is a company that operates a trading platform. When you deposit funds, you send them to an address the company controls, and the exchange credits your account in its internal database. From that point on, your balance is a record in the company's books rather than coins sitting on a blockchain under your own keys. Trades happen off-chain, inside the exchange's systems, using an order book — a running list of buy and sell offers that a matching engine pairs together. Because none of this touches the blockchain, trades settle instantly and cost the exchange almost nothing to process. Only when you withdraw does an actual on-chain transaction occur.
This architecture produces the familiar strengths of centralized platforms. They are usually fast and can handle large volumes. They typically connect to the traditional banking system, so you can move government-issued currency in and out. They offer customer support, password resets, and account recovery — which are possible precisely because a company controls the accounts. They also tend to have deep liquidity, meaning there are many buyers and sellers, so large orders can be filled without moving the price much.
The trade-offs come from the same source. Because the platform holds your assets, you are trusting it to remain solvent, secure, and operational. The common industry phrase "not your keys, not your coins" refers to exactly this: you hold a claim on the company, not the asset itself. Centralized platforms are also regulated businesses in most jurisdictions, which means identity verification — often called KYC, or know-your-customer — is standard, and accounts can be frozen if legal obligations require it. And because everything routes through one operator, that operator is a single point of failure for outages or breaches.
A decentralized exchange replaces the company with code. Instead of depositing funds, you connect a self-custodial wallet and sign transactions directly. The trade executes through a smart contract on a blockchain, and the assets move from your wallet to another address without any intermediary ever holding them. Most DEXs today use an automated market maker, or AMM, rather than an order book. In an AMM, users deposit pairs of assets into a shared pool, and a mathematical formula in the contract sets the exchange rate based on the ratio of assets in that pool. Anyone trading against the pool shifts that ratio, which shifts the price. Depositors, called liquidity providers, earn a share of trading fees for supplying the pool.
The advantages here are custody and openness. You keep control of your keys throughout. The contracts are generally permissionless, so anyone with a wallet can use them without registering, and any token can typically be listed by creating a pool. Everything settles on a public ledger, so trades are independently verifiable.
The downsides are also structural. Every action is an on-chain transaction, so you pay network fees — sometimes for approvals and failed attempts too, not just successful trades. Thin pools produce slippage, where the price you receive differs from the price you expected because your order is large relative to available liquidity. Smart contracts can contain bugs, and a flaw in the code can be exploited. Because transactions sit publicly in a queue before confirmation, sophisticated actors can sometimes reorder or insert transactions to their advantage, a practice broadly called MEV. There is no support desk: a mistaken transaction or a lost seed phrase is generally irreversible. Most DEXs also cannot accept bank transfers directly, so acquiring your first crypto usually still involves a centralized on-ramp.
In practice, many people use both, because the models optimize for different things. Centralized platforms trade custody for convenience, speed, and fiat access. Decentralized platforms trade convenience for self-custody and open access, while shifting risk from a company's solvency to a contract's code and your own operational care. Neither eliminates risk; they simply relocate it.
This article is for general education only — not financial advice, and nothing here is a recommendation to buy, sell, or hold any asset. Cryptocurrency carries real risk of loss; always do your own research before making a financial decision.