DeFi & Ethereum

What Are Ethereum Gas Fees?

You've just tried to swap two tokens on Uniswap or mint an NFT, and the wallet pops up a fee estimate that looks way too high. That's a gas fee — and if you've ever been caught off guard by one, you're not alone. Gas fees are one of the most complained-about aspects of using Ethereum. Here's what they actually are, why they fluctuate so much, and how to work around them.

The gas analogy

Think of the Ethereum network as a city of computers (nodes) that run programs — smart contracts — on demand. Every computation on that network requires real processing power. Gas is the unit that measures how much computation a given operation requires. Simple ETH transfers use a small amount of gas; complex DeFi interactions (multi-step swaps, liquidity provision, NFT mints) use more.

The fee you pay isn't just for service — it's how the network rations scarce block space. Because only so many transactions fit in each Ethereum block, users effectively bid for inclusion. The more you pay, the faster your transaction gets picked up by validators.

How gas fees are calculated

Since the EIP-1559 upgrade in 2021, Ethereum fees have two components:

  • Base fee — A minimum fee set by the network and burned (destroyed). It rises when blocks are more than 50% full and falls when they're under 50%. You can't pay less than this.
  • Priority fee (tip) — An optional extra you add on top to incentivize validators to include your transaction faster. During quiet periods you can set this low; during congestion it needs to be higher.

Gas is denominated in gwei — one gwei equals 0.000000001 ETH (one billionth of an Ether). The total fee is:

Total fee (ETH) = Gas units used × (Base fee + Priority tip) × 0.000000001

A standard ETH transfer uses 21,000 gas units. If the base fee is 20 gwei and you add a 1 gwei tip, you pay: 21,000 × 21 gwei = 441,000 gwei = 0.000441 ETH. At $3,500/ETH that's about $1.54. For a complex DeFi swap that might use 150,000+ gas units, the same gas price would cost ~$11.

Why do fees spike?

Gas fees are driven by demand for block space. When activity on Ethereum surges — a popular NFT drop, a major DeFi event, a fast-moving market — thousands of users compete to get their transactions confirmed. The base fee climbs automatically. During the 2021 NFT boom and DeFi summer peaks, simple transfers regularly cost $20–$50 and complex transactions $100–$200+.

The mempool is the waiting room for unconfirmed transactions. When it fills up, fees spike. When it empties, fees drop. Several tools (Etherscan Gas Tracker, EthGasStation) show real-time gas prices so you can choose when to transact.

Typical gas costs by transaction type

Transaction typeApprox. gas unitsTypical cost (moderate network)
ETH transfer21,000$0.50 – $3
ERC-20 token transfer45,000 – 65,000$1 – $8
Uniswap token swap100,000 – 200,000$3 – $25
NFT mint (simple)100,000 – 200,000$3 – $25
Liquidity provision (Uniswap v3)300,000 – 500,000$8 – $60

Costs assume moderate congestion (~20–30 gwei base fee) and ETH at ~$3,500. During high congestion, multiply by 5–10×.

How to minimize gas fees

  • Time your transactions. Gas is cheapest on weekdays during off-peak hours (late night US time, early morning UTC). Avoid transacting during major market moves or hyped NFT drops.
  • Use a gas tracker. Etherscan's Gas Tracker shows current low/average/high prices. Set your transaction to "low" if you're not in a hurry — transactions will still confirm, just more slowly.
  • Batch transactions when possible. Some wallets and protocols let you combine multiple actions into one transaction, saving gas versus doing them separately.
  • Use Layer 2 networks. The biggest reduction in fees comes from moving activity off Ethereum mainnet entirely — see below.

Layer 2: the real solution

Layer 2 (L2) networks are separate blockchains that run on top of Ethereum, inherit its security, but execute transactions more cheaply. Instead of every transaction competing for mainnet block space, thousands of transactions are bundled together ("rolled up") and submitted to Ethereum as a single proof. The per-transaction cost drops dramatically.

The main L2 networks today:

  • Arbitrum — The largest L2 by total value locked. Compatible with all Ethereum apps. Fees typically $0.01–$0.50 per transaction.
  • Optimism (OP Mainnet) — Similar technology, home to major DeFi protocols. Comparable fees to Arbitrum.
  • Base — Built by Coinbase on Optimism's technology. Fast growing, very low fees.
  • zkSync / Starknet — ZK-rollup technology that provides even stronger cryptographic proofs; still maturing.

If you're planning to use DeFi protocols, doing so on an L2 rather than Ethereum mainnet will typically save you 90%+ in fees. The trade-off is an extra step: you need to bridge your ETH from mainnet to the L2 first (which itself costs one mainnet gas fee, but you only pay it once).

Bitcoin vs. Ethereum fees

Bitcoin doesn't have gas in the Ethereum sense. Bitcoin transaction fees are simpler — based primarily on transaction size in bytes, not computational complexity. During quiet periods, Bitcoin fees can be under $1; during congestion they have spiked to $30–$50. For everyday small Bitcoin payments, the Lightning Network (a Layer 2 for Bitcoin) reduces fees to fractions of a cent. See our Bitcoin vs. Ethereum comparison for more on how the two networks differ.

// Key takeaways

  • Gas measures computation on Ethereum. You pay gas fees to compensate validators and secure your spot in the next block.
  • Fees = gas units × (base fee + priority tip), denominated in gwei (billionths of ETH).
  • Fees spike when demand exceeds block space — during market volatility, NFT drops, and DeFi events.
  • Minimize fees by transacting off-peak, checking a gas tracker, and using Layer 2 networks like Arbitrum, Optimism, or Base.
  • For most DeFi activity today, L2s offer the same apps at 90%+ lower cost than Ethereum mainnet.

New to DeFi?

Our DeFi explainer covers how decentralized lending, trading, and yield protocols work — and the real risks before you commit any funds.

Read: What Is DeFi? →

This article is for educational purposes only and is not financial, investment, tax, or legal advice. Gas prices and network conditions change constantly — always verify current fees before transacting. Some links on this site are affiliate links — see our disclosure.