DEX Slippage Tolerance & Price Impact Calculator
Calculate price impact percentage, minimum received tokens, and sandwich MEV vulnerability on Uniswap constant product liquidity pools.
Parameters & Inversions
Deterministic EngineCalculated Output Metrics
Analytical Proof & Invariants
Machine PrecisionPrice Impact (%) โ Trade Size / (2 ยท Pool Reserves) | Min Received = Quoted Amount ยท (1 - Slippage % / 100)
Step-by-Step Mathematical Derivation
In x ยท y = k pools, trading ฮx shifts the spot price. Price Impact = ฮx / (x + ฮx) = $25,000 / ($500,000 + $25,000) = 4.76%.
With 0.5% slippage tolerance, the transaction reverts if executed price drops more than 0.5% below the simulated quote.
Setting a high slippage tolerance (e.g. 2%+) on a large order allows MEV searchers to front-run and back-run your swap, extracting the entire slippage tolerance as risk-free profit.
Artificial Intelligence & Prompt Integration
Paste this verified mathematical prompt directly into ChatGPT, Claude, or Gemini to eliminate arithmetic hallucination, or invoke the programmatic API endpoint for automated workflows.
Generating verified mathematical prompt...
llms.txt
โ Exact Radical Form & Closed Formulas
โ Machine-Readable Edge API