Ethereum's architecture, since its realization in 2015, has continuously evolved from a simple state computer to a complex multi-layer decentralized computing network. At the heart of this operation is the concept of "Gas" – a unique resource pricing mechanism that serves as the economic heartbeat of the network. According to experts at Tan Phat Digital, this report will deeply analyze the technical, economic and historical aspects of the Gas fee system, and decode the quantitative units that make up the financial language of Ethereum.
The Technical Nature and Economic Significance of Gas
In traditional computing environments, the costs of processing operations are often hidden from end users, subsidized by providers service or limited by individual hardware capabilities. However, in a decentralized network like Ethereum, where thousands of independent nodes must jointly execute and validate every source code, computational resources become a scarce and valuable commodity. Gas is not a cryptocurrency, but a unit of measurement of the computational effort required to perform specific operations on the Ethereum Virtual Machine (EVM).
The existence of Gas solves two fundamental challenges in blockchain design: the halting problem and resource scarcity. Because EVM is a Turing-complete system, it is capable of executing infinite loops. Without a fee mechanism tied to each step of calculation, one faulty or malicious smart contract could permanently cripple the entire network. By assigning a Gas price to each command (opcode), Ethereum ensures that every program has a financial limit, forcing them to end when the Gas supply is exhausted.
Economically, Gas acts as a "toll" mechanism for accessing Ethereum's blockspace. This fee serves three strategic purposes: to compensate validators for consuming power and hardware resources to maintain network security; prevent denial of service (DoS) attacks by making transaction spam unaffordable; and encourage developers to optimize source code for more efficient resource use. Following The Merge in 2022, Gas fees are distributed to validators as rewards for validating transactions and maintaining blockchain consensus.
Quantitative Unit System: Legacy and Precision Calculation
Ether (ETH), the network's native currency, is divisible to 18 decimal places, allowing for extremely high precision transactions. This system of units not only serves a technical purpose but also serves as a chronicle honoring pioneers in computer science and cryptography.
Wei and Gwei: The Foundation of Every Transaction
The smallest unit in the Ethereum ecosystem is Wei, named after Wei Dai, a computer scientist famous for his proposal of "b-money" – the ideological forerunner of Bitcoin. In the Solidity programming environment, all value calculations are performed as Wei's integers to avoid severe rounding errors associated with floating point numbers. Wei's importance lies in its atomicity; it is the final "atom" of value in the EVM that cannot be broken down any further.
Gwei, or Giga-wei ($10^9$ Wei), is the most important unit for end users because it is the standard language for quoting Gas fees. Gwei is also known as "Shannon", honoring Claude Shannon, the father of information theory. Using Gwei helps convert ETH's tiny decimal numbers into integers that are easier for humans to understand.
List of Quantitative Units and Symbolic Meanings
Below is a compilation of units from Tan Phat Digital:
Wei (Wei): Values 1 Wei ($10^{-18}$ ETH). Honoring Wei Dai, creator of b-money.
Kwei (Babbage): Worth $10^3$ Wei ($10^{-15}$ ETH). Honoring Charles Babbage, the father of the mechanical calculator.
Mwei (Lovelace): Valued at $10^6$ Wei ($10^{-12}$ ETH). Honoring Ada Lovelace, the first programmer.
Gwei (Shannon): Valued at $10^9$ Wei ($10^{-9}$ ETH). Honoring Claude Shannon, father of information theory.
Twei (Szabo): Valued at $10^{12}$ Wei ($10^{-6}$ ETH). Honoring Nick Szabo, proponent of smart contracts.
Pwei (Finney): Worth $10^{15}$ Wei ($10^{-3}$ ETH). Honoring Hal Finney, recipient of the first Bitcoin transaction.
Ether (ETH): Valued at $10^{18}$ Wei (1 ETH). The main unit of the network.
This decentralization reflects the Ethereum community's respect for the underlying scientific theories. Nick Szabo laid the foundation for the concept of smart contracts back in the 1990s. Hal Finney was not only a prominent cryptologist but also the first to believe in the feasibility of decentralized cryptocurrencies.
The Evolution of the Fee Market: From Legacy to EIP-1559
One of the most important changes in the history of Ethereum was the restructuring of the Gas pricing mechanism through proposed improvements EIP-1559, implemented in the London upgrade in August 2021. Before this milestone, Ethereum operated under a first-price auction model, where users competed by setting the highest Gas price to attract miners.
The old model exposed serious flaws: inefficiencies in fee prediction caused users to frequently overpay or transactions get stuck due to pricing too low. EIP-1559 replaced this system with a dynamic fee mechanism, separating transaction fees into Base Fee and Priority Fee.
Base Fee Operation
Base Fee is the minimum fee required for a transaction to be included in the block. The difference is that the Base Fee is determined by an algorithm based on the actual needs of the network with a block occupancy target of 50%.
If the block is more than 50% full: The Base Fee increases by a maximum of 12.5%.
If the block is less than 50% filled: The Base Fee is reduced by a maximum 12.5%.
If the block fills exactly 50%:The Base Fee remains unchanged.
The most important consequence is that the Base Fee will be completely "burned", creating deflationary pressure for Ether. This turns Ether into an "ultrasound money" asset in the eyes of many investors.
Priority Fees and Transaction Priority
Priority Fees or "tips" are paid directly to validators to encourage them to process transactions sooner. When sending transactions according to EIP-1559 standards, users define an additional Max Fee per Gas. The protocol will calculate the actual fee according to the formula: $\min(\text{Max Fee}, \text{Base Fee} + \text{Priority Fee})$. The balance will be returned to the user.
Technical Structure Analysis: Gas Limit and Gas Used
Understanding the difference between Gas Limit and Gas Used is key to managing trading risk.
Ether (ETH) Transfer: Standard $21,000 gas quota. This is the base cost for signature validation and balance updates.
ERC-20 Token Transfer: Estimated around $50,000 - $65,000 gas. Includes state reading, balance subtraction/addition, and event broadcasting.
Swap on Uniswap V3: $150,000 - 200,000$ gas quota. Requires complex mathematical calculations and liquidity retrieval from multiple pools.
Mint NFT: $100,000 - 500,000$ gas quota. Create new IDs, store metadata on-chain, and update ownership.
DeFi Interactions Complex: Cap from $500,000$ gas or more. Including many steps of inter-protocol borrowing, borrowing and mortgaging.
According to the implementation experience of Tan Phat Digital, if the transaction consumes all the allowed amount of Gas before completing, it will fail with the "Out of Gas" error. In this case, the user still loses fees because the validator has already done the computational work up to that breakpoint.
Impact of EIP-4844 and the Layer 2 Revolution
The Dencun upgrade with proposed EIP-4844 introduced the concept of "Blobs" (Binary Large Objects) specifically for Layer 2, creating a multi-sided fee market separate from Layer 2 operations 1.
The drop in fees after the Dencun upgrade is impressive:
Transaction fees on the Base network dropped from around $0.30$ to less than $0.001$ USD.
The Arbitrum and Optimism networks recorded fee reductions of up to 95-99%.
Average Gas Fees on Layer 1 are down more than 50%, with the number of "cheap fee" days skyrocketing.
Account Abstraction: Towards a Gas-Free Experience
Account Abstraction through ERC-4337 is turning user accounts into smart contracts. The Paymaster concept allows:
Gasless Transactions: The application pays fees on behalf of the user.
Paying fees with any Token: Users can pay fees with USDC or USDT instead of ETH.
Batching approval: Combine multiple operations into a single signed transaction
Comparison vs Other Blockchains
Here is a list of comparisons between Ethereum and its competitors:
Ethereum (Layer 1): EIP-1559 (Base + Tip) fee model, deflationary (fee burning) currency mechanism, $15 - $45 TPS throughput, average fees range widely from $0.44 - 15.00$ USD, Modular architecture.
Bitcoin: First-price auction model, descending inflationary currency mechanism, low throughput around $7$ TPS, average fee from $1.00 - 5.00$ USD, Monolithic architecture.
Solana: Fixed fee model combined with priority, mechanism Fixed inflationary currency, extremely high throughput of $3,000 - 65,000$ TPS, extremely low average fees below $0.001$ USD, parallel processing Monolithic architecture.
BNB Chain: First price auction model, periodic fee burning mechanism, throughput $100 - 300$ TPS, average fees from $0.05 - $0.20 USD, Monolithic architecture.
UTC.Use Layer 2: Always prioritize performing transactions on networks like Arbitrum, Optimism or Base instead of mainnet.
Optimize Solidity source code: Use memory instead of storage whenever possible, apply variable packing techniques.
Use Mappings instead of Arrays:Helps reduce computational complexity from O(n) to O(1) for data lookup operations.
Ethereum's Gas fee system has demonstrated strong self-regulation through historical upgrades. The development of Account Abstraction and Layer 2 solutions is gradually turning Gas into a "behind the scenes" element, paving the way for a more user-friendly generation of Web3 applications. Tan Phat Digital believes that understanding the nature of Gas will be the correct fuel for the infinite innovation of users in this ecosystem.
Share








