Backrunning
Placing a trade immediately after a known pending transaction to profit from the state it creates.
Basically
A bot puts its transaction straight after another transaction in the same block. It tries to profit from the price change left behind.
Key Takeaways
- Backrunning is a Maximal Extractable Value (MEV) strategy where a searcher submits a transaction to execute immediately after a target transaction in the same block, capturing value from the resulting state change.
- Unlike front-running, backrunning does not worsen the target transaction's execution price, making it one of the least harmful forms of MEV extraction.
- Backrunning serves a useful market function: it keeps AMM prices aligned across exchanges and enables critical operations like liquidations in lending protocols.
What Is Backrunning?
Backrunning is a transaction ordering strategy where a searcher, an automated bot or actor, monitors pending transactions and places its own transaction directly after a target transaction within the same block. The goal is to profit from the price displacement or state change that the target transaction creates.
A large trade on a decentralised exchange (DEX) can push a token's price on that venue away from its price on other exchanges. A backrunner submits an arbitrage trade immediately afterwards to capture the difference, while the target transaction executes first at its expected price and the backrunner profits only from the residual imbalance.
Backrunning is part of the broader MEV activity covering all the value that block producers and searchers can extract by reordering, inserting, or censoring transactions within a block. Among MEV strategies, backrunning is widely considered the most benign because it provides a genuine market service without harming the target transaction's outcome.
How It Works
A backrunning operation follows a predictable sequence. It runs from mempool monitoring through profit capture.
A Concrete Example
A trader selling 2,857 ETH for USDC on a single DEX pushes ETH's price down on that venue relative to other exchanges. A backrunning bot detects this pending transaction, constructs an arbitrage bundle, and places it immediately after the large sell.
The bot buys discounted ETH on the impacted venue, sells it at the higher market price elsewhere, and profits from the spread. The original seller still receives the execution price they expected: only the residual imbalance is captured.
Bundle Submission
Backrunners on Ethereum rarely submit transactions to the public mempool, instead using private transaction channels like Flashbots to submit bundles directly to block builders. A bundle is an ordered set of transactions that must be included atomically: either all execute in the specified order, or none are included. That ordering guarantees the backrunner's transaction executes immediately after the target.
Jito bundles serve the same purpose on Solana. Over 95% of Solana's staked SOL flows through Jito-client validators, making it the dominant MEV infrastructure on that chain. Searchers pay tips to validators for priority bundle inclusion.
Backrunning vs. Front-Running vs. Sandwich Attacks
The three most common MEV strategies differ primarily in transaction placement. Each puts the searcher's transaction in a different position relative to the target.
Front-running is predatory: it places a transaction ahead of the target to move the price against them, then profits from their worsened execution. Sandwich attacks are double-sided: the attacker front-runs to inflate the price, lets the victim trade at the inflated price, then backruns to sell at the peak.
Backrunning, by contrast, is single-sided. The target's transaction executes first, unaffected, and the backrunner only captures value from the state that already changed. That distinction is why researchers and protocol designers generally classify backrunning as "benign MEV."
Why Backrunning Matters for DeFi
Backrunning is not merely tolerated in decentralised finance: it performs a structurally necessary function. Without competitive backrunners, DeFi markets would be less efficient and lending protocols would be less safe.
Cross-DEX Price Alignment
Backrunning bots immediately arbitrage the difference across venues when a large trade shifts the price on one AMM, pushing the impacted pool's price back toward the true market rate. Constant arbitrage activity keeps AMM prices accurate and reflective of broader market conditions.
Liquidation Execution
Lending protocols like Aave and Compound rely on liquidation bots to close undercollateralised positions before they generate bad debt. These bots backrun price oracle updates: when an oracle reports a price drop that puts a position underwater, a liquidation bot executes immediately after to seize collateral and repay debt. Without competitive backrunning, protocols would accumulate toxic positions.
MEV Refunds
Infrastructure like Flashbots MEV-Share returns a portion of backrunning value to users whose transactions created the opportunity. By default, 90% of the backrun value is refunded to the original user's address. That model aligns incentives: users benefit from their own transactions' market impact rather than losing that value entirely to searchers.
Gas Fee Escalation
Multiple searchers competing to backrun the same target transaction in the public mempool bid up gas fees in a priority gas auction. That competition increases transaction costs for all network users, not just the searchers. Private transaction submission through Flashbots and similar infrastructure mitigates this by moving the auction off-chain.
Centralization Pressure
Sophisticated MEV infrastructure creates advantages for well-capitalised searchers with low-latency connections to block builders. Over time, that can centralise MEV extraction among a small number of professional firms, reducing competition and potentially enabling collusion. On Ethereum, over 90% of blocks are produced through the MEV-Boost auction system, concentrating power among a handful of builders and relays.
Cross-Chain Complexity
Cross-chain backrunning introduces latency and execution risk as DeFi activity spans multiple chains and Layer 2 networks. Arbitrage between an L1 DEX and an L2 DEX requires bridging assets, which takes time and introduces bridge security risk. Atomic execution guarantees available within a single chain do not extend across chains.
Evolving Countermeasures
DEX designs continue evolving to minimise extractable value, and intent-based trading protocols like CoW Swap use batch auctions that eliminate ordering-dependent MEV entirely. Encrypted mempools using Trusted Execution Environments (TEEs) and research into Fully Homomorphic Encryption (FHE) aim to make transactions opaque until block inclusion, allowing "blind backrunning" that preserves arbitrage without revealing transaction details. The mempool economics research offers a deeper look at MEV dynamics and mitigation strategies.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.