Skip to content

Gas Fee Calculator

Fee in dollars —
Fee in ETH
—
Fee in gwei
—
Price per gas unit (gwei)
—
Base fee burned
—

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

About this tool

Anyone sending ETH, moving tokens or trading on a decentralised exchange pays gas, and wallets often show only a rough dollar figure. This calculator rebuilds the fee from its parts: pick a transaction type or enter the gas units from a block explorer, add the current base fee and your priority tip, and give an ETH price. It returns the fee in dollars, ETH and gwei, the price per gas unit, and how much of the cost is the base fee that the network burns. Keeping these records also helps when fees are added to the cost basis of a crypto disposal. The preset gas figures for token transfers and swaps are typical values only; real contracts can use far more, so check the gas used on the actual transaction when the figure matters.

How to use it

  1. Choose the transaction

    Pick an ETH transfer, a token transfer, a DEX trade, or Custom gas units to type the exact gas used.

  2. Enter the base fee

    Copy the current base fee in gwei from a gas tracker or your wallet.

  3. Add a priority tip

    Enter the tip in gwei that goes to the validator; 1 to 2 gwei is common on a calm network.

  4. Set the ETH price

    Enter the dollar price of one ETH to convert the fee into dollars.

Examples

Plain ETH transfer at 12 gwei

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

Result Fee in dollars: $0.50
Fee in ETH: 0.000252
Fee in gwei: 252,000
Price per gas unit (gwei): 12
Base fee burned: $0.42

  1. Gas price per unit = 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.504

The textbook case: 21,000 gas at a 10 gwei base fee plus a 2 gwei tip, with ETH at $2,000, comes to about fifty cents.

DEX trade at 22 gwei

Transaction
DEX trade (150,000)
Base fee
20
Priority tip
2
ETH price
3000

Result Fee in dollars: $9.90
Fee in ETH: 0.0033
Fee in gwei: 3,300,000
Price per gas unit (gwei): 22
Base fee burned: $9.00

  1. Gas price per unit = 20 + 2 = 22 gwei
  2. Fee = 150000 gas × 22 gwei = 3300000 gwei
  3. In ETH = 3300000 ÷ 1,000,000,000 = 0.0033 ETH
  4. In dollars = 0.0033 × 3000 = $9.9

A DEX trade uses roughly seven times the gas of a plain transfer, so 150,000 gas at 22 gwei with ETH at $3,000 costs 0.0033 ETH.

Token transfer on a quiet network

Transaction
Token transfer (65,000)
Base fee
1
Priority tip
3
ETH price
2500

Result Fee in dollars: $0.65
Fee in ETH: 0.00026
Fee in gwei: 260,000
Price per gas unit (gwei): 4
Base fee burned: $0.16

  1. Gas price per unit = 1 + 3 = 4 gwei
  2. Fee = 65000 gas × 4 gwei = 260000 gwei
  3. In ETH = 260000 ÷ 1,000,000,000 = 0.00026 ETH
  4. In dollars = 0.00026 × 2500 = $0.65

With the base fee at 1 gwei, a 3 gwei tip is most of the cost; 65,000 gas × 4 gwei is 0.00026 ETH.

How it is calculated

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

G
Gas units used by the transaction
B
Base fee per gas unit, in gwei
P
Priority tip per gas unit, in gwei
S
Price of one ETH in dollars

Since the London upgrade (EIP-1559) each block sets a base fee per unit of gas, and that part is burned. The sender adds a priority tip that goes to the validator. Multiplying gas used by the sum gives the fee in gwei; dividing by one billion turns it into ETH. The burned share is G × B on its own. A max fee setting in a wallet is only a ceiling: any unused margin above base fee plus tip is refunded, so it does not enter the sum.

Sources

When not to use it

  • Layer-2 networks such as rollups add a data fee that this formula leaves out.
  • Bitcoin fees are priced in satoshis per virtual byte, not gas.
  • A failed transaction still pays for the gas it burned before reverting, which may differ from a preset.

Common mistakes

  • Entering the wallet's max fee instead of the base fee overstates the cost.
  • Using the gas limit rather than the gas actually used inflates the result.
  • Mixing up gwei and ETH shifts the answer by a factor of one billion.

Frequently asked questions

What is a gwei?

A gwei is one billionth of an ETH (10⁻⁹ ETH). Gas prices are quoted in gwei because fees per unit of gas are tiny numbers when written in ETH.

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

21,000 is the fixed intrinsic cost of any Ethereum transaction. A simple transfer to an ordinary address runs no contract code, so nothing is added on top of that amount.

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

A block explorer shows Gas Usage by Txn on the transaction page, next to the gas limit. Enter that figure with Custom gas units to reproduce the exact fee paid.

What happens to the base fee?

The base fee is burned, removing that ETH from supply. Only the priority tip goes to the validator who includes the transaction. The Base fee burned figure shows the burned part in dollars.

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

Wallets often show the maximum you could pay, built from a max fee set well above the current base fee. The charge is base fee plus tip times gas used, and the rest is refunded.

Do gas fees matter for crypto tax records?

In the United States, the IRS treats digital assets as property, and transaction costs generally adjust the cost basis or the amount realised. Keep the fee in ETH and its dollar value at the time for each trade, and check the IRS digital asset guidance for your situation.