MEV Explained
Understand Maximal Extractable Value — how bots exploit your transactions on decentralized exchanges, and what you can do to protect yourself.
The basics
Why Your DEX Trade Gets a Worse Price
When you submit a swap on a decentralized exchange like Uniswap, your transaction doesn't execute immediately — it first enters a waiting area called the 'mempool' where it's visible to everyone. Specialized bots constantly scan this mempool looking for profitable opportunities. The most common attack is a 'sandwich attack': a bot sees your pending swap, places its own buy order BEFORE yours (pushing the price up), lets your trade execute at the worse price, then immediately sells AFTER yours at the inflated price. You get a worse deal; the bot pockets the difference. This entire process — extracting value from the ordering of transactions — is called Maximal Extractable Value (MEV).
How Much Does MEV Cost?
By one estimate (MEV Blocker's own undated figures), MEV bots have extracted more than $1.43 billion from Ethereum users, and the true figure depends on how MEV is measured. Most users don't even realize they're being attacked — the loss shows up as slightly worse swap execution (more slippage than expected). Larger trades and trades on low-liquidity tokens are most vulnerable. The good news: there are free, easy tools to protect yourself.
Simple Protection
Use Flashbots Protect (free RPC endpoint) or CowSwap for your DEX trades. Both bypass the public mempool where sandwich bots operate. This single change can reduce your exposure to sandwich attacks.
Key Takeaways
- MEV bots watch the mempool and exploit your pending transactions
- Sandwich attacks place trades before and after yours to profit from price impact
- MEV bots have extracted over $1 billion from Ethereum users by one estimate
- Use Flashbots Protect or CowSwap to bypass the public mempool
- Set tight slippage tolerance (0.5-1%) to limit how much bots can extract
Going deeper
Types of MEV Extraction
- Sandwich Attacks: Bot front-runs and back-runs your swap, profiting from the price impact you cause
- Arbitrage: Bots detect price differences between DEX pools and equalize them — this is actually beneficial (improves market efficiency)
- Liquidations: Bots race to liquidate undercollateralized positions on lending protocols, earning liquidation bonuses
- Just-In-Time (JIT) Liquidity: Bots provide concentrated liquidity microseconds before a large swap and remove it immediately after, capturing fees
- Backrunning: Placing a transaction immediately after a price-moving event (like a large trade or oracle update) to capture the resulting arbitrage
How the Mempool Works
When you submit a transaction, it enters the mempool — a pool of pending transactions waiting to be included in the next block. Transactions with higher gas tips get processed first. MEV bots monitor this mempool continuously, simulating the effect of every pending transaction to find profitable extraction opportunities. They then submit their own transactions with precisely calibrated gas tips to ensure correct ordering. This entire process happens in the ~12 seconds between Ethereum blocks.
Protection Strategies
- Flashbots Protect: Free RPC that sends your transaction directly to block builders, bypassing the public mempool entirely
- CowSwap: Intent-based DEX that batch-auctions trades, matching them peer-to-peer when possible and eliminating sandwich opportunities
- 1inch Fusion: Resolver competition model that fills your order at or above the quoted price
- Private RPCs: Services like MEV Blocker (built by CoW Protocol, Agnostic Relay and Beaver Build; the RPC has since been acquired by Special Mechanisms Group) aggregate multiple builders for strong protection
- Slippage Settings: Set tight tolerance (0.5-1% for major tokens) so sandwich bots can't profitably attack your trade
Key Takeaways
- Sandwich attacks are the MEV type that most directly harms ordinary traders
- Arbitrage MEV is actually beneficial — it improves market efficiency
- The mempool is a transparent waiting room where bots can see your transactions
- Flashbots Protect and CowSwap are the two most effective free protection tools
- Private RPCs bypass the public mempool entirely, eliminating most MEV risk
Under the hood
Block Building and Proposer-Builder Separation
Ethereum's MEV landscape is shaped by Proposer-Builder Separation (PBS) — a system where block proposers (validators) are separate from block builders (specialized entities that assemble the most profitable blocks). Builders compete to create the most valuable block and bid for the right to have their block included. This has created a concentrated block building market where a few dominant builders produce the large majority of MEV-Boost blocks (in November 2026, relayscan.io showed Titan, Quasar and the BuilderNet network building over 80% of them over a 24-hour window). While PBS prevents validators from directly extracting MEV, it centralizes the building market — raising concerns about censorship and single points of failure. Today this runs through MEV-Boost outside the protocol; enshrined PBS (EIP-7732) is planned for the Glamsterdam upgrade, which is still in testing and has no confirmed mainnet date.
MEV on Layer 2s
Layer 2 rollups currently have centralized sequencers (the entity that orders transactions). This means the sequencer has monopoly power over MEV extraction on that L2. Most L2s (Arbitrum, Optimism, Base) still run a single operator-controlled sequencer (Arbitrum's docs call its Sequencer centralised and list decentralised sequencing as a long-term vision). While they claim not to extract MEV, there's no technical guarantee. Shared sequencer networks and based rollups (using L1 for sequencing) are emerging solutions that would decentralize L2 transaction ordering.
MEV-Share and Order Flow Auctions
MEV-Share (by Flashbots) is an order flow auction protocol that lets users recapture a portion of the MEV their transactions generate. When you submit a transaction through MEV-Share, searchers bid for the right to include your transaction in a bundle. The winning bid is partially returned to you — meaning you get paid for the MEV you create, rather than losing it entirely to bots. In practice, this means a portion of the sandwich attack profit or arbitrage your trade enables comes back to your wallet. A competing order flow auction is MEV Blocker, an RPC built by CoW Protocol, Agnostic Relay and Beaver Build (and since acquired by Special Mechanisms Group), which sends your transaction to searchers and builders and rebates backrunning profit to you; its own FAQ says no existing solution gives 100% protection.
Private Mempool Options for Users
- Flashbots Protect (protect.flashbots.net): free RPC endpoint — add to MetaMask as a custom network. Transactions skip the public mempool entirely, going straight to block builders. Prevents front-running and sandwich attacks.
- MEV Blocker (mevblocker.io): built by CoW Protocol, Agnostic Relay and Beaver Build; the RPC has since been acquired by Special Mechanisms Group. Transactions are routed through a private auction where searchers bid to backrun (not front-run) your trade. Rebates MEV to users.
- CowSwap (swap.cow.fi): DEX aggregator that uses batch auctions — trades are matched off-chain, which makes transaction order irrelevant within a batch and undermines MEV bots.
- Flashbots Protect with MEV-Share: combine private submission with MEV redistribution — your transaction is private AND you earn a share of the MEV it generates.
The Future: Encrypted Mempools
The ultimate MEV solution may be encrypted mempools — where transactions are encrypted until after they're ordered in a block, making it impossible for builders or bots to see and exploit pending transactions. Research into threshold encryption, commit-reveal schemes, and delayed decryption is active, and Shutter's threshold-encrypted mempool is already live on Gnosis Chain.
Key Takeaways
- PBS separates block proposing (validators) from block building (specialized firms)
- Block building is highly concentrated — a few builders produce most Ethereum blocks
- MEV-Share lets users recapture a portion of the MEV their transactions generate
- Private RPC endpoints (Flashbots Protect, MEV Blocker) prevent sandwich attacks — free to use
- CowSwap's batch auction model eliminates MEV extraction on matched trades
- L2 sequencers have centralized control over transaction ordering
- Encrypted mempools may eventually eliminate MEV extraction entirely
Related Content
Related Coins
Related Scams
Useful Tools
2026 Trends
More Topics
Browse all 189 topicsLayer 1 vs Layer 2 Explained
Understand the architecture of blockchain scaling — what Layer 1 and Layer 2 networks are, how rollups work, the trade-offs between them, and how to navigate the multi-chain landscape.
How to Use DeFi Safely
A practical guide to using decentralized finance protocols — from your first swap to yield farming strategies — with a focus on security practices, risk management, and avoiding common pitfalls.
Understanding Airdrops
Everything you need to know about crypto airdrops — how they work, why projects distribute free tokens, how to qualify, the strategies farmers use, and how to avoid airdrop-related scams.
Understanding Market Cycles
Learn how cryptocurrency markets move in cycles — from euphoric bull runs to devastating bear markets — and how to navigate them without emotional decision-making.
How to Evaluate a Crypto Project
A practical due diligence framework for evaluating cryptocurrency projects — from team verification to tokenomics analysis to red flag detection.
Understanding NFTs In-Depth
A comprehensive guide to non-fungible tokens — from basic concepts and standards to advanced use cases, valuation, and the future of digital ownership.
Hardware Wallets & Cold Storage
Everything you need to know about hardware wallets — choosing the right device, secure setup, and seed phrase management for maximum protection.
Understanding Oracles & Data Feeds
Learn how blockchains get real-world data — the oracle problem, oracle networks, and why oracles are critical infrastructure for DeFi.
References & further reading
- primary
- secondary
- primaryethereum.org - Glamsterdam upgrade
Status of enshrined PBS (ePBS) in the next upgrade.
- secondaryMEV Blocker - Everyday protection from harmful MEV
Operator, acquisition notice and protection limits.
- contextFlashbots - relayscan.io MEV-Boost relay and builder stats
Live builder and relay shares.