Technology 5 min read

What Are Ethereum Gas Fees?

Gas fees explained simply. What they are, why they exist, how they're calculated in Gwei, and how Layer 2 networks make Ethereum transactions nearly free.

What is a Gas Fee?

A gas fee is the small payment you make to use the Ethereum network. Every transaction, whether you are sending ETH to a friend or interacting with a DeFi protocol, requires computational work from the validators who maintain the blockchain. Gas fees compensate them for that work.

Think of gas like the fuel in a car. The more complex the journey (transaction), the more fuel you need.

Why Gas Fees Exist

Ethereum is a shared global computer. Without fees, anyone could flood the network with infinite requests and grind it to a halt. Gas fees create a market where people bid for limited block space, which keeps the network functional and fairly prioritized.

The fee also helps secure the network. Validators who stake ETH to verify transactions earn priority fees as part of their staking rewards.

The Unit: Gwei

Gas fees are measured in Gwei, a tiny denomination of ETH.

UnitValue in ETHWhen you see it
ETH1 ETHLarge purchases, wallet balances
Gwei0.000000001 ETHGas prices
Wei0.000000000000000001 ETHSmart contract math

When a wallet shows “3 Gwei” for the current gas price, that means 0.000000003 ETH per unit of gas used. At today’s ETH prices, that is an extremely small amount.

How Fees Are Calculated

Since the London upgrade in August 2021, Ethereum uses a two-part fee structure defined by EIP-1559:

Base Fee + Priority Fee = Total Fee Per Gas Unit

  • Base fee: Set automatically by the protocol based on network demand. It rises when blocks are full and falls when they are empty, adjusting by up to 12.5% per block. This portion of the fee is permanently burned (destroyed).
  • Priority fee: A tip you add on top to incentivize validators to include your transaction in the next block. Higher tips get faster inclusion during busy periods.

The total cost of a transaction is:

(Base Fee + Priority Fee) x Gas Units Used

A simple ETH transfer always uses exactly 21,000 gas units. Interacting with a smart contract uses more, depending on complexity.

What Does a Transaction Actually Cost?

At current mainnet gas prices of roughly 0.2 Gwei, sending ETH costs fractions of a cent.

Transaction TypeGas UnitsCost at 0.2 Gwei (~$1,900/ETH)
ETH transfer21,000~$0.000008
ERC-20 token transfer~65,000~$0.000025
Uniswap swap~150,000~$0.000057
NFT mint~200,000+~$0.000076+

Fees fluctuate constantly. Check Etherscan Gas Tracker for live prices.

Why Were Fees So High Before?

If fees are so cheap now, you may have heard horror stories about $50 gas fees in 2021. Those were real.

In 2020 and 2021, DeFi and NFT activity exploded. Every user competed for limited block space, pushing the base fee above 200 Gwei at peak times. Sending ETH could cost $20. A complex DeFi transaction could cost $200.

Two things changed this:

  1. The Dencun upgrade (March 2024) introduced EIP-4844, which added cheap “blob” storage for Layer 2 networks. This dramatically reduced L2 costs.
  2. Most activity moved to Layer 2 networks, which handle transactions off the main chain and post compressed summaries back to Ethereum.

Mainnet fees today are historically low because the heavy lifting happens on L2.

Layer 2: Near-Zero Gas

Layer 2 networks like Arbitrum, Base, and Optimism process your transactions for fractions of a cent, then settle them on Ethereum mainnet.

NetworkTypical Transaction Cost
Ethereum mainnet~$0.001-0.01
Arbitrum~$0.004-0.009
Base~$0.001-0.003
Optimism~$0.01-0.05

For most everyday use, an L2 is the right place to transact. You get Ethereum’s security at a tiny fraction of the cost.

How to Pay Less in Gas

Use an L2. This is the single most effective way to reduce fees. See our Layer 2 guide to get started.

Time your transactions. Mainnet fees are lowest on weekday nights (UTC) and weekends, when US and European users are asleep. The Ethereum gas tracker shows a weekly fee chart.

Set a custom tip. Most wallets let you manually set your priority fee. During quiet periods, a minimal tip (0.1 Gwei) is enough for fast inclusion.

Batch transactions. Some DeFi protocols allow combining multiple actions in one transaction, sharing the gas cost.

Gas and Failed Transactions

One important detail: if a transaction fails (for example, a smart contract reverts), you still pay the gas that was consumed before the failure. You do not pay the full estimate, but you do lose the gas already used.

This is one reason wallets show “estimated gas” before you confirm. Always review the estimate before approving a complex transaction.

Sources