Gas Fees: Definition, Mechanics and Optimisation
Definition
Gas fees are the transaction fees paid by users to compensate the validators (or miners, on proof-of-work networks) who process and confirm transactions on a blockchain network. The term “gas” originates from the Ethereum network, where it serves as the unit of measurement for the computational effort required to execute operations — from simple token transfers to complex smart-contract interactions.
Gas fees serve two essential functions: they compensate network participants for the computational resources they expend, and they prevent spam by imposing a cost on every operation submitted to the network. Without gas fees, malicious actors could flood the network with trivial transactions, degrading performance for legitimate users.
How It Works
Gas Units and Gas Price
On Ethereum and compatible networks, every operation has a fixed gas cost measured in gas units. A simple ETH transfer costs 21,000 gas units, whilst interacting with a DeFi protocol might consume 200,000 or more gas units. The total fee paid is determined by multiplying the gas consumed by the gas price — the amount the user is willing to pay per unit of gas.
Total fee = Gas units consumed x Gas price per unit
Gas prices are denominated in gwei (one billionth of an Ether) and fluctuate based on network demand. When the network is congested — during periods of high trading activity, popular NFT mints or market volatility — gas prices rise as users compete to have their transactions included in the next block.
EIP-1559 and Base Fees
Ethereum’s EIP-1559 upgrade introduced a base-fee mechanism that adjusts dynamically based on network utilisation. When blocks are more than fifty per cent full, the base fee increases; when they are less than fifty per cent full, it decreases. Users also include a “priority fee” (tip) to incentivise validators to prioritise their transaction.
The base fee is burned (permanently removed from circulation), whilst the priority fee goes to the validator. This mechanism provides more predictable gas pricing and introduces a deflationary element to Ether’s monetary policy.
Gas Limits
Each transaction specifies a gas limit — the maximum number of gas units the user is willing to consume. If the transaction requires more gas than the limit, it fails (reverts), and the user loses the gas consumed up to the point of failure. Setting the gas limit too low risks transaction failure; setting it too high wastes resources, though unused gas is refunded.
Swiss Context
Impact on Swiss Blockchain Companies
Gas fees directly affect the viability of blockchain applications developed by Crypto Valley companies. High gas costs on Ethereum Layer 1 have driven many Swiss projects to deploy on Layer 2 networks, where transaction fees are typically ninety to ninety-nine per cent lower.
For Swiss companies building tokenisation platforms, stablecoin infrastructure or institutional DeFi products, gas-fee economics are a critical design consideration. Institutional users accustomed to negligible transaction costs in traditional finance expect comparable cost structures from blockchain-based alternatives.
Gas Fees and Regulation
FINMA’s regulatory framework does not specifically regulate gas fees, as they are a function of network mechanics rather than financial-intermediary conduct. However, platforms that facilitate blockchain transactions for clients must disclose gas costs transparently, and some Swiss crypto VCs evaluate gas-fee sensitivity as part of their investment due diligence.
Academic Research
Swiss universities — particularly ETH Zurich — conduct research on gas-fee optimisation, including smart-contract design patterns that minimise gas consumption, transaction-ordering mechanisms and fee-market design. This research feeds directly into the development practices of Crypto Valley companies.
Key Considerations
Timing — Gas fees fluctuate significantly throughout the day and week. Users can reduce costs by submitting transactions during periods of low network activity, typically during overnight hours (European time) on weekdays.
Layer 2 solutions — Layer 2 networks offer dramatically lower gas fees for most transaction types. Users and developers should evaluate whether their use case can be served by Layer 2 infrastructure, accepting the trade-offs in finality and security model.
Smart-contract optimisation — Developers can reduce gas costs by optimising smart-contract code. Techniques include minimising on-chain storage, using efficient data structures, batching operations and leveraging precompiled contracts.
Gas tokens and fee abstraction — Some protocols offer gas-fee abstraction, allowing users to pay fees in stablecoins or other tokens rather than the network’s native currency. This improves user experience but introduces additional smart-contract complexity.
Failed transactions — Gas consumed by failed transactions is not refunded. Users should verify transaction parameters, ensure sufficient token balances and set appropriate gas limits to avoid unnecessary costs.
Donovan Vanderbilt is a contributing editor at ZUG BLOCKCHAIN, a publication of The Vanderbilt Portfolio AG, Zurich. The information presented is for educational purposes and does not constitute investment advice.