Home Academy Guides What Are Gas Fees?

What Are Gas Fees? How to Pay Less

Every blockchain transaction costs gas. Learn what gas fees are, how Ethereum prices them, why they spike, how Layer 2 networks compare, and practical ways to cut what you pay.

11 min read Updated September 2026 Blockchain Basics

What Are Gas Fees?

Gas fees are the transaction costs you pay to use a blockchain network. Gas is the fuel for every action on the network: sending tokens, swapping on a decentralized exchange (DEX), deploying a smart contract, or minting a non-fungible token (NFT). Without gas fees, validators would have no reason to process transactions and nothing would stop anyone from flooding the network with junk requests.

On Ethereum, gas measures the computational work a transaction needs, per ethereum.org. Every step, such as reading storage, writing data or doing arithmetic, consumes a fixed number of gas units. The fee is the number of gas units used multiplied by the price per unit. A simple ETH transfer uses 21,000 gas units. A DeFi transaction that touches several contracts uses far more, because it performs far more steps.

Since the EIP-1559 upgrade (August 2021), the price per unit has two parts. The base fee is set by the protocol from how full the previous block was: it rises when blocks are more than half full and falls when they are less than half full. The base fee is burned, which means it is permanently removed from supply. On top of it, users add a priority fee, also called a tip, which goes to the validator that includes the transaction.

The formula is: Total Fee = Gas Units Used x (Base Fee + Priority Fee). Suppose the base fee is 20 gwei, your tip is 2 gwei, and the transaction uses 21,000 gas units. You pay 21,000 x 22 gwei = 462,000 gwei = 0.000462 ETH. Multiply by the ETH price of the day to get the cost in dollars. Live gas prices are on the Etherscan Gas Tracker (see Sources).

Network Fuel

Gas pays for every on-chain action. Validators receive the tip for processing your transaction and keeping the network running.

Base Fee + Tip

EIP-1559 splits the fee into a burned base fee and a priority tip. The base fee adjusts automatically with block demand.

ETH Burn

The base fee is burned, which reduces ETH supply. When the burn exceeds new issuance, the total supply falls.

How Gas Fees Work on Ethereum

Knowing the mechanics of Ethereum gas helps you predict costs and avoid overpaying. Here are the four components, as described in the ethereum.org gas documentation and EIP-1559.

1

Gwei: The Unit of Gas Pricing

Gas prices are quoted in gwei, a sub-unit of ETH. One gwei equals 0.000000001 ETH (10-9). When someone says "gas is 25 gwei", they mean each unit of gas costs 25 billionths of an ETH. That is tiny on its own, but a transaction uses tens or hundreds of thousands of gas units, so the total adds up.

The name comes from "giga-wei". Wei is the smallest unit of ETH: 1 ETH = 1018 wei, per ethereum.org. You will see gwei in wallets such as MetaMask, on gas trackers and on block explorers such as Etherscan.

2

Gas Limit

The gas limit is the maximum number of gas units you allow a transaction to consume. It is a safety cap: if the transaction would need more gas than the limit, it reverts (fails) and you still pay for the gas used up to that point. A simple ETH transfer always uses exactly 21,000 gas. Token transfers and swaps use more, and the amount depends on the contract code involved. Your wallet estimates the figure before you confirm.

Setting the limit too low makes the transaction fail. Setting it higher than needed is safe, because you only pay for gas actually consumed: unused gas is refunded, per ethereum.org.

3

Base Fee and Priority Fee

Under EIP-1559, the protocol sets the base fee. It targets blocks that are half full: when the previous block used more than the target, the base fee rises by up to 12.5% for the next block; when it used less, the base fee falls by up to 12.5%. This makes fees predictable from one block to the next. The base fee is burned in full, so validators do not receive it.

The priority fee, or tip, goes to the validator that includes your transaction. Your wallet suggests a tip based on recent blocks; in quiet periods it can be a fraction of a gwei, and during congestion users raise it to be included sooner. The "max fee per gas" setting caps the total you are willing to pay (base fee plus tip), which protects you if the base fee jumps before your transaction is included.

4

Block Space: The Scarce Resource

Ethereum produces a new block every 12 seconds. Each block has a gas limit, and the EIP-1559 target is half of that limit. The gas limit is set by validators and has been raised several times; the current value is shown on Etherscan (see Sources). Block space is the scarce resource that gas fees price: when more people want to transact than a block can hold, fees rise to ration access.

Gas fees are therefore a matter of supply and demand. The supply of block space is fixed by protocol rules. Demand moves with market activity, DeFi usage, NFT drops and token launches. This is why timing matters when you want to pay less.

Why Gas Fees Fluctuate

If you have watched Ethereum gas prices, you know they can swing from a few gwei on a quiet weekend to many times that during a viral event. The same transaction can cost a few cents one night and tens of dollars the next afternoon. The reason is always the same: demand for block space.

Because block size is capped, any sudden rise in demand pushes fees up. EIP-1559 makes the response fast: when blocks stay full, the base fee climbs by up to 12.5% every 12 seconds. A sustained run of full blocks can double the base fee in a few minutes, and the same rule brings it back down just as quickly once demand fades.

Network Congestion

Bull markets bring more users, more trading and more on-chain activity. When blocks stay above the target for long periods, the base fee keeps climbing. The 2021 DeFi and NFT boom kept average gas prices high for weeks; the historical chart on Etherscan shows these periods (see Sources).

NFT Mints and Drops

Popular NFT launches create "gas wars" in which thousands of users compete to mint in the same block. During the largest mints, buyers have paid more in gas than the NFT itself cost. Even smaller drops can cause brief but sharp spikes.

Airdrop Claims

When a major protocol distributes a token airdrop, a wave of claim transactions hits the network at once. Claims such as the Arbitrum ARB and Starknet STRK distributions caused temporary gas spikes as users rushed to collect their tokens.

DeFi Liquidation Cascades

Sharp price drops trigger waves of liquidations on lending protocols such as Aave and Compound. Liquidation bots compete for block space because each liquidation earns a bonus, so they outbid each other on tips and push fees up for everyone.

Gas Fees on Different Chains

Not all blockchains charge the same fees. Layer 2 rollups and alternative Layer 1 chains are usually far cheaper than Ethereum mainnet. Dollar figures change by the hour, so this table shows how each network sets its fees and where to check the live number.

Network How fees are set Typical level Live fees Type
Ethereum L1 EIP-1559 base fee plus tip Highest of the group Etherscan Gas Tracker L1
Arbitrum L2 execution fee plus L1 data fee Cents or less Arbiscan L2 Rollup
Base L2 execution fee plus L1 data fee Cents or less Basescan L2 Rollup
Polygon PoS Own EIP-1559 style market, paid in POL Cents or less Polygonscan Sidechain
Solana Fixed base fee per signature plus optional priority fee Fractions of a cent Solana explorers Alt L1

Note: "Typical level" is an order of magnitude, not a quote. Actual costs vary with congestion and with the price of the token used to pay gas. Layer 2 fees fell sharply after EIP-4844 (March 2024) gave rollups a cheaper way to post data to Ethereum; see the Arbitrum and Optimism documentation in Sources for how each network splits its fee between execution and data.

Skip the Gas, Earn the Yield

Gas fees eat into your returns on Ethereum L1. With Coinstancy Dollar Savings, earn 7.50% APY on USDC without managing gas for compounding yourself. Interest accrues every second and is automatically reinvested. No lock-up, withdraw anytime.

Earn 7.50% APY on USDC

How to Reduce Gas Fees

You cannot remove gas fees, but you can cut them a great deal with a few habits. Here are the most effective approaches, from the easiest to the most advanced.

Use Layer 2 Networks

The single biggest saving comes from moving your activity to a Layer 2 network. Arbitrum, Base and Optimism are Ethereum rollups: they execute transactions off the main chain and post compressed data back to Ethereum, so they inherit its security while charging a small fraction of its fees, per ethereum.org. Most major DeFi protocols (Uniswap, Aave, Compound) are deployed on several L2s. Bridge your assets once, then transact there.

Since EIP-4844, a simple swap on a rollup usually costs cents rather than dollars. For frequent DeFi users, the difference adds up quickly. Check the live fee on the explorer of the L2 you plan to use before you bridge (see Sources).

Time Your Transactions

Gas prices follow user activity. Fees are usually lower when fewer people are transacting, which in practice often means weekends and the hours outside North American and European working days. There is no fixed schedule, though: a single large mint or a market crash can fill blocks at any hour.

Use the Etherscan Gas Tracker or a similar tool to watch the live price (see Sources). Many tools let you set an alert that fires when gas drops below a target gwei level. If your transaction is not urgent, waiting a few hours for a dip can cut the fee substantially.

Batch Transactions

Every transaction pays a base cost of 21,000 gas before any contract logic runs, per ethereum.org. If you need to perform several operations, combining them into one transaction saves that overhead each time. Smart contract accounts (through account abstraction) and protocols with built-in batching let you bundle approvals, swaps and deposits into a single on-chain transaction.

For example, instead of sending one transaction to approve a token and a second to swap it, some DEXs accept a signed permit (EIP-2612) that authorizes the spend inside the swap itself. That removes the separate approval transaction and its gas cost.

Use Gasless Protocols

Some protocols pay the gas on your behalf. CoW Swap offers gasless swaps: you sign an off-chain order, and a solver pays the gas to execute your trade on-chain. The gas cost is built into the execution price rather than charged as a separate fee. This is useful if you hold only ERC-20 tokens and have no ETH to pay gas with.

Other options include intent-based swap modes on aggregators, relay services that dApp developers use to sponsor gas for their users, and any protocol that accepts ERC-20 permit signatures instead of a separate approval transaction.

Optimize Gas Settings Manually

Wallets such as MetaMask let you edit gas settings. For a non-urgent transaction, lower the max priority fee to the low end of what the wallet suggests and set a conservative max fee. The transaction may take a few extra blocks to confirm, but you pay less. Do not set the max fee below the current base fee, or the transaction will sit pending until fees drop.

Gas Fees and DeFi

Gas fees quietly erode DeFi returns, especially for smaller portfolios on Ethereum L1. A little arithmetic tells you whether a strategy is worth executing at all.

The Break-Even Calculation

Every DeFi position has a gas cost to enter (approve and deposit), ongoing costs (claiming rewards, compounding) and a gas cost to exit (withdraw). Take a hypothetical example: you deposit $500 into a yield farm on Ethereum L1 earning 10% APY, so you expect $50 a year. If the deposit costs $15 in gas, each quarterly claim costs $15 ($60 a year) and the withdrawal costs $15, you have spent $90 in gas to earn $50.

The lesson: before you enter a position on L1, estimate the total gas for the whole cycle at current prices and compare it with the yield you expect over your holding period. When the gas is a large share of the expected return, the position does not make sense on L1. This is why most small and medium DeFi positions now live on Layer 2.

Why Small Deposits Lose Money on L1

Gas depends on the work a transaction does, not on the amount involved. A $100 deposit and a $100,000 deposit into the same contract cost the same gas. The fee is flat, so it weighs far more heavily on small users. For a small trade, gas can be a large share of the value moved. For a large one, it is a rounding error.

This is one of the main usability problems of Ethereum L1, and it was most visible during the 2021 congestion. Layer 2 networks address it directly by making gas affordable at any portfolio size.

Impact on Yield Farming Strategy

Gas costs change which strategies are viable. On L1, compounding rewards by hand every week can cost more in gas than the extra yield it earns. On L2, the same compounding costs cents. Auto-compounding vaults (such as Yearn or Beefy) pool this cost across all depositors, so one transaction compounds for everyone, in exchange for a performance fee.

When you evaluate any DeFi yield, calculate the net figure: Net Yield = Gross APY minus (Total Gas Costs divided by Deposit Size). A farm advertising 20% APY means nothing if gas consumes a quarter of your principal.

No Gas Headaches. Just Yield.

Coinstancy handles the on-chain work for you: no gas calculations, no compounding transactions, no L2 bridging. Deposit USDC in Dollar Savings and earn 7.50% APY. Interest accrues every second and is automatically reinvested. No lock-up, withdraw anytime.

Start Earning on Coinstancy

The Future of Gas Fees

The Ethereum roadmap aims to make gas a minor concern for everyday users. Several upgrades and design patterns are already live, and others are planned. The details below come from the Ethereum roadmap pages and the relevant EIPs (see Sources).

1

EIP-4844: Proto-Danksharding (Live)

Activated in March 2024 with the Dencun upgrade, EIP-4844 introduced blob transactions, a data type designed for rollup data. Before it, L2s posted their compressed transaction data as calldata on Ethereum L1, competing with ordinary transactions for the same block space. Blobs have their own fee market and their own capacity, and they are pruned after a few weeks, which makes the data much cheaper to post.

The effect on L2 fees was immediate: rollup transaction costs fell sharply and sub-cent transactions became common. EIP-4844 set an initial target of three blobs and a maximum of six per block; later upgrades have raised those counts. The current values are in the Ethereum roadmap documentation (see Sources).

2

Full Danksharding (Roadmap)

Full danksharding aims to expand blob capacity far beyond today's counts. Combined with data availability sampling (DAS), it would let validators confirm that data is available without downloading all of it. The result would be far more data space for rollups and a lower fee floor on L2, per the ethereum.org danksharding page.

Full danksharding is a multi-year project. Intermediate steps, such as PeerDAS and step-by-step increases in the blob count, arrive first. Each step lowers the cost of posting rollup data to Ethereum.

3

Account Abstraction (ERC-4337)

Account abstraction replaces the traditional externally owned account (EOA) with a smart contract wallet that can define its own validation rules. One of the most useful features is gas sponsorship through paymasters: an application or a third party can pay your gas for you. Users can also pay gas in an ERC-20 token instead of holding ETH, per ERC-4337.

This is already live on Ethereum and on several L2s. Some wallets and applications sponsor gas for eligible transactions, and paymaster infrastructure lets any dApp cover gas for its users. The experience feels gasless even though gas is still paid on-chain.

4

Gas Sponsorship and Chain Abstraction

The longer-term goal is that users never think about gas at all. Chain abstraction frameworks aim to hide the underlying blockchain: you interact with an application, and the infrastructure picks a cheap chain, sponsors the gas and moves assets behind the scenes.

Several teams are building this layer, and combined with paymasters the intended end state looks like an ordinary web application: you click a button, the transaction happens on-chain, and you never see a gas prompt. This is still work in progress; treat any specific product claim with care.

Frequently Asked Questions

What are gas fees in crypto?
Gas fees are the transaction fees you pay to have a blockchain process your transaction. On Ethereum, gas measures the computational work a transaction needs, and the gas price is quoted in gwei (one billionth of an ETH). Every action, from a token transfer to a swap or an NFT mint, consumes a set amount of gas units. The fee you pay equals the gas units used multiplied by the price per gas unit, per ethereum.org.
Why are Ethereum gas fees so high?
Ethereum gas fees rise because block space is limited. Each block has a gas limit, and under EIP-1559 the base fee increases automatically when blocks are more than half full. When many users want to transact at once, such as during a popular NFT mint or an airdrop claim, the base fee climbs and users add larger tips to be included first. Layer 2 networks such as Arbitrum, Optimism and Base process transactions off the main chain and post compressed data to Ethereum, which is why their fees are much lower.
How can I check current gas prices?
You can check live Ethereum gas prices on the Etherscan Gas Tracker, which shows low, average and high gas prices in gwei together with an estimate of confirmation time. Wallets such as MetaMask also display a current estimate before you confirm. For Layer 2 fees, check the block explorer of the network you are using, for example Arbiscan for Arbitrum or Basescan for Base.
When are gas fees cheapest?
Gas fees track network activity, so they tend to be lower when fewer people are transacting. In practice that often means weekends and the hours outside North American and European working days, but there is no fixed schedule. The reliable approach is to check the live gas price on a tracker before you send, and to use a gas alert if your transaction is not urgent.
Do Layer 2 networks charge gas fees?
Yes, but they are much cheaper. Layer 2 rollups such as Arbitrum, Base and Optimism charge a small execution fee plus a share of the cost of posting their data to Ethereum. Since EIP-4844 (the Dencun upgrade of March 2024) introduced blob space, that data cost has fallen sharply. The exact fee depends on the network and the moment: check the explorer of the Layer 2 you use for live figures.
Can I avoid gas fees entirely?
You cannot remove gas fees from a public blockchain, because someone has to pay for the block space. You can, however, avoid paying them yourself. Intent-based protocols such as CoW Swap let you sign an order off-chain while a solver pays the on-chain gas and prices it into your trade. Account abstraction (ERC-4337) lets an application sponsor gas for its users through a paymaster. Some centralized exchanges also offer low-cost withdrawals to Layer 2 networks. With Coinstancy Dollar Savings, you earn 7.50% APY on USDC without managing gas for compounding yourself: interest accrues every second and is automatically reinvested.

Continue Learning

Explore more guides on DeFi concepts, protocols, and earning strategies.

Stop Losing Yield to Gas Fees

Coinstancy takes gas management off your plate. Earn 7.50% APY on USDC with Dollar Savings. Interest accrues every second and is automatically reinvested. No lock-up, withdraw anytime. No bridging, no compounding transactions, no gas calculations.

Start Earning on Coinstancy

Sources and further reading

The figures and claims on this page rest on the documents below. Time-sensitive figures (rates, yields, fees, market data) move: check the live value at the source before acting on it.

  1. Ethereum.org, Gas and feesethereum.org

    Definition of gas, the 21,000 gas cost of a simple ETH transfer, gwei, gas limit, refunds of unused gas and the base fee plus priority fee model.

  2. EIP-1559: Fee market change for ETH 1.0 chaineips.ethereum.org

    The base fee mechanism: how it targets half-full blocks, adjusts by at most 12.5% per block and is burned rather than paid to validators.

  3. EIP-4844: Shard Blob Transactionseips.ethereum.org

    Blob transactions, the separate blob fee market and the initial target and maximum blob counts per block.

  4. Ethereum.org, Dankshardingethereum.org

    How proto-danksharding (EIP-4844) reduced rollup data costs and what full danksharding and data availability sampling are meant to add.

  5. Ethereum.org, Layer 2ethereum.org

    What rollups are, how they inherit Ethereum security and why their fees are lower than on Ethereum mainnet.

  6. Etherscan Gas Trackeretherscan.io

    Live low, average and high gas prices in gwei, plus the current block gas limit and historical charts.

  7. Arbitrum documentationdocs.arbitrum.io

    How Arbitrum fees combine an L2 execution component and an L1 data component.

  8. Optimism documentationdocs.optimism.io

    Fee structure of OP Stack chains such as Optimism and Base: execution gas plus L1 data fee.

  9. ERC-4337: Account Abstraction Using Alt Mempooleips.ethereum.org

    Smart contract accounts, paymasters that sponsor gas and paying gas in ERC-20 tokens.

  10. EIP-2612: Permit Extension for EIP-20 Signed Approvalseips.ethereum.org

    How a signed permit replaces a separate on-chain approval transaction.

Last reviewed: September 2026. External links open in a new tab; Coinstancy is not responsible for their content.

Earn Yield Without the Gas Headaches

Deposit USDC in Coinstancy Dollar Savings and earn 7.50% APY. Interest accrues every second and is automatically reinvested. No gas fees to manage, no lock-up, withdraw anytime.