Quick answer
MEV (Maximal Extractable Value) is profit that validators or block builders can extract by controlling the ordering, inclusion, or exclusion of transactions in a block. Common MEV strategies include frontrunning (copying a pending swap and submitting it with a higher gas fee to execute first), sandwich attacks (buying before and selling after a large trade to profit from the price impact), and DEX arbitrage (capturing price differences between pools). MEV bots extracted over $1 billion from Ethereum users in 2023-2024 alone.
What MEV is and why it exists
Before a transaction is confirmed on Ethereum, it sits in the public mempool — a waiting room of pending transactions visible to anyone. This transparency creates an opportunity: if you can see that someone is about to execute a large trade that will move the price, you can profit by acting first.
Originally called 'Miner Extractable Value', MEV was renamed 'Maximal Extractable Value' after Ethereum's transition to proof-of-stake. The 'extractable' value is any profit a block producer (formerly miner, now validator) can capture by deciding which transactions to include and in what order — beyond just collecting gas fees.
MEV is an intrinsic property of blockchains with a public mempool and transparent state. It cannot be entirely eliminated, only redistributed or reduced through protocol design.
The main types of MEV
MEV is extracted through several distinct strategies. Each exploits a different aspect of blockchain transaction ordering and DeFi protocol mechanics.
- Sandwich attacks
- The most common MEV affecting regular users. A bot detects your pending swap, buys the same token before your trade (frontrun), lets your trade execute (moving the price), then sells immediately after (backrun). You receive a worse price; the bot profits from the spread. Large swaps with high slippage tolerance are most vulnerable.
- Frontrunning
- A bot copies your transaction and submits it with a higher gas fee, ensuring it executes first. Used to capture arbitrage opportunities you've spotted, or to buy an NFT before you.
- Backrunning
- A bot submits a transaction immediately after a known trade to capture a resulting arbitrage opportunity — for example, arbitraging the price discrepancy created by your large swap.
- DEX arbitrage
- Bots continuously monitor price discrepancies between DEX pools and execute atomic arbitrage to profit — buying cheap on one pool, selling expensive on another in a single transaction. This is generally considered 'good MEV' as it improves price efficiency.
- Liquidation MEV
- When a lending protocol position becomes eligible for liquidation, multiple bots race to execute it and capture the liquidation bonus (typically 5-10%). The bot that pays the highest gas fee wins.
How Flashbots changed MEV
Flashbots is a research and development organisation that built MEV-Boost — infrastructure that separates block building from block validation on Ethereum. Instead of bots paying high gas fees to miners/validators in a chaotic gas war (which congested the network), MEV-Boost allows specialised 'block builders' to construct optimal blocks and offer them to validators via sealed-bid auctions.
MEV-Boost has dramatically reduced gas price volatility from MEV activity and made MEV extraction more efficient. It has also enabled MEV democratisation — MEV profits flow to validators (who pass a portion to ETH stakers), rather than purely to bot operators. As of 2026, the majority of Ethereum blocks are built using MEV-Boost.
How to protect yourself from MEV
For DeFi users, the most practical MEV protection comes from private transaction routing and slippage management. Sending transactions through private mempools means your transaction isn't visible to MEV bots before it's included in a block.
- Use MEV-protected RPC endpoints: Flashbots Protect (protect.flashbots.net) routes your transactions privately
- Set a tight slippage tolerance (0.1–0.5%) on swaps — sandwichers target transactions with high slippage tolerance
- Use a DEX aggregator with MEV protection built in (1inch Fusion, CoW Protocol) — these use off-chain solvers to protect against frontrunning
- For large trades, consider splitting into multiple smaller swaps across different blocks
- CoW Protocol (Coincidence of Wants) matches buyers and sellers off-chain before settling on-chain, largely eliminating sandwich attack exposure
MEV and the future of Ethereum
MEV is an active area of research in Ethereum's roadmap. Proposals like encrypted mempools (where transaction content is hidden until inclusion), attester-proposer separation (APS), and inclusion lists aim to reduce the centralising influence of MEV on block building.
The concern is that MEV rewards attract professional block-building operations with sophisticated infrastructure, potentially leading to a small number of entities building the majority of Ethereum blocks — a form of centralisation that undermines Ethereum's decentralisation goals. The Ethereum Foundation and researchers are actively working on protocol-level solutions.
Frequently asked questions
How much MEV is extracted on Ethereum?
According to EigenPhi and Flashbots data, cumulative MEV extracted on Ethereum exceeded $2 billion by 2025, with hundreds of millions extracted annually in sandwich attacks, arbitrage, and liquidations. The actual total is likely higher, as not all MEV is tracked by public dashboards. MEV extraction accelerates during high-volume market events.
Is MEV legal?
MEV extraction is not illegal — it exploits publicly visible information (the mempool) and the mechanics of how blockchains order transactions. However, sandwich attacks are widely considered unethical as they directly harm regular users. There are no legal prohibitions on MEV strategies in most jurisdictions as of 2026, though regulatory treatment may evolve as crypto regulation develops.
Can MEV happen on chains other than Ethereum?
Yes. MEV exists on any blockchain with a public mempool and DEX activity — Solana, BNB Chain, Arbitrum, Base, Avalanche all have active MEV ecosystems. The specific strategies differ based on each chain's transaction ordering mechanism. Solana's parallel transaction execution and Gulf Stream protocol change the MEV landscape compared to Ethereum, but bots still actively extract MEV on Solana DEXes.
What is a sandwich attack and how do I avoid it?
In a sandwich attack, a bot spots your pending swap, buys the token before your trade (frontrun — pushing the price up), lets your trade execute at the worse price, then immediately sells (backrun — pocketing the price impact you caused). To avoid them: use MEV-protected RPC endpoints like Flashbots Protect, set tight slippage tolerance (0.3% or less), or use CoW Protocol which settles trades off-chain before on-chain settlement.
What is the difference between MEV and gas fees?
Gas fees are paid by every user for every transaction — they compensate validators for including your transaction in a block. MEV is additional profit extracted by block builders/validators through strategic transaction ordering, on top of gas fees. In high-MEV periods, MEV revenue can exceed gas fee revenue for validators. MEV is not paid by users directly but extracted by worsening the prices users receive on their trades.