You go to swap one token for another. The screen shows a price. You tap confirm. What actually happens next involves a competitive auction, a network toll, and possibly a bot that made money off your trade before it even settled — none of which appears clearly on that confirmation screen. If you trade on-chain and only look at the token price, you're seeing maybe half the real cost.
Gas: the network toll
Every action on a blockchain — a swap, a transfer, approving a token — requires computation, and that computation costs a fee called gas, paid to the network's validators for including and processing your transaction. Gas isn't fixed. It's a live auction: when the network is busy, everyone bids higher to get their transaction processed first, and fees spike. This is why the same simple swap might cost a couple dollars on a quiet Tuesday and a small fortune during a frenzy. On congested networks at peak times, the gas fee can exceed the value of a small trade entirely — you can pay more to move the money than the money you're moving.
Slippage: the moving target
The price you're quoted and the price you get can differ, because between hitting confirm and the trade settling, the market moves and your own trade moves it. On thin liquidity, a large order eats through the available prices and fills at a worse average than the quote — that gap is slippage. The less liquid the token, the worse it bites, which is why aping into a tiny new coin can cost you far more than the sticker suggests, in both directions: getting in and getting out.
MEV: the bots that trade against you
Here's the part almost no one explains. On a public blockchain, pending transactions are visible before they're finalized. Sophisticated bots watch that queue and extract value from it — this is called MEV (maximal extractable value). The classic move is the "sandwich": a bot sees your pending buy, jumps in front of it to push the price up, lets your order fill at that worse price, then immediately sells into the bump. You paid more, they pocketed the difference, and you never saw it happen. You just got a slightly worse fill than expected and assumed it was normal slippage.
How to pay less of the invisible tax
Time your transactions for when the network is quiet — gas is dramatically cheaper off-peak, and there are free trackers that show current levels. Set a sensible slippage tolerance; too high, and you're inviting sandwich bots to feast on the gap you authorized. Prefer deep, liquid pools over thin ones — liquidity is protection. For larger trades, some interfaces offer MEV-protected routing or private transaction relays that hide your order from the front-running bots. And factor all of it into whether a trade is even worth it: a "great entry" isn't great if gas, slippage, and MEV quietly eat the edge before you're filled.
On-chain trading is powerful and permissionless, but "permissionless" also means nobody's protecting you from the toll-takers and the bots. The sticker price is the beginning of the cost, not the end. Knowing the full stack is what separates traders who keep their edge from those who donate it, one invisible skim at a time.
Want the crypto survival kit?
The free crypto pack covers position sizing, exchange risk, and the pre-buy checklist — the boring stuff that keeps accounts alive.
See the free pack →