01

Buying the same coin, but what's different?

There are two broad ways to buy crypto: a centralized exchange (CEX), where you open an account and deposit money, and a decentralized exchange (DEX), where you connect your own wallet and swap through a smart contract. Both show a buy button, but the parties controlling your assets and your trade behind that button are completely different.

This guide compares who holds the assets and executes orders in each model, where costs arise, and how things fail when they go wrong. It also explains how to choose based on what you are trying to do and what to check.

02

Where control sits

The difference comes down to who controls each stage of a trade.

Control points when trading the same asset
StageCentralized exchange (CEX)Decentralized exchange (DEX)
CustodyExchange holds the keys (account balance)Your wallet holds the keys
Order executionMatched in the exchange's internal order bookExecuted by smart contracts such as liquidity pools
Price discoveryOrders from the exchange's usersPool ratios and arbitrage
CostsTrading fees, withdrawal fees, bid-ask spreadPool fees, network gas, price impact
When something goes wrongSupport desk, terms of service, regulatorsUsually irreversible; you bear the responsibility

Neither is simply safer; risk arises at different points and different parties bear the responsibility.

03

Custody and orders on a CEX

Once you deposit on a CEX, the assets move to the exchange's wallets and your balance becomes an entry in its books. Trades are matched in the exchange's own systems rather than on-chain, so they are fast and incur no gas. A forgotten password can be recovered through identity checks.

The trade-off is reliance on the exchange's competence and honesty. The CFTC warns that virtual currency trading platforms can be exposed to hacking, operational failures, and fraud. If an exchange freezes withdrawals or fails, customers may need legal proceedings to recover their book balances.

04

Wallets and contracts on a DEX

On a DEX, assets stay in your wallet and pass through a smart contract only at the moment of a swap. With no exchange holding your funds, there is no exchange-insolvency risk, but key management and checking what you sign are entirely your job.

The BIS has noted that DeFi is often less decentralized than its name suggests, with control concentrated among developers or large token holders. When using a DEX, check whether anyone can upgrade its contracts or change fees, and whether its contracts have known flaws.

05

Costs and failure paths

CEX costs, trading and withdrawal fees plus the spread, are relatively predictable. DEX costs combine pool fees, network gas, price impact, and slippage, and gas can spike when the network is busy. Take a hypothetical example: a $1,000 trade at a 0.1% CEX fee costs $1; on a DEX, a 0.3% pool fee plus gas and price impact could cost anywhere from a few dollars to much more.

Failures look different too. On a CEX, problems tend to come from the operator: account freezes, withdrawal delays, hacks. On a DEX, they more often come from the user or the code: a mistaken signature, a counterfeit token, a contract bug.

06

Terms of service and on-chain records

For a CEX, read the terms on withdrawal limits, whether customer assets are held separately from the company's, how much is disclosed about reserves, and what compensation process exists after incidents. Whether the exchange is regulated where you live is an important difference.

For a DEX, verify official contract addresses, audit reports, admin permissions, and pool liquidity through a block explorer and official documentation. On a DEX, code replaces terms of service, so even if you cannot read the code, find out who can change it.

07

Choosing by purpose

Which model fits depends on what you want to do. Work through these steps.

  1. Decide whether you need to move money in and out of a bank account, or already hold crypto in your own wallet.
  2. Check whether the token trades on a CEX or only on DEXs, and for a DEX, verify the token's contract address through official channels.
  3. Compare the total cost of the same trade on each: fees, gas, and price impact.
  4. For a CEX, review withdrawal policies and custody arrangements; for a DEX, review audits and admin powers.
  5. Decide where the assets will sit after the trade, an exchange account or your own wallet, and check the risks of that choice separately.
08

Limits of the analysis

The line between CEX and DEX is blurring. Some centralized exchanges run their own chains or wallets, and some DEXs have a central operator managing the interface and contracts. What matters is who actually controls what, not the label.

The cost comparison above is hypothetical. When using either, check each service's current terms and documentation, noting when each was last updated, and choose based on the kinds of risk you are prepared to carry.