What is MEV (Maximal Extractable Value)?
I still remember the exact moment I discovered MEV in crypto. It was 2022, and I’d just swapped a significant chunk of ETH for an altcoin I’d been researching for weeks. The transaction confirmed, I checked my wallet, and something felt off. I’d received about $3,000 less in tokens than my calculations predicted.
At first, I blamed myself. Did I fat-finger the slippage? Misread the price? But when I dug into the transaction on Etherscan, I found something that made my stomach drop: two suspicious transactions sandwiching mine. A bot had seen my trade waiting in the mempool, front-run me to spike the price, then sold immediately after I bought at the inflated rate.
I’d been sandwiched. And that $3,000? Gone to some anonymous MEV bot operator.
MEV stands for Maximal Extractable Value. It’s the profit that validators, miners, or specialized bots can extract by manipulating the order of transactions within a block. Originally called “Miner Extractable Value” back when Ethereum ran on proof-of-work, the term evolved after the merge to proof-of-stake. The “M” now stands for “Maximal” since validators, not miners, now control transaction ordering.
According to comprehensive MEV research, over $7.2 billion has been extracted through MEV strategies since 2020. That’s not a typo. Billions of dollars have quietly moved from regular users like you and me to sophisticated bots exploiting how smart contracts and blockchains work.
How MEV Works: The Mempool and Transaction Ordering
To understand MEV, you need to understand where your transaction goes before it’s confirmed on the blockchain. It doesn’t just teleport into a block. It waits.
The Mempool: Where Your Transaction Waits
When you submit a transaction on Ethereum or most other blockchains, it enters a holding area called the mempool (short for memory pool). Think of it as a waiting room where all pending transactions sit until validators pick them up and include them in the next block.
Here’s the problem: this waiting room has glass walls. Anyone can see what’s inside. MEV searchers, the bots that hunt for profit opportunities, constantly scan the mempool looking for valuable transactions they can exploit.
How Validators and Bots See Your Trade Before It Executes
According to Ethereum.org’s MEV documentation, validators have significant power over transaction ordering. They decide which transactions go into a block and in what sequence. This ordering power is worth money.
When you submit a swap on a DEX, your transaction broadcasts your intention to the entire network: “I want to buy X amount of Token Y at approximately this price.” Every searcher bot sees this. They know exactly what you’re trying to do, what price you’ll accept, and how much slippage in crypto you’ve allowed.
This transparency is usually a feature of blockchains. It enables trustless verification. But for MEV, it’s a vulnerability.
The 4 Main Types of MEV Strategies
Not all MEV is created equal. Some strategies actually help markets function. Others are pure extraction from regular users.
1. Arbitrage (The “Good” MEV)
Arbitrage is when bots buy an asset on one DEX where it’s cheap and sell it on another where it’s more expensive. This actually benefits the ecosystem by keeping prices consistent across liquidity pools.
In September 2025 alone, arbitrage generated $3.37 million in profit for MEV searchers. But unlike sandwich attacks, this profit doesn’t come directly from your pocket. It comes from temporary price inefficiencies between exchanges.
2. Front-Running
Front-running happens when a bot sees your pending transaction and races to execute a similar trade before yours. They pay higher crypto gas fees to cut in line.
Say you’re about to buy $50,000 of a small-cap token. A front-runner sees this, buys first, your transaction pushes the price up, and then the front-runner sells into the higher price. Your large order just became their exit liquidity.
3. Sandwich Attacks (The Worst Offender)
This is what happened to me. A sandwich attack involves two transactions: one before yours (the “bread”) and one after (also “bread”). Your transaction is the filling.
- You submit a swap to buy Token X
- Bot sees your transaction in the mempool
- Bot front-runs you with a buy order, spiking the price
- Your transaction executes at the now-higher price
- Bot immediately sells Token X back at the inflated price
- You receive fewer tokens than expected. Bot pockets the difference.
In 2025, sandwich attacks constituted $289.76 million, or 51.56% of total MEV volume ($561.92 million). Over $500 million was extracted from Solana users alone between January 2024 and May 2025 through sandwich bots.
The average sandwich attack only nets about $3 in profit. But there are over 4,400 attacks per day on Ethereum. More than one per block. It adds up fast.
4. Liquidations
In DeFi yield farming and lending protocols, users can borrow crypto by posting collateral. If that collateral drops in value, the position gets liquidated to repay the loan.
MEV bots compete aggressively to be the one that triggers these liquidations. They earn a fee for closing unhealthy positions. Unlike sandwich attacks, liquidations serve a purpose: they keep lending protocols solvent. Without liquidators, bad debt would accumulate and protocols would collapse.
The Real Cost of MEV: More Than Just Lost Money
MEV doesn’t just hit your wallet directly. It creates systemic costs that affect everyone using DeFi.
The Invisible Tax on Every Swap
Average DeFi traders pay an invisible MEV tax of 0.5-2% on top of legitimate trading fees and slippage. You won’t see it itemized anywhere. It just shows up as slightly fewer tokens than you expected.
“MEV makes DeFi financially less efficient, opens the door wide for malicious actors, puts users at risk of harm, and makes DeFi unpredictable for users.” – Jan Camenisch, CTO at DFINITY Foundation
For most small trades, you might not notice. Lose $2 on a $500 swap? Annoying, but survivable. But scale that up, and we’re talking about billions siphoned from regular users since 2020.
Gas Wars and Network Congestion
When multiple bots compete for the same MEV opportunity, they engage in gas wars. Each bot tries to outbid the others for transaction priority. During intense competition, gas fees can spike 10-20x normal levels.
For highly competitive MEV opportunities, searchers sometimes pay 90% or more of their expected revenue in gas fees just to win the auction. This bidding war benefits validators but clogs the network and makes transactions more expensive for everyone.
“Spectacularly wasteful onchain searching is starting to consume most of the capacity of most high throughput blockchains.” – Robert Miller, Flashbots Steward
Is All MEV Bad? The Debate
After getting sandwiched, I wanted to hate everything about MEV. But the reality is more nuanced.
Arbitrage keeps prices aligned across fragmented liquidity. Without it, you might see ETH trading at $3,000 on Uniswap and $3,200 on SushiSwap simultaneously. Arbitrage bots quickly close these gaps, benefiting traders who get fairer prices.
Liquidations maintain protocol solvency. If no one liquidated underwater positions, lending protocols would accumulate bad debt and eventually fail. MEV searchers racing to liquidate actually provides a service.
The bad MEV, sandwich attacks and pure front-running, directly extracts value from users with no benefit to the ecosystem. That’s the stuff that cost me $3,000 and costs the industry billions.
Some researchers argue that MEV reveals fundamental design limitations of transparent blockchains, not just greedy exploitation. Public mempools will always create opportunities for those with better technology and faster execution. It’s a feature of how these systems work, even if the outcomes feel unfair.
How to Protect Yourself from MEV Attacks
I learned these lessons the expensive way. You don’t have to.
1. Use Private Transaction Services
The most effective protection is hiding your transaction from the public mempool entirely. Flashbots Protect documentation explains how their private RPC endpoint sends your transaction directly to validators without broadcasting it publicly.
According to the Flashbots Protect milestone announcement, this service now protects 2.1 million unique Ethereum accounts and has processed $43 billion in DEX volume. Users have saved 313 ETH in MEV refunds through MEV-Share, which gives you a cut of any backrun MEV generated by your transaction instead of it going entirely to searchers.
- Flashbots Protect: Add their RPC endpoint to your wallet. Transactions bypass public mempool.
- MEV Blocker: Similar protection with multiple builder integrations.
- CowSwap: Uses batch auctions that are inherently MEV-resistant.
2. Set Tight Slippage Tolerances
Slippage tolerance is the maximum price deviation you’ll accept. High slippage (say, 5%) gives bots room to extract more value from your trade. Low slippage (0.5-1%) leaves less on the table.
The tradeoff: too tight and your transaction might fail if the price moves naturally. Too loose and you’re inviting sandwich attacks. I typically use 0.5% for liquid pairs and up to 1% for smaller tokens with choppier prices.
3. Trade Smart: Timing and Liquidity Matter
MEV bots are most active during high-volume periods. Trading during off-peak hours (late night in US/Europe) often means less competition and lower gas fees.
Also consider your trading pairs. Illiquid tokens with shallow order books are easier MEV targets. Understanding how to interpret market depth by reading order books can help you avoid the worst setups.
For large trades, consider breaking them into smaller chunks over time. TWAP (Time-Weighted Average Price) or simple DCA strategies reduce the visible size of any single transaction, making you a less attractive target.
4. Use MEV-Protected DEXs and Wallets
Some DEXs and wallets have MEV protection built in. CowSwap uses a unique batch auction model where trades are settled off-chain before being submitted, eliminating front-running opportunities entirely.
More wallets are adding one-click Flashbots Protect integration. Before your next big swap, check if your preferred wallet offers private transaction options.
The Future of MEV: What’s Changing in 2025
The MEV landscape is evolving rapidly. ESMA’s regulatory analysis of MEV examines how these dynamics might be addressed from a policy perspective.
On the technical side, Proposer-Builder Separation (PBS) is now live on Ethereum. This separates who proposes blocks from who builds them, distributing MEV extraction more broadly and reducing centralization risks.
Flashbots is deploying Trusted Execution Environments (TEEs) that allow searchers to see transaction data without the ability to execute sandwich attacks. It’s a middle ground: useful MEV like arbitrage can still happen, but harmful MEV gets blocked.
The numbers show progress. Sandwich attack profitability has dropped from roughly $10 million per month in late 2024 to about $2.5 million per month by October 2025. Increased competition among MEV bots and better user protection tools are working.
Layer 2 solutions also reduce MEV exposure. Many L2s use private sequencers or encrypted mempools that make front-running impossible by design.
Final Thoughts: Living with MEV
MEV isn’t going away. It’s a structural feature of transparent, decentralized blockchains. As long as transactions are visible before execution and someone controls their ordering, there’s profit in manipulation.
But the ecosystem is adapting. Protection tools have matured. User awareness has grown. And MEV profitability, at least for harmful strategies like sandwich attacks, is declining.
That $3,000 I lost taught me an expensive lesson: never make large swaps without protection. Now I use private RPCs for anything significant, keep slippage tight, and break big trades into smaller pieces. The extra few clicks are worth it.
If you’re trading DeFi, pick at least one protection strategy and implement it today. Add Flashbots Protect to your wallet. Try CowSwap for your next trade. Check your slippage settings. These small changes add up to real money saved.
For a deeper understanding of the data that powers MEV analysis, learn about on-chain analysis. And if gas fees themselves are confusing, our breakdown of crypto gas fees covers the fundamentals.
The bots are sophisticated. But you don’t have to be their exit liquidity.




