Earlier, we covered how to pair the two sides: the same coin, one trade on a CEX (or Pool A), one on a DEX (or Pool B), in opposite directions, with roughly similar amounts. This article focuses on one question: why can a CEX and a DEX (or two pools) temporarily have different prices, and where does that gap come from?
1. What’s the principle?
When asking “where does the gap come from?” on-chain or in a DEX, you don’t have to guess which way prices will move. Just remember this:
CEXs and DEXs (or two pools) each have their own pricing system: one typically matches orders through an order book, while the other typically quotes prices based on a formula or routing through a pool. The traders, liquidity depth, and update mechanisms differ, so the same coin can be priced differently in the short term. That discrepancy is the price gap we’re talking about here.
You can break it down into roughly three steps:
1) Each side has its own pricing system
CEXs match buy and sell orders; DEX prices commonly depend on the asset ratio in a pool, the fee tier, and the route taken. With pool-to-pool trading, there are also two pools and two routes. The figures shown on each side don’t have to match at every moment.
2) Traders entering and exiting have different goals too
Some people trade only on a CEX, some swap tokens in a particular pool, some provide liquidity, and some move to capture the gap between the two sides. At any given moment, one side may be more eager to buy or sell than the other, so prices can diverge.
3) The gap can appear, and it can change
A pool on one side gets thinner, the route changes, on-chain confirmation takes a little longer, or funds are still being deposited, withdrawn, or bridged—the gap between the two sides can widen, then quickly narrow again. Simply put:
The gap comes from the two sides being temporarily out of sync, and it can widen or narrow on its own.
You can just remember this one sentence:
On-chain / DEX price gap ≈ a temporary mismatch between CEX and DEX (or two pools); it’s more like two liquidity systems temporarily drifting apart than a gap predicted by guessing which way prices will move.
II. An example
The figures are for illustration only. Suppose it’s the same coin:
• CEX: about 100
• DEX pool: about 103
• The difference is about 3
This difference of 3 is usually due to how each side prices the asset: the pool ratio may have shifted, or the route may be more expensive, while the CEX order book is still around 100. That’s how the gap appears.
A little later, the CEX is around 101 and the DEX around 102, so the gap has narrowed to 1. This is usually because the two sides have moved somewhat closer together again. How the gap evolves from there is a separate question.
III. What are the two sides?
Here, “the two sides” still means CEX and DEX (or Pool A and Pool B). This article is more concerned with why they diverge:
• On the CEX side: order book depth, the pace of orders, and who’s trading; prices are determined by order matching.
• On the DEX side: pool ratios, fee tiers, and routing paths; prices are often determined by formulas and routes.
So when comparing them, you can focus less on “which coin will go up tomorrow” and take a closer look at how far apart the two sides are at the same moment, and whether they later diverge further or move closer together.
You can think of it this way compared with cross-exchange trading:
• Cross-exchange: usually the order books on two CEXs don’t line up;
• On-chain / DEX: often an order book and a pool (or two pools) don’t line up, with the added factors of on-chain updates and route changes.
IV. Profitability
This article focuses on where the gap comes from. Here are just a few points to remember about making money:
1) First there’s a gap; then there’s often a “change in the spread” to track
If the two sides stay very close together, even if you’re positioned on both sides, there often won’t be much change in the spread afterward.
2) Once you’re positioned on both sides, it’s more common to watch how the gap changes
Once you’re positioned on both sides, the things to watch are usually how large the gap was to begin with, and whether it later narrows, widens, or barely moves. The price moves themselves tend to be less prominent.
3) A gap has appeared, but how much is left after costs is another question
CEX / DEX fees, slippage, Gas, and bridging / deposits and withdrawals are all calculated separately. A gap usually means the two sides are temporarily out of sync; how much remains after costs is a separate matter.
V. Risks
Common pitfalls related to “where the gap comes from” include the following.
The gap shown on screen may not be a gap you can lock in
A CEX price and a DEX price appear on screen, and the difference looks great when you subtract one from the other—but you may not be able to trade on both sides at those prices. Subtracting a displayed price, a simulated price, and a pool’s mid-price as if they were the same can make the paper gap look larger than it really is.
The gap can change on its own
It can suddenly widen or narrow
Sentiment picks up, a pool gets thinner, or a route changes, and the gap can shift quickly. Before you’ve completed both sides of the trade, the paper gap may already look completely different.
The two sides don’t update in sync
The CEX price has already moved, while the on-chain pool or route is still in its previous state. By the time you act, the gap shown in the screenshot may no longer be there. On-chain, this kind of “apparent gap” is common.
The gap can change while funds are being deposited, withdrawn, or moved on-chain
Your funds or coins are still in transit: one side completes first, while the other is still waiting for confirmation. The price gap may have shifted in the meantime—the paper gap and the one you actually end up with often aren’t from the same moment.
The comparison isn’t like for like
The assets on the two sides may not match, or the units or routing paths may not line up. It can look like a large gap, when in fact you’re often not comparing the same pair.
Simply put, the on-chain / DEX gap usually arises when CEX and DEX (or two pools) are temporarily out of sync. Once you have a clearer idea of where the gap comes from, it’s easier to look at what remains after costs and at common false signals.
This article is for educational purposes only, does not constitute investment advice, and does not recommend any specific trading combinations.


