Triangular arbitrage in crypto: how the loop works, a worked example and when it pays
Triangular arbitrage is a loop of three conversions on one exchange that brings you back to the coin you started with — and, if the cross rates are out of line, with a little more of it. For example: USDT → BTC → ETH → USDT. No second exchange, no transfers, no price direction to guess: the profit comes only from three rates that do not quite agree with each other.
It sounds like free money, and that is exactly why it is one of the most competitive corners of crypto. Below: how the loop works, the formula for when it pays, where the gap goes, why it almost never works by hand and where arbitrage is more realistic.
How triangular arbitrage works
Every exchange quotes coins against each other: BTC in USDT, ETH in USDT and ETH in BTC. These three rates are linked: buying ETH through BTC should cost the same as buying it directly. When it does not, there is a triangle to close.
- 1,000 USDT → BTC at 64,000: you get 0.015625 BTC.
- 0.015625 BTC → ETH at 0.0520 BTC per ETH: you get 0.30048 ETH.
- 0.30048 ETH → USDT at 3,340: you get back 1,003.6 USDT.
Through BTC, ether «costs» 64,000 × 0.052 = $3,328, while the direct ETH/USDT market pays $3,340. That 0.36% difference is the whole opportunity. If the gap points the other way, you run the loop backwards: USDT → ETH → BTC → USDT.
The formula: when does the loop pay?
Compare the direct rate with the cross rate through the middle coin:
Gap = ETH/USDT ÷ (BTC/USDT × ETH/BTC) − 1
Every conversion costs the exchange fee (and some slippage), and there are three of them. So the loop pays only when
Amount × (1 + Gap) × (1 − Fee)³ > Amount → Gap ≳ 3 × Fee
With the common 0.1% spot fee, the gap has to be larger than about 0.3%; with a 0.075% discounted fee — about 0.225%. Try your own numbers, in both directions:
Triangular Arbitrage CalculatorThree rates on one exchange — does a USDT → BTC → ETH → USDT loop pay after fees→Where the gap goes
Of the 0.36% gap from the example, three fees of 0.1% take 0.30%, leaving 0.06% — $0.60 on $1,000. Now add reality: market orders rarely fill exactly at the quoted price. Just 0.03% of slippage on each of the three trades takes 0.09% more, and the «sure» loop ends at −0.03%. That is the main lesson of triangular arbitrage: the gap you see is not the gap you get.
Why it almost never works by hand
- Speed. Market makers and arbitrage bots watch every cross rate of an exchange and close a profitable triangle with the first orders — usually within a fraction of a second. A person clicking through three trades needs seconds.
- The rates move between legs. The loop is only profitable at the prices of the moment. After the first conversion you are holding BTC, and if the other two rates have shifted, you finish the loop at a loss or stay in a coin you did not want.
- Order book depth. The best price covers only the first few orders. On a thin cross pair like ETH/BTC on a small exchange, your size eats into worse prices.
- Minimums and rounding. Each pair has a minimum order and a step size. Leftover «dust» after three conversions is a small but real cost.
Triangular arbitrage bots: what they really need
Professionals do triangular arbitrage only with software. A working bot needs:
- Live order books for all pairs via WebSocket, not price snapshots every few seconds.
- Loop search across hundreds of pairs: not one USDT–BTC–ETH triangle but every combination, recalculated on every book update.
- Low latency: a server close to the exchange's matching engine, and orders sent in parallel where the exchange allows it.
- Low fees: VIP tiers, fee-token discounts or maker orders — at 0.1% per trade most loops never pay.
- Risk controls: what to do if one leg fills and the next one fails, API rate limits, maximum position per coin.
Open-source triangular arbitrage bots exist, and testing one on small amounts is a good way to learn. Be very careful with bots sold with «guaranteed daily profit» — that is a classic scheme, explained in our article on crypto arbitrage scams.
On decentralised exchanges, the same idea runs between liquidity pools in one transaction. There it competes with MEV bots and pays gas, so it is a field for developers rather than traders.
Triangular vs cross-exchange arbitrage
For most traders, the realistic version of arbitrage is not inside one exchange but between exchanges: the same coin's perpetual futures trade at different prices on Binance, Bybit, OKX and others, and those gaps last seconds to minutes. You go long where it is cheaper and short where it is more expensive, so price moves are hedged. The live arbitrage opportunities page shows the largest of these gaps right now, and our guide how to do crypto arbitrage from your phone walks through a real trade. All types of arbitrage are compared in types of crypto arbitrage.
FAQ
Is triangular arbitrage legal?
Can you do triangular arbitrage manually?
How much can you make with triangular arbitrage?
Is triangular arbitrage risk-free?
Which exchanges are used for triangular arbitrage?
This material is for education only and is not financial advice. Trading crypto and leveraged futures carries a high risk of losing money; past results do not guarantee future returns.