Ethereum Gas Fees Guide
Learn about Ethereum gas fees in our complete guide, including understanding how gas fees are calculated, tips on how to reduce Ethereum gas fees, and increase gas efficiency.
Gas fees are what you pay for any transaction made on the Ethereum blockchain and cover network costs.
Fees are expressed in gwei, which is a tiny fraction of ETH (1 ETH = 1,000,000,000 gwei).
Two main parts decide the fee: a base fee set by the network & a priority fee you pay to get your transaction done faster.
To lower fees, send transactions at off-peak times and use layer-2 networks like Arbitrum or Optimism.
What are Ethereum gas fees?
Gas refers to the fee you’ll pay anytime you make a transaction on the Ethereum blockchain platform. This network transaction fee covers the computational expenses associated with a given transaction. This makes sure users validating and processing transactions on the Ethereum network are rewarded.
What is gwei?
Gas is measured in gwei. Gwei is a denomination of ETH - the cryptocurrency used on the Ethereum network. Similar to how 100 cents make up a dollar, a billion gwei make up 1 ETH.
Gwei is also known as a nanoether or nano, due to it being the ninth power of the fractional ETH:
1 ether = 1,000,000,000 gwei.1 gwei = 0.000000001 ether.
As you can see from the above, using gwei to specify gas fees makes it much simpler. So instead of saying your gas was 0.000000001 ether, you can say it cost 1 gwei.
Gwei isn’t actually the smallest unit of Ether - wei is. Weirdly, gwei is also sometimes known as Shannon. In fact, all the denominations of ETH have nicknames - as a nod to the ‘founding fathers’ of cryptography.
Why do Ethereum gas fees vary?
The exact price of gas is influenced by supply, demand, and the network’s capacity at the time of the transaction. During periods of high network congestion, gas prices can rise significantly. Conversely, when the network is quieter, gas fees tend to be lower.
Key components of gas fees
Gas limit: This is the maximum amount of work a user estimates a validator will need to perform to process a transaction.
Gas price: This is the amount of gwei a user is willing to pay per unit of gas.
Base fee: Introduced in August 2021, the base fee is a set fee for transactions determined by the network.
Priority fee: Also known as a tip, this is an additional amount paid to incentivize validators to process a transaction faster.
How to calculate ETH gas fees
Gas fees are calculated using the formula:
Gas Fee=Units of Gas Used×(Base Fee+Priority Fee)
For example, if you want to transfer 2 ETH and it requires 2 units of gas, with a base fee of 11 gwei and a priority fee of 3 gwei, the gas fee would be:
2×(11+3)=28 gwei
This equals 0.000000028 ETH, which is added to your transaction total, making it 2.000000028 ETH.
There are multiple sites that let you know the current gas fee rate, like Etherscan.
Why are there gas fees?
Gas fees serve multiple purposes within the Ethereum ecosystem:
Compensation for validators: Validators are rewarded with gas fees for staking ETH and verifying transactions. This incentive is crucial for maintaining the network’s security and integrity.
Network spam prevention: By attaching a cost to every transaction, gas fees help deter malicious actors from spamming the network with unnecessary transactions.
Why are gas fees so high?
So you pay gas in gwei anytime you make a transaction - simple enough. But if you’ve ever used the Ethereum blockchain before, you’ll notice that gas fees vary per transaction.
This is because gas varies based on supply and demand. The busier the Ethereum blockchain is, the higher the fee will go.
Ethereum stakers (formerly miners) verify and process everything on the network. They’re awarded this fee in exchange for providing this service. The more transactions there are to get through, the more in demand their services are, and the more power they’ll have to use.
Users can actually set a gas price limit for a given transaction. Then, stakers can look through the transactions and decide which are worth their time and resources. If the gas price limit the user sets is low, it’s likely to be ignored. When the network is very busy, users will set higher gas price limits, and the price of gas will rocket up.
So the price of gas depends on the movements in the wider market at the time. As investors have flocked to crypto DeFi apps, the average gas price has been much higher than usual as interest in the market grows.
How to reduce ETH gas fees
Time transactions
Gas fees can vary throughout the day and week. Using tools like EtherScan’s gas tracker, users can monitor gas prices and time their transactions for periods of lower network demand, typically late at night or midday.
Use layer 2 solutions
Layer 2 solutions, such as Polygon, Arbitrum, and Optimism, offload transaction volume from the main Ethereum chain to reduce costs. These solutions can offer significant savings, sometimes reducing fees by over 90%.
Use alternative blockchains
Other Layer 1 blockchains, like Solana and Avalanche, offer much lower transaction fees compared to Ethereum. These "Ethereum killers" have gained popularity due to their lower costs and faster transaction speeds.
Why do some transactions cost so much?
Transactions that involve smart contracts or token transfers (e.g., ERC-20 tokens or NFTs) typically cost more than simple ETH transfers. This is because these operations require more computational work. The complexity and resource demands of these transactions are reflected in higher gas fees.
How can I optimize gas efficiency?
Users can minimize costs for complex transactions by:
Aggregating transactions: Platforms like 1inch and Matcha aggregate transactions to improve gas efficiency.
Using yield aggregators: Services like Yearn Finance and Zapper optimize gas usage and can enhance returns on transactions.
Leveraging DSN aggregators: ColdStack and similar platforms help optimize gas efficiency for data storage networks.
Don’t forget the tax bill...
Although it might come as a surprise, gas fees come with tax implications. It’s not all bad news, though; in some instances, you can use these to increase your cost basis and therefore reduce any taxable gain. You can learn more in our dedicated guide on Ethereum gas fees tax.
