Anyone who has used Ethereum has met gas fees — sometimes a few cents, sometimes far more than expected. They confuse newcomers because they don't depend on how much value you send, they change from minute to minute, and they are quoted in a unit, gwei, that most people have never heard of.
This guide explains how Ethereum gas fees actually work: what gas measures, how the base fee and priority fee are set, why fees spike, how to calculate a fee yourself, and practical ways to pay less. It also explains why layer 2 networks are so much cheaper.
Why Ethereum charges gas at all
Ethereum is a shared computer. Every node runs every transaction, so each piece of computation and storage has a real cost to the network. Gas exists for two reasons:
- To pay for resources. Validators are compensated for including your transaction.
- To protect the network. Because every operation costs something, nobody can flood Ethereum with endless computation or spam for free. A program that loops forever simply runs out of gas and stops.
Gas, gas price and gwei
Three terms do most of the work:
- Gas is a unit that measures computational effort. Each operation has a fixed gas cost. A plain ETH transfer from one account to another always uses 21,000 gas. Interacting with a smart contract — swapping tokens, minting an NFT, depositing into a lending app — uses more, sometimes hundreds of thousands of units.
- Gas price is how much ETH you pay per unit of gas.
- Gwei is the unit gas prices are quoted in: one gwei is 0.000000001 ETH. A price of "15 gwei" means each unit of gas costs 15 billionths of an ETH.
So the basic formula is:
Fee = gas used × price per unit of gas
The amount of ETH or tokens you are sending does not appear in the formula. Moving 0.01 ETH and moving 1,000 ETH in a simple transfer cost exactly the same.
How the price is set: base fee and priority fee
Since the London upgrade in August 2021 (EIP-1559), the price per unit of gas has two parts.
The base fee
The base fee is set by the protocol, not by users. Each block has a gas target — half of its maximum size. After every block:
- if the block was more than half full, the base fee for the next block goes up (by up to 12.5%);
- if it was less than half full, the base fee goes down (by up to 12.5%).
The base fee is burned — destroyed rather than paid to anyone. That is why heavy network usage can reduce ETH's total supply, as explained in what is Ethereum.
Because the base fee can only move 12.5% per block and blocks come every 12 seconds, it changes smoothly but can climb steeply during sustained demand: a run of full blocks compounds quickly.
The priority fee (tip)
The priority fee is an optional tip paid directly to the validator who includes your transaction. When blocks are full, validators prefer transactions with higher tips. In quiet periods, a small tip is enough.
Max fee and refunds
When you send a transaction, your wallet sets:
- a max priority fee — the most you'll tip; and
- a max fee — the most you'll pay per unit of gas in total.
You actually pay the current base fee plus your tip, never more than your max fee. Anything between the max fee and what you actually pay is not charged. This makes fees more predictable than the old auction system, where users often overpaid by guessing.
The gas limit
Every transaction also has a gas limit — the maximum gas it may use. Wallets estimate it automatically. If a transaction needs more gas than its limit, it fails and the gas used up to that point is still charged. Setting a higher limit doesn't cost more by itself: unused gas is not charged.
A worked example
You want to send ETH to a friend. The current base fee is 12 gwei and you add a 1 gwei tip.
- Gas used: 21,000
- Price per gas: 12 + 1 = 13 gwei
- Fee: 21,000 × 13 = 273,000 gwei = 0.000273 ETH
Of that, 252,000 gwei (the base fee portion) is burned and 21,000 gwei goes to the validator.
Now you swap tokens on a decentralised exchange during a busy period. The swap uses 150,000 gas, the base fee is 60 gwei and you tip 2 gwei:
- Fee: 150,000 × 62 = 9,300,000 gwei = 0.0093 ETH
That is 34 times the cost of the first transaction — because it used about seven times more gas at nearly five times the price. If ETH were priced at $3,000, the first transaction would cost about $0.82 and the second about $27.90. Those prices are illustrative; the point is how quickly the two factors multiply.
Why gas fees spike
Fees rise when demand for block space outruns supply. Common causes:
- Market turmoil. Sharp price moves bring a rush of trades, liquidations and transfers to exchanges.
- Popular launches. A widely anticipated token or NFT sale can fill blocks for hours.
- Activity on applications. Large lending, trading or arbitrage activity uses a lot of gas.
- Complex transactions. Contract interactions use far more gas than transfers.
Spikes are usually temporary. Because the base fee falls automatically when blocks are less than half full, fees tend to come back down once the rush passes.
Layer 2: why fees are lower there
Layer 2 networks, or rollups, process transactions outside Ethereum's main chain and post compressed batches of data back to it. Thousands of transactions share the cost of one main-chain posting, so each pays a small fraction.
The Dencun upgrade in March 2024 (EIP-4844) added blobs — a cheaper, temporary data space designed for rollups, with its own separate fee market. After it went live, fees on many layer 2 networks dropped substantially.
Using layer 2 has trade-offs worth knowing:
- Your funds must be on that network; moving between networks uses bridges, which add their own fees, delays and risks.
- Exchanges and wallets must support the same network, or funds can arrive somewhere you can't easily access.
- Each rollup has its own security model and maturity.
Practical ways to pay less
- Check before you send. Wallets and public gas trackers show current base fees. If it isn't urgent, wait for a quieter period.
- Let your wallet estimate. Choosing "fast" when you don't need speed means tipping more than necessary.
- Use layer 2 where it makes sense — and double-check the receiving side supports that network.
- Batch where possible. One transaction that does several things can be cheaper than several separate ones.
- Don't cut the gas limit to save money. A failed transaction costs gas and achieves nothing.
- Keep a small ETH balance. You need ETH to pay gas even when sending tokens such as USDT or USDC.
Common mistakes
- Holding only tokens. Without ETH in the same account, you cannot move the tokens.
- Approving unlimited spending. Many apps ask for permission to spend your tokens. Malicious or compromised contracts can use broad approvals to drain wallets. Approve only what you need, and revoke approvals you no longer use — see crypto wallets explained.
- Sending on the wrong network. The same address format is used across many EVM networks; sending to an exchange on a network it doesn't support can lose funds.
- Panic re-sending. A transaction stuck with a low fee can be replaced by resending with the same nonce and a higher fee — sending a second, separate transaction can mean paying twice.
How gas fees relate to the ETH price
Gas fees feed into ETH's economics in two ways:
- Burning. Higher network activity burns more ETH via the base fee, which reduces net supply growth.
- Demand for ETH. Every user of the network needs ETH to pay fees.
Traders sometimes watch fee levels as a rough gauge of network demand. But fees and price don't move in lockstep: activity can shift to layer 2, where less ETH is burned on the main chain, and price is driven by many other factors — see why crypto is so volatile.
Reading a fee on a block explorer
Every Ethereum transaction is public, and a block explorer shows exactly what it cost. Looking up one of your own transactions is the fastest way to make gas concrete. The fields to find:
- Gas limit and gas used. The limit is what your wallet allowed; "used" is what the transaction actually consumed. A simple transfer shows 21,000 used. If "used" equals the limit and the status says failed, the transaction ran out of gas.
- Base fee per gas. The protocol price at the time the block was built — this portion was burned.
- Max fee and max priority fee per gas. The ceilings your wallet set.
- Effective gas price. What you actually paid per unit: base fee plus the tip, capped by your max fee.
- Transaction fee. Gas used multiplied by the effective gas price, shown in ETH.
- Burnt fees. The base-fee portion that was destroyed.
Comparing a few of your transactions — a transfer, a token transfer and an app interaction — shows how much the gas used varies by action, and how much the base fee varies by time. That knowledge is what lets you choose when, and on which network, to transact.
Gas fees and trading ETH on RumiEX
Gas fees apply when you move ETH or tokens on the blockchain. On RumiEX, ETH/USDT is an OTC instrument quoted by RumiEX's own pricing engine: you trade its price without sending ETH on-chain, so gas fees are not part of opening or closing a position. Deposit and withdrawal methods show their own fees before you confirm.
You can follow the live ETH price on the markets page and practise on the funded demo wallet that comes with every account.
Key takeaways
- Gas measures computation; the fee is gas used × price per unit of gas.
- A simple ETH transfer uses 21,000 gas; contract interactions use more.
- The base fee is set by the protocol, moves up to 12.5% per block and is burned; the priority fee is a tip to the validator.
- Failed transactions still pay for the gas they used.
- Layer 2 networks, helped by the 2024 Dencun upgrade, make most transactions far cheaper.
- Always keep some ETH to pay gas, and check the network before you send.
Next, learn how ETH secures the network in Ethereum staking explained.
Frequently asked questions
What are gas fees on Ethereum?
Gas fees are what you pay, in ETH, for the computation and storage your transaction uses on the Ethereum network. Each operation costs a set amount of gas; your total fee is the gas used multiplied by the price per unit of gas, which is quoted in gwei (one billionth of an ETH).
Why are Ethereum gas fees so high sometimes?
Each block has limited space. When many people want transactions included at once — during market turmoil, popular token launches or busy periods for applications — the protocol's base fee rises automatically, and users add larger tips to be included sooner. Complex transactions also use more gas than simple transfers.
What is gwei?
Gwei is a denomination of ether equal to 0.000000001 ETH (10^-9 ETH). Gas prices are quoted in gwei because quoting them in ETH would involve many leading zeros. A gas price of 20 gwei means each unit of gas costs 20 billionths of an ETH.
Do I pay gas if my transaction fails?
Yes. If a transaction is included in a block but fails — for example because it runs out of gas or a contract rejects it — the gas used up to that point is still charged, because validators performed the computation. Only the unused portion of your gas limit is not charged.
How can I pay lower gas fees?
Transact when the network is quieter, use a layer 2 network where suitable, avoid unnecessarily complex transactions, and let your wallet estimate the fee rather than overpaying for speed you don't need. Never lower the gas limit below what a transaction requires, or it will fail and still cost you.
Sources and further reading
Written and reviewed by the RumiEX Editorial Team. This article is for education only and is not financial, investment or tax advice. Read our editorial standards.