Skip to content
PayableWithCrypto

Glossary

What Is a DEX? Decentralized Exchanges Explained for Spenders

Editorial teamFact-checked against official sources Last updated 3 min read

Definition

DEX (decentralized exchange): A DEX is a set of smart contracts that lets people swap tokens directly from their own wallets, without depositing funds with an exchange company.

On this page
  1. 1How a DEX swap works
  2. 2What a DEX swap costs
  3. 3DEX vs centralised exchange
  4. 4When a DEX helps you pay
  5. 5Risks and how to reduce them
  6. 6Practical tips
  7. 7Common questions

A DEX, or decentralized exchange, is a protocol of smart contracts that swaps one token for another directly from your wallet. ethereum.org explains that DEXs “let you trade different tokens whenever you want”, with your assets staying under your control until the swap executes. For payments, a DEX is usually a tool for getting the right token on the right network before you pay a merchant or top up a card.

How a DEX swap works

  1. You open the DEX’s website or a wallet with a built-in swap and connect your wallet.
  2. You choose the token you have and the token you want, for example ETH to USDC.
  3. The interface quotes a price based on the liquidity pools it can route through.
  4. If you are selling a token for the first time, you sign a token approval letting the DEX contract move it.
  5. You sign the swap. The contract takes your input and sends the output back in one atomic transaction: either the whole thing succeeds or nothing changes.

Most DEXs on Ethereum and similar chains use an automated market maker to set prices. Some use order books or aggregate quotes from several sources.

What a DEX swap costs

Cost Who gets it How to manage it
Network fee Validators or miners Swap on a cheaper network or layer 2
Pool fee Liquidity providers Fixed per pool; shown in the quote
Price impact Built into the price Use deeper pools; split large trades
Slippage Market movement Set a sensible tolerance
Interface fee Some front-ends add one Check the quote breakdown

On a small swap, the network fee can be the largest cost. On a large swap in a thin pool, price impact dominates.

DEX vs centralised exchange

DEX Centralized exchange
Custody Your wallet The exchange
Account and KYC Not at protocol level Required
Fiat deposits and withdrawals No Usually yes
Token range Anything with a pool, including scams Listed assets only
Support if things go wrong Usually none Customer support

When a DEX helps you pay

  • Wrong token. A merchant accepts USDC but you hold ETH. Swap, then pay.
  • Wrong network for your card. Some cards accept a stablecoin only on specific chains. A swap or bridge gets it there.
  • Keeping custody. If you want to avoid sending funds to an exchange account just to convert them, a DEX keeps everything in your wallet.

If you only need fiat in a bank account, a DEX is the wrong tool; see crypto off-ramp options.

Risks and how to reduce them

  1. Fake tokens. Anyone can create a token called “USDC”. Select tokens by verified contract address, not by name.
  2. Phishing sites. Clone DEX websites steal approvals. Bookmark the official address; see wallet drainer sites.
  3. Unlimited approvals. Many interfaces default to unlimited approvals. Approve exact amounts where your wallet allows, and revoke approvals you no longer need.
  4. Front-running. On public mempools, bots can trade ahead of large swaps. Tight slippage settings limit the damage.
  5. Wrong output address. Some interfaces allow sending output to another address. Check it before signing.

Practical tips

  • Do a small test swap the first time you use a new route.
  • Compare the “minimum received” figure with what you actually need for the payment, and leave a margin for fees.
  • Keep some of the network’s gas token after swapping, or you will not be able to send the result.
  • If you plan to pay right after swapping, check the merchant’s accepted network first using our network choice guide.

Frequently asked questions

Do I need an account to use a DEX?
No. You connect a self-custody wallet and sign transactions. There is no sign-up at protocol level, though some front-end websites block certain countries or screen addresses.
Can I cash out to my bank account on a DEX?
No. A DEX swaps tokens for other tokens on the same blockchain. To get fiat into a bank, you need an off-ramp such as a regulated exchange, a payment service or a crypto card.
Why did I get fewer tokens than the quote?
Prices can move between quote and execution, and large trades in small pools move the price themselves. The difference is limited by your slippage setting; if the price moves beyond it, the transaction fails instead.
Are DEX swaps taxable?
In many countries, swapping one crypto asset for another is a disposal for tax purposes, just like on a centralised exchange. Check your tax authority's guidance.

Sources

Facts were checked against these pages on the date shown above. Terms change; confirm on the official page before acting. General information, not financial, tax or legal advice. See our methodology.

Related terms

Compare cards Find a store