Skip to content
Finance Lessons

MEV & Transaction Ordering

What MEV Is

Maximal Extractable Value is the profit a block producer can capture purely by choosing which transactions to include, exclude, and reorder — the hidden tax of public blockchains.

9 min Updated Jun 5, 2026

You already know a block is a list of transactions, that gas is the toll for execution, and that the mempool is the holding pen where pending transactions wait in public view. Here is the part nobody mentions in the gas-fee tutorial: the entity that builds a block doesn’t just copy the mempool in. It gets to choose which transactions go in, which get left out, and crucially in what order they run. On a machine where every transaction mutates shared state — pool reserves, account balances, oracle prices — that ordering choice is worth money. Sometimes a lot of money. That money has a name, and learning to see it changes how you read every block on the chain.

A gut-check before any definitions.

Before you read — take a guess

Two identical swap transactions sit in the mempool against the same AMM pool. A block producer can choose the order they execute in. Does that choice have economic value?

What MEV stands for — and why it got renamed

Analogy. Imagine a toll booth on a one-lane bridge. The official toll is fixed, but the operator also controls the gate — and quietly discovers that the order cars cross in affects who reaches the auction across the river first. The toll is the visible fee. The ordering advantage is the extra the operator can skim. MEV is that skim.

Definition. MEV — Maximal Extractable Value — is the maximum profit a block producer can capture, over and above the ordinary block reward and priority fees, purely by including, excluding, and reordering transactions within a block. It is value that exists because the producer holds a monopoly, for one block, over the sequence of state transitions.

The acronym used to stand for Miner Extractable Value. Pre-Merge, proof-of-work miners were the ones assembling blocks, so they held the ordering monopoly. After Ethereum’s Merge to proof-of-stake, miners vanished — blocks are now produced by validators (and, in practice, by specialized builders acting on their behalf, a structure we’ll dissect in a later lesson). The phenomenon, though, never depended on who the producer was; it depends only on the producer’s power to order. So the community kept the initials and swapped the meaning to Maximal: the most value extractable by whoever holds the ordering right, miner or not.

Warning:

MEV is not 'gas fees' and not a bug

A common misread is that MEV is just another word for the priority fee, or that it’s some exploit that a patch will fix. Neither is true. Priority fees are the advertised price of inclusion; MEV is the latent value of sequencing that sits on top of them. And it isn’t a defect — it’s an unavoidable consequence of having an ordered ledger whose state changes per transaction. You can redistribute MEV or hide it, but on a public, ordered chain you cannot make it zero.

When it matters

The rename is not pedantry. It signals that MEV is a structural property of permissionless, ordered blockchains — not an artifact of mining. That’s why it survived the single biggest change in Ethereum’s history and why every new L1 and L2 has to reckon with it.

A block is an ordered list, and order has value

Analogy. Picture a referee who can decide the sequence in which players take penalty kicks. Same eleven players, same goal — but if the referee sends your nervous rookie first and the opponent’s star last, the outcome shifts. Or a supermarket clerk who can reorder the checkout queue: whoever they wave forward gets the last discounted item before it sells out. The contents didn’t change. The order did, and that alone decided who won.

Definition. Because a blockchain executes transactions strictly in the order the block lists them, and because each transaction reads and writes shared state, the final state — and who profits from it — is a function of the ordering. The producer who chooses that ordering can therefore select the arrangement that pays them the most. The gap between a fair/arbitrary ordering and the producer-optimal ordering is the extractable value.

Worked example. Suppose the mempool holds five pending transactions, each offering a priority tip (in gwei), and two of them are bots whose profit depends on where they land in the block:

TransactionTip (gwei)Extra value if slotted optimally
Alice swap2— (she’s the target, not a beneficiary)
Arb bot bundle528
Liquidation bot914
NFT mint3
Bob swap4

Order the block by priority fee (the naive market) and the producer collects only the tips: 2+5+9+3+4=232 + 5 + 9 + 3 + 4 = 23 gwei. Now order it builder-optimally — slot the arb bundle right after Alice’s swap so it can back-run her price impact, and let the liquidation bot fire where it wins the collateral. The producer still collects the 2323 in tips plus the extractable value 28+14=4228 + 14 = 42, for a total of 23+42=6523 + 42 = 65 gwei. Same five transactions. Nearly the take, conjured purely from sequence. Flip between the orderings below and watch the headline number jump:

Reordering the same block changes who gets paid23 gwei

Transaction ordering

Tips captured
23 gwei
Extra MEV captured
0 gwei
Total value captured
23 gwei

Same five pending transactions, three orderings. By priority fee and FIFO both pay only the tips. The builder-optimal ordering slots the searcher bundle into its profitable position — right where it preys on the swap ahead of it — so the producer pockets tips PLUS the extractable value. That ordering power is precisely what priority fees and bribes are bidding for.

Fill in the core mechanism.

Pick the right option for each blank, then check.

A block is an list, and because each transaction changes shared , the producer who picks the order can choose the arrangement that pays . The extra they capture beyond ordinary tips is called .

Where MEV comes from: a public mempool meets deterministic state

Analogy. Imagine everyone had to shout their stock orders across a crowded room before the exchange filled them, and the prices were set by a formula anyone could compute in their head. A fast listener could hear your big buy order coming, do the arithmetic on how it’ll move the price, and trade ahead of you — legally, because the rules let them. That’s the public mempool plus deterministic on-chain pricing in one image.

Definition. MEV opportunities arise from the collision of two facts:

  1. Transactions are public before they confirm. A pending swap, loan repayment, or large order sits in the mempool in plain sight, broadcast to the whole network while it waits.
  2. On-chain state and prices are deterministic. Anyone can compute exactly how a pending transaction will move an AMM’s reserves or trip a lending protocol’s liquidation threshold, because the math (e.g. xy=kx \cdot y = k) is fixed and public.

Put them together and profit becomes predictable: you can see a price-moving transaction coming and compute, to the wei, how to sequence trades around it to profit. No insider information, no luck — just visible orders and public arithmetic.

Worked example. A trader broadcasts a swap that will push a pool’s price up by, say, 1.2%. A searcher sees it in the mempool, computes the exact post-swap reserves, and constructs a bundle: buy just before the trader’s swap (cheaper), let the trader’s swap lift the price, then sell just after. If the round-trip nets, after gas, a profit of 0.8%0.8\% on a $500k position, that’s about $4,000 of value extracted from one victim’s slippage — value that existed only because the order was visible and the pricing was computable.

Warning:

A private mempool reduces MEV but doesn't abolish it

It’s tempting to conclude “just hide the mempool and MEV disappears.” Private order flow (sending transactions straight to a builder instead of the public pool) does kill the front-runnable kinds — you can’t be sandwiched if nobody saw you coming. But the builder you trusted still holds the ordering monopoly and can extract value itself, and benign MEV like cross-pool arbitrage doesn’t need your transaction to be public at all. Privacy reshuffles who captures MEV; it doesn’t drive the total to zero.

A taxonomy: toxic vs benign MEV

Analogy. Two people rearrange a buffet line. One cuts ahead of you and takes the last slice of cake you were reaching for — pure loss to you, pure gain to them. The other notices the dessert table has cake at $3 and the next table sells the identical slice for $5, buys low and sells high, and in doing so nudges both tables toward the same price. The first is predatory; the second is arguably useful. MEV splits along the same line.

Definition. MEV is loosely sorted into two families:

  • Toxic / predatory MEV transfers value away from a specific user with no service rendered. The archetypes:
    • Front-running — seeing your pending transaction and jumping ahead of it to grab the opportunity you were about to take.
    • Sandwiching — placing one trade before your swap (to push the price against you) and one after (to sell back into the price you moved), pocketing your slippage. You get a worse fill purely so the attacker can profit.
  • Benign / necessary MEV is a byproduct of activity the protocol actually needs:
    • Arbitrage — buying an asset cheap on one venue and selling it dear on another. This drags prices on different AMMs back into line, which is the very thing that keeps quoted prices honest.
    • Liquidations — repaying an underwater borrower’s loan in exchange for their discounted collateral. This is how lending protocols stay solvent; without someone racing to do it, bad debt piles up.

Worked example. A DAI/USDC pool on one DEX quotes 1 DAI = 1.004 USDC while another quotes 1 DAI = 0.998 USDC. A searcher buys DAI on the cheap venue and sells on the dear one, capturing the ~0.6% gap on, say, $1M for roughly $6,000 — and in the process pushes both pools toward 1.000, restoring a correct price for the next user. That’s MEV, and it made the market better. Contrast it with a sandwich on a retail trader’s $10k swap that costs them $120 in worsened price so the attacker nets $110: same skill, opposite social sign.

Warning:

The line between toxic and benign is genuinely blurry

Don’t treat “benign” as a moral pass. Arbitrage aligns prices and extracts value from the slow liquidity provider on the wrong side of it. A liquidation keeps the protocol solvent and can be triggered aggressively by manipulating an oracle. The same back-run can be healthy arbitrage or part of a sandwich depending on intent and context. The toxic/benign split is a useful first cut, not a clean boundary — most real MEV sits somewhere on the spectrum.

Sort each MEV activity by whether it primarily harms a specific user (toxic) or performs a function the system needs (benign).

Place each item in the right group.

  • Front-running a pending trade to grab its opportunity first
  • Cross-DEX arbitrage that realigns two pools to the same price
  • Sandwiching a retail swap to pocket its slippage
  • Liquidating an underwater loan to keep the lending pool solvent

Why is cross-DEX arbitrage often called 'benign' MEV despite still extracting value?

Scale: MEV is a tax, and it shapes protocol design

Analogy. Think of MEV as a sales tax that nobody legislated and most people never see on the receipt. Every swap you make on a public mempool quietly pays a little extra to whoever sequenced your block — the worse fill on a sandwiched trade, the spread an arbitrageur skims. Individually it’s a few dollars; in aggregate, across millions of transactions, it’s an industry.

Definition. In aggregate, MEV is large — cumulatively measured in the hundreds of millions to billions of dollars extracted on Ethereum since serious measurement began. Because much of the toxic share comes out of ordinary users’ trades (slippage they didn’t choose), MEV functions as an implicit tax on regular users, redistributed up the stack to searchers, builders, and validators.

Worked example. Suppose a chain processes $50B of DEX volume in a year and toxic MEV (sandwiches, harmful front-running) skims an average of just 3 basis points — 0.03% — off that flow. That’s 0.0003×50,000,000,000=15,000,0000.0003 \times 50{,}000{,}000{,}000 = 15{,}000{,}000, i.e. $15M quietly transferred from traders to extractors in a single year, from a rate small enough that almost no individual trader notices it on their own fill.

Why it matters

Because MEV is this big and this structural, it doesn’t just affect traders — it reshapes the protocol itself. If validators can earn more by extracting MEV, then MEV influences who profits from staking, how blocks get built, and even chain stability (a block worth a fortune to re-org is a security concern). The single most important consequence: it’s the reason Proposer-Builder Separation (PBS) exists — an architecture that splits building a block from proposing it, precisely to manage who captures MEV and to keep it from centralizing block production. We’ll dissect PBS, and the searcher → builder → proposer supply chain below, in later lessons.

The key players (teased)

Analogy. MEV has a supply chain like any commodity: prospectors find the ore, refiners turn it into bars, and the mint stamps it into coin. On-chain, three roles map onto that pipeline.

Definition (brief — full detail comes in the PBS lesson):

  • Searchers — the prospectors. They scan the mempool and chain state for profitable opportunities (arbs, liquidations, sandwiches) and package them into transaction bundles with a desired ordering.
  • Builders — the refiners. They assemble many bundles and ordinary transactions into a full, profit-maximizing block, then bid to have it included.
  • Proposers / validators — the mint. They hold the actual right to publish a block for a slot and, under PBS, sell that right to the highest-bidding builder.

Value flows down this chain via an auction: searchers pay builders (in bundle tips/bribes), builders pay proposers (in block bids), and the proposer publishes the block that pays them most. That auction is the MEV market — and it’s exactly the machinery the MevOrderingAuction above gestures at when the “builder-optimal” ordering wins.

Match the role to its job: who scans the chain for profitable opportunities and packages them into ordered bundles?

Putting it together

MEV — Maximal (formerly Miner) Extractable Value — is the profit a block producer captures purely by deciding which transactions to include, exclude, and reorder. It exists because a block is an ordered list and on-chain state changes per transaction, so sequence has economic value. It’s predictable because the mempool is public and on-chain prices are deterministic. It comes in toxic flavors (sandwiches, front-running) that tax ordinary users and benign ones (arbitrage, liquidations) the system needs — with a blurry line between them. In aggregate it’s huge, it functions as a hidden tax, and it’s structural enough to reshape protocol design itself — which is why PBS and the searcher → builder → proposer supply chain exist.

Big picture

MEV — value hidden in the order of a block

  • Maximal Extractable Value
    • What it is
      • Profit from include / exclude / reorder
      • Over and above tips + block reward
      • Renamed Miner → Maximal post-Merge
    • Why it exists
      • A block is an ordered list
      • State changes per transaction → order has value
      • Public mempool + deterministic prices → predictable
    • Two families
      • Toxic: sandwich, front-run (taxes users)
      • Benign: arbitrage, liquidations (system needs them)
      • The line is blurry
    • Why it matters
      • Large in aggregate — an implicit user tax
      • Reshapes protocol design
      • Reason PBS exists
    • Players (teased)
      • Searchers — find & bundle
      • Builders — assemble blocks
      • Proposers / validators — publish & auction
What it is, why it exists, the two families, and the players who fight over it.

Recap: what MEV is

Question 1 of 50 correct

Why was the acronym MEV changed from "Miner" to "Maximal" Extractable Value?

Check your answer to continue.

We’ve named the value hiding in a block’s order. The natural next question is how that order actually gets decided — so the next lesson opens up the mempool and how ordering is auctioned: who sees your transaction, how bids for sequence get placed, and how the priority-fee market quietly became an auction for the right to reorder you.

Mark lesson as complete