๐ Base Fee + Priority Fee = Total Gas Cost
Understand EIP-1559 and how the new fee mechanism works
Your Progress
0 / 5 completedโ๏ธ How Gas Works
Gas fees are calculated using a formula: (Base Fee + Priority Fee) ร Gas Used. Let's break it down with an interactive calculator.
๐งฎ Interactive: Gas Fee Calculator
Adjust the sliders to see how gas fees change in real-time:
EIP-1559: The Fee Market Reform
Before August 2021, gas fees used a simple auction modelโhighest bidder wins. EIP-1559 introduced a dynamic base fee that adjusts automatically based on network demand.
Adjusts by ยฑ12.5% per block based on congestion. If blocks are greater than 50% full, base fee increases; if less than 50% full, it decreases.
Block 100% full โ +12.5%
Block 0% full โ -12.5%
Base fees are burned (destroyed), reducing ETH supply. During high usage, more ETH is burned than created, making ETH deflationary.
Result โ Net negative ETH supply
Effect โ Potential price increase
โก Real-World Transaction Types
๐ก Key Insight: Gas Limit vs Gas Used
The gas limit is the maximum you authorize, like a spending cap. The gas used is what actually gets consumed. Unused gas is refunded!
Transaction uses: Gas Used = 65,000 (actual consumption)
โ Refunded: 35,000 gas back to you