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
₹118

₹118 for 21,000 gas at 20 gwei. Of that, ₹106 is burned as base fee and ₹12 goes to the validator.

Burned
₹106
To the validator
₹12
Total price per gas
20
Fee in tokens
0
The same transaction at 10 gwei
₹59
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

Worked examples

Each of these is asserted on every build. If a change to the engine ever moved one of these answers, the build would fail before the page could print it.

a simple transfer

Gas units
21,000
Base fee
18 gwei
Priority fee
2 gwei
Token price
₹2,80,000

Transaction fee₹118

21000 x 20 gwei

Open this example

a zero priority fee sends nothing to the validator

Gas units
21,000
Base fee
18 gwei
Priority fee
0 gwei
Token price
₹2,80,000

Transaction fee₹106

boundary

Open this example

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 · India · 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.