Learn · Execution

Slippage vs price impact: what's the difference?

Slippage and price impact are the two terms traders confuse most, and the confusion costs money. They sound similar and both affect the output of a swap, but they come from completely different sources and have completely different fixes. Getting them straight is one of the highest-return pieces of knowledge in DeFi: it tells you when to adjust a setting, when to shrink a trade, and when a poor quote is your own size talking. This article draws the line clearly and shows how the two interact on a real swap.

Price impact: caused by you

Price impact is the price movement your own trade creates by shifting the pool's token ratio. It is deterministic and depends only on your trade size relative to pool depth — it would exist even if you were the only trader in the world. Buy a large fraction of a pool and the price climbs as you go; that gap between the starting price and your average fill is price impact. The fix is structural: trade less per transaction, use a deeper pool, or split across venues.

Slippage: caused by everyone else

Slippage tolerance is the buffer you set for price movement between the moment you sign and the moment the transaction confirms. In that window, other people's trades change the pool, and your realized price can drift from the quote. Slippage tolerance is the maximum drift you will accept before the contract reverts to protect you. It is not caused by your size; it is caused by the time delay and the activity of others.

Why the distinction matters

Because the fixes are opposite. If a quote shows high price impact, raising slippage does nothing useful — it just lets the bad fill through. The right response is a smaller trade. If a trade keeps failing on a volatile but deep pair, that is a slippage problem, and nudging tolerance up slightly is the right response. Misdiagnosing one as the other leads people to widen slippage on thin pools, which is exactly how they get sandwiched.

How they interact on a real swap

On a large trade in a thin pool, you face both at once: heavy price impact from your size, plus exposure to slippage during confirmation. The combination can be brutal. The disciplined play is to reduce size until price impact is acceptable, then set slippage just wide enough to confirm reliably. Tackling the two separately — size for impact, tolerance for drift — produces far better fills than fiddling with a single number.

Legal

Risk disclosure

XAUConnect is a non-custodial swap aggregator. Digital assets are volatile and may lose value rapidly. Content on this page is educational and not investment advice. Verify every contract address on the official block explorer before approving a transaction.

Frequently asked questions

Is slippage the same as price impact?

No. Price impact comes from your own trade size against pool depth; slippage tolerance is your buffer against other traders' activity between signing and confirmation.

When should I lower my trade size instead of raising slippage?

Whenever the quote shows high price impact. That is a size-versus-depth problem; raising slippage only permits the poor fill rather than improving it.

When is adjusting slippage the right move?

When a trade on a deep but volatile pair keeps failing. Nudge tolerance up slightly so the contract does not revert on normal price drift.

Why is widening slippage on a thin pool dangerous?

It signals how much room a sandwich attacker has and lets a high-impact fill go through. Shrink the trade instead.

Live execution

Trade on XAUConnect

Open the swap page to compare live routes, set slippage, and sign from your own wallet — fully non-custodial.

Continue exploring

Related markets, guides & networks

Curated next steps based on this topic — deepen your research before you trade.

Build programmatically

Swap via API for bots and AI agents — quotes, builds, and cross-chain routes.

Developer quickstart