Quick answer
MEV in crypto stands for maximal extractable value: the extra profit someone can earn by deciding which pending transactions enter a block and in which order. On public blockchains, transactions often wait in a visible queue before confirmation. Bots scan that queue, spot profitable opportunities and pay to have their own transactions placed just before or just after yours.
The best-known harmful form of MEV crypto activity is the sandwich attack, where a bot buys right before your swap and sells right after it, leaving you with a worse price. Other forms, such as arbitrage between exchanges, are part of normal market plumbing. Understanding the difference helps you choose safer slippage settings and transaction routes.
Where maximal extractable value comes from
The term was originally miner extractable value, because on proof-of-work Ethereum miners decided transaction order. After Ethereum moved to proof of stake, the name changed to maximal extractable value, since validators and specialized block builders now play that role. The background on validators is covered in our guide to proof of work vs proof of stake.
Three ingredients make MEV possible:
A public waiting room. Pending transactions sit in the mempool where anyone running a node can read them. Our article on how the mempool works explains this queue in detail.
Flexible transaction ordering. Whoever builds the block can order transactions as they like, usually preferring those that pay more.
Predictable price impact. On an automated market maker, a swap moves the price by an amount anyone can calculate from the pool's reserves. That makes the effect of your trade visible in advance.
On Ethereum today, much of this activity runs through a supply chain of searchers (who find opportunities), builders (who assemble blocks) and validators (who propose them). Searchers submit bundles of transactions and bid for inclusion, and most of the value flows to whoever controls block space.
How a sandwich attack works
A sandwich attack targets a large or loosely protected swap on a decentralized exchange. Here is a simplified example with hypothetical numbers.
You submit a swap. You want to buy a token with 10,000 USDC on an AMM pool and set slippage tolerance at 3 percent. The quoted price is 1.00 USDC per token.
A bot sees it. The bot reads the pending transaction, calculates how much your buy will push the price and confirms that your 3 percent tolerance leaves room for profit.
Front-run. The bot buys the same token first, pushing the price up to, say, 1.02 USDC.
Your trade executes. Your swap still fits within 3 percent slippage, so it goes through at the worse price and pushes it even higher.
Back-run. The bot sells right after you at the inflated price and pockets the difference, minus fees and gas.
You never see an error. The swap succeeds, you simply receive fewer tokens than the original quote. The loss in this example could be a few percent of the trade, which is why slippage settings matter so much. For a refresher on why prices move during execution, see what slippage is in DeFi.

Front running and other MEV types
Front running is the general practice of placing a transaction ahead of a known pending transaction to profit from its effect. The sandwich is one form of it. Other common MEV strategies include:
Arbitrage. When the same token trades at different prices on two pools, a bot buys low and sells high in one transaction. This aligns prices and is generally seen as neutral or useful. Our crypto arbitrage guide covers the broader idea.
Liquidations. When a DeFi loan falls below its collateral requirement, bots compete to repay it and claim a liquidation bonus. This keeps lending protocols solvent.
Back-running. Placing a transaction right after a large trade or oracle update to capture the price change it created, without harming the original transaction directly.
Just-in-time liquidity. Adding concentrated liquidity right before a large swap and removing it right after, to collect most of the fees.
The line between harmful and benign MEV is mostly about who pays. Arbitrage takes value from stale prices; a sandwich takes value directly from a specific user.
Why MEV crypto activity matters for ordinary users
For most people, MEV shows up as worse execution rather than as a visible attack. You may notice that your received amount is consistently at the bottom of the expected range, or that swaps in small, illiquid pools come out noticeably worse than quoted. MEV competition can also raise network fees, because bots bid for priority during busy periods.
MEV also affects network health. If the profits from transaction ordering concentrate in a few large builders, block production can become less decentralized. Ethereum researchers continue to work on designs that separate block building from proposing and limit the power of any single participant.
MEV protection: practical steps
You cannot remove MEV from a public blockchain, but you can make yourself a less attractive target:
Set tight slippage tolerance. Use the lowest setting that still lets the trade execute. A wide tolerance tells bots exactly how much they can take.
Use private transaction routing. Some wallets and RPC services send transactions directly to builders instead of the public mempool, so MEV crypto bots cannot see them before inclusion.
Use MEV-aware aggregators. Some DEX aggregators route orders through private channels, batch auctions or solver networks designed to reduce sandwiching. Learn how they work in what a DEX aggregator is.
Split very large trades or use deeper pools, so each swap has less price impact to exploit.
Avoid trading obscure tokens in thin pools with high slippage, which is the classic sandwich setup.
Review the result. Compare the received amount with the quote on a block explorer. Repeated shortfalls are a sign to change your routing.
Another way to avoid on-chain ordering games is to use an instant exchange service instead of swapping directly in an AMM pool. With SimpleSwap, you send coins to a deposit address and receive the other asset at a fixed or floating rate, so your order is not sitting as a public DEX swap waiting to be sandwiched. Crypto prices remain volatile either way, so check rates and do your own research before trading.
FAQ
Is MEV illegal?
MEV is a feature of how public blockchains order transactions, and its legal status is not settled everywhere. Most MEV happens through automated bots following protocol rules rather than through hacking.
Does MEV only exist on Ethereum?
No. Any chain with a visible pending queue and on-chain trading can have MEV, including other EVM chains and Solana, although the mechanics and tools differ.
How do I know if I was sandwiched?
Open your swap on a block explorer and look at the transactions directly before and after it in the same block. A buy and a sell of the same token by the same address around yours is the typical pattern.
Does a low slippage setting fully protect me?
It limits the maximum loss per trade but does not remove it. A bot can still extract value up to your tolerance, and very low settings may cause failed transactions.
Is all MEV bad?
No. Arbitrage and liquidations help keep prices consistent and lending markets solvent. The harmful types are those that profit directly from a specific user's trade.



