TokenAlphabet logo TokenAlphabet
Home / Glossary / Gas fee

Gas fee

Gas is the unit Ethereum uses to measure how much work a transaction asks the network to do. A plain ETH transfer always costs 21,000 gas. A token swap or an NFT mint runs more code, so it often needs 100,000 gas or more. The gas fee is that amount multiplied by the price per unit, paid in ETH.

Prices are quoted in gwei, one billionth of an ETH. Since the London upgrade in August 2021 (EIP-1559) the price has two parts: a base fee set by the protocol, which is burned, and an optional tip to the validator. Say the base fee is 2 gwei and the tip 0.5 gwei. A simple transfer then costs 21,000 x 2.5 = 52,500 gwei, or 0.0000525 ETH. At an ETH price of $3,000 that is about 16 cents.

The base fee goes up when blocks are full and down when they are empty, which is why the same swap can cost a few cents at night and several dollars during a busy mint.

A transaction that fails still pays for the gas it used. Layer 2 networks such as Arbitrum and Base batch many transactions together and post them to Ethereum, so their fees are usually a fraction of a cent. Block explorers show the current price before you sign.

Related terms: DeFi (decentralized finance), Layer 2 (L2), Hot wallet, Altcoin