Skip to content
Technologycrypto

Blockchain Gas Fee Calculator

Transaction fee from gas units and gas price. Gas units depend on what the transaction does and barely change; the gas price is what swings, which is why waiting for a quiet period works.

Also called: ethereum gas calculator, transaction fee calculator.

gwei
gwei
$
Transaction fee
$117.60

$117.60 for 21,000 gas at 20 gwei. Of that, $105.84 is burned as base fee and $11.76 goes to the validator.

Burned
$105.84
To the validator
$11.76
Total price per gas
20
Fee in tokens
0
The same transaction at 10 gwei
$58.80
Method and background

How this is calculated

A transaction consumes a fixed number of gas units determined by its operations, 21,000 for a simple transfer and far more for contract calls. The fee is those units times the gas price. Since EIP-1559 the price splits into a base fee that is burned and a priority fee that goes to the validator. Because the units are fixed and only the price moves, the identical transaction can cost ten times more at a busy moment than a quiet one.

gas units times the price per unit, where a gwei is a billionth of a token
g
Gas units
b, p
Base and priority fee

Method and limits

What it assumes

  • The transaction uses the gas limit supplied. Unused gas is refunded in practice.

What it deliberately does not model

  • Layer two networks price differently and include a data availability cost.

Formula version 1.0.0 · definition 1.0.0 · United States · Report a problem with this calculator

Frequently asked questions

Why do fees vary so much?
Because gas units are fixed by what the transaction does while gas price is set by demand for block space. The same transfer costs whatever the market charges at that moment.