⚔ Web3Armory
All Guides
defi6 min read·February 1, 2025

Gas Fees Explained: Stop Overpaying

Understand how gas fees work on Ethereum and L2s. Learn EIP-1559, find the best times to transact, and save money on every transaction.

What Is Gas and Why Does It Exist?

Gas is the unit that measures computational effort on Ethereum. Every operation — sending ETH, swapping tokens, minting an NFT, deploying a contract — requires gas. It's the fee you pay to validators for processing your transaction and securing the network.

Without gas fees, the network would be spammed into oblivion. Gas creates a cost for computation, which prevents denial-of-service attacks and ensures validators are compensated for their work. It's annoying to pay, but it's what keeps the chain running.

How Gas Pricing Works

Since EIP-1559 (August 2021), Ethereum gas has two components:

  • Base Fee: Set by the protocol based on network demand. This is burned (destroyed), making ETH deflationary during high usage. You MUST pay at least the base fee for your transaction to be included.
  • Priority Fee (Tip): An optional tip you pay directly to validators to incentivize them to include your transaction faster. Higher tip = faster inclusion.

Your total gas cost = (Base Fee + Priority Fee) × Gas Used

A simple ETH transfer uses 21,000 gas. A Uniswap swap might use 150,000-300,000 gas. A complex DeFi interaction could use 500,000+. The more complex the operation, the more gas it consumes.

EIP-1559 Explained Simply

Before EIP-1559, gas was a blind auction — you guessed a price and hoped it was enough. Now it's much more predictable:

  • The base fee adjusts automatically. If the last block was more than 50% full, base fee goes up. Less than 50% full, it goes down.
  • You set a max fee (the most you're willing to pay) and a priority fee (your tip to validators).
  • You only pay what's needed: if your max fee is 50 gwei but the base fee is only 20 gwei, you pay 20 + your priority fee. The difference is refunded.
  • The base fee is burned, reducing ETH supply. During high activity, more ETH is burned than issued — making ETH deflationary.
Think of it like a taxi meter: the base fee is the standard rate (set by demand), and the priority fee is your tip to get picked up faster.

Best Times to Transact

Gas prices fluctuate wildly based on network demand. Here's when to save:

  • Weekends: Typically 30-50% cheaper than weekdays. Less trading activity = lower demand.
  • Early Morning UTC (2-6 AM): US is sleeping, Europe hasn't woken up. Lowest gas of the day.
  • Avoid: NFT mints, major token launches, market crashes — these spike gas to insane levels (100+ gwei).
  • Monitor: Use gas trackers (like Web3Armory's Gas page) to find the sweet spot. Set gas alerts for your target price.

L2s: The Gas Saver's Best Friend

Layer 2 rollups process transactions off-chain and post compressed data to Ethereum. The result? 10-100x cheaper gas fees with the same security guarantees.

  • Arbitrum: ~$0.01-0.10 per swap. Largest L2 ecosystem with tons of DeFi.
  • Base: ~$0.001-0.05 per transaction. Coinbase's L2, growing fast.
  • Optimism: ~$0.01-0.10 per swap. Home of the Superchain vision.
  • zkSync Era: ~$0.01-0.20 per transaction. ZK-proof based, native account abstraction.

If you're doing regular DeFi activities (swaps, LPs, farming), there's almost no reason to stay on mainnet anymore. Bridge to an L2 and save 95% on gas. Your wallet will thank you.

Gas Optimization Tips

  • Batch transactions: Some protocols let you batch multiple actions into one transaction. Use them.
  • Set realistic gas limits: Don't set your max fee way above current rates "just in case." You'll overpay.
  • Use gas tokens: Some protocols offer gas rebates or subsidized transactions for their token holders.
  • Simulate first: Use Tenderly or similar tools to simulate your transaction and see exact gas usage before sending.
  • Cancel stuck transactions: If a transaction is stuck, send a 0 ETH transaction to yourself with the same nonce and higher gas to replace it.
  • Approve exact amounts: Instead of "unlimited" token approvals, approve only what you need. Revoking approvals later costs gas too.
The cheapest transaction is the one you don't make. Consolidate your DeFi activities, plan your moves, and execute when gas is low. Patience literally pays in crypto.

Share this guide

Related Guides