A decentralized exchange (DEX) is a crypto exchange that runs on a blockchain, so you trade tokens straight from your own wallet without handing your funds to a company. No operator holds deposits or runs the order book: smart contracts hold the liquidity, set the price and settle each trade on chain.
DEXs began as a niche for Ethereum tokens and now carry a large slice of crypto trading. In the second quarter of 2026, spot volume on the top 10 DEXs equaled 23.5% of spot volume on the top 10 centralized exchanges, according to CoinGecko. The trade-off for that independence is that you take on the jobs an exchange normally does for you, from guarding your keys to checking you're buying the right token.
Key Takeaways
- Self-custody: A DEX lets you trade from a wallet you control, with no account to open and no identity check on the protocol itself.
- How prices are set: Most DEXs use automated market makers, pools of two tokens priced by a formula. Others run order books on chain, and aggregators split trades across many DEXs.
- Costs: You pay a trading fee that goes to liquidity providers plus the network's gas fee, and a large trade in a small pool moves the price against you.
- Risks: A DEX removes the risk of an exchange losing or freezing your funds, but adds smart-contract bugs, fake tokens, risky approvals and front-running bots.
- Limits: DEXs swap crypto for crypto. To turn cash into crypto or back, you still need a centralized exchange or a payment provider.
- Where trading happens: Uniswap, launched on November 2, 2018, is the best-known DEX, and trading now spreads across Ethereum, Solana, BNB Chain, Base and many other networks.
What Is a DEX in Crypto?
A DEX is a set of smart contracts, programs stored on a blockchain, that anyone can call to swap one token for another. When you trade, your wallet signs one transaction that sends your tokens to the contract and pays out the other token. If any part fails, the whole transaction reverts, so at no point does the exchange hold your money.
Three things follow from that design:
- You keep custody: Your funds stay in your wallet until the moment of the swap, so there are no deposits to lose, no withdrawal queues and no account to freeze.
- Anyone can list and trade: Anyone can open a pool for any token, which is why new tokens appear on DEXs long before centralized exchanges list them. Scam tokens appear there too, for the same reason.
- Everything is public: Every trade, pool balance and fee is recorded on the blockchain, where anyone can check it.
The protocol also asks for no know-your-customer check, although the website you use to reach it may block some countries.
"Decentralized" covers a range. Most DEXs have a website run by a company (Uniswap Labs runs the Uniswap app), and many have a governance token whose holders vote on fees and upgrades. The contracts themselves usually keep working if the website goes down, because wallets and other apps can call them directly.
How Decentralized Exchanges Work
A DEX has to answer the same question as any exchange: who is on the other side of your trade, and at what price? There are three main answers.
Automated Market Makers
Most DEXs are automated market makers (AMMs). Your trade goes against a liquidity pool holding two tokens, and a formula sets the price from the balance between them. The classic formula, used by Uniswap since 2018, is x × y = k: the two token amounts multiplied together must stay the same after every trade. Buying a token leaves less of it in the pool, so each extra unit costs more.
That makes trade size relative to pool size the thing to watch. In a hypothetical pool holding 100 ETH and 300,000 USDC, where ETH starts at 3,000 USDC:
| You buy | USDC paid (before fees) | Average price per ETH | Above the starting price |
|---|---|---|---|
| 1 ETH | About 3,030 | About 3,030 | About 1% |
| 10 ETH | About 33,333 | About 3,333 | About 11% |
That gap is price impact, and deep pools keep it small. Newer designs refine the formula: since 2021, Uniswap v3 has let liquidity providers concentrate their funds in a price range, and Uniswap v4 adds hooks, small programs that let a pool run its own rules during a trade.
On-Chain Order Books
Some DEXs match buy and sell orders the way a centralized exchange does, but on a blockchain fast enough to record every order. Hyperliquid runs an order book on its own chain, mostly for perpetual futures. Order books suit active traders who want limit orders, while AMMs suit occasional swaps.
Aggregators and Intents
An aggregator such as 1inch or Jupiter splits your trade across many DEXs and pools to find a better overall price. Intent-based systems go a step further: you state the outcome you want, such as "swap 1 ETH for the most USDC," and competing market makers called solvers race to fill it. UniswapX and NEAR Intents work this way, and solvers can fill trades across different blockchains.
Who Supplies the Liquidity
AMM pools are funded by liquidity providers, people and firms who deposit both tokens of a pair. In return they earn a share of every trading fee the pool collects. Their main cost is impermanent loss: when the prices of the two tokens move apart, they end up holding more of the weaker token than if they had kept their coins in a wallet.
Centralized and Decentralized Exchanges Compared
A centralized exchange (CEX) is a company that holds your deposits and matches trades on its own servers. A DEX does the same job with code on a blockchain, and that one difference changes almost everything else:
| Centralized exchange (CEX) | Decentralized exchange (DEX) | |
|---|---|---|
| Who holds your funds | The exchange, until you withdraw | You, in your own wallet |
| Account and ID checks | Account plus identity verification | A wallet connection only |
| Cash in and out | Bank transfer, card and other payment methods | None: crypto for crypto only |
| Tokens available | Listed after the exchange's review | Any token with a liquidity pool |
| Fees | Trading fee, plus withdrawal fees | Pool fee plus the network's gas fee |
| Order types | Market, limit, stop and often margin | Mostly swaps; order-book DEXs add limit orders and futures |
| If something goes wrong | Customer support, sometimes account recovery | No support desk, and transactions can't be reversed |
| Main risk | Hacks, insolvency or frozen withdrawals | Contract bugs, fake tokens and user mistakes |
The custody row is where the two have parted most sharply. When FTX collapsed in November 2022, customers lost access to their deposits, and in February 2025 hackers took about $1.5 billion in ETH from Bybit. A DEX can't lose customer deposits it never holds, but it hands every safety check to you.
Many people use both: a centralized exchange or payment provider to turn cash into crypto, then a self-custodial wallet and a DEX for tokens the exchange doesn't list or for trades they want to keep in their own hands.

Types of DEX and Where They Run
A DEX can only trade tokens on the blockchains it runs on, so the network your tokens live on narrows the choice before anything else does. The main types:
| Type | How it works | Examples |
|---|---|---|
| AMM spot DEX | Trades against liquidity pools priced by a formula | Uniswap (Ethereum and many other networks), PancakeSwap (BNB Chain), Raydium and Orca (Solana), Aerodrome (Base), Curve (stablecoins) |
| Order-book DEX | Matches buy and sell orders on chain | Hyperliquid, dYdX |
| Aggregator | Splits a trade across many DEXs for a better price | 1inch, Jupiter, CoW Swap |
| Cross-chain DEX | Swaps native coins between different blockchains | THORChain |
| Peer-to-peer | Matches two traders directly, with escrow | Bisq |
Uniswap, the best-known DEX on Ethereum, handled $1.02 trillion of trades in 2025 and $79.8 billion in the 30 days to October 15, 2026, according to DefiLlama. Uniswap v4, launched on January 31, 2025, now runs on 20 networks.
Bitcoin's base layer can't run the kind of smart contract an AMM needs, so most DEXs trade wrapped bitcoin, tokens such as WBTC that track BTC on another chain. To trade native BTC without a company in the middle, you need a cross-chain DEX such as THORChain or a peer-to-peer platform such as Bisq, which holds both sides in a multisig escrow until the trade completes.
How to Use a DEX
A swap on a DEX takes a few minutes once your wallet is set up. The steps are the same on most networks:
- Set up a self-custodial wallet: Use a wallet that supports the network you want to trade on, and write down its recovery phrase on paper.
- Fund it, including gas: Add the token you want to swap plus some of the network's own coin to pay fees, such as ETH on Ethereum or SOL on Solana.
- Open the DEX from its official address: Type the address yourself or use a bookmark. Fake DEX sites buy search ads to catch people searching for the real one.
- Connect your wallet and pick the tokens: Paste the contract address of the token you're buying from its official website or documentation, because anyone can create a token with the same name and logo.
- Check the quote: Look at the price impact, the minimum you'll receive, the slippage tolerance and the network fee before you confirm.
- Approve, then swap: On Ethereum-style networks, the first trade of a token asks you to approve the DEX to move it. Approve only the amount you're trading, then confirm the swap in your wallet.
- Check and tidy up: Confirm the trade on a block explorer, and later revoke approvals you no longer need.
You can also swap supported cryptocurrencies inside the self-custodial Bitcoin.com Wallet app, or trade spot and perpetual futures on OrangeRock, Bitcoin.com's non-custodial trading app.
DEX Fees and Costs
The price a DEX quotes is rarely the whole cost of a trade. Five costs can apply:
| Cost | What it is | What sets it |
|---|---|---|
| Pool fee | A cut of each trade, paid mostly to liquidity providers | The pool. Uniswap v2 pools charge 0.30%, and v3 pools use tiers from 0.01% to 1% |
| Network (gas) fee | The blockchain's charge for processing your transaction | How busy the network is. Ethereum mainnet usually costs far more than a layer-2 network or Solana |
| Price impact | The price moving against you as your trade drains the pool | Your trade size relative to the pool's liquidity |
| Slippage | Any further price move between the quote and the moment your trade lands | Market speed and your slippage tolerance setting |
| Interface fee | An extra charge some apps add on top of the pool fee | The app you use. Uniswap Labs no longer charges one |
On Ethereum-style networks, your first trade of a token also needs a separate approval transaction, which costs gas once.
To keep costs down, trade on a network where gas is cheap if your tokens are already there, and split large trades or use an aggregator when the quote shows high price impact. Keep slippage tolerance tight, at around 0.5% to 1% for major tokens, because a loose setting tells bots how far they can push the price before your trade executes.
DEX Risks and How to Stay Safe
On a DEX, nobody can freeze your funds, and nobody can get them back if something goes wrong. The main risks, and what reduces each:
- Smart-contract bugs: Code can contain flaws that attackers exploit. On October 1, 2026, an attacker used a bug in the NEAR Intents contract to withdraw about $3.8 million, which was returned the next day. Stick to protocols with public audits and a long track record.
- Fake tokens: Anyone can create a token with any name and logo. Check the contract address against the project's official site before you buy.
- Open approvals: An approval you gave months ago still lets that contract move your tokens. Approve only the amount you're trading, and revoke old approvals with a tool such as Etherscan's token approval checker.
- Front-running bots: Your trade is visible before it's confirmed, and bots can buy just before you and sell just after, a sandwich attack. A tight slippage setting limits the damage, and some DEXs and wallets route trades privately to avoid it.
- Phishing sites and drainers: Fake DEX sites ask you to sign transactions that hand over your tokens. Read every wallet prompt, and never sign something you don't understand.
- Rug pulls and thin liquidity: A token's creators can pull their liquidity and leave holders unable to sell. New tokens with small pools carry this risk most.
- No way back: Tokens sent to the wrong address or network usually can't be recovered, and there's no support desk to call.
- Rules and tax: Laws on using DEXs differ by country, and in many countries each swap counts as a taxable sale, so keep records of your trades.
Key DEX Terms
DEX screens use a lot of shorthand. These are the terms you'll meet most, from placing a swap to providing liquidity.
Trading Terms
| Term | What it means |
|---|---|
| Swap | Exchanging one token directly for another, the basic action on a DEX |
| Automated market maker (AMM) | A DEX that prices trades with a formula, with no order book |
| Limit order | An instruction to trade only at a price you set or better, offered by order-book DEXs and some AMM apps |
| Price impact | How much your own trade moves the pool's price |
| Slippage | The difference between the quoted price and the price you get |
| Slippage tolerance | The largest price move you'll accept before the trade cancels itself |
| Route | The path a swap takes through one or more pools, such as ETH to USDC to a new token when no direct pool exists |
| Aggregator | A service that routes a trade through several DEXs for a better price |
| Gas | The fee paid to the blockchain to process a transaction |
| Contract address | A token's unique address on the blockchain, the reliable way to find the right token when copies share its name |
| Token approval | Permission you give a contract to move a specific token from your wallet |
| Wrapped token | A token that tracks another asset on a different chain, such as WBTC for bitcoin |
| Bridge | A protocol that moves tokens from one blockchain to another |
| MEV | Maximal extractable value: profit bots make by reordering or inserting transactions around yours |
Liquidity Terms
| Term | What it means |
|---|---|
| Liquidity | How much of a token is available to trade without moving its price. Deep liquidity means smaller price impact |
| Liquidity pool | A smart contract holding two tokens that traders swap against |
| Liquidity provider (LP) | Someone who deposits tokens into a pool in exchange for a share of its fees |
| LP token | A receipt token showing your share of a pool, redeemed to withdraw your deposit. Some protocols let you stake it or use it as collateral |
| Impermanent loss | What an LP gives up compared with simply holding the two tokens, when their prices move apart. It becomes permanent only when you withdraw, and stays small in pools of two stablecoins |
| Liquidity mining | Extra rewards a DEX pays liquidity providers on top of trading fees, usually in its own token |
| Staking | Locking tokens in a protocol to earn rewards, usually quoted as an annual percentage yield (APY) |
| Yield farming | Moving tokens between pools and protocols to collect the highest available rewards |
| TVL | Total value locked: the value of all tokens deposited in a protocol |
| Rug pull | A scam in which a token's creators withdraw the liquidity and leave holders unable to sell |
Conclusion
A decentralized exchange swaps the company in the middle for code on a blockchain. You keep your keys, reach tokens no exchange lists and can check every trade on chain. In return, the protections a centralized exchange provides become your job: checking contract addresses, watching price impact and slippage, keeping approvals tight and accepting that a mistake can't be undone. For a first swap, start small on a well-known DEX, on a network where gas is cheap, from a wallet you've backed up.






