Gas Fee
A gas fee is the payment, denominated in a blockchain's native token, that a user makes to have a transaction executed and recorded onchain, priced by the amount of computation the transaction consumes.
A gas fee is the payment, denominated in a blockchain's native token, that a user makes to have a transaction executed and recorded onchain, priced by the amount of computation the transaction consumes.
How it works
Ethereum introduced the term. Every operation in the Ethereum Virtual Machine has a fixed cost in units of gas: a plain ETH transfer uses 21,000 gas, while a token swap on Uniswap uses more because it runs more contract code. The sender sets a gas limit, the maximum number of units the transaction may consume. The fee is gas used multiplied by the price per unit of gas, quoted in gwei (one billionth of an ETH).
Since EIP-1559, activated in Ethereum's London upgrade in August 2021, Ethereum's price per gas has two parts: a base fee that the protocol adjusts each block according to demand and then burns, and a priority fee (tip) paid to the validator. Example: 21,000 gas × (20 gwei base + 2 gwei tip) = 462,000 gwei = 0.000462 ETH. Other chains price execution differently. Solana charges a base fee of 5,000 lamports per signature plus optional priority fees priced per compute unit. Ethereum rollups such as Arbitrum and Base charge for their own execution and add a component covering the cost of posting transaction data to Ethereum.
Why it matters
For an institution operating onchain, gas is the execution cost of every settlement, rebalance, collateral movement and treasury transfer, and it determines whether low-margin activity such as arbitrage or frequent hedging is economic. Because fees are paid in a volatile native token, their cost in fiat terms depends on the token price at the time of each transaction, which complicates expense accounting and cost attribution across desks or wallets. The main risk is unpredictability: during congestion the base fee can rise sharply within minutes, and a transaction that reverts or runs out of gas still pays for the computation it consumed, so failed transactions carry real cost. Measuring which contracts and activities drive gas spend is covered in Tracking Gas Consumption During Any Given Time Period.
Related terms
- Gas limit
- Base fee
- Priority fee
- EIP-1559
- Maximal extractable value (MEV)
- Solana transaction fees
- Smart contract
Frequently asked questions
Who receives the gas fee on Ethereum?
Since EIP-1559, the base fee portion is burned and removed from supply. Only the priority fee, or tip, goes to the validator that includes the transaction in a block.
Do failed transactions still pay gas?
Yes. If a transaction reverts or exceeds its gas limit, the network still charges for the computation performed up to that point. The state changes are undone, but the fee is not refunded.
Why are gas fees lower on layer 2 networks?
Rollups such as Arbitrum and Base execute transactions off Ethereum's main chain and post compressed batches to it, spreading Ethereum's data costs across many transactions. Users pay a share of that posting cost plus the rollup's own execution fee.
See the data behind this post. Browse transaction and fee data across 150+ chains, or read Solana Transaction Fees Explained: Base Fees vs Actual Costs for how the records are put together.
Allium provides onchain data infrastructure. Companies named in this article may be Allium customers, prospects or commercial counterparties. The authors and other Allium personnel may hold positions in the assets discussed. This article is informational only and is not investment, legal or tax advice. Data and information last reviewed: November 27, 2026.