If you have ever sent a transaction on Ethereum, you have paid for gas. But despite the word showing up everywhere, gas is widely misunderstood — most people assume it is a separate token they have to buy. It is not. This guide unpacks what gas actually is, why Ethereum needs it, and how the fee you see in your wallet is assembled from a handful of small, knowable pieces.
The short version
- Gas is a unit of measurement, not a coin. It counts how much computational work a transaction performs.
- The asset you actually spend is ether (ETH). Gwei is just a small denomination of ether used to make the numbers readable.
- The fee is straightforward arithmetic: gas used × price per gas.
- The price moves up or down with demand, but the formula never changes.
1. Gas is a unit of measurement, not a token
The single biggest source of confusion about Ethereum gas is the assumption that it is some kind of separate currency you need to acquire before you can transact. It is not. You will never see a gas balance in your wallet, you cannot send gas to a friend, and there is no exchange where gas is listed. Gas is a number — a count of work units — produced by the network as it processes your transaction.
The closest everyday analogy is the meter on a fuel pump. Litres of petrol are a unit; you pay for them in money. Likewise, units of gas are the unit; you pay for them in ether. Buying petrol at the station does not turn money into a different currency, and paying for gas on Ethereum does not turn ether into a different one either. Ether leaves your wallet, the network consumes the gas, and that is the end of it.
Why bother with two concepts at all? Because the cost of running an operation on Ethereum and the market price of ether are independent things. The work involved in transferring a token has not changed in years, but the price of ether changes by the second. Separating the work (gas) from the money (ether) lets the protocol price computation stably while letting the market price the asset freely.
2. Why Ethereum needs gas at all
Ethereum is a public, shared computer. Anyone can submit code to be executed by it. Without a cost attached, the obvious failure mode is a flood: a single user could ask the network to run an infinite loop and freeze it for everyone. Gas exists to prevent that. Every operation has a fixed gas cost, every transaction must declare an upper bound on how much gas it will consume, and if it runs over that limit it stops dead.
Gas does three jobs at once. It bounds the work a transaction can perform, so the network cannot be jammed by runaway code. It prices block space, since each block has a finite gas budget and users compete for room inside it. And it pays the validators who do the work — without their reward, no one would run the hardware that keeps the network alive.
3. The anatomy of a fee: units multiplied by price
Every Ethereum fee is the product of two numbers, and getting comfortable with them is most of the battle:
- Gas used — how heavy the transaction is, expressed as a count of work units. A plain ether transfer is exactly 21,000 units. A token transfer is roughly 50,000. A swap on a decentralised exchange might be 150,000 or more.
- Price per gas — how much you are paying for each of those units, quoted in gwei. This is the lever that moves with demand.
Multiply the two and you have the fee in gwei. Divide by a billion and you have it in ether. That is the entire model.
4. Wei, gwei and ether: the units explained
Ether has a single base unit called the wei. Everything else is just a label for a different number of wei. The names exist because writing fees in either pure ether or pure wei is uncomfortable: ether fees are tiny decimals, and wei amounts are enormous integers. Gwei sits in the middle and reads cleanly.
| Unit | Value in wei | Value in ether | Used for |
|---|---|---|---|
| wei | 1 | 10⁻¹⁸ | Internal accounting at the protocol level |
| gwei | 10⁹ | 10⁻⁹ | Quoting gas prices and tips |
| ether | 10¹⁸ | 1 | Balances and transferred amounts |
When a wallet shows you a fee of, say, 30 gwei, it is telling you that the network is currently charging 30 billion wei for each unit of gas your transaction consumes. Multiply by 21,000 gas for a transfer and the cost works out to 630,000,000,000,000 wei, or 0.00063 ether. Same number, three different ways of writing it.
5. Base fee and priority tip: how the price is built
Before the upgrade known as EIP-1559, users named a single price and competed in a blind auction. Since the upgrade, the price you pay per unit of gas has two parts:
- The base fee is set by the protocol itself. Every block, it adjusts up or down by a small percentage depending on whether the previous block was fuller or emptier than its target. The base fee is burned — destroyed — rather than paid to anyone, which makes ether mildly deflationary when activity is high.
- The priority tip is what you choose to add on top to attract a validator. A higher tip moves your transaction toward the front of the queue. The tip goes to the validator who includes you in a block, as their reward for picking up your work.
- The max fee is the ceiling you are willing to pay per unit, base plus tip combined. If the base fee climbs above your ceiling, your transaction simply waits until conditions cool off.
Putting it together: you pay base fee plus tip per unit of gas, never more than your max. When the network is calm, your wallet typically suggests a tip of one or two gwei and the base fee is the dominant component. When activity spikes, the base fee swells and the tip becomes a smaller share of the total.
6. Common operations and their typical gas cost
The gas a transaction consumes depends on what it does. These are rough figures — the exact number varies with the contract involved — but they give you a feel for relative weight:
| Operation | Typical gas |
|---|---|
| Send ether to another wallet | 21,000 |
| Approve a token contract | ~46,000 |
| Transfer an ERC-20 token | ~50,000–65,000 |
| Swap on a decentralised exchange | ~120,000–250,000 |
| Mint a typical NFT | ~100,000–300,000 |
| Deploy a smart contract | 500,000–3,000,000+ |
Notice that the cost difference between sending ether and minting an NFT is more than ten-to-one in gas alone, on top of whatever the per-unit price happens to be that day. Heavy operations are heavy whether the network is calm or busy.
7. Why the price moves around
Each Ethereum block has a soft target of 15 million gas and a hard cap of 30 million. The base fee adjusts after every block with one rule: if the last block consumed more than the target, raise the base fee a little; if it consumed less, lower it a little. The maximum change per block is around 12.5 percent.
The result is a self-regulating price. When demand for block space rises, the base fee climbs steadily until the chain is expensive enough that fewer people want to transact. When demand falls, the base fee sinks until activity picks back up. There is no central operator setting prices and no auction — just a feedback loop running between every consecutive block.
Two practical takeaways follow. First, fees are not random: quiet hours genuinely cost less, and a transaction that is not urgent can simply wait. Second, the spikes you occasionally see are not permanent. A burst of demand pushes the base fee up over a few blocks, but it always falls back once the pressure subsides.
8. A worked example, end to end
Suppose you want to send 0.1 ether to a friend. Walk through the numbers:
- A plain transfer consumes a known, fixed 21,000 gas.
- Your wallet reads the latest block and reports a base fee of 28 gwei.
- You leave the suggested priority tip at 2 gwei.
- Effective price per unit: 28 + 2 = 30 gwei.
- Total fee in gwei: 21,000 × 30 = 630,000 gwei.
- Convert to ether: 630,000 ÷ 10⁹ = 0.00063 ether.
Of that 0.00063 ether, the larger slice (28/30) is burned by the protocol and removed from supply, and the smaller slice (2/30) goes to the validator who includes the transaction. Your friend receives the full 0.1 ether either way — fees are charged on top of the amount you send, not deducted from it.
9. Misconceptions worth clearing up
- “I need to buy gas before I transact.”
- No. You only need ether. The network deducts the fee from your ether balance the moment your transaction is included.
- “Gwei is a separate currency.”
- Gwei is just one billionth of an ether. Saying a fee is “30 gwei” is exactly the same as saying it is “0.00000003 ether” — same value, easier to read.
- “A bigger tip always means a faster transaction.”
- Helpful but not magical. Validators include the most attractive tips first, but they cannot fit you into a block that has already been built. In normal conditions, even a modest tip will get you in within one or two blocks.
- “The base fee goes to the miner.”
- Since the EIP-1559 upgrade, the base fee is destroyed by the protocol — no one receives it. Validators are paid through the priority tip and through Ethereum’s issuance rewards.
10. Where to go from here
You now have the model: gas is a count of work, ether is the money, gwei is the readable label, and the fee is one multiplication. To see the base fee and priority tip moving in real time, the live Ethereum gas tracker refreshes every block, and the multi-chain gas station lets you compare Ethereum against rollups like Arbitrum, Base and Optimism that typically cost a fraction of L1. If you are curious what those fees look like in your local currency, the ether-to-dollar converter translates them at the live market rate. And if you want to build software that signs transactions and pays for gas programmatically, ChainGate gives you a single library that handles it for Ethereum and every other chain we support. And once you want to look up a specific transaction and see these numbers on a real Ethereum block, the companion guide on what Etherscan is and how to use it picks up where this one leaves off.
Frequently asked questions
Is Ethereum gas a token or a cryptocurrency?
No. Gas is a unit of measurement that counts how much computational work a transaction performs. You cannot hold gas in a wallet, send it to someone, or list it on an exchange. The asset you actually spend to pay for gas is ether (ETH), Ethereum's native currency.
Why is it called gas?
The name borrows from the fuel analogy. Just as a car burns fuel proportional to the trip's distance and difficulty, an Ethereum transaction consumes gas proportional to the work it asks the network to perform. A simple transfer is a short trip; a complex smart contract interaction is a long one.
What is the difference between gas, gwei and ether?
Gas is a count of work units. Ether is the asset you pay with. Gwei is just a convenient denomination of ether (one gwei equals one billionth of an ether) used to express the per-unit price because the raw number in ether would be too small to read.
How is an Ethereum fee actually calculated?
The total fee is the gas units consumed by the transaction multiplied by the price you pay per unit. Since the upgrade known as EIP-1559, that price is split into a base fee set by the protocol and a priority tip you choose to attract a validator. Multiplying gas used by the sum of those two gives the cost in ether.
How does EIP-1559 adjust the base fee between blocks?
Each block has a target amount of gas. When demand exceeds the target, the protocol automatically raises the base fee for the next block by up to about 12.5 percent; when demand is below the target, it lowers it by the same rule. The mechanism is deterministic — no auction, no operator — so the price self-regulates block by block.
Can I avoid paying gas on Ethereum?
Build with ChainGate
Put these ideas to work — ChainGate gives you wallets, transactions and managed RPC for Ethereum and 20+ other blockchains with one install.