Workspace / Research tools
Trading costs

EIP-1559 Gas Budget Calculator

An EIP-1559 transaction has a maximum fee per gas and a maximum priority fee, while the block supplies the base fee. This calculator combines user-entered fee assumptions with a gas limit to estimate an upper-bound gas-use budget at that effective price. It also expresses the budget in a quote currency using your ETH price. The calculation runs locally in the browser. It does not retrieve pending block fees, simulate contract gas use, submit a transaction, or guarantee inclusion under a changing base fee.

Enable JavaScript to edit assumptions, calculate and compare a baseline locally. The formula and methodology below remain available without JavaScript.

Apply the fee cap and unit conversion

When maximum fee is at least the base fee, effective gas price is min(maximum fee, base fee + maximum priority fee). Estimated ETH cost equals gas limit × effective gas price in gwei × 10⁻⁹. Quote-currency cost equals ETH cost × ETH price. A maximum fee below the entered base fee is invalid for this scenario. The cap can reduce the paid priority fee below the requested maximum.

Work through an illustrative gas budget

Take a hypothetical gas limit of 100,000, base fee of 20 gwei, maximum priority fee of 2 gwei, and maximum fee of 30 gwei. Effective price is 22 gwei, giving a gas-limit budget of 0.0022 ETH. At an assumed ETH price of $2,000, that is $4.40. If the maximum fee were 21 gwei instead, the effective price would be 21 and the priority portion only 1 gwei.

Distinguish budget from actual gas consumed

The calculation multiplies by gas limit, so it is an upper bound on gas consumption at the supplied effective price. Actual execution generally pays for gas used, with unused gas refunded. The maximum authorized gas-fee ceiling is gas limit × maximum fee, which may exceed this scenario estimate. Future base fees can change inclusion and payment. This model excludes transferred ETH value and any separate rollup, data, or application-level charges.

Primary documentation

Your research workspace

Save selected inputs and research notes explicitly in this browser. Compare assumptions and restore a saved setup without submitting a trade. JavaScript enables the controls.

Find a tool or research page