When you send a transaction on Ethereum, you pay a fee for it, commonly referred to as gas (payment for the network's computational work). The fees themselves are so small that it's inconvenient to record them in whole ethers, so a fractional unit called Gwei (gigawai) is used. One Gwei is equal to one billionth of an ETH, meaning 0.000000001 ETH. It is in Gwei that wallets display gas prices, and it is in this unit that it is most convenient to discuss and compare network expenses.
The cost of gas in Gwei is not fixed; it fluctuates with demand. The more people want to conduct transactions at the same moment, the higher the gas price, and the more expensive each action becomes. This unit provides all participants with a common and understandable language for discussing fees.
KEY CONCEPTS
The modern fee calculation is based on the EIP-1559 upgrade: it introduced a mechanism where the fee is divided into two parts and calculated more transparently than before.
- Base fee: A mandatory part that the network calculates automatically based on current congestion. It is burned, meaning it is permanently removed from circulation and does not go to the validator.
- Priority fee: An optional tip to the validator to get your transaction included in a block faster.
Both parts are still measured in Gwei, so the total gas price is the sum of the base and priority fees.
HOW IT WORKS
In addition to the gas price, there is also a gas limit, and its purpose is to protect you from unforeseen expenses. The limit sets the upper boundary for how much computational work you are willing to pay for.
If a transaction requires more gas than the set limit, it will not go through. The unpleasant part is that the gas consumed up to the stopping point will not be refunded. Conversely, if the transaction uses less gas than the limit, the unused portion is usually returned to your wallet. In other words, the limit caps the maximum, but only the amount actually required is charged.
USAGE EXAMPLES
To understand how network congestion translates into real money, let's consider a simple ETH transfer with a fixed gas limit of 21,000 units (the standard value for a regular transfer).
| Network State | Gas Price | Transfer Fee |
|---|---|---|
| Quiet Hours | 10 Gwei | 21,000 × 10 = 210,000 Gwei ≈ 0.00021 ETH |
| Peak Hour | 80 Gwei | 21,000 × 80 = 1,680,000 Gwei ≈ 0.00168 ETH |
The same transaction during peak hours costs approximately eight times more, even though the amount of work for the network hasn't changed. The base fee increases because there isn't enough block space for everyone. At such times, the user has a choice: wait for demand to subside and the price in Gwei to decrease, or increase the priority fee to get the validator to include the transaction faster.
FREQUENTLY ASKED QUESTIONS
The gas price can be set manually, but in practice, most wallets suggest it themselves, based on the current network status. This suggestion can almost always be changed: by setting a higher price, you speed up confirmation, and by choosing a lower one, you save on fees at the cost of potential waiting. Understanding what lies behind the Gwei figure helps you make this choice consciously, not randomly.