A centralized exchange (CEX) is a company that holds your crypto, matches trades on its own systems and usually verifies your identity. A decentralized exchange (DEX) is software on a blockchain that lets you trade directly from your own wallet, usually without an account. The core trade-off is what can fail. On a CEX, you depend on the company staying honest and solvent. On a DEX, you depend on the code and your own care.
The difference at a glance
The biggest difference is who controls your funds before and after a trade.
| Centralized exchange | Decentralized exchange | |
|---|---|---|
| Who holds funds | The company | You, until the moment of a swap |
| Sign-up | Account, usually with ID checks | Connect a wallet |
| How prices form | Usually an order book | Usually a liquidity pool, sometimes an on-chain order book |
| Dollars in and out | Often supported through banks and cards | Generally crypto only |
| Main costs | Trading fee, spread, withdrawal fee | Swap fee, network fee, price impact |
| Which tokens | Those the company lists | Almost anything someone has deployed, including scams |
| If something goes wrong | Support staff, regulators, courts | Usually nobody can reverse it |
| Typical failure | Insolvency, hacks, frozen accounts | Contract bugs, phishing, bad tokens |
How does each one set a price?
Most centralized exchanges use an order book, a list of offers to buy and sell at set prices. A matching engine pairs them, and Coinbase's exchange documentation describes the common rule: price-time priority, meaning the best price goes first, and at equal prices the earliest order goes first. A maker rests an order on the book. A taker trades against one. The gap between the best buy and sell offers is the spread, a real cost even when the fee looks low. Many also offer leveraged perpetual futures, which carry far more risk than spot trading.
Most decentralized exchanges use an automated market maker. A smart contract holds two tokens in a liquidity pool and sets the price from their ratio, using a formula such as x * y = k. People called liquidity providers supply those tokens and earn the trading fees.
Here is an example with made-up round numbers. A pool holds 1,000 ETH and 2,500,000 USDC, so its starting price is $2,500. You swap 10,000 USDC with a 0.3% fee:
- The fee takes $30, leaving 9,970 USDC to trade.
- The formula gives you about 3.972 ETH.
- Your average price is about $2,517.52, or 0.7% above the starting price.
About 0.3% of that gap is the fee. The other 0.4% is price impact, the cost of moving the pool's price. A deeper pool would have less. Public swaps can also lose value to MEV, when bots reorder transactions around yours.
DEX doesn't always mean AMM
Some decentralized exchanges run order books too. Hyperliquid, for example, describes itself as a blockchain with fully on-chain order books. The defining question is who holds the assets and enforces the trade, not how the price is found.
What does a $1,000 trade really cost?
Headline fees are only part of the cost, and they vary widely by venue and account tier. These are published base rates as of October 2026. Most fall with higher trading volume, and they differ by country and product.
| Venue | Rate | Fee on $1,000 | Other costs |
|---|---|---|---|
| Binance global platform | 0.10% maker and taker | $1 | Spread, withdrawal fee |
| Kraken | 0.40% maker, 0.80% taker | $4 or $8 | Spread, withdrawal fee |
| Uniswap v3, low tier | 0.05% | $0.50 | Network fee, price impact |
| Uniswap v3, standard tier | 0.30% | $3 | Network fee, price impact |
| Uniswap v3, high tier | 1% | $10 | Network fee, price impact |
The swap fee on a DEX goes mostly to liquidity providers. On Uniswap, a protocol fee has also taken a slice of it on v2 and some v3 pools since the UNIfication proposal of December 2025.
The network fee is the wildcard. Gas fees rise when the network is busy, and they can outweigh the swap fee on a small trade. Layer 2 networks usually lower that cost, though you may first need to move funds there.
Custody: who actually has your coins?
On a centralized exchange, your balance is the company's promise to pay you. The company controls the private keys. That's convenient, because you can reset a password and call support, but it makes you a creditor of that business.
On a DEX, your assets stay in a wallet you control until a swap executes. No company can freeze or lend them. You also lose your safety net. If you lose your seed phrase, nobody can recover your funds, and a malicious transaction you sign can't be undone.
KYC and the law
Centralized exchanges generally verify identity because financial rules apply to them. This process is called know your customer (KYC). In the US, FinCEN's 2019 guidance says virtual currency exchangers generally qualify as money transmitters, and those businesses carry anti-money-laundering duties.
A DEX's smart contract usually doesn't ask who you are. That doesn't put it beyond the law:
- FinCEN's guidance says that when decentralized apps perform money transmission, the rules can apply to the app, its owners and operators, or both.
- In September 2024, the CFTC ordered Uniswap Labs to pay a $175,000 penalty over leveraged tokens traded through its protocol.
- The EU's crypto law, MiCA, excludes services that are fully decentralized with no intermediary, but regulators decide that case by case.
Rules vary by country and change often. Using a DEX doesn't remove any tax you owe. If your situation is complicated, ask a qualified professional.
How does each one fail?
Centralized exchanges tend to fail through people and concentrated funds, while decentralized exchanges tend to fail through code.
FTX, November 2022
FTX is the defining custody failure. The company's new CEO, John Ray, authorized Chapter 11 filings for over 100 FTX entities after taking over on November 11, 2022. He told Congress that customer assets had been commingled with those of Alameda Research, a trading firm in the same group, and that he had never seen "such an utter failure of corporate controls." The CFTC's complaint alleged the loss of over $8 billion in customer deposits. Founder Sam Bankman-Fried was sentenced to 25 years in prison in March 2024.
Customers have since received substantial repayments, and the catch is easy to miss. The FTX Recovery Trust's July 2026 distribution brought main customer classes to 105% of their allowed claims. But those claims were valued in dollars on the bankruptcy date, when bitcoin was $16,871. Someone who held 1 BTC on FTX has therefore received about $17,700 so far, nearly four years on, while bitcoin traded above $80,000 in October 2026. "Paid back" didn't mean they got their coins back.
Bybit, February 2025
Being solvent doesn't remove hacking risk. The FBI says North Korean hackers stole about $1.5 billion in virtual assets from Bybit around February 21, 2025. Large pools of customer funds are valuable targets.
Balancer, November 2025
Decentralized venues have their own version of this. On November 3, 2025, attackers exploited a rounding flaw in Balancer V2's stable pools, and losses exceeded $120 million. Some older pools couldn't even be paused. The money sat in the pools, so the losses fell on liquidity providers more than on people who had already swapped and moved on. See how DeFi differs from a bank for why no deposit insurance applies here.
Everyday DEX losses are usually smaller and more personal: fake tokens with copied names, phishing sites and malicious approvals. Our security guides cover these in more depth.
Which should you use?
Pick based on what you need and which failure you can live with. Many people use both, buying on a CEX and then moving funds to their own wallet.
| Your situation | Better fit | Why |
|---|---|---|
| Buying crypto with dollars for the first time | CEX | Bank links and support; fewer ways to make an irreversible error |
| You want to hold for a long time and can manage keys | CEX to buy, then self-custody | Removes ongoing company risk |
| The token isn't listed on a major exchange | DEX, with caution | Often the only option, and also where most scam tokens live. Learn the signs of a rug pull |
| Large trade in a major asset | Compare both | Order book depth and pool depth vary |
| You use on-chain apps on Ethereum or a layer 2 | DEX | Funds are already in your wallet |
| You want someone to call if things go wrong | CEX | There's a company, though recovery isn't guaranteed |
Before you use a CEX
- Check that it's licensed or registered where you live.
- Compare the trading fee, the spread and the withdrawal fee.
- Turn on strong two-factor authentication.
- Ask whether it publishes evidence of its reserves and liabilities.
- Don't keep more there than you could afford to have stuck.
Before you use a DEX
- Reach the site through a trusted link, and check the address.
- Copy token contract addresses from the project's official source, never by searching the name.
- Check pool depth, and preview the price impact.
- Set a sensible slippage limit, the most price movement you'll accept.
- Read what your wallet asks you to sign.
This guide isn't financial or legal advice.
Key takeaways
- A CEX is a company that holds your funds, and a DEX lets you trade from your own wallet.
- Order books match buyers and sellers, while AMMs price from a pool's balances. Some DEXs use order books too.
- Compare total cost: fee, spread, network fee and price impact.
- FTX shows that custody risk can mean losing your coins' upside even after a repayment above 100%.
- DEXs avoid company risk but add contract bugs, scams and irreversible mistakes.
- Decide by asking which failure you are better placed to handle.
Sources
- Testimony of John J. Ray III, CEO of the FTX Debtors, December 13, 2022
- CFTC: charges against Samuel Bankman-Fried, FTX and Alameda
- FBI: North Korea responsible for $1.5 billion Bybit hack
- FinCEN guidance FIN-2019-G001
- CFTC: order against Uniswap Labs
- Uniswap documentation: fees
- ESMA Q&A 2671 on MiCA and decentralized platforms
Get the weekly commit
New blockchain deep dives every week.

