Glossary
Gas fee
The fee paid to have a transaction processed on Ethereum and similar blockchains, set by the computing work needed and by network demand.
On this page
A gas fee is what a user pays to have a transaction included on Ethereum or a compatible blockchain. "Gas" is the unit that measures how much computing work an action requires. The fee compensates the network and, by putting a price on block space, keeps it from being flooded.
How the fee is calculated
- Gas used depends on the action. A plain transfer of ether uses 21,000 gas. A token swap through a smart contract may use 150,000 or more.
- Base fee is set automatically by the protocol. It rises when blocks are full and falls when they are not. It is destroyed ("burned"), not paid to anyone.
- Priority fee is a tip to the validator for including the transaction sooner.
Prices are quoted in gwei, one billionth of an ether.
The fee does not depend on the amount sent. Moving $50 costs the same as moving $5 million.
Things that catch people out
- Failed transactions still cost gas. The network did the work even if the action reverted.
- Fees are paid in the chain's own coin. A wallet holding only a stablecoin on Ethereum cannot send it without some ether for gas.
- Timing matters. Fees spike during market panics and popular token launches, exactly when many people want to transact.
- Small amounts become uneconomic. A $10 fee on a $100 trade is a 10% cost.
Why "layer 2" networks exist
Networks that bundle many transactions and settle them on Ethereum in batches charge a few cents per transaction. Much everyday activity has moved to them, which has also lowered fees on the main network. Bitcoin has transaction fees as well, based on the transaction's data size.
