Gas

Gas: Gas is the unit that measures how much computing work a transaction or smart contract action needs on Ethereum. You pay for it in ETH: the fee is the gas used multiplied by the price per unit, quoted in gwei. Complex actions use more gas, and prices rise when the network is busy.

By Matt Willemsen, Director of Research, reviewed by Ben Simpson. Updated November 2026. General education only.

Gas units vs gas price

A simple ETH transfer uses 21,000 gas units, while a token swap or NFT mint uses more. The gas price is set per unit in gwei, one billionth of one ether. Your wallet estimates both and shows the total before you confirm.

Base fee and priority fee

On Ethereum, each fee has a base fee, set by the network from how full recent blocks were and then burned, plus an optional priority fee, or tip, paid to the validator. Any amount below the maximum fee you set is refunded.

Why gas exists

Gas pays validators for processing transactions and stops anyone from clogging the network with endless computations, because every step has a cost. If a transaction runs out of gas it fails, and the gas used up to that point is still spent.

Frequently asked questions

Is gas the same as a gas fee?

Gas is the unit of work. The gas fee is what you pay: the gas used multiplied by the gas price.

How can I pay less gas?

Transact when the network is quieter, or use a layer 2 network for smaller, frequent transactions.

Related guides