How Do Gas Fees Work on Ethereum?

How Do Gas Fees Work on Ethereum?

Beginner
Updated Jul 6, 2026
9m

Key Takeaways

  • Gas fees are transaction costs on the Ethereum network, paid in gwei (a small unit of ETH), that compensate validators for processing transactions and smart contracts.

  • Under the EIP-1559 system, each transaction has a base fee (automatically set and burned) and an optional priority fee (a tip to validators). This replaced the older auction model and made fees more predictable.

  • The March 2024 Dencun upgrade, the May 2025 Pectra upgrade, and the December 2025 Fusaka upgrade dramatically reduced the cost of data posted by layer-2 networks, cutting typical L2 fees to under $0.01 per transaction.

  • Mainnet gas fees as of mid-2026 have fallen significantly from 2023 levels, averaging $0.10-0.20 for simple transfers, though short-term spikes during high-demand events can still occur.

  • The most effective way to reduce gas costs is to use layer-2 networks, which offer near-identical functionality to Ethereum mainnet at a fraction of the cost.

Binance Academy courses banner

Introduction

Every action on the Ethereum network, whether sending ETH, swapping tokens, minting an NFT, or interacting with a DeFi protocol, consumes computational resources. These resources are provided by validators who maintain the network and add new blocks to the blockchain. Gas fees are the mechanism that compensates these validators for their work, denominated in small fractions of ETH.

Gas fees are one of the most practically important concepts in Ethereum. They are not sales tax or platform charges; they are a direct result of the network's limited block space. Understanding how they work can help you spend less on on-chain activity.

How Do Gas Fees Work?

To understand gas fees, it helps to separate three concepts: gas units, gas price, and the total fee.

Gas units measure computational work. Each operation in an Ethereum transaction has a fixed gas cost: a simple ETH transfer uses 21,000 gas, a token transfer using the ERC-20 standard uses roughly 45,000 to 65,000 gas, and a complex DeFi interaction can use hundreds of thousands of gas units. The total gas used depends only on what the transaction does, not on network conditions.

Gas price is the per-unit cost, measured in gwei. One gwei equals one-billionth of an ETH (0.000000001 ETH). Under EIP-1559, the gas price is split into two parts: a base fee set automatically by the protocol, and an optional priority fee chosen by the user.

The calculation is: Total fee = Gas units consumed x (Base fee + Priority fee). For example, a simple ETH transfer at a base fee of 10 gwei and a priority fee of 1 gwei: 21,000 x 11 gwei = 231,000 gwei = 0.000231 ETH. At an ETH price of $2,500, that transaction costs roughly $0.58.

The base fee

EIP-1559 sets a target of 50% block fullness. If the previous block was more than 50% full, the base fee increases by up to 12.5% for the next block. If it was under 50%, the base fee decreases by the same proportion. This automatic adjustment means users do not need to guess a fee, and sustained high demand creates equilibrium rather than runaway costs.

The base fee is burned rather than paid to validators, which removes ETH from circulation. More than four million ETH have been burned since EIP-1559 went live in 2021.

The priority fee

The priority fee is an optional tip to validators. During low-activity periods, a tip of zero is often sufficient. During congestion, a higher priority fee signals to validators to include a transaction ahead of others. For most non-urgent transactions, the lower end of the suggested range is adequate.

Why Do Gas Fees Fluctuate?

Gas fees change in response to two main forces: network demand and protocol-level upgrades.

On the demand side, the EIP-1559 base fee mechanism creates a self-regulating system. When many users transact at the same time, blocks fill up, the base fee rises, and some users wait for lower costs. 

This prevents the sudden fee explosions common under the old auction model, though short-term spikes during popular NFT mints or market events can still occur.

On the supply side, the network's capacity has expanded through protocol upgrades. The Dencun upgrade (March 2024) and the Pectra upgrade (May 2025) did not increase mainnet block size directly, but they reduced the cost for layer-2 networks to post data to Ethereum. 

Because L2s process more than half of all Ethereum transactions, this reduction in L2 data costs translated into lower fees for the majority of users.

How Upgrades Have Reduced Fees

Average mainnet transfer fees as of mid-2026 have fallen significantly from 2023 levels, driven by three key developments.

Dencun upgrade and EIP-4844

The March 2024 Dencun upgrade introduced proto-danksharding, creating a new type of data storage called blobs. Blobs operate on a separate fee market from regular transactions and are pruned after approximately 18 days. 

L2 networks can post their transaction data using blob space, meaning they no longer compete directly with mainnet users. This reduced the data-posting cost for L2s by 90-99%, bringing typical L2 fees below $0.01.

Pectra upgrade

The May 2025 Pectra upgrade built on Dencun by doubling the amount of L2 blob data that can be included per block, adding support for transaction batching and gas sponsorship, and raising the maximum effective balance for validators from 32 ETH to 2,048 ETH. 

The 32 ETH minimum to become a validator is unchanged; only the maximum was raised, allowing validators to compound rewards without spinning up new instances. These changes increased effective throughput and further reduced per-transaction costs on both mainnet and L2s.

Fusaka upgrade

The December 2025 Fusaka upgrade implemented EIP-7594, also known as PeerDAS (Peer Data Availability Sampling). This distributes blob data across peer nodes rather than requiring every node to store every blob. The result is a substantial increase in blob throughput per slot, further reducing L2 data costs and increasing the effective data capacity of the network. This represents the next step toward full danksharding.

Layer-2 adoption

By 2026, layer-2 rollups including Arbitrum, Optimism, Base, zkSync, and Starknet process the majority of Ethereum transaction volume. On these networks, a simple transfer costs under $0.01 and a token swap costs $0.02-0.05.

Average mainnet gas prices as of mid-2026 were approximately 2-3 gwei during typical network conditions, a level at which even a complex DeFi interaction rarely exceeds a few dollars. Short-term spikes linked to popular mints or protocol launches still occur, but persistent high gas fees are substantially rarer than in earlier years.

How to Minimize Gas Costs

Several practical strategies can reduce what you spend on gas, and they are not mutually exclusive.

Use a layer-2 network

This is the most effective step. Networks such as Arbitrum, Optimism, and Base offer near-identical functionality to Ethereum mainnet, including major DeFi protocols and token standards, at a fraction of the cost. A swap that costs $5 on mainnet may cost $0.02 on an L2. Most popular wallets, including MetaMask, support L2 networks natively.

Switching to an L2 requires adding the network in wallet settings and bridging funds, which involves a one-time mainnet gas fee. That cost is typically recovered quickly through subsequent savings.

Time transactions during low-activity periods

Gas prices still vary with network demand even after EIP-1559. Periods around major NFT mints, token launches, or market events tend to see elevated base fees. Gas tracker tools such as Etherscan's gas tracker display current base and priority fees in real time, helping you estimate costs before submitting a transaction. Weekend mornings (UTC) have historically shown lower fees.

Adjust gas limits and priority fees carefully

Most wallets estimate gas limits and suggest priority fees automatically, and these estimates are adequate for most transactions. Setting a very low priority fee during congestion may cause long confirmation delays. Gas trackers display the current range of effective priority fees, and adjusting to the lower end of that range is typically sufficient for non-urgent transactions.

FAQ

What is gwei?

Gwei is a denomination of ETH. One gwei equals 0.000000001 ETH (one-billionth of an ETH). Gas prices are quoted in gwei because using full ETH would require many decimal places for such small values. A gas price of 20 gwei means each unit of gas costs twenty-billionths of an ETH.

Why do I have to pay gas fees?

Gas fees serve two purposes. First, they compensate validators for the computational resources they expend maintaining the Ethereum network. Second, they act as a spam-prevention mechanism: because every operation costs something, there is an economic disincentive against flooding the network with meaningless transactions.

What happens if I set gas too low?

If the total gas fee is below the current base fee, the transaction will not be included in any block. Most wallets will warn you. If the fee meets the base fee but the priority fee is near zero during moderate demand, the transaction may sit in the mempool until demand drops. Most wallets allow you to speed up a pending transaction by resubmitting it with a higher fee, using the same nonce (transaction sequence number).

Are gas fees the same on all blockchains?

No. While "gas" originated on Ethereum, other blockchains have their own transaction fee mechanisms. On BNB Chain, fees are paid in BNB and are typically lower than Ethereum mainnet fees.

Solana uses a different model entirely, charging a fixed base fee per signature and a separate priority fee system. The core concept (paying for computational resources) is common to all programmable blockchains, but the specific mechanisms, currencies, and cost levels vary considerably.

Will gas fees ever go away?

Under Ethereum's current architecture, gas fees will not disappear entirely. They are the mechanism that allocates limited block space. However, the trend through 2026 has been toward fees that are low enough to be a minimal concern for most users, especially on L2 networks. Future upgrades including full danksharding and further increases in blob capacity may continue this trend, but are unlikely to bring fees to zero.

Closing Thoughts

Gas fees are a product of limited block space. When more people want to transact than the network can accommodate, price is the mechanism that allocates that space. The engineering behind EIP-1559, Dencun's blob-based data pricing, Pectra's throughput improvements, and Fusaka's distributed blob storage has made fees more predictable and less prone to sudden spikes.

As of 2026, fees remain an unavoidable part of using Ethereum, but protocol upgrades and L2 adoption have made them a much smaller part of the total cost of on-chain activity than they were just a few years ago.

Further Reading

Disclaimer: This content is presented to you on an "as is" basis for general information and educational purposes only, without representation or warranty of any kind. It should not be construed as financial, legal, or other professional advice, nor is it intended to recommend the purchase of any specific product or service. You should seek your own advice from appropriate professional advisors. Where the content is contributed by a third-party contributor, please note that those views expressed belong to the third-party contributor, and do not necessarily reflect those of Binance Academy. Digital asset prices can be volatile. The value of your investment may go down or up and you may not get back the amount invested. You are solely responsible for your investment decisions and Binance Academy is not liable for any losses you may incur. For more information, see our Terms of Use, Risk Warning, and Binance Academy Terms.