Slippage and Sandwich Attacks: What Your Swap Really Lost

By Vault Capital Team·Published on ·11 min read·Also available in Português

What is slippage in crypto? It is the difference between the price the interface quoted and the price your swap actually received. Some of it is unavoidable, but the part you hand to a bot is not: it is exactly the size of the tolerance you accepted on screen. This post separates slippage, price impact and tolerance, shows where the loss sits on the receipt, works out how much a swap leaves on the table and brings the sandwich attack figures with source and date. It does not teach you to trade and does not teach anyone to attack: it describes the mechanism at a high level.

In short

  • Price impact is how much your own order moves the pool price; slippage is the gap between quoted and received; tolerance is the worst price you accept (Uniswap definitions, updated October 1, 2026).
  • A US$ 10,000 swap at 1% tolerance leaves up to US$ 100 for a bot; at 0.1%, the ceiling drops to US$ 10.
  • Sandwich attacks on Ethereum cost traders about US$ 60 million a year at the peak, with an average profit just above US$ 3 per attack and roughly 70% of them tied to a single operator (Cointelegraph Research on EigenPhi data, December 4, 2025).
  • A swap that fails with "slippage tolerance exceeded" is not executed, but the network fee is charged anyway (Uniswap blog, September 11, 2025).
Term What it is Who causes it
Price impact How much your order moves the pool price You, by order size against the pool
Slippage Gap between quoted and received The market, and bots, between quote and execution
Tolerance The worst price you accept You, in the interface setting

Slippage, price impact and tolerance are three different things

Uniswap's help center separates the first two in an article updated October 1, 2026: "Price impact is the change in token price caused by your own trade" and "Price slippage is the difference between the price you expect to receive after swapping and what you actually receive after the swap is complete". Price impact already shows in the quote, before you sign.

Slippage is what happens after the quote. The Uniswap blog, on September 11, 2025, defines it: "Slippage is when the final execution price of a trade is different from the price you were quoted". Between the quote and inclusion in a block, other people traded in the same pool and the price moved. Tolerance is the limit on that movement you accept, "the maximum percentage you'll allow the quoted price to move". If the price goes past the limit, the transaction fails; if it stays inside, it executes, even at the worst price allowed. The pool is also not the only source of price; why the same asset costs a different amount in each venue is in Why bitcoin costs a different price on each exchange.

How to read the swap receipt

The confirmation screen carries three numbers, and the loss lives in the distance between them.

Quoted. What the interface estimated you would receive when it computed the route, with the price impact of your own order already built in.

Minimum received. The quote minus the tolerance. It is the only number the contract respects: it executes any result at or above it and reverts any result below it. Everything between the quote and the minimum is room you authorized to lose.

Received. What actually arrived in the wallet, visible on the block explorer. Received below quoted is slippage; received right at the minimum, in a deep pool where the price had no reason to move that far, is the classic sign that someone used your room.

The calculation: how much your swap leaves on the table

The MEV Blocker documentation (undated, read November 21, 2026) gives the example: "if ETH is trading at $2,000 and you place an order to buy ETH with a 5% slippage tolerance, you're willing to buy ETH at up to $2,100". And it adds: "Setting your slippage tolerance too high, however, leaves room for searchers to sandwich your trades". The attacker's room is your tolerance, no more and no less. Applied to a US$ 10,000 swap:

  • 1% tolerance: the minimum received is US$ 9,900. Up to US$ 100 can be captured by whoever pushes the price to your limit before your execution.
  • 0.5% tolerance: ceiling of US$ 50.
  • 0.1% tolerance: ceiling of US$ 10. The bot pays gas on two transactions of its own to capture that, and our inference, from the EigenPhi data, is that ceilings that small are rarely worth attacking.

The data confirms the size per victim: Cointelegraph Research, on EigenPhi data from November 2024 to October 2025, writes that "The average profit per sandwich attack remains extremely low at just above $3" and that attackers are left with "a profit margin of merely 5%", because most of the value goes to the gas paid to the block builder.

How a sandwich attack works

Chainalysis describes it, on June 26, 2026: "A sandwich attack is a predatory trading strategy where a bot monitors Ethereum's mempool". The mempool is the public queue of transactions that have not yet entered a block; anyone can read what is in it, including your swap and the minimum you accept.

At a high level, the bot does three things. It sees your pending swap and computes how far the price can rise before hitting your minimum received. It places a buy of its own ahead of yours, with higher priority, which pushes the pool price close to that limit. Your swap executes at the worst price you authorized. Then the bot sells what it bought, now at a higher price, in the transaction right after yours. The "bread" is its two transactions; the "filling" is you.

This is not a hack: your transaction did exactly what you signed. It is a race for priority within the network's rules, and the victim's tolerance sets the prize. Who runs that race, who keeps the value and why the "ready-made bot" sold on YouTube is a scam is in MEV Bot: What It Does, Who It Hits and the Fake Bot Scam.

What it really costs

Ethereum. Cointelegraph Research, on EigenPhi data (December 4, 2025), writes that the attacks "result in about $60 million in annual losses for traders" and that "Roughly 70% of all sandwich attacks are associated with a single entity known as Jared (jaredfromsubway.eth)". The same study shows a decline: monthly extraction "dropped from nearly $10 million in late 2024 to about $2.5 million by October 2025". A summary line on the same page cites nearly US$ 40 million for 2025: the US$ 60 million is the annualized pace at the peak, not the year's total. Chainalysis, on June 26, 2026, confirms it from the operator's side: "At its peak, the bot's prolific sandwich activity cost traders an estimated $60 million a year".

Private channels. Mancino and Rezzoli ("Sandwiched and Silent", arXiv 2512.17602, December 19, 2025) found 2,932 sandwich attacks through private channels in November and December 2024: losses of US$ 409,236.97, with a median of US$ 26.85 per victim.

Solana. Bitquery (figures verified October 11, 2026) counted 6,850,144 attacks between October 30, 2025 and October 7, 2026, with US$ 29.7 million taken before fees. For the Base network we found no total with a primary source.

"Slippage tolerance exceeded": why the transaction failed and still cost gas

The message means that, at execution, the swap's result came in below the minimum received you authorized. The contract reverts: nothing is exchanged. But the transaction entered a block and consumed computation, so the network fee is charged anyway; the Uniswap blog, on September 11, 2025, is explicit about the trade-off: "Lower slippage keeps prices tight but increases the risk of a failed swap". What that gas costs, why it changes and how it is treated is in Gas fees: what they are, why they change and tax.

The reflex of raising the tolerance to "get it through" is what hands over the room: the swap goes through, at the worst price you just authorized.

What to do without a product

Nothing here is a platform recommendation; these are the variables you control before signing.

  1. Tolerance at the minimum the pool can fill. In a deep pool the price has no reason to move 1% between quote and block; a loose tolerance is room given away.
  2. Split large orders. Price impact grows with order size relative to the pool's inventory; smaller orders reduce the impact and the prize visible in the mempool.
  3. Prefer deep pools. The quote already shows the impact, and it is the first number to compare across pools and networks.
  4. Know that private RPCs exist. Flashbots Protect (documentation updated May 5, 2026) and MEV Blocker (site read November 21, 2026) exist as endpoints that send the transaction to a private mempool, "hidden from frontrunning and sandwich bots", in Flashbots' words. MEV Blocker itself warns that "no existing solution can provide full 100% protection" and that users should "ALWAYS set slippage control to have multiple protections in place". None of them touches your tolerance: it remains the ceiling on what you can lose.
  5. Count the tax. For Brazilian residents a crypto-to-crypto swap is a barter event, covered in Does Swapping Crypto Trigger Tax in Brazil? USDT, Swaps.

If the swap is the way into a liquidity pool, its loss adds to the rebalancing loss; the full calculation is in Impermanent Loss Explained: When LP Fees Do Not Cover It.

Self-custody and swaps: the wallet is yours, the price is not

In an on-chain swap the key stays with you from start to finish, and nobody can freeze the balance. That is the real advantage of self-custody, and it does not extend to the price, which is set by the pool at the instant of the block, with the room between quoted and minimum public to any bot. The right wallet and a safe seed protect the inventory; tolerance, order size and route protect the price, and those three decisions are yours on every transaction. What the wallet protects and what it does not is in Bitcoin Self-Custody: What It Is and Brazil's 2027 Rules.

Crypto assets carry high risk, including significant volatility and the possibility of losing the capital invested, and no form of custody changes that; leverage multiplies it. Vault Capital is a securities consultancy authorized by the CVM under CVM Resolution 19/2021 and works on the principle of advice, never custody: assets stay on the client's own exchanges and wallets. If you want to set up your own wallet with hands-on guidance, the Self-Custody Immersion is built for that, and the FAQ explains how Vault works without custody of client assets.

Frequently asked questions

What is slippage in crypto?

It is the difference between the price quoted by the interface and the price the swap actually received, in the words of the Uniswap blog of September 11, 2025. Do not confuse it with price impact, which is how much your own order moves the price and already shows in the quote.

How much slippage should I set?

There is no universal number: the right tolerance is the lowest the pool can fill for your order size. In deep pools that is a fraction of 1%. Whatever tolerance you set is also the ceiling on what a sandwich can take from you.

What is a sandwich attack in crypto?

It is when a bot sees your pending swap in the public mempool, places a buy ahead of it to push the price to your limit and sells right after, keeping the difference. Chainalysis describes it as "a predatory trading strategy where a bot monitors Ethereum's mempool" (June 26, 2026). It is not a hack: your transaction executes as you signed it, at the worst price you authorized.

Why did my swap fail with slippage tolerance exceeded?

Because, at execution, the result came in below the minimum received you set, and the contract reverted the trade. The network fee is charged anyway, because the transaction was processed; the most common causes are a moving price, a shallow pool or someone pushing the price ahead of you.

Can you recover money lost to a sandwich attack?

No. The value left in a valid transaction, signed by you and executed within the minimum you authorized; there is no counterparty to complain to and no mechanism on the network to reverse it. Services promising to recover slippage or MEV losses are selling something that does not exist.

Let's talk

If you already swap from your own wallet and found, on the receipt, that part of the value went to someone you never saw, the next step is mastering the three decisions that protect the price, not only the key. If you want to learn to set up and test your own wallet safely, Vault's Self-Custody Immersion teaches the process hands-on, in person, with the setup validated by a specialist.

Want to hold your crypto safely, on your own?

Vault's Self-Custody Immersion teaches wallets, seed backups and succession planning, hands on.

Learn about the Immersion