EIP-1559 Fee Caps and the Gas Price You Pay
Max fee vs max priority fee after EIP-1559: the base fee plus the usable tip sets your gas price; the max fee is a ceiling, and unused room is refunded.
The Crypto Front Page Desk4 min read

After a swap confirms, the max fee vs max priority fee question has a precise answer: you pay the block’s base fee plus the usable tip, because EIP-1559 treats the max fee as a ceiling. Your effective gas price is the base fee plus the smaller of your priority fee and the difference between your max fee and the base fee.
- Use the receipt’s gas used and effective gas price to calculate the charge.
- To predict it, compare your fee caps with the base fee when the transaction is included.
The base fee and usable tip set your gas price
EIP-1559 sets a base fee for each block. The protocol burns that fee. Your transaction also specifies a max priority fee per gas, which is the most you offer as a tip to the block’s fee recipient.
The max fee per gas caps the total gas price you can pay. It is not the price charged automatically. Once the block’s base fee is known, the transaction can pay only the tip that fits below the cap:
Effective gas price = base fee + min(max priority fee, max fee − base fee)
The transaction cannot be included when its max fee is below the base fee. When the cap is high enough, the base fee is paid first; only the remaining room up to the max fee can go toward the tip. Any cap room the tip does not use is not charged.
Take a receipt with a 20 gwei base fee, a 2 gwei priority fee, and a 50 gwei max fee. The cap leaves 30 gwei of room above the base fee, but the tip is only 2 gwei. The effective gas price is therefore 22 gwei. At 100,000 gas used, the charge is 2,200,000 gwei, or 0.0022 ETH.
The gas limit is a maximum amount of gas the transaction may use, not a billable amount by itself. If the transaction uses less gas than that limit, the unused gas is not charged. The receipt’s gas used, multiplied by its effective gas price, gives the execution charge; unused max-fee room is not added to it.
Wallets still check whether the account can cover a worst-case amount before submission: max fee per gas × gas limit + transaction value. That check reserves enough for the cap and the full limit, even though the actual charge is usually lower. So a wallet can report insufficient funds when the balance would cover the eventual charge, but not the maximum amount it checks against. Reducing the gas limit to a realistic valid estimate or lowering the max fee can make the check pass, while leaving enough room for inclusion.
Base fees can move by at most 12.5% per block, so the fee you set while a transaction is pending may meet a different base fee at inclusion. Flashbots is an Ethereum research and infrastructure organization. Its Flashbots Protect private RPC is a concrete example: the route is private, but the same EIP-1559 formula sets the charge, and builders rank transactions by effective tip.
The receipt’s effective gas price and gas used decide the charge; the max fee only limits the per-gas price you could reach. Watch the base fee and tip that fit beneath your cap, then use the receipt to settle the exact amount.
Related questions
Is a legacy gasPrice transaction still valid after EIP-1559?
Yes. Ethereum still accepts legacy transactions with one gasPrice field. That price acts as both the maximum total gas price and the tip; the base fee is covered first, and any remainder can go to the fee recipient. A legacy transaction needs a gasPrice at least as high as the block’s base fee to be includable.
How do wallets pick a default priority fee?
Wallets estimate a tip likely to make the transaction attractive for inclusion, based on current network conditions and their fee-estimation method. The suggested tip is not a promise of the final charge: the effective tip cannot exceed the max fee minus the base fee, and the actual gas price still includes that block’s base fee.
Two cases the receipt formula does not cover
How do private RPCs such as Flashbots Protect set fees for you?
A private RPC can estimate or suggest fee settings, but the transaction’s fee caps still determine its EIP-1559 charge. The wallet or service chooses the values; at inclusion, the base fee and usable tip determine the effective gas price.
How do EIP-4844 blob fees differ from regular gas fees?
Blob-carrying transactions pay a separate blob fee based on blob gas and its own base fee. That fee is distinct from execution gas, which uses the EIP-1559 formula above, so a receipt’s total cost can include both charges.