Skip to content
Crypto Almanac Daily
fundamentalsintermediate

How Gas Fees Work on Ethereum

Gas fees are the cost of doing anything on Ethereum. Learn what drives them, why they spike, and practical ways to pay less without risking your funds.

DDana WhitfieldOn-chain Analyst· Published June 25, 2026· 8 min read

Gas fees are the cost of doing anything on Ethereum — sending a token, swapping on a DEX, or minting an NFT. Every action consumes computational effort, measured in units of 'gas', and you pay for that effort in ETH. The total fee is the amount of gas an action uses multiplied by the price you pay per unit, which rises and falls with how busy the network is.

What exactly is gas?

Gas is a measure of computational work, not a currency. A simple ETH transfer costs a fixed 21,000 gas, while a complex DeFi interaction might consume several hundred thousand. You pay for that gas in gwei, a tiny denomination of ETH where one gwei is one-billionth of a coin. Separating the work (gas units) from the price (gwei per unit) lets the network charge more when demand is high without changing what each action fundamentally costs.

How is an Ethereum gas fee calculated?

Since the network's fee-market upgrade, each transaction fee has two parts. The base fee is set automatically by the protocol based on how full recent blocks are, and it is burned — removed from circulation. On top of that, you add a priority fee, or 'tip', to incentivise validators to include your transaction sooner. Your total is: gas used, multiplied by the sum of the base fee and the tip. When blocks are congested, the base fee climbs quickly, which is why costs can multiply within minutes.

Why do gas fees spike?

Fees are driven by competition for limited block space. When a popular token launches, an NFT drops, or markets move sharply, thousands of users rush to transact at once, bidding up the priority fee to get in first. Because block space is fixed, demand — not any central operator — sets the price. A quiet Sunday morning might cost a fraction of a dollar for a swap, while a frenzied launch can push the same action into the tens of dollars.

How can you pay lower gas fees?

  • Use a layer-2 network such as an Ethereum rollup, where fees are often a few cents instead of dollars.
  • Transact during off-peak hours, typically weekends and early mornings in US and European time zones.
  • Set a lower priority fee if your transaction is not urgent and you can wait for it to confirm.
  • Batch actions where a protocol allows it, so one transaction does the work of several.
  • Check a gas tracker before you sign, so you are not overpaying during a temporary spike.

How do layer-2 networks reduce fees?

Layer-2 rollups process transactions off the main chain and post compressed proofs back to Ethereum, spreading the cost of settlement across thousands of users. The result is fees that are frequently 90% lower or more, while still inheriting Ethereum's security. Our guide on Ethereum rollups explains the mechanics, and our layer 1 versus layer 2 comparison shows where rollups fit in the wider scaling picture. For most everyday activity, moving to a layer-2 is the single biggest fee saving available.

What happens if you set the gas fee too low?

If your priority fee is too low during busy periods, your transaction may sit unconfirmed for a long time or fail to go through, and a failed transaction can still cost gas because the network did work before rejecting it. Most wallets estimate a sensible fee automatically, but you can override it. If a transaction is stuck, you can often 'speed it up' by resubmitting with a higher tip rather than sending funds twice.

ShareX
Reference

Frequently asked

Why are Ethereum gas fees so high sometimes?

Block space is limited, so when many users transact at once — during a token launch or a sharp market move — they bid up the priority fee to get included first, pushing the total cost up.

Do I pay gas fees if my transaction fails?

Yes, often. The network does computational work before rejecting a failed transaction, so you can still be charged for the gas consumed even though the action did not complete.

Are gas fees paid in ETH or a stablecoin?

On Ethereum, gas is always paid in ETH, measured in gwei. Even if you are moving a stablecoin or another token, you need some ETH in the wallet to cover the fee.

What is the cheapest way to use Ethereum?

Using a layer-2 rollup is usually the cheapest option, often cutting fees by 90% or more while keeping Ethereum-level security. Transacting during off-peak hours also helps.

Keep reading

More from the almanac