Gas Price

Gas price is the amount a user pays for each unit of gas a transaction consumes on Ethereum and other EVM networks, usually quoted in gwei. Multiplied by the gas used, it sets the transaction's fee.

Every operation on Ethereum costs a set amount of gas, which measures computational work. The gas price is what the sender pays per unit of that work. Since the EIP-1559 upgrade, the price on Ethereum has two parts. The first is a base fee, which the protocol adjusts according to how full recent blocks were and which is burned. The second is an optional priority fee, or tip, which goes to the validator. Wallets let users set a maximum fee per gas. The user then pays the base fee plus the tip, never more than that maximum.

Gas price matters because it affects both cost and speed. When demand for block space is high, the base fee rises and validators favour transactions with higher tips. A transaction priced too low can wait in the mempool for a long time or be dropped. When timing is not critical, sending during quieter periods at a lower price can save money.

For example, a simple ETH transfer uses 21,000 gas. At a gas price of 50 gwei, the fee is 21,000 × 50 = 1,050,000 gwei, or 0.00105 ETH.

A common misconception is that the gas price is the whole fee. It is only the rate per unit. The total also depends on how much gas the transaction uses, and its value in fiat terms moves with the price of ETH. A higher gas price speeds up inclusion but cannot rescue a transaction that fails, and the gas a failed transaction consumes is still paid.

Learn more

Related terms