EIP-1559 is the Ethereum improvement that changed how transaction fees work in the London upgrade on 5 August 2021. Instead of a blind first-price auction, each block has a protocol-set base fee that every transaction must pay and that is burned (destroyed), plus an optional priority fee, or tip, that goes to the validator. The base fee moves up or down automatically with demand, which makes fees easier to predict.
This article explains the mechanism, the formula behind the base fee and how to set the fee fields in a transaction. It builds on the topic of gas.
Before London, users bid a single gasPrice and miners picked the highest bids. Fees were hard to estimate: people overpaid to be safe, and the price could jump between blocks. Wallets had to guess a good bid, and every transaction competed in a pure auction.
EIP-1559 replaced that with a posted price. The protocol sets the base price for each block, so a user knows the minimum cost and only chooses how much extra to tip.
A type 2 transaction has two fee fields.
| Field | Meaning |
|---|---|
maxFeePerGas | The most you will pay per gas unit in total |
maxPriorityFeePerGas | The most you will tip the validator per gas unit |
The price actually paid per gas is:
The base fee part is burned. The remainder, the tip, goes to the validator. If the block's base fee is lower than your maximum, you pay less and are refunded the difference automatically. This is why setting a generous maxFeePerGas is safe.
Worked example: the base fee is 10 gwei, you set a max fee of 30 gwei and a tip of 2 gwei. The effective price is 12 gwei. For a 21,000 gas transfer you pay 252,000 gwei, of which 210,000 gwei is burned and 42,000 gwei goes to the validator.
Each block has a gas target, and the maximum block size is twice that target. The base fee of the next block depends on how full the current block was:
A full block raises 10 gwei to 11.25 gwei, which is the 12.5% maximum. The divisor of 8 in the code is what produces that bound. Because the change per block is limited, a sudden spike in demand pushes the base fee up gradually, and users can see the trend.
Burning the base fee removes ether from supply. It also means validators cannot raise the base fee by stuffing blocks with their own transactions, because they would burn the money they pay. Since the Merge in September 2022, the burn is often compared with newly issued ether to see whether the supply is shrinking or growing. Whether it is net deflationary depends on activity: in busy periods more ether is burned than issued, and in quiet periods less.
The tip is the validator's incentive to include your transaction. During quiet periods a small tip is enough, while a larger one gets you ahead during congestion.
Wallets do this for you, but here is how to set the fields explicitly with ethers v6.
The receipt's gasPrice shows the effective price, which should be the block's base fee plus your tip, not your 30 gwei ceiling.
Fees did not become permanently cheap. The upgrade made them more predictable, but when demand exceeds block capacity the base fee still climbs. Lower fees came mainly from layer 2 rollups and from EIP-4844 blob transactions in the Dencun upgrade (March 2024), which gave rollups a cheaper way to post data. Blobs have their own separate fee market that follows a similar base fee idea.
Legacy transactions with a single gasPrice still work. The protocol treats that value as both the max fee and the max priority fee.
Nobody. It is burned, which removes that ether from circulation. Only the priority fee goes to the validator.
A tip of one or two gwei is often enough when the network is quiet. Fee estimators from your wallet or provider suggest values based on recent blocks.
No. You pay the base fee plus the tip, and the rest of the max fee is not charged.
EIP-1559 splits the fee into a burned base fee set by the protocol and an optional tip for the validator. The base fee follows block fullness, changing by at most 12.5% per block, which makes costs easier to estimate. Setting a sensible max fee and tip lets your transaction be included promptly without overpaying.