How Arbitrage Works on Centralized and Decentralized Exchanges
Step‑by‑step walkthrough of arbitrage mechanics, comparing CEX and DEX environments, and showing how price differentials arise and can be captured.
Step‑by‑step walkthrough of arbitrage mechanics, comparing CEX and DEX environments, and showing how price differentials arise and can be captured.
Understanding Arbitrage on Centralized and Decentralized Exchanges
Arbitrage is the practice of buying an asset at a lower price on one market and simultaneously selling it at a higher price on another market. The price differential creates a profit after accounting for transaction costs, latency, and market impact. In the cryptocurrency ecosystem, arbitrage opportunities arise because prices can diverge across centralized exchanges (CEXs) and decentralized exchanges (DEXs). This article provides a step‑by‑step walkthrough of how arbitrage works on both environments, explains why price differentials emerge, and outlines the tools and considerations that professionals use to capture those spreads.
---
1. What Is Arbitrage in the Crypto Context?
Arbitrage originally described mismatched prices in traditional securities markets. In crypto, arbitrage follows the same principle but operates in a market that runs 24 hours a day, across multiple jurisdictions, and with a mixture of custodial and non‑custodial platforms.
- Definition: Crypto arbitrage is the simultaneous purchase and sale of a digital asset on two or more exchanges to exploit price differentials.
- Core requirement: The trades must be executed within the same market cycle to avoid exposure to price movement risk.
- Typical profit margin: Reported profit margins range from 0.1 % to 2 % per trade, depending on market depth and volatility.
Because cryptocurrency markets are fragmented, a single token can trade at different prices on Binance, Coinbase, Uniswap, and other venues. The fragmentation is driven by variations in order book depth, liquidity pool composition, regulatory constraints, and local demand.
---
2. Why Do Price Differentials Exist?
Price differentials are not accidental; they are the result of structural and operational factors that affect each exchange.
2.1 Liquidity Imbalance
Liquidity is the amount of capital available to absorb trades without moving the price significantly. Centralized exchanges concentrate large institutional order flow, while decentralized exchanges rely on liquidity pools that may be shallow for certain pairs. When a large buy order hits a thin pool on a DEX, the price can jump several basis points, creating a spread relative to a CEX where the same order would cause a smaller impact.
2.2 Network and Settlement Delays
CEXs settle trades within their internal ledgers almost instantly, but moving assets off‑exchange requires withdrawal times that can range from a few minutes to several hours. DEXs settle on‑chain, and settlement time is bounded by the blockchain’s block time—approximately 13 seconds for Ethereum, 1 second for Solana, and 2‑3 seconds for Binance Smart Chain. The difference in settlement speed can cause temporary price disparities, especially during high‑volatility events.
2.3 Regulatory and Geographic Barriers
Some jurisdictions restrict access to specific tokens or impose higher compliance costs. When a token is unavailable on a regulated CEX for a particular region, demand shifts to a DEX that operates without the same restrictions. The resulting supply‑demand mismatch drives price divergence.
2.4 Market Maker Strategies
Market makers on CEXs often employ inventory‑balancing algorithms that keep the mid‑price stable. On DEXs, liquidity providers set fees (commonly 0.3 % on Uniswap) and rely on automated market maker (AMM) formulas that can create price slippage when the pool composition changes. The differing pricing mechanisms create systematic opportunities for arbitrage.
---
3. How Does Arbitrage Work on Centralized Exchanges?
Centralized exchanges operate on a traditional order‑book model. Understanding this model is essential for quantifying arbitrage profitability.
3.1 Order‑Book Mechanics
An order book records limit orders that specify a price and quantity. The highest bid and the lowest ask form the spread. Market orders consume liquidity by matching with the opposite side of the book. A trader looking to arbitrage will place two market orders: a buy on the lower‑priced exchange and a sell on the higher‑priced exchange.
3.2 Execution Steps
1. Identify the spread: Market data APIs provide real‑time bid‑ask quotes. A spread of 0.5 % for Bitcoin (BTC) between Exchange A and Exchange B is identified.
2. Verify available volume: The depth at the best bid on Exchange B must exceed the intended trade size, and the depth at the best ask on Exchange A must be sufficient.
3. Calculate total cost: Total cost = (Buy price × Quantity) + (Buy fee) + (Sell fee) + (Withdrawal fee).
4. Execute simultaneous orders: Using a low‑latency connection, a market buy is sent to Exchange A and a market sell to Exchange B. Most professional traders employ algorithmic bots that trigger within milliseconds of spread detection.
5. Settle and transfer: After the trade, the purchased asset is withdrawn from Exchange A and sent to Exchange B to cover the short position, or the trader may employ a cross‑margin account if the exchange offers it.
3.3 Fees and Costs
- Trading fees: Most CEXs charge a maker‑taker fee ranging from 0.02 % to 0.25 %.
- Withdrawal fees: Bitcoin withdrawals on major CEXs average 0.0005 BTC, equivalent to roughly $15 USD at a $30,000 BTC price.
- Network fees: On‑chain transfer fees vary; for Ethereum, average gas costs were 0.005 ETH (about $8 USD) in Q1 2024.
When total fees exceed the spread, the arbitrage trade becomes unprofitable. Therefore, traders must continuously monitor fee schedules and network congestion.
3.4 Risks on CEXs
- Latency risk: Even a 200‑millisecond delay can erode profit on a 0.3 % spread.
- Execution risk: Partial fills can leave the trader with an open position, exposing them to market moves.
- Custodial risk: Centralized platforms hold private keys, introducing counter‑party risk.
---
4. How Does Arbitrage Work on Decentralized Exchanges?
Decentralized exchanges eliminate custodial intermediaries and rely on smart contracts. The pricing model is fundamentally different, which shapes arbitrage tactics.
4.1 Automated Market Maker (AMM) Pricing
An AMM determines price based on the constant‑product formula: x · y = k, where x and y are the token reserves in the pool, and k is a constant. Adding liquidity changes the pool’s balance and consequently the price.
When the price of a token on a DEX diverges from the reference price on a CEX, arbitrageurs restore equilibrium by swapping tokens. The arbitrageur buys the cheap token on one platform, adds it to the DEX pool, and receives the expensive token, thereby moving the pool price toward the market price.
4.2 Execution Steps
1. Detect price discrepancy: Oracles or price feed services (e.g., Chainlink) provide on‑chain price data. An off‑chain price feed shows ETH at $1,800 on a CEX, while the Uniswap V3 pool indicates $1,830.
2. Calculate optimal swap amount: The optimal trade size is derived from the formula that maximizes profit while accounting for slippage and gas cost.
3. Prepare transaction: The arbitrageur creates a transaction that calls the swap function on the DEX’s router contract, specifying token addresses, input amount, and minimum output.
4. Include gas optimization: Gas‑price bidding strategies (e.g., EIP‑1559 fee cap) are used to ensure the transaction lands before price convergence.
5. Broadcast and monitor: Once the transaction is mined, the pool price adjusts, and the arbitrageur sends the acquired token back to the original exchange or keeps it as a net profit.
4.3 Fees and Costs on DEXs
- Swap fee: Most AMMs charge 0.3 % per swap, which is collected by liquidity providers.
- Gas fee: Ethereum gas averaged $8 USD per transaction in early 2024; on Layer‑2 solutions (e.g., Arbitrum), fees drop to $0.10 USD.
- Slippage: Large swaps cause price impact that reduces profit. Slippage can be limited by setting a maximum acceptable price deviation within the transaction.
4.4 Risks on DEXs
- Reversion risk: If another trader submits a competing arbitrage transaction in the same block, the profit may vanish, and the transaction can revert, losing the gas spent.
- Smart‑contract risk: Bugs in the DEX contract can lead to loss of funds. Independent audits and formal verification reduce but do not eliminate this risk.
- Front‑running: Bots can detect pending transactions in the mempool and submit a higher‑fee transaction that captures the spread before the original transaction executes.
---
5. Comparative Analysis: CEX vs. DEX Arbitrage
| Factor | Centralized Exchange (CEX) | Decentralized Exchange (DEX) |
|--------|---------------------------|------------------------------|
| Pricing model | Order‑book with market makers | Automated market maker with constant‑product formula |
| Typical spread | 0.05 % – 0.5 % on major pairs | 0.2 % – 1 % for thin pools |
| Execution latency | Sub‑millisecond internal matching; withdrawal latency up to hours | On‑chain block time (1 – 13 seconds); gas‑price dependent |
| Fee structure | Maker/taker fees 0.02 % – 0.25 %; withdrawal fees variable | Swap fee ~0.3 %; gas fee dependent on network congestion |
| Counter‑party risk | Custodial; risk of exchange insolvency | Smart‑contract risk; no custodial holding |
| Regulatory exposure | High; KYC/AML compliance required | Low; anonymity preserved but may be restricted by jurisdictional censorship |
| Arbitrage tools | API access, low‑latency order routing, proprietary bots | Blockchain explorers, on‑chain oracles, gas‑price optimization tools |
Both environments can be profitable, but the optimal strategy depends on the trader’s capital, risk tolerance, and technical capability. Many professional arbitrageurs operate a hybrid approach, simultaneously monitoring order books on CEXs and pool ratios on DEXs, and using a single algorithm to capture the best available spread.
---
6. Step‑by‑Step Walkthrough of a Real‑World Arbitrage Trade
6.1 Scenario Overview
- Asset: Ethereum (ETH)
- CEX price: $1,750 on Exchange X (ask price)
- DEX price: $1,785 on Uniswap V3 (ETH/USDC pool)
- Target profit: At least 0.4 % after fees
6.2 Quantitative Calculation
1. Identify spread: $1,785 – $1,750 = $35 per ETH, which is a 2 % relative difference.
2. Determine trade size: The Uniswap pool depth shows 500 ETH available with slippage under 0.2 % for swaps up to 50 ETH. The trader decides to trade 30 ETH.
3. Calculate fees:
- CEX taker fee: 0.1 % × $1,750 × 30 = $5.25
- DEX swap fee: 0.3 % × $1,785 × 30 = $16.07
- Gas fee on Ethereum (average 20 gwei, 21000 gas): ≈ $8.20
- Total fees = $5.25 + $16
ArbitrageRadar PRO on the App Store · arbitrageradarpro.com
Related guides
- CEX vs DEX Arbitrage: Key Differences and Best Tools for Each
- Top 5 Decentralized Exchanges for Crypto Arbitrage in 2026
- DeFi vs. CEX Arbitrage: Which Offers Better Opportunities?
- CEX vs DEX Funding Arbitrage: Pros, Cons, and Platform Recommendations
- CEX vs DEX Arbitrage: Where to Find the Best Opportunities
- DEX vs CEX Arbitrage: How to Profit from Market Gaps in 2026
All guides · Coins · Exchanges