How Does Gas Work? The Ethereum Fee Market Explained
A plain-English guide to gas on Ethereum: what units, base fees, priority tips, and EIP-1559 mean, and how to read a transaction fee before you sign it.
Explainers Lead · Jun 3, 2026 · 7 min read
What is gas and why does Ethereum charge it?
Every action on Ethereum, from sending ETH to swapping tokens, requires computation performed by thousands of nodes. Gas is the unit that measures how much computational work an action takes. Charging for that work does two things: it compensates validators for spending resources, and it prevents the network from being flooded with spam, since every operation has a real cost.
Think of gas as the metered work itself, not the money. A simple ETH transfer costs a fixed 21,000 gas. A token swap on a decentralised exchange might cost 150,000 gas or more because it touches more contract code. The gas number reflects complexity; the price you pay per unit of gas is separate and moves with demand.
How is a gas fee actually calculated?
Your total fee is a straightforward multiplication:
- Gas used — how many units the transaction consumed.
- Gas price — how much you pay per unit, quoted in gwei (one gwei is one-billionth of an ETH).
So a 21,000-gas transfer at 20 gwei costs 420,000 gwei, or 0.00042 ETH. The gas amount is largely predictable from what you are doing; the price is where volatility lives. When the network is busy, users compete for limited block space and the price climbs. When it is quiet, it falls.
A useful mental model: gas used is the distance of your trip, gas price is the cost of fuel that day, and the fee is distance times price.
What changed with EIP-1559 and the base fee?
In 2021, an upgrade called EIP-1559 restructured how gas prices are set. Instead of a pure blind auction where everyone guessed a price, each block now has a base fee that the protocol calculates automatically based on how full the previous block was. If blocks are more than half full, the base fee rises; if they are emptier, it falls. This makes fees more predictable from block to block.
On top of the base fee, users can add a priority fee, often called a tip. The tip goes to the validator as an incentive to include your transaction sooner. Your total price per gas is therefore base fee plus priority fee. The key structural detail: the base fee is burned, meaning it is permanently removed from circulation rather than paid to anyone. Only the tip is paid out.
That burn mechanism matters for tokenomics. During periods of heavy usage, Ethereum can burn more ETH than it issues to validators, making net supply flat or even deflationary. This links network activity directly to the token's supply schedule.
How do you read and control gas before signing?
When your wallet asks you to confirm a transaction, it shows an estimated fee built from three settings you can usually adjust:
- Gas limit — the maximum units you authorise. Set too low and the transaction fails but still costs you the gas it burned trying. Wallets estimate this for you; only override it if you understand the contract.
- Max fee — the highest total price per gas you are willing to pay, covering base fee plus tip.
- Max priority fee — the tip you are offering validators.
If you are not in a hurry, lowering the priority fee saves money at the cost of slower confirmation. During congestion, a higher tip jumps the queue. Tools that show the current base fee help you judge whether now is an expensive moment or a cheap one.
Two practical points often trip up newcomers. First, a failed transaction still costs gas, because the network already did work before hitting the error. Second, gas is always paid in the chain's native token, ETH on Ethereum, even when you are moving a different token like a stablecoin. If your wallet holds tokens but no ETH, you cannot transact until you fund it with a little ETH for fees.
Understanding gas turns a confusing pop-up into a decision you can reason about: how complex is my action, how busy is the network, and how quickly do I need it confirmed. With EIP-1559 giving you a visible base fee and a controllable tip, you can time and size your transactions instead of guessing.
Explainers Lead
Sofia turns dense on-chain mechanics into plain English. She writes Coin Currents Daily's Learn desk and edits the glossary.
Related reading
Staking Enters ETFs: The Regulatory Green Light Explained
Jul 8, 2026 · 4 min read
Ethereum's fee market cools as rollups lean on cheaper data
Jul 7, 2026 · 5 min read
Layer-2 Fragmentation Meets Intent-Based Interoperability
Jul 7, 2026 · 4 min read