Slippage
Slippage is the difference between a reference or expected trade price and the price at which the trade actually settles.
Category: TradingOpposed arrows category cue
System record
Start with the economic purpose, participants, resources, and entitlements before studying implementation detail.
Why it exists
Slippage measures execution uncertainty created by changing markets, routing, transaction delay, partial fills, ordering, and available liquidity.
Traditional-finance analogy
Implementation shortfall is the closest comparison recorded for this concept.
Where the analogy stops
- On-chain slippage can include deterministic curve movement and adversarial transaction ordering in addition to ordinary market movement.
- A slippage-tolerance control is an execution bound that may cause a revert or partial fill; it is not a prediction of the final price.
Main actors
- ActorTrader
- ActorCounterparty, pool, maker, or solver
- ActorRouter or settlement contract
- ActorArbitrageur or transaction-ordering actor
Assets and claims
Assets — controlled or transformed resources
Assets are resources the mechanism moves, holds, values, or transforms.
- AssetQuoted input and output amounts
- AssetSettled input and output amounts
Claims — entitlements and corresponding dependencies
Claims are rights to value, repayment, redemption, control, or another party's performance; each depends on an obligation or system that must honor it.
The structured entry records no separate entitlement or liability for this concept.
Slippage compares an expected or reference trade price with the price that actually settles.
Why it exists
Section titled “Why it exists”Quotes become stale, markets move, routes change, orders consume liquidity, and transactions wait for inclusion. Slippage measures the resulting execution difference. It is not one universal number until the reference, direction, amount, fees, route, and time are specified.
Traditional-finance analogy
Section titled “Traditional-finance analogy”Implementation shortfall is a useful analogy. On-chain trading adds public pending transactions, adversarial ordering, deterministic curve movement, gas, reverts, and atomic or solver-based settlement. A tolerance field is a contract bound, not the realized metric itself.
Slippage versus related costs
Section titled “Slippage versus related costs”| Quantity | What it isolates | Example cause |
|---|---|---|
| Price impact | Movement caused by the order against venue depth | Consuming a pool curve or order book |
| Market movement | Price change while execution is pending | New information or other trades |
| Ordering effect | Change caused by transaction placement | Front-running or sandwiching |
| Trading fee | Explicit amount charged by the venue | Pool, protocol, router, or solver fee |
| Gas | Blockchain execution and inclusion cost | Transaction computation and ordering |
| Realized slippage | Reference-to-settlement difference under a stated convention | May combine several rows above |
Do not add all rows blindly: a quoted output may already include price impact and fees. Define the quote convention before decomposing the difference.
Measurement
Section titled “Measurement”One signed convention is:
slippageFraction = (executionPrice - referencePrice) / referencePriceBoth prices must quote the same asset direction, such as USDC per ETH. Under that convention a higher execution price is worse for an ETH buyer but better for an ETH seller. A cost-positive implementation should condition on trade direction or compare actual and reference output for a fixed input. The fraction is unitless; multiply by 100 only when labelling a percentage.
Step-by-step slippage measurement
Section titled “Step-by-step slippage measurement”- Declare the traded amount, asset direction, route, reference price, quote convention, and observation time.
- Obtain an executable quote and identify whether it already includes price impact and venue fees.
- Authorize a minimum output, maximum input, deadline, or equivalent execution boundary.
- Observe the amounts and costs that actually settle, or record that the trade reverted or remained unfilled.
- Compare settlement with the reference using one consistent price direction and percentage convention.
- Attribute price impact, market movement, ordering, fees, gas, and route changes without double counting.
State, bounds, and flows
Section titled “State, bounds, and flows”For exact input, the trader normally authorizes a minimum output. For exact output, the trader authorizes a maximum input. A deadline limits quote age. These controls turn excessive slippage into a revert or unfilled order, subject to the venue’s partial-fill and refund rules.
| Outcome | Asset state | Order or refund claim | Immediate cost bearer |
|---|---|---|---|
| Settled within bound | Actual input and output become final | Atomic order ends | Trader bears execution difference |
| Atomic bound exceeded | Asset transfer reverts | No persistent spot-order claim remains | Trader can still bear gas and delay |
| Partial fill | Only filled amounts settle | Remainder persists, expires, or refunds | Depends on venue and order terms |
| Deadline expired | No new trade assets settle | Order expires or refund remains due | Trader bears opportunity cost and gas |
Capital flow is actual input, output, fee, and gas. Information flow includes the reference quote, route, timestamp or block, and price source. Claim flow can leave an open order, refund, or partial-fill entitlement when settlement is not fully atomic. Return flow is absent from slippage itself; any counterparty, arbitrage, or strategy gain must be traced separately. Risk flow reaches the trader when the authorized bound is too loose or the trade fails when it is too tight. Makers and LPs can bear the opposite inventory effect.
Return source and loss allocation
Section titled “Return source and loss allocation”Slippage is normally a trading cost relative to the chosen reference, not a new asset. The counterparty, arbitrageur, LP, solver, or later market move may capture the other side, but no single recipient is guaranteed. Failed execution still can impose gas and opportunity cost.
Engineer or auditor lens
Section titled “Engineer or auditor lens”Test price inversion, token decimals, fee inclusion, exact-input/output rounding, stale quotes, changed routes, partial fills, minimum output, maximum input, deadlines, refunds, fee-on-transfer tokens, and front-running scenarios. User interfaces should not label price impact, fee, and slippage as the same value.
Uniswap v2’s pricing documentation provides one implementation-specific example of amount bounds and price safety. Its mechanics do not define every order book, RFQ, auction, or solver system. The documentation was reviewed 2026-08-10.
Common misunderstandings
Section titled “Common misunderstandings”- “Slippage tolerance predicts slippage.” It specifies an execution boundary.
- “All slippage is price impact.” Market movement, ordering, routing, and quote conventions also matter.
- “Zero slippage means a free trade.” Fees, gas, spread, and opportunity cost can remain.
Compare the narrower price-impact measure.
Machine-readable model
Key equations
Canonical expressions come from the structured concept record. KaTeX renders the notation, while the plain-text expression and variable table keep its meaning and units inspectable without JavaScript. Read the narrative above for the model's domain, assumptions, and rounding rules.
Equation 1 Plain-text equation:
slippageFraction = (executionPrice - referencePrice) / referencePriceVariables and units for equation 1 Symbol Meaning Unit slippageFractionSlippage Fraction dimensionless fraction (1 = 100%) executionPriceExecution Price quote-asset units per base-asset unit referencePriceReference Price quote-asset units per base-asset unit
Assurance contract
Security properties
These structured statements define desired behavior. Their stable IDs can bind tests, invariants, specifications, audit findings, or proof results without turning descriptive review advice into an assurance claim.
Desired · not evaluated: No test, audit, or proof result is implied until scoped evidence is linked to this property.
The reference and execution prices use the same asset direction, units, and fee convention
Exact-input settlement enforces minimum output and exact-output settlement enforces maximum input
Expiry and partial-fill behavior match the user-authorized order model
User interfaces distinguish estimated slippage, realized slippage, price impact, fees, and gas
Knowledge check
Quiz
Answer in your own words, then open the model answer.
What problem does Slippage exist to address?
Model answer
Slippage measures execution uncertainty created by changing markets, routing, transaction delay, partial fills, ordering, and available liquidity.