MEV (Maximal Extractable Value) refers to the extra profit that whoever controls transaction ordering within a block — originally miners, which is why it was first called Miner Extractable Value, and after the shift to proof of stake, validators or the block builders they delegate to — can extract by actively inserting their own transactions, reordering existing ones, or selectively censoring certain transactions. This differs from an ordinary transaction fee: a fee is paid voluntarily by the user, while MEV is value extracted by using the ordering power itself — value that would otherwise have belonged to an ordinary trader, intercepted by whoever controls the sequence.
The fundamental reason MEV exists is that a blockchain's transaction execution mechanism inherently grants the orderer a privilege: within a single block, the order transactions are placed in directly affects the final execution result and price, and before finalizing that order, the orderer can see every pending candidate transaction sitting in the mempool. Whenever a transaction's outcome is sensitive to ordering — a large DEX swap moving the price, for instance — the orderer has an incentive to insert their own transaction before and after it, arbitraging the resulting price movement. This isn't a design flaw so much as an inevitable side effect of a public, transparent onchain mechanism combined with concentrated ordering power.
The two most common techniques: frontrunning — the orderer spots a large price-moving transaction sitting in the mempool and inserts their own same-direction transaction ahead of it, capturing part of the resulting price movement before the original trade executes; and the sandwich attack — a step further, inserting a buy order before the target transaction to push the price up, then a sell order after it to push the price back down, so the attacker's buy-sell spread comes directly from the slippage the target transaction is forced to absorb. These attacks today are mostly executed by dedicated MEV bots that continuously monitor the mempool and automatically construct a sandwich the moment a profitable target transaction is detected. Data from onchain analytics platforms like EigenPhi shows that a single skilled MEV bot can, over time, capture a disproportionately high share of this specific sandwich-attack niche.
The practical takeaway: if you're executing a large swap onchain, your transaction itself is a potential MEV target — the larger the swap and the more visible its price impact, the more likely it is to get spotted and sandwiched by an MEV bot. Practical defenses include setting a reasonable slippage tolerance (too loose simply hands the attacker more room to arbitrage), routing through MEV-protected paths (private transaction pools or batch settlement protocols that bypass the public mempool), or splitting a large trade into several smaller ones to reduce any single transaction's price impact. Understanding that MEV exists also helps you correctly interpret onchain data — a transaction that looks like it "failed" or had unusually large slippage may simply be an MEV bot at work behind the scenes.
Onchain analytics platform EigenPhi once recorded a single sandwich attack that netted the attacker $870,000 in profit — the attacker precisely identified a large swap in the mempool that would cause significant price impact, then inserted buy and sell orders before and after it to complete the sandwich. The same body of research also shows that the well-known MEV bot jaredfromsubway.eth has held roughly 70% market share in the sandwich-attack niche over the long run, indicating this space has become highly specialized and concentrated.
From the orderer's perspective, MEV is real income converted from the ordering privilege, strengthening the economic incentive to participate in validating the network. From an ordinary trader's perspective, it's a hidden cost — you think you only paid a fee and a bit of slippage, but part of that value may have been intercepted by the orderer, and you usually have no way to prove after the fact that you were specifically targeted.