The transaction fee paid to network validators for processing and confirming transactions on a blockchain, measured in the network's native currency.
Detailed Explanation
Gas fees compensate validators for the computational resources needed to process transactions. On Ethereum, fees are denominated in gwei (billionths of ETH) and vary based on network congestion. EIP-1559 split fees into a base fee (burned) and a priority tip (paid to validators). During high demand, Ethereum fees have at times reached tens of dollars per transaction, which makes Layer 2 networks attractive for cost-sensitive activity.
Why It Matters
Gas fees decide what it costs to use a blockchain application. High Ethereum fees helped drive the growth of Layer 2 rollups and other Layer 1 chains. Understanding gas helps users time transactions, set limits, and choose between mainnet and Layer 2.
Key Considerations
Always set a reasonable gas limit to avoid failed transactions that still consume fees. Use EIP-1559 gas estimation for more predictable pricing. For non-urgent transactions, setting a lower max fee and waiting for inclusion can save significantly. Never set gas limits too low as the transaction will fail and fees are still charged.
Example
A user wants to swap tokens on Uniswap during high network activity. The base fee is 30 gwei and they add a 2 gwei priority tip. For a swap using 150,000 gas units, the total fee is (30 + 2) x 150,000 = 4,800,000 gwei = 0.0048 ETH, paid in ETH at whatever its price is that day.
Related Terms
Frequently Asked Questions
The transaction fee paid to network validators for processing and confirming transactions on a blockchain, measured in the network's native currency.
Gas fees decide what it costs to use a blockchain application.
Gas fees pay for computational work, which occurs regardless of the transaction outcome. If a transaction reverts due to slippage, insufficient token balance, or contract errors, the network still processed the computation and validators deserve compensation for that work.