Money & investing

Ethereum execution gas fee calculator

Model EIP-1559 fees from gas used, fee caps and an entered ETH price.

Your numbers

Use up to 9 decimal places so the amount is a whole number of wei. This is not fetched from the network.
Formatting only. All prices and fixed costs must use the same selected currency; no exchange conversion or live quote is supplied.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Try it, understand it

Explore the result

Hold the assumed gas used and base fee fixed, then compare fee-cap headroom. Fiat reference amounts use INR. Previous settings can be restored.

Worked example comparison
ExampleOutputWhat to notice
Full priority fee fitsModeled execution gas fee0.000462 ETHBase 20 plus effective priority 2 gives 22 gwei and 0.000462 ETH at 21,000 gas.
Priority fee is clippedModeled execution gas fee0.000441 ETHA 21 gwei total cap leaves only 1 gwei for the effective tip. The modeled charge is 0.000441 ETH.
Cap below the base feeFee scenario statusFee cap below base fee: not includable at this base feeA 15 gwei cap cannot cover a 20 gwei base fee. No modeled execution charge is presented.

Check your understanding

Before checking: is gas limit × max fee the actual charge?

It is a cap budget. The execution charge in this model uses gas used and the effective gas price.

Can this guarantee the transaction will be included?

No. It checks entered fee relationships, not all validity rules, network demand or an actual transaction.

Behind the numbers

How this calculation works

If the max fee covers the entered base fee, cap the effective tip at the remaining headroom. Charge the assumed gas used at that effective price. Show the gas-limit cap budget separately, since it is not necessarily the actual execution charge.

THE FORMULAEffective tip = min(max priority fee, max fee − base fee); execution fee = gas used × (base fee + effective tip) × 10⁻⁹ ETH

A worked example

At 21,000 gas used, base fee 20 gwei, max priority fee 2 and max fee 30, the modeled charge is 0.000462 ETH. A 30,000 gas limit gives a separate 0.0009 ETH cap budget.

Good to know

A scenario from entered prices, quantities and assumptions. No live prices, wallet connection, trade execution, return forecast or tax determination. Decimal arithmetic is used; displayed values are rounded. Examples are arithmetic demonstrations, not market rates or recommendations. EIP-1559 execution gas only. Does not determine intrinsic gas, all transaction validity rules or inclusion. Excludes transferred value, blob fees, layer-2 data fees and service charges. All entered gwei fees must encode whole wei.

A fee cap is a limit, not the execution price

An EIP-1559 execution-fee scenario has a base fee, a maximum priority fee and a maximum total fee per gas. When the cap covers the base fee, effective tip is limited to the smaller of the requested priority maximum and the remaining cap headroom.

At base fee 20 gwei, max priority 2 and max fee 21, the effective tip is only 1 gwei. Charging 22 would violate the cap. At max fee 30, the full 2 gwei priority amount fits and the effective gas price is 22.

A max fee below the entered base fee cannot cover that base fee. The tool reports that fee scenario as not includable at those conditions, rather than calculating a negative tip or presenting a hypothetical charge as an actual execution.

Keep gas units, denominations and transferred value separate

Gas used is a quantity of computational resource. Gwei per gas is a price. Multiplying them gives gwei, then multiplying by 10⁻⁹ expresses the execution fee in ETH. Each entered gwei amount must encode a whole number of wei.

The gas limit times max fee is a cap budget. The difference from the modeled execution charge is not necessarily money that was debited and refunded. Unused gas and unused fee headroom must not be counted again as extra spending.

A staking reward scenario or a swap calculation can require a separate allowance for execution costs, but this tool does not determine those operations’ gas usage. It also excludes transferred ETH, blob gas, layer-2 data fees and wallet charges. Inclusion and complete transaction validity require more than the fee relationships checked here.

A few questions, answered

Does a 21,000 default mean every transfer uses that gas?

No. It is an illustrative assumed gas-used input. The tool does not inspect a transaction or estimate intrinsic/execution gas.

Can the effective tip be smaller than my maximum priority fee?

Yes. The maximum total fee can leave less headroom above the base fee.

Does this fetch today’s base fee or ETH price?

No. Both are entered values, and the model does not submit a transaction.

Find your calculator

Start typing to explore the library.