← GlossaryTrading & DeFi
What Is MEV (Maximal Extractable Value)? Why Your Trade Can Cost More
Maximal extractable value (MEV) is the maximum value that can be extracted from block production, beyond the standard block reward and gas fees, by including, excluding and reordering transactions in a block.
Key takeaways
- Whoever orders transactions in a block can profit from the order.
- Searchers use bots to find and capture these opportunities.
- Users can suffer worse prices through sandwich attacks and front-running.
- Some MEV, such as arbitrage and liquidations, helps keep markets and protocols working.
What it is
Block producers decide which transactions go in a block and in what order. ethereum.org defines maximal extractable value as the maximum value that can be extracted from block production in excess of the standard block reward and gas fees by including, excluding and changing the order of transactions. Because pending transactions are visible before they are confirmed, anyone fast enough can try to profit from knowing what is about to happen.
How it happens
Specialised bots, often called searchers, watch the mempool for profitable opportunities and pay for priority to capture them. Common strategies include arbitrage between exchanges, liquidating undercollateralised loans and the harmful types below. They compete with each other by bidding higher fees, which can push up gas prices for everyone.
Harmful forms
In front-running, a bot copies a profitable pending transaction and sends it with a higher fee so that it executes first. In a sandwich attack, a bot buys just before your large trade, which raises the price you pay, and then sells right after, capturing the difference. ethereum.org notes that users experience increased slippage and worse execution on their trades as a result.
Useful forms
Not all MEV is harmful. Arbitrage keeps prices aligned across markets, and liquidations protect lenders in DeFi protocols. The concern is the extraction that comes at users' expense and the congestion caused by competition.
What you can do
Use sensible slippage limits so a sandwich has less room to profit. Avoid very large trades in thin pools, and consider private transaction routes where your wallet or exchange offers them. Smaller, well-priced trades in deep pools are the least exposed. Review the quoted price impact before you confirm.
Example
You submit a large swap in a small pool. A bot sees it pending, buys the token first so the price rises, lets your swap execute at the worse price, then sells. You receive fewer tokens than you expected, and the bot keeps the difference.
Put it into practice
Set a sensible slippage limit
Scrypt Wallet's swap form shows price impact before you confirm. Use it and keep slippage tight on large trades to leave less room for MEV bots.
Create a free wallet Get Scrypt for AndroidSources and verification
Last reviewed 2026-10-02 by the Scrypt Wallet team. The factual claims on this page, and where each comes from:
- MEV refers to the maximum value that can be extracted from block production beyond the block reward and gas fees by including, excluding and reordering transactions. [1]
- Sandwich attacks and front-running can cause users increased slippage and worse execution. [1]
- Front running is the practice of trading on advance knowledge of pending orders. [2]
Sources
- Maximal extractable value (MEV) · ethereum.org · secondary source
- Front running · Wikipedia · secondary source
Primary sources are protocol papers, specifications, source code or a project's own documentation; secondary sources are wikis and explainers. We checked each claim against the source text on the review date. Found an error? Tell us and we will correct it.
Frequently asked questions
Is MEV illegal?
It is a feature of how transactions are ordered. Some forms are widely seen as harmful, but regulation and norms vary.
Does MEV happen on Solana?
Similar ordering opportunities exist on other chains, with different mechanisms and mitigations.
How do I protect myself?
Use tight slippage settings, avoid thin pools and consider private routing if your wallet offers it.
Written by the Scrypt Wallet team · Updated 2026-10-02. General education, not financial, tax or legal advice.