Home Finance Gas Fee Calculator (Ethereum)

Gas Fee Calculator (Ethereum)

An Ethereum transaction fee from gas limit and gas price, in ETH and in dollars.

Advertisement

How it works

Every Ethereum transaction pays a number of gas units times the gas price, and one gwei is a billionth of an ETH. A plain transfer uses 21,000 gas; contract calls use much more, so take the limit from your wallet estimate rather than guessing. The price is the network base fee plus the priority fee you add to be included sooner. The base fee moves block by block with demand, so this is a snapshot, not a promise. The dollar line uses the ETH price you type.

Advertisement

Formula

fee in gwei = gas limit × (base fee + priority fee)
fee in ETH = fee in gwei ÷ 1,000,000,000
fee in dollars = fee in ETH × ETH price

Sources

Example

21,000 gas at 25 plus 2 gwei: 21,000 × 27 = 567,000 gwei, which is 0.000567 ETH. At 3,000 per ETH that is 1.70. Check: 567,000 ÷ 21,000 = 27 gwei per unit, and 0.000567 × 3,000 = 1.70.

Frequently asked questions

What is a gwei?

A billionth of an ETH, and the unit gas prices are quoted in.

How much gas does a transfer use?

21,000 for a plain ETH transfer. Contracts use more, and the wallet estimate is the better figure.

What is the priority fee?

A tip to be included sooner. The base fee itself is burned.

Why does the fee change?

The base fee is recalculated every block from how full the network is.

Advertisement

Related calculators

Loan Calculator

Monthly payment, total interest and total cost for any fixed-rate loan.

Interest Calculator

Simple interest earned or owed on a principal over time.

Compound Interest Calculator

Investment growth with regular monthly contributions and any compounding frequency.

VAT / Sales Tax Calculator

Add VAT or sales tax to a price, or take it out of a price that already includes it.