learn.howToCalculate
learn.whatIsHeading
The MEV Loss Calculator estimates how much value you have lost to Maximal Extractable Value attacks — primarily sandwich attacks and front-running on DEX swaps — where bots extract profit by manipulating your transaction execution price.
Formula
- TS
- Trade Size ($) — Dollar value of the DEX swap transaction
- ST
- Slippage Tolerance (%) — Maximum acceptable price deviation set by user
- ML
- MEV Extracted ($) — Value extracted by MEV bots from the transaction
- FP
- Fair Price ($) — Mid-market price without MEV manipulation
Guida passo passo
- 1Enter your DEX swap details: token pair, trade size, and slippage tolerance setting
- 2The calculator estimates typical MEV extraction based on your trade size and slippage
- 3Compare your executed price to the mid-market price at the time of your transaction
- 4Calculate cumulative MEV losses across all your historical DeFi transactions
Esempi risolti
Errori comuni da evitare
- ✕Setting slippage tolerance too high, giving MEV bots more room to extract value
- ✕Not using MEV protection tools like Flashbots Protect or private mempools
- ✕Executing large trades on-chain instead of using aggregators with MEV protection
Domande frequenti
What is a sandwich attack?
A sandwich attack is when an MEV bot detects your pending swap in the mempool, front-runs it with a buy (raising the price), lets your trade execute at the worse price, then back-runs with a sell to pocket the difference. You get a worse execution price.
How can I protect myself from MEV?
Use Flashbots Protect RPC (sends transactions directly to block builders, bypassing the public mempool), use DEX aggregators with MEV protection (CoW Swap, 1inch Fusion), or set tight slippage tolerances.
Pronto per calcolare? Prova la calcolatrice gratuita di MEV Loss
Provalo tu stesso →