Gas Fees Explained: Why Ethereum Transactions Cost So Much (And How to Pay Less)
What are gas fees? Why do they spike? How to optimize transaction costs on Ethereum, L2s, and other chains. Complete guide to understanding blockchain fees.

Dive Deeper with AI
Click → prompt copied → paste in AI chat
You tried to swap tokens. Gas fee: $47.
For a $30 swap.
Welcome to Ethereum. Let's understand why this happens and how to avoid it.
What Is Gas?
Gas is the unit measuring computational effort on Ethereum.
Every action costs gas:
- Simple transfer: 21,000 gas
- Token swap: 100,000-300,000 gas
- NFT mint: 50,000-200,000 gas
- Complex DeFi: 500,000+ gas
Gas isn't the fee itself. It's like saying a trip is "100 miles." The actual cost depends on gas price.
Gas Price (Gwei)
Gas price is measured in Gwei (1 Gwei = 0.000000001 ETH).
Your fee = Gas Used × Gas Price
Example:
- Swap uses 150,000 gas
- Gas price: 30 Gwei
- Fee: 150,000 × 30 = 4,500,000 Gwei = 0.0045 ETH
At ETH = $3,000, that's $13.50.
When network is busy, gas price can spike to 200+ Gwei. Same swap now costs $90.
Why Do Gas Fees Exist?
Ethereum has limited block space. Each block fits only so many transactions.
Gas fees are an auction. Everyone bids for block space. Highest bidders get included first.
This prevents:
- Spam attacks (expensive to spam)
- Network congestion (prices rise, demand falls)
- Infinite loops (run out of gas, transaction fails)
It's economic rationing of scarce resources.
EIP-1559: Base Fee + Priority Fee
Since August 2021, Ethereum uses a new fee model:
Base Fee
- Set by the protocol
- Adjusts based on network congestion
- Gets burned (destroyed)
- You must pay at least this
Priority Fee (Tip)
- You choose the amount
- Goes to validators
- Higher tip = faster inclusion
Total fee = (Base Fee + Priority Fee) × Gas Used
Max Fee
You set a maximum you're willing to pay. If base fee drops, you save money.
Why Fees Spike
Network Congestion
Popular NFT mint? Everyone rushes to transact. Demand > supply. Prices spike.
During the Otherside mint, gas hit 8,000+ Gwei. Some people paid $5,000+ per transaction.
MEV Bots
Bots compete to front-run your transactions. They bid up gas to get priority. You suffer.
Complex Transactions
More computation = more gas. Simple transfer: cheap. Multi-hop swap through 5 pools: expensive.
How to Pay Less Gas
1. Time Your Transactions
Gas prices follow patterns:
- Cheapest: Weekends, early morning US time
- Expensive: Weekday afternoons (US), NFT drops, major news
Check gas trackers: Etherscan Gas Tracker, GasNow.
2. Set Lower Max Fee
Don't use "fast" unless urgent. Set a comfortable max fee and wait. If you're not in a hurry, you'll pay less.
3. Use Layer 2s
L2s (Arbitrum, Optimism, Base) process transactions off Ethereum mainnet.
Typical savings:
- Ethereum: $5-50
- Arbitrum: $0.10-0.50
- Optimism: $0.10-0.50
- Base: $0.01-0.10
For most DeFi, L2s work fine. Same tokens, same protocols, 95% cheaper.
4. Batch Transactions
Some protocols let you combine actions. One approval + swap instead of two separate transactions.
Aggregators like 1inch optimize routes to minimize gas.
5. Use Gas Tokens (Historical)
Chi and GST2 let you "bank" gas when cheap. Deprecated after EIP-1559 but worth knowing history.
6. Cancel Properly
Made a mistake? Don't just send another transaction. Send a 0 ETH transaction to yourself with the same nonce but higher gas to replace the stuck one.
Gas on Other Chains
Ethereum isn't the only option:
| Chain | Typical Fee | Speed | |-------|-------------|-------| | Ethereum | $5-50 | 12 sec | | Arbitrum | $0.10-0.50 | 2 sec | | Optimism | $0.10-0.50 | 2 sec | | Base | $0.01-0.10 | 2 sec | | Polygon | $0.01-0.05 | 2 sec | | Solana | $0.001 | 0.4 sec | | BSC | $0.10-0.30 | 3 sec |
Tradeoffs: cheaper chains often sacrifice decentralization or security.
Failed Transactions Still Cost Gas
Transaction failed? You still pay.
Why? Validators processed your transaction. They did the work. The network used resources.
This prevents spam attacks where people submit transactions designed to fail.
Avoid failed transactions:
- Set proper slippage
- Check you have enough tokens
- Verify contract interactions before signing
- Simulate transactions with tools like Tenderly
Gas Estimation
Wallets estimate gas for you. But they're often wrong.
Too low: Transaction fails, gas wasted Too high: Transaction succeeds, excess refunded
Better to slightly overpay (you get refund) than underpay (you lose everything).
MEV and Gas
Maximal Extractable Value affects your gas:
Sandwich attacks: Bots see your swap, buy before you (raising price), let your swap execute, then sell (profiting from price increase). They pay high gas to get priority.
Protection options:
- Flashbots Protect (private mempool)
- MEV-resistant DEXs
- Limit orders instead of market orders
Token Approvals
First time using a token on a DEX? You pay for "approval" transaction.
Two options:
- Approve exact amount (safer, pay gas each time)
- Approve unlimited (risky, pay once)
Unlimited approvals are dangerous. If the contract is exploited, attacker can drain all your tokens.
Revoke approvals at: revoke.cash
The Future of Gas
Danksharding
Ethereum's roadmap includes making L2s even cheaper. Proto-danksharding (EIP-4844) already reduced L2 fees significantly.
Account Abstraction
Pay gas in any token, not just ETH. Sponsors can pay gas for users.
Better UX
Eventually, users might not even know gas exists. Applications will abstract it away.
Gas Checklist
Before transacting:
- [ ] Check current gas prices
- [ ] Consider if L2 works for your needs
- [ ] Time transaction for lower fees
- [ ] Set reasonable max fee
- [ ] Verify you have enough ETH for gas
- [ ] Understand what you're approving
- [ ] Simulate complex transactions
- [ ] Have patience — cheap gas comes to those who wait
The Bottom Line
Gas fees are the cost of using Ethereum's security and decentralization.
High fees suck. But they also mean:
- Network is valuable (people want to use it)
- Security is strong (expensive to attack)
- Validators are incentivized
You can't avoid gas entirely. But you can:
- Use L2s for most activity
- Time transactions smartly
- Not panic during spikes
- Accept it as cost of doing business
Or use centralized exchanges and pay in different ways (custody risk, data harvesting, trading against you).
Pick your tradeoff.