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.

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

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

---

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

4.4 Risks on DEXs

---

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

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:

ArbitrageRadar PRO on the App Store · arbitrageradarpro.com

Related guides

All guides · Coins · Exchanges

ArbitrageRadar PRO on the App Store · arbitrageradarpro.com