Gas fees are what you pay, in ether (ETH), every time you send coins or use an application on Ethereum. The amount depends on how much computing work your transaction needs, measured in units of gas, multiplied by the price per unit at that moment. That price follows demand: when many people want to transact at once it rises, and when the network is quiet it falls.
In brief
- Gas measures the computing work a transaction needs; a simple ETH transfer uses 21,000 units.
- The fee is the gas used multiplied by the base fee plus an optional tip, and it is quoted in gwei, one billionth of an ETH.
- The base fee is burned and can move by at most 12.5% from one block to the next, so it follows demand closely.
- The fee is paid even if the transaction fails, which is why a quick check before signing matters.
- Layer 2 networks, which bundle many transactions together, usually cost far less than the main Ethereum chain.

In this article · 12 min read
- What are gas fees on Ethereum?
- How gas fees are calculated, step by step
- Why some actions cost more gas than others
- Why gas fees change from one hour to the next
- Layer 2 networks: the main way to pay less
- John Bax's view: always keep some ETH for gas
- Advantages and limits of the gas system
- Where gas fees fit for you
- How to pay gas fees without surprises
- Checklist
- Who it is for
- Key terms
- Frequently asked questions
- Sources
What are gas fees on Ethereum?
The official ethereum.org guide to gas defines gas as "the unit that measures the amount of computational effort required to execute specific operations on the Ethereum network". Every action, from moving ETH to swapping a token, is broken down into small operations, and each one has a fixed cost in gas set by the protocol. The fee itself is paid in ETH and quoted in gwei: one gwei is 0.000000001 ETH.
If Ethereum is new to you, our guide on what Ethereum is explains the network, smart contracts (programs stored on the blockchain) and ether before you dive into fees.
Why charge for computation at all? Every node, the computers that keep a copy of the ledger, has to run your transaction. A price on each step stops people from flooding the network with useless work or with programs that never end, and it pays the validators, the participants who lock up ETH to propose and confirm blocks.
How gas fees are calculated, step by step
Since an upgrade in 2021 known as EIP-1559 (EIP stands for Ethereum Improvement Proposal), a fee has two parts. This is how it works:
- Your wallet estimates the gas. It works out how many units your transaction will use and sets a gas limit, the maximum you accept to consume. A plain ETH transfer needs 21,000 units.
- The network sets a base fee. The base fee is a price per unit of gas, calculated by the protocol for each block. Everyone in that block pays the same base fee.
- You add a tip. The priority fee, or tip, goes to the validator who includes your transaction. A higher tip can help you get in sooner when blocks are full.
- The fee is gas used × (base fee + tip). The ethereum.org example: a transfer of 21,000 units, with a 10 gwei base fee and a 2 gwei tip, costs 21,000 × 12 = 252,000 gwei, or 0.000252 ETH.
- The base fee is burned, the tip is paid. In that example, 0.00021 ETH is burned, meaning permanently removed from circulation, and the validator receives 0.000042 ETH. Any gas you reserved but did not use comes back to you.

One detail surprises many newcomers. The guide states that "the fee is paid regardless of whether a transaction succeeds or fails": if a transaction runs out of gas halfway, its changes are undone but the gas it used is still spent.
Why some actions cost more gas than others
A transfer of ETH between two wallets is the cheapest kind of transaction, because it does almost nothing besides updating two balances. A token swap on a decentralised exchange, by contrast, calls several smart contracts, reads prices, moves two tokens and records new balances. Each of those steps adds gas.
The exact price list is in the Ethereum Yellow Paper, the formal technical specification of the protocol (Appendix G, in its Shanghai version of February 2025). Some examples:

| Operation | Gas units |
|---|---|
| Extra charge for a transaction that creates a contract | 32,000 |
| Base cost of every transaction | 21,000 |
| Storing a new non-zero value | 20,000 |
| Sending ETH as part of a contract call | 9,000 |
| Reading a storage slot for the first time in a transaction ("cold" read) | 2,100 |
| A simple step, such as an addition | 3 |
Writing to storage is what makes complex transactions expensive: ethereum.org notes that writing a new slot costs 22,100 gas, which is the 20,000 for the value plus the 2,100 for the first access. A swap that stores several values can therefore use many times the 21,000 of a simple transfer, even when the base fee is the same.
Why gas fees change from one hour to the next
Blocks have limited room. Each one has a gas limit, and the protocol aims for blocks that are half full. When demand pushes blocks above that target, the base fee for the next block goes up; when blocks are less full, it goes down. The EIP-1559 specification caps the move at 12.5% per block, and a new slot for a block comes every 12 seconds, so a few minutes of heavy demand can multiply the price per unit.
What drives that demand? Usually popular events: a new token launch, a sharp market move that sends many traders to decentralised exchanges, or a rush to mint a collection. Gas fees also mean nothing in your own currency until you convert them: the same number of gwei costs more when the price of ETH is higher.
What does research say about the reform? A study presented at the ACM Conference on Computer and Communications Security (CCS) in 2022, Empirical Analysis of EIP-1559 by Liu and co-authors, found that EIP-1559 reduced the gap between the prices paid inside the same block and shortened waiting times, but had only a small effect on the overall level of fees. It also found that waiting times were significantly higher when the price of ether was more volatile. In other words, the reform made fees more predictable, not necessarily cheaper.
Layer 2 networks: the main way to pay less
The ethereum.org guide calls layer 2 scaling "a primary initiative to greatly improve gas costs". A layer 2 network, or rollup, processes transactions on its own chain, bundles hundreds of them together and posts the result to Ethereum, so the cost of the main chain is shared among many users. You still pay a fee, usually in ETH, but it is often a small fraction of what the same action costs on the main chain.
The Dencun upgrade, activated on 13 March 2024, introduced "blobs", a cheaper type of temporary data space for rollups that the network keeps for around 18 days. According to ethereum.org, it "significantly reduces the cost of rollups". The trade-off is that you need to move funds onto the layer 2 through a bridge, a service that carries assets from one chain to another, and each layer 2 has its own security model to understand.
John Bax's view: always keep some ETH for gas
In Cryptocurrency Investing, John Bax makes a simple point that many beginners learn the hard way: on any blockchain, the gas is paid in that chain's own coin, so you must always keep a reserve of it in your wallet. In his example of swapping ETH for a stablecoin on a decentralised exchange, you cannot turn all your ether into the stablecoin: some of it has to stay behind, or you will not be able to make any further transaction.
He goes further for those who trade on decentralised exchanges: he keeps ether as his starting asset, both because it pays the gas and because its pools are usually the most liquid, which tends to keep the price impact of a trade lower. Before confirming a swap, he checks that impact: under 3% is good, under 1% is ideal. Gas, slippage and price impact are three different costs, and all three deserve a look before you sign.
In our experience, the most common surprise among readers is not a huge fee but a stuck wallet: tokens sent to a fresh address with no ETH at all to pay for moving them. Sending a small amount of ETH first avoids it.
Advantages and limits of the gas system
What works well:
- Fair pricing of resources. Heavy operations pay more than light ones, so the network is not clogged by a few costly programs.
- More predictable fees. Since EIP-1559, wallets can estimate the base fee for the next block, and you can set a maximum you are willing to pay; the difference is refunded.
- Part of the fee is burned. The base fee leaves circulation instead of going to one party, which links network use to the supply of ETH.
The limits:
- Costly in busy periods. On the main chain, a swap can cost more than a small trade is worth.
- Paid even on failure. A transaction that runs out of gas or hits an error still costs the gas it used.
- Volatile in your own currency. The fee in euros or dollars depends on both demand and the price of ETH.
- Little protection when things go wrong. The European Supervisory Authorities warned in 2022 that many crypto-assets are highly risky and speculative and that buyers can lose all the money they invest.
Where gas fees fit for you
Gas matters most if you use a self-custody wallet and decentralised applications: lending, staking or trading on a decentralised exchange (DEX), where every swap is a transaction on the chain. Our guide to decentralised finance (DeFi) shows the wider world those fees belong to.
If you buy and sell on a centralised exchange instead, your orders are usually recorded by the exchange itself, not on the blockchain, so they do not pay gas; the exchange charges its own trading fees, and gas comes back only when you withdraw to a wallet. This is how Crypto Go Bot works: it follows the on-chain flows of Smart Money wallets, those with a track record of profitable trades, and places orders on your own Kraken account, where your funds stay. Our landing page explains how a crypto trading bot works. Trading carries risk, and automation does not remove it.
John Bax's Cryptocurrency Investing covers gas fees together with smart contracts, wallets, decentralised exchanges and liquidity, and explains why gas is paid in each blockchain's own coin.
This short lesson by Finematics, a well-known educational channel on decentralised finance, explains what gas is and why fees rise when the network is busy. It was recorded before the 2021 reform, so it describes how gas prices were set before EIP-1559, but its explanation of gas units and congestion still holds.
What is gas? Ethereum transaction fees explained (Finematics) (in English)
How to pay gas fees without surprises
- Keep a little ETH in every wallet you use. Without the network's own coin, you cannot move anything, not even your tokens.
- Check the network before sending. Make sure the receiving address is on the same chain, mainnet or a specific layer 2.
- Read the fee estimate. Your wallet shows it before you sign; a gas tracker such as Blockscout shows current gas prices.
- Wait when nothing is urgent. If the base fee is high, a calmer hour often costs less.
- Use a layer 2 for small, frequent actions. Move funds once through an official bridge, then transact there.
- Never lower the gas limit below the estimate. A transaction that runs out of gas fails and still costs you.
Checklist
- I know how much ETH I keep aside for gas in each wallet.
- I check the network and the estimated fee before every signature.
- I compare the fee with the size of the transaction before I confirm.
- I only sign transactions and approvals on applications I trust.
Who it is for
Understanding gas fees helps anyone who moves crypto beyond a centralised exchange.
- Beginner with a first wallet: someone moving coins from an exchange to a self-custody wallet who wants to avoid tokens stuck without ETH to move them.
- Occasional DeFi user: a person who swaps or lends a few times a month and wants to time those transactions and choose between the main chain and a layer 2.
- Small investor: someone who makes small, regular purchases and needs to see whether fees would eat too much of each amount, as long as that money can stay invested for years.
- Active trader on DEXs: a person who trades often on decentralised exchanges and wants to weigh gas, slippage and price impact before every swap.
Key terms
- Gas: the unit that measures the computing work of a transaction on Ethereum.
- Gwei: the unit used to quote gas prices, equal to one billionth of an ETH.
- Base fee: the price per unit of gas set by the protocol for each block, which is burned.
- Priority fee (tip): the optional extra paid to the validator to include a transaction sooner.
- Gas limit: the maximum number of gas units you accept to spend on a transaction.
- Layer 2: a network that bundles transactions and settles them on Ethereum to lower fees.
Frequently asked questions
What are gas fees in simple words?
They are the fees you pay in ETH to have a transaction processed on Ethereum. The amount depends on how much computing work the transaction needs and on how busy the network is at that moment.
How much is a gas fee for a simple transfer?
A plain ETH transfer uses 21,000 units of gas. The cost in ETH is 21,000 multiplied by the base fee plus the tip; with a 10 gwei base fee and a 2 gwei tip, it is 0.000252 ETH.
Why are gas fees so high sometimes?
When many people want to transact at the same time, blocks fill up and the base fee rises by up to 12.5% per block. Popular token launches and sharp market moves are typical causes.
Do I pay gas if my transaction fails?
Yes. The gas used before the failure is spent, even though the changes of the transaction are undone. Only the gas you reserved but did not use is returned.
Can I pay gas fees with a token other than ETH?
On Ethereum, gas is paid in ETH. Other blockchains use their own coin, so you need some of that coin in your wallet to make any transaction there.
How can I reduce gas fees?
Transact when the network is calmer, avoid unnecessary approvals and swaps, and use a layer 2 network for small or frequent actions. Never cut the gas limit below the estimate, or the transaction may fail and still cost you.
Sources
- Wikipedia, Ethereum
- ethereum.org, Gas and fees
- ethereum.org, Cancun-Deneb (Dencun) FAQ
- Gavin Wood and contributors, Ethereum: A Secure Decentralised Generalised Transaction Ledger (Yellow Paper), Shanghai version, February 2025
- Ethereum Improvement Proposals, EIP-1559: Fee market change for ETH 1.0 chain
- Liu, Lu, Nayak, Zhang, Zhang and Zhao, Empirical Analysis of EIP-1559: Transaction Fees, Waiting Time, and Consensus Security, ACM CCS 2022
- ESAs (EBA, ESMA, EIOPA), EU financial regulators warn consumers on the risks of crypto-assets, 2022
- Blockscout, Ethereum gas tracker



