Back to Academy
FoundationsBeginner·6 min read·Lesson 4 of 36

CEX vs DEX: Where to Buy Crypto

There are two ways to buy crypto: through an exchange that holds it for you, or through a protocol where you hold it yourself. One is easier. One is safer. Knowing the difference could protect everything you own.

exchangesCEXDEXCoinbaseUniswapself-custodyfoundations

Two Very Different Things Called "Buying Crypto"

When most people say they "bought Bitcoin," they went to Coinbase or Binance, entered their card info, and saw a number appear in an app. Simple. Familiar. Works like a stock brokerage.

That's one way.

The other way: you connect a wallet you own directly to a decentralized protocol, swap one token for another, and the transaction happens automatically via code. No account. No ID verification. No company involved.

Both approaches have their place. Knowing the difference — and specifically understanding the risk difference — is one of the most important things a beginner can learn.


CEX: Centralized Exchanges

Examples: Coinbase, Binance, Kraken, Gemini

A centralized exchange works roughly like a brokerage. You sign up, verify your identity (photo ID, sometimes more), link a bank account, and buy. The exchange holds your crypto for you.

That last sentence is the critical one: the exchange holds it for you.

Your Coinbase account shows "0.05 BTC." But that 0.05 BTC isn't in a wallet you control. It's in Coinbase's wallet. Your balance is a promise — an IOU — that Coinbase will give you 0.05 BTC when you ask for it.

For most people starting out, this is fine. The interface is clean, support exists if something goes wrong, and you can buy with a credit card in minutes. CEXs are also regulated in most countries, which adds a layer of consumer protection.

What makes a CEX good for beginners:

  • Familiar interface (feels like a bank or brokerage)
  • Easy fiat on-ramp (buy with dollars directly)
  • Customer support if you mess something up
  • Regulated and insured in most jurisdictions

What makes a CEX risky:

  • You don't actually hold your crypto
  • The exchange can freeze your account
  • If the exchange gets hacked or goes bankrupt, your funds are at risk

// CEX vs DEX — CUSTODY MODEL

CEX — CENTRALIZED EXCHANGEYOU (USER)no keys → no ownershipdeposit fundsEXCHANGEholds your fundsCoinbase · Binance · KrakenwithdrawCOUNTERPARTYother traders⚠ Exchange can freeze, hack, or collapse(FTX, Mt.Gox examples)VSDEX — DECENTRALIZED EXCHANGEYOUR WALLETyou hold your keyssign txSMART CONTRACTcode enforces the tradeUniswap · dYdX · GMXnon-custodial · on-chainreceiveYOUR WALLETfunds return to you✓ No counterparty risk — code is the middlemanpermissionless · censorship-resistant

CEX holds your funds (counterparty risk). DEX executes via code — you keep custody.

EXPAND

The FTX Lesson

In November 2022, FTX — one of the world's largest crypto exchanges — collapsed overnight. At its peak, FTX had $32 billion in assets under management. Its founder was on the cover of Forbes. Politicians posed for photos with him. He was considered one of the safest operators in the industry.

Then it came out that FTX had been secretly lending customer funds to its sister trading firm, Alameda Research. When the market turned and those loans went bad, there was a bank run. Customers tried to withdraw their money. There wasn't enough. FTX froze withdrawals, filed for bankruptcy, and billions in customer funds disappeared.

The people who lost everything had one thing in common: they left their crypto on the exchange.

The people who weren't affected had moved their crypto to wallets they personally controlled. FTX going bankrupt meant nothing to them, because FTX never had custody of their coins.

// NOTE

"Not your keys, not your coins" isn't a meme. It's a hard lesson that thousands of people learned the expensive way in 2022. When you leave crypto on a centralized exchange, you are trusting that company's integrity, security, and solvency. FTX proved that trust can be misplaced even when every external signal looks fine.

// CRYPTO WALLET KEY HIERARCHY

SEED PHRASE12–24 random wordsGenerates ALL your private keys. Master backup.NEVER SHAREderives →PRIVATE KEY256-bit hex stringSigns transactions. Derived from seed phrase.NEVER SHAREhashed →PUBLIC KEYCryptographic keypairDerived from private key via elliptic curve math.SAFE TO SHAREderives →WALLET ADDRESSHashed public key (0x…)Share this to receive funds. Like a bank account.SHARE FREELYOne seed phrase → many private keys → many wallet addresses (HD wallet)

Lose your seed phrase = lose everything. Share your wallet address = receive funds safely.

EXPAND

DEX: Decentralized Exchanges

Examples: Uniswap, Curve, Jupiter (on Solana)

A decentralized exchange is a protocol — a set of smart contracts on a blockchain — that lets you swap tokens directly from your own wallet. No account. No ID. No company.

You connect your wallet (like MetaMask), choose what you want to swap, confirm the transaction, and the protocol executes it automatically. The code handles everything. There's no Uniswap employee processing your trade.

What makes a DEX different:

  • You hold your own crypto the entire time
  • No signup, no KYC, no approval required
  • Available to anyone with a wallet and an internet connection
  • The protocol can't freeze your funds or go bankrupt

What makes a DEX harder for beginners:

  • You're responsible for your own wallet security (lose your seed phrase = lose everything)
  • No customer support if you make a mistake
  • Transaction fees ("gas fees") are required and can be unpredictable
  • More room for user error — sending to the wrong address is irreversible

Self-Custody: What It Actually Means

When you use a DEX, you need a self-custodial wallet — a wallet where you hold the private key.

The private key is the cryptographic password that proves you own an address on the blockchain. When you create a new wallet, you get a seed phrase — 12 or 24 random words that generate your private key. Whoever has those words controls the wallet.

Write them down. Keep them offline. Never put them in email, a screenshot, a notes app, or a cloud backup. Never share them with anyone for any reason.

If you lose your seed phrase and your device breaks, your crypto is gone. Permanently. There's no "forgot your password" option. No customer service line. The blockchain doesn't care.

// KEY RULE

Self-custody is more secure against exchange failure and hacks. It is less secure against your own mistakes. The tradeoff is real — you get full ownership and full responsibility at the same time. Most beginners should start on a CEX and move to self-custody once they understand the basics.


Which One Should You Start With?

Honestly? A CEX. Coinbase for US users is the easiest starting point.

Buy a small amount. Learn how it works. Get comfortable with the concepts before you start managing your own keys. The stakes are too high to learn about seed phrases the hard way.

When you're ready to level up:

  1. Get a hardware wallet (Ledger or Trezor) — a physical device that stores your private key offline
  2. Move your crypto off the exchange to your hardware wallet
  3. Then, if you want to explore DeFi and DEXs, connect that wallet to a protocol

The path isn't CEX or DEX — it's CEX to start, then DEX as you build confidence and understand what you're doing.


The Summary

CEXDEX
Who holds your cryptoThe exchangeYou
Ease of useHighModerate
ID requiredYesNo
Risk of exchange failureReal (see: FTX)None
Risk of user errorLowHigh
Best forBeginnersExperienced users

// INSIGHT

The goal isn't to stay on a CEX forever or to never use a CEX at all. The goal is to understand what you're trusting and why. A CEX is a tool. A DEX is a tool. Knowing when to use which — and what risks each carries — is what separates people who navigate crypto well from people who get burned.


Next Steps

You now have the foundational vocabulary: what crypto is, how blockchains work, what Bitcoin is and why it was built, and how to think about buying and holding.

The next level covers wallets in depth — the difference between hot and cold storage, how addresses work, and how to actually secure what you own. Because the whole point of holding your own keys is only valuable if those keys are actually safe.

Loading curriculum...