Skip to content

Ethereum Gas Calculator

Transaction

Set by the network for each block; read it from a gas tracker.

Transaction fee (ETH) —
Fee in dollars
—
Fee in gwei
—
Burned (base fee), ETH
—
Paid to validator, ETH
—
How the fee divides between burn and tip
The chart appears with your result

An Ethereum fee is gas used × (base fee + priority fee), priced in gwei, where 1 gwei is one billionth of an ETH. A plain transfer uses 21,000 gas, so at a 10 gwei base fee and a 2 gwei tip it costs 252,000 gwei, which is 0.000252 ETH or $0.50 with ETH at $2,000.

About this tool

Wallets show a fee estimate, but they rarely show where it comes from. This calculator takes the three numbers behind every post-London (EIP-1559) transaction — gas used, the base fee for the block and the priority fee you add — and returns the cost in ETH, in gwei and in dollars at the ETH price you type. It also separates the part that is burned by the protocol from the tip that reaches the validator, which matters when you record fees for tax. A plain ETH transfer always uses exactly 21,000 gas; for anything else, take the gas used from a block explorer or your wallet's preview. The tool does not fetch live gas prices or ETH quotes, so the result is only as current as the numbers you enter.

How to use it

  1. Pick the transaction

    Choose ETH transfer for a plain send of 21,000 gas, or Custom gas amount to type the gas used by a contract call, mint or token transfer.

  2. Enter the fees in gwei

    Type the current base fee from a gas tracker and the priority fee (tip) you plan to add.

  3. Add the ETH price

    Enter the dollar price of one ETH to convert the fee; the working and the burn-versus-tip donut chart update as you type.

Examples

Plain transfer at 10 + 2 gwei

Transaction
ETH transfer, 21,000 gas
Base fee
10
Priority fee (tip)
2
ETH price
2000

Result Transaction fee (ETH): 0.000252
Fee in dollars: $0.50
Fee in gwei: 252,000
Burned (base fee), ETH: 0.00021
Paid to validator, ETH: 0.000042

  1. Price per gas = 10 + 2 = 12 gwei
  2. Fee = 21000 gas × 12 gwei = 252000 gwei
  3. In ETH = 252000 ÷ 1,000,000,000 = 0.000252 ETH
  4. In dollars = 0.000252 × 2000 = $0.5

The case ethereum.org uses: 252,000 gwei in total, of which 210,000 gwei is burned and 42,000 gwei goes to the validator.

65,000 gas at 20 + 1.5 gwei

Transaction
Custom gas amount
Gas used
65000
Base fee
20
Priority fee (tip)
1.5
ETH price
3000

Result Transaction fee (ETH): 0.0013975
Fee in dollars: $4.19
Fee in gwei: 1,397,500
Burned (base fee), ETH: 0.0013
Paid to validator, ETH: 0.0000975

  1. Price per gas = 20 + 1.5 = 21.5 gwei
  2. Fee = 65000 gas × 21.5 gwei = 1397500 gwei
  3. In ETH = 1397500 ÷ 1,000,000,000 = 0.0013975 ETH
  4. In dollars = 0.0013975 × 3000 = $4.19

A contract call using 65,000 gas pays 21.5 gwei per unit, about 0.0014 ETH or $4.19 at $3,000 per ETH.

Transfer at 0.5 gwei, no tip

Transaction
ETH transfer, 21,000 gas
Base fee
0.5
Priority fee (tip)
0
ETH price
2000

Result Transaction fee (ETH): 0.0000105
Fee in dollars: $0.02
Fee in gwei: 10,500
Burned (base fee), ETH: 0.0000105
Paid to validator, ETH: 0

  1. Price per gas = 0.5 + 0 = 0.5 gwei
  2. Fee = 21000 gas × 0.5 gwei = 10500 gwei
  3. In ETH = 10500 ÷ 1,000,000,000 = 0.0000105 ETH
  4. In dollars = 0.0000105 × 2000 = $0.02

When blocks are half empty the base fee can drop below 1 gwei, and a plain transfer costs about two cents.

How it is calculated

Fee (ETH) = G × (B + P) ÷ 1,000,000,000; Fee ($) = Fee (ETH) × S

G
Gas used by the transaction (21,000 for a plain transfer)
B
Base fee per gas in gwei, burned by the protocol
P
Priority fee per gas in gwei, paid to the validator
S
Price of one ETH in dollars

Since the London upgrade (EIP-1559, August 2021) each block has a base fee that rises or falls by up to 12.5% depending on how full the previous block was. Every unit of gas pays that base fee, which is destroyed, plus the priority fee, which goes to the validator. Multiplying by gas used gives the fee in gwei, and dividing by one billion converts it to ETH. The max fee you set in a wallet is only a ceiling: unused headroom is refunded, so the charge is based on the actual base fee and gas used.

Sources

When not to use it

  • Layer-2 networks such as rollups add a data fee that this formula leaves out.
  • Legacy (type 0) transactions pay a single gas price, so enter it as the base fee with a zero tip.
  • A live quote needs a current base fee; numbers from yesterday can be off by several times.

Common mistakes

  • Using the gas limit instead of gas used overstates the fee, because unused gas is refunded.
  • Entering the max fee as the base fee counts headroom that is never charged.
  • Mixing up gwei and ETH puts the answer off by a factor of one billion.
  • Assuming every transaction costs 21,000 gas; exchange trades often use well over 100,000.

Frequently asked questions

Why does a plain ETH transfer always use 21,000 gas?

21,000 is the fixed intrinsic cost the protocol charges for any transaction. A send between two ordinary accounts runs no contract code, so nothing is added on top and the gas used is exactly 21,000 every time.

What is the difference between the base fee and the priority fee?

The base fee is set by the network for each block and is burned, so no one receives it. The priority fee is an optional tip per unit of gas that goes to the validator and nudges your transaction ahead of others when blocks are busy.

How many gwei are in one ETH?

One ETH is 1,000,000,000 gwei, and one gwei is 1,000,000,000 wei. Gas prices are quoted in gwei because fees in whole ETH would need long strings of leading zeros.

Where do I find the gas used by a past transaction?

Open the transaction hash on a block explorer. It lists gas used, the effective gas price and the burned amount, which you can enter here to reproduce the fee and see the split.

Are Ethereum gas fees deductible?

Tax treatment depends on your country. In the United States the IRS treats digital assets as property, and fees paid when buying or selling generally adjust cost basis or proceeds. Keep the fee in ETH and in dollars for each transaction and check the IRS digital assets guidance or a tax professional.

Why did my wallet show a higher fee than this result?

Wallets often display the maximum you could pay, using the max fee and the gas limit. The charge on-chain uses the actual base fee and gas used, so the final fee is usually lower than that preview.