How "The Merge" Impacted Ethereum's Gas Fee Market
How Ethereum's gas usage, base fees, burning, and block times were affected by "The Merge"
We will examine how The Merge impacted Ethereum's gas fee market.
How does gas work? How did gas price change after The Merge?β½οΈ
Let's find out! π§΅
Gas is a measure of the computational resources needed for on-chain txs. Just as you need to put gas in your car to drive, you also need "gas" to run on-chain txs. The amount of gas used depends on the tx, just as the amount of gas used in cars depends on how far you go.
This brings up an interesting question: How (& to whom) are these resources being paid?
Answering π is akin to designing a so-called Transaction Fee Mechanism (TFM).
Some popular TFMs:
First Price Auction (Ethereum before ~08/2021)
EIP1559 (Ethereum, Filecoin, ...)
Gas after EIP1559 in a nutshell:
Base fee: minimal amt of token/gas unit to include tx in block.
Gas used: gas used by a tx.
Priority fee: tip to miner to include tx in block
Gas limit: upper limit of gas used
User pays base fee x gas limit at most.
For each tx included in the block:
Base fee x gas used gets burnt π₯
Base fee x priority fee goes to miner of the block βπ·ββοΈ
Burning reduces circulating supply, thus increasing the value of the remaining tokens.
πcreates deflationary pressure & adds security
Ok, but how is base fee priced?
Base fee is adjusted at every epoch as a function of demand by up to Β±12.5% per epoch (see attached).
High demand, base fee β¬οΈ
Low demand, base fee β¬οΈ
Mathematically, for a given epoch t, let B8 denote the target block size, which is currently set to half of the maximum block size, and let Gt denote the gas used at an epoch t. Given this, the EIP1559 transaction fee mechanism updates the base fee bt on an epoch to epoch basis according to the following formula:
BTW, there are several ways of extending upon the base fee mechanism π
Thus, if the gas consumption at epoch t is larger than the target gas consumption, the base fee increases at the next epoch. Conversely, if itβs smaller, it decreases in the next epoch. If the gas consumption is exactly the target consumption, then it stays the same.
For example, here is a proposal for a multi-dimensional gas mechanism (like having different gas "lanes" for different types of txs).
What about The Merge? Did it change the underlying EIP1559 mechanism?
No, but it did change a few things:
Gas-usage patterns
Made the network more efficient
Made the block time more predictable.
Let's see π
Let's analyze gas usage in the Ethereum network.
We look at ETH gas data from 08/2021 β present on a block-by-block basis.
(Psst! We can get this data from GBQ's bigquery-public-data.crypto_ethereum.blocks, similar to how we did in the tutorial below for UniV3 pools π)



Here's what we found:
Distr. of gas usage more concentrated after merge
High prob. of observing full blocks in both cases
Smaller fees on avg
Less burning post-merge
More predictable block times
Distr. of block time pre-merge resembles exp. distr. w/Ξ»=0.08
Recap:
Gas is an integral part of blockchains. It is the economic incentive that keeps these networks running.
Burn = deflation
Gas price in EIP1559 is demand driven (hot research topic)
Gas patterns changed after The Merge; cheaper + more predictable network
Disclaimer: None of this should be taken as financial advice. Please DYOR.