What is Triangular Arbitrage?
Triangular arbitrage is a trading strategy that exploits pricing inconsistencies between three related trading pairs. Instead of simple two-market arbitrage, triangular arbitrage cycles through three trades to return to the original asset while capturing profit from mispriced relationships. This occurs when the implied exchange rate through two pairs differs from the direct exchange rate.
The "triangle" refers to the three-trade cycle. Starting with Asset A, you trade to Asset B, then to Asset C, then back to Asset A. If the round-trip yields more Asset A than you started with, a triangular arbitrage opportunity exists.
How it Works
Consider three assets: ETH, BTC, and USDC. The direct exchange rates might be:
- ETH/USDC: 1 ETH = $3,000
- BTC/USDC: 1 BTC = $60,000
- ETH/BTC: 1 ETH = 0.052 BTC
The implied ETH/BTC rate from the USDC pairs is 3,000/60,000 = 0.05 BTC. But the direct ETH/BTC rate is 0.052 BTC. This discrepancy enables triangular arbitrage:
- Start with $30,000 USDC
- Buy 10 ETH ($30,000 / $3,000 per ETH)
- Sell 10 ETH for 0.52 BTC (10 × 0.052)
- Sell 0.52 BTC for $31,200 (0.52 × $60,000)
- Profit: $1,200 minus fees
The key insight is that prices across pairs should maintain mathematical consistency. When they drift apart, arbitrageurs restore equilibrium by cycling through the mispriced triangle.
In DeFi, triangular arbitrage happens constantly across AMM pools. Bots monitor all pair relationships and execute cycles whenever profitable opportunities emerge. This activity helps keep DEX prices aligned with each other and with external markets.
Practical Example
On Uniswap, you notice the following pool prices:
- ETH/USDC pool: 1 ETH = 3,000 USDC
- WBTC/USDC pool: 1 WBTC = 58,000 USDC
- ETH/WBTC pool: 1 ETH = 0.054 WBTC
Checking the math: 0.054 WBTC × 58,000 = 3,132 USDC implied ETH price. But ETH/USDC directly quotes 3,000. An opportunity exists.
You execute via flash loan:
- Borrow 100,000 USDC
- Buy 33.33 ETH in ETH/USDC pool
- Sell 33.33 ETH for 1.8 WBTC in ETH/WBTC pool
- Sell 1.8 WBTC for 104,400 USDC in WBTC/USDC pool
- Repay 100,000 USDC plus fee
- Profit: ~$4,300 minus gas
In practice, slippage on each trade reduces profit, and competition from other bots might capture the opportunity first.
Why it Matters
Triangular arbitrage is essential for DeFi market integrity. It keeps prices consistent across all trading pairs, ensuring users get fair rates regardless of which pair they trade. Without triangular arbitrageurs, significant pricing inconsistencies would persist.
For traders, understanding triangular relationships helps identify mispricing. Even if you cannot execute the arbitrage yourself, recognizing when pairs are out of alignment provides trading edge. The direction of the arbitrage trade tells you which asset is underpriced.
The existence of triangular arbitrage also explains some AMM behaviors. When you make a large swap, the resulting price change creates triangular opportunities that other traders will exploit, partially reversing your impact. This dynamic is part of how AMMs maintain price discovery.
Fensory monitors cross-pair pricing relationships across DeFi protocols, helping you understand market efficiency and identify when triangular mispricings might affect your trading.