Home / Wiki / G / Gas Fee

Gas Fee

Cryptocurrency and Digital AssetsUpdated 13 Nov 2026

A gas fee is the charge a user pays to have a transaction processed or a smart contract executed on the Ethereum blockchain and on other networks that copy its design. "Gas" is the unit that measures how much computing work an operation needs; the fee is that amount of gas multiplied by a price per unit, paid in the network's native coin, ether (ETH). Ethereum's fee rules are set through Ethereum Improvement Proposals. The unit of computation the fee pays for is called gas.

Gas exists for two reasons. It pays the validators who include transactions in blocks, and it stops anyone from clogging the network with endless or wasteful computations, because every step costs money. The same idea is used across Ethereum-compatible blockchains that run the Ethereum Virtual Machine. It is one kind of the broader blockchain transaction fee.

01

Gas fees in plain terms

Think of a taxi. The meter counts distance, and the fare is the distance times the rate per kilometre. Gas works the same way: the "distance" is how much work your transaction asks the network to do, and the "rate" is the gas price at that moment. Sending coins to a friend is a short trip; a complex trade on an exchange app is a long one.

The rate goes up when lots of people want rides at once. During busy periods, such as a popular token launch, users compete for limited space in each block and fees can rise sharply, then fall when the rush is over.

02

How a gas fee is calculated

Since the London upgrade in August 2021, which introduced EIP-1559, the fee on Ethereum is built from a base fee set by the protocol and an optional tip to the validator:

Fee=Gas used×(Base fee+Priority fee)\text{Fee} = \text{Gas used} \times (\text{Base fee} + \text{Priority fee})
  • Gas used\text{Gas used} is the number of gas units the transaction actually consumes. A plain ETH transfer uses 21,000 gas.
  • Base fee\text{Base fee} is the minimum price per unit for the block, adjusted automatically as blocks fill up or empty. It is burned, which removes that ETH from supply.
  • Priority fee\text{Priority fee} is the tip per unit that goes to the validator to encourage quick inclusion.

Prices are quoted in gwei, where one gwei is one billionth of an ETH. Worked example: a simple transfer uses 21,000 gas. If the base fee is 18 gwei and the user adds a 2 gwei tip, the fee is 21,000 × 20 = 420,000 gwei, which is 0.00042 ETH. At an ETH price of $3,000 that is $1.26. A token swap using 150,000 gas at the same price would cost 0.003 ETH, or $9.

Users also set a gas limit, the most gas they will allow the transaction to consume. If the work runs out of gas before finishing, the transaction fails but the gas already used is still charged.

03

What drives gas fees

The base fee rises when blocks are more than half full and falls when they are less, so demand for block space is the main driver. Activity in decentralized finance, new token and NFT launches, and market turmoil push it up. Complex contracts, such as those used by automated market makers, consume more gas than simple transfers. The fee in ETH is fairly stable for a given action, but its cost in dollars also moves with the ETH price.

04

Reducing gas costs

High fees in 2020–2021 drove much activity to Layer 2 networks, which bundle many transactions and post a compressed record to Ethereum. Both optimistic rollups and zero-knowledge rollups spread one Ethereum fee across many users. Proposals such as EIP-4488 aimed to cut the cost of posting rollup data; the approach finally adopted was EIP-4844, part of the Dencun upgrade in March 2024, which added cheaper "blob" space for rollup data and sharply reduced Layer 2 fees. Other networks, such as Solana, use different fee models with much lower typical costs. The wider topic of capacity is covered in scaling blockchain.

05

Gas fees in payments

For businesses using stablecoin payments, gas is an operating cost that must be paid in the native coin even when the transfer is in a stablecoin such as Tether (USDT). Wallet providers and payment firms often hold ETH to pay gas on behalf of users, or use account-abstraction tools that let a third party sponsor the fee. Because the fee depends on network congestion rather than on the amount sent, a $10 payment and a $10 million payment of the same type cost the same gas.

Last updated 13 Nov 2026