Blockchain & Networks
Ethereum (ETH)
Ethereum is a programmable blockchain platform that powers smart contracts and serves as the foundation for most decentralized finance applications.
A gas fee is the transaction cost paid to validators for processing and confirming operations on a blockchain network.
A gas fee is the cost a user pays to execute a transaction or run a computation on a blockchain network. On Ethereum and EVM-compatible chains, gas represents the computational effort required to process operations — from simple token transfers to complex smart contract interactions like borrowing, lending, and swapping. Gas fees compensate the validators (or miners, on proof-of-work chains) who dedicate resources to processing and confirming transactions, and they serve as a spam-prevention mechanism that ensures every on-chain action has a real cost.
Understanding gas fees is essential for anyone using DeFi protocols, as they directly affect the profitability and practicality of on-chain activities.
Gas fees on Ethereum are determined by two factors: the amount of gas a transaction consumes and the price per unit of gas at the time of execution.
The total gas fee is calculated as: Gas Units x Gas Price = Total Fee
Since Ethereum's EIP-1559 upgrade in August 2021, the fee structure includes a base fee that is algorithmically adjusted each block and burned (permanently removed from circulation), plus an optional priority tip that goes to validators. The base fee increases when blocks are more than 50% full and decreases when they are less than 50% full, creating a more predictable fee market.
Gas fees are fundamentally driven by supply and demand. Ethereum processes a limited number of transactions per block, so when demand exceeds capacity, users bid up gas prices to get their transactions included faster. Several factors cause demand spikes:
During the DeFi summer of 2020 and the NFT boom of 2021, Ethereum gas fees regularly exceeded $50 to $100 for a single transaction, making the network impractical for smaller users.
While Ethereum mainnet gas fees can be expensive, many alternative networks offer dramatically lower costs:
For DeFi borrowers and lenders, the choice of network can significantly impact the economics of a position. A small loan might be entirely uneconomical on Ethereum mainnet if gas fees exceed the interest savings, while the same transaction on a Layer 2 costs fractions of a penny. Lending aggregators help users compare rates across multiple chains, making it easier to find the most cost-effective network for a given transaction.
Gas fees are not just a nuisance — they are a strategic consideration for DeFi users:
The long-term roadmap for Ethereum and the broader blockchain ecosystem focuses heavily on reducing gas costs. Ethereum's rollup-centric roadmap envisions most user activity moving to Layer 2 networks, with mainnet serving primarily as a settlement and data availability layer. Proto-danksharding (EIP-4844) and future danksharding upgrades aim to dramatically reduce the cost of posting Layer 2 data to mainnet, which should further lower gas fees for end users across the ecosystem.
Related Terms
Blockchain & Networks
Ethereum is a programmable blockchain platform that powers smart contracts and serves as the foundation for most decentralized finance applications.
Blockchain & Networks
A secondary protocol built on top of a base blockchain that increases transaction throughput and reduces fees.
Blockchain & Networks
A Layer 2 scaling technique that bundles multiple transactions off-chain and posts compressed proofs to the base blockchain.
Blockchain & Networks
A transaction is a cryptographically signed operation that records a transfer of value or smart contract interaction on a blockchain.