A decentralized exchange (DEX) replaces the matching engine of a traditional exchange with self-executing code, letting traders swap tokens directly from their own wallets instead of depositing funds with a company.
Most DEXs run on an automated market maker model: instead of matching buyers and sellers in an order book, trades are priced against liquidity pools funded by other users, who earn a share of trading fees in return. Uniswap, PancakeSwap and similar protocols popularized this design because it needs no central operator and still works well on blockchains with limited throughput. As faster chains and layer-2 networks emerged, some platforms brought order-book style trading fully on-chain, and aggregators now route a single swap across dozens of pools to find the best available price.
Because trades settle directly on the blockchain rather than in a company's internal database, a DEX is typically slower and can involve higher network fees than a centralized exchange. In exchange, users never hand over custody of their assets, and there is no sign-up form, KYC check or withdrawal limit standing between a wallet and the market. This self-custody model is central to DeFi, but it shifts responsibility onto the user: a lost seed phrase, a buggy smart contract, or a thinly funded pool causing slippage cannot be reversed by any support desk.
Liquidity providers face their own risk, known as impermanent loss, when pooled token prices drift apart. Despite these trade-offs, DEX trading volume has grown into a significant share of overall crypto activity, driven largely by a handful of dominant AMM protocols.