MEV (Maximal Extractable Value)
Maximal Extractable Value (MEV), formerly called 'Miner Extractable Value,' refers to the maximum value that can be extracted from manipulating the ordering, inclusion, or exclusion of transactions within a block during block production on a blockchain network, beyond standard block rewards and transaction fees. MEV arises from the block producer's ability to arbitrarily reorder or insert transactions.
Key takeaways
- MEV is extracted through strategies including front-running (inserting a transaction ahead of a known profitable transaction), back-running (inserting immediately after), sandwich attacks (surrounding a target transaction), and liquidation arbitrage.
- Cumulative MEV on Ethereum has exceeded $1 billion since the tracking of these activities began, according to Flashbots' MEV-Explore dashboard.
- MEV creates a 'dark forest' environment where mempool transactions (pending, not yet included in a block) are visible to sophisticated searchers who race to exploit them.
- Flashbots, MEV-Boost, and related solutions attempt to democratize MEV extraction by creating transparent auction mechanisms for block space, reducing the social costs of competitive MEV extraction.
- MEV represents a hidden tax on ordinary DeFi users and is a key challenge for blockchain protocol designers seeking to create fair and efficient financial infrastructure.
Explanation
Maximal Extractable Value is one of the most consequential and economically complex phenomena in decentralized finance (DeFi) and blockchain systems. MEV arises because the actors who produce blocks — miners under proof-of-work, validators under proof-of-stake — have discretion over which transactions to include in each block and in what order. This discretion creates an opportunity to extract value by strategically ordering transactions to capture profitable arbitrage, front-run trades, or liquidate undercollateralized positions before ordinary users.
The origins of MEV were documented in the influential 2019 paper 'Flash Boys 2.0' by Daian et al., which revealed that sophisticated bots were systematically exploiting transaction ordering on Ethereum to extract value from ordinary users. The paper drew a deliberate parallel to the high-frequency trading front-running documented by Michael Lewis in 'Flash Boys' (2014), but noted that blockchain-based MEV is structurally different — it is enforced by the protocol itself rather than merely exploiting market structure advantages.
MEV extraction takes several forms. Arbitrage MEV involves identifying price discrepancies between decentralized exchanges (e.g., Uniswap and SushiSwap) and inserting a transaction to capture the spread — a value-neutral form of MEV that actually improves price efficiency across venues. Liquidation MEV involves monitoring for undercollateralized loans in protocols like Aave or Compound and racing to be the first to trigger the liquidation, earning the liquidation bonus. Front-running and sandwich attacks are more predatory: when a searcher sees a large pending swap that will move the price, they insert a buy transaction ahead of it (profiting from the anticipated price increase), let the victim's transaction execute (further moving the price), and then sell into the victim's elevated price.
The MEV ecosystem has evolved rapidly from purely competitive extraction to more structured mechanisms. Flashbots created a sealed-bid auction system (MEV-Boost post-Merge) in which searchers privately submit transaction bundles to block proposers, who select the highest-value bundles. This reduces the network congestion and gas price wars associated with open mempool competition while creating a more transparent, competitive market for MEV. However, MEV-Boost has also created centralization concerns, as a small number of sophisticated builders now construct the majority of Ethereum blocks.
Formula
MEV = Σ (Value Extracted from Transaction Reordering) − Gas Costs
Example
A DeFi user submits a transaction to swap $500,000 of ETH for USDC on Uniswap v3. The transaction is visible in the public mempool. A MEV searcher's bot detects the transaction and calculates that it will move the ETH/USDC price by approximately 0.5%. The bot submits a sandwich attack: it first buys ETH (front-run), then the user's swap executes (raising the price further), and finally the bot sells ETH (back-run) into the liquidity the user's transaction created. The user receives approximately $1,250 less USDC than they would have without the attack. The searcher profits by approximately $800 after gas costs.
Related terms
Arbitrage Blockchain Cryptocurrency Ethereum Front Running High Frequency Trading Liquidity Liquidity Pool Proof Of Work Swap Yield Farming