Skip to content
BENIBIX Learn

Gas Fee

Development⛓️ Blockchain & Web3Smart Contracts

Also known as Gas (Ethereum), Gas Price, Gwei, Gas Limit

The fee you pay to get work done on Ethereum. Big jobs cost more.

Think of it like

Think of it like paying for each minute on a coin ride. The longer the ride, the more coins it takes.

Example

A plain ETH transfer uses 21,000 gas. At 2 gwei per unit, Jack pays 42,000 gwei, which is 0.000042 ETH.

Why it matters

Each action costs gas. So a slow, wasteful contract costs its users real money each time.

Definition

Gas is the unit that measures how much work a transaction asks Ethereum to do. Each step of a program uses some gas. The gas fee is the gas used times the price of each unit. Prices are written in gwei, and one gwei is one billionth of an ETH. The price goes up when many people want to use the chain at once.
The wallet pays a gas fee with each transaction it sends to a contract.

Common mistake

Setting the gas limit too low to save money. The transaction fails, and the gas it already used is still paid.

Key takeaways

  1. 1
    Pay per step. More work uses more gas.
  2. 2
    Priced in gwei. One gwei is a billionth of ETH.
  3. 3
    Busy means dear. Fees rise when the chain is full.