Ethereum Gas Fees Explained: Gwei, Wei and How Fees Are Calculated

In short: Ethereum gas fees are what you pay the network to process a transaction: the gas your transaction uses multiplied by the price per unit of gas, in gwei.

Ethereum gas fees — ChainMaths

Every Ethereum transaction shows a fee before you confirm it. Behind that number are three ideas: gas (how much work), gwei (the price per unit of work) and the base fee set by the network. Once you see how they fit together, fees stop being a mystery.

The units: ETH, gwei and wei

1 ETH  = 1,000,000,000 gwei
1 gwei = 1,000,000,000 wei
1 ETH  = 10^18 wei

Gas prices are quoted in gwei because ETH would need too many zeros. Smart contracts store everything in wei, the smallest unit. Convert between them exactly with our gwei converter.

Gas: the amount of work

Every operation on Ethereum has a fixed gas cost. A plain ETH transfer always uses 21,000 gas. Token transfers, swaps and NFT mints run smart-contract code and use more:

Action Approximate gas used
Send ETH 21,000
Send an ERC-20 token 45,000–65,000
Approve a token ~46,000
Swap on a DEX 120,000–200,000+
Mint an NFT 100,000–250,000+

The gas limit is the maximum you allow a transaction to use. Your wallet estimates it; you only pay for gas actually used.

The price: base fee + priority fee

Since the London upgrade (EIP-1559), the price per unit of gas has two parts:

  • Base fee — set by the network for each block. It rises when blocks are full and falls when they are not. It is burned, not paid to anyone.
  • Priority fee (tip) — an extra amount paid to the validator to include your transaction sooner.
Fee = Gas used × (Base fee + Priority fee)

Wallets also set a max fee — the most you are willing to pay per unit of gas. If the base fee ends up lower, you pay less and the difference is never charged.

Worked example

You send an ERC-20 token that uses 60,000 gas. The base fee is 8 gwei and you tip 1 gwei. ETH is $3,000.

60,000 × (8 + 1) = 540,000 gwei
540,000 gwei = 0.00054 ETH
0.00054 × 3,000 = $1.62

Why failed transactions still cost money

If a transaction fails — slippage too low, a contract condition not met — the network still did the work up to the point of failure. You pay for the gas used, even though nothing happened. Setting sensible slippage and checking balances first avoids most failures.

How to pay less gas

  • Time it. The base fee is usually lower when activity is low, often at weekends and in quiet hours. A gas tracker shows the current base fee.
  • Do not overpay the tip. A small priority fee is normally enough outside of busy events.
  • Use a layer-2 network such as Arbitrum, Optimism or Base for small transactions. They batch many transactions and are much cheaper.
  • Avoid unnecessary approvals and batch actions where an app allows it.

Other EVM chains

BNB Smart Chain, Polygon, Avalanche and other EVM chains use the same gas model — only the gas token (BNB, POL, AVAX) and typical prices differ. Layer-2 networks also charge a small fee for posting data to Ethereum.

Key takeaways: Ethereum gas fees

  • Ethereum gas fees = gas used × (base fee + priority fee).
  • The base fee is burned; only the tip goes to the validator.
  • Layer-2 networks cut Ethereum gas fees dramatically for small transactions.

Ethereum gas fees FAQ

Why did my wallet show a higher fee than I paid?

Wallets show the maximum possible fee (gas limit × max fee). You pay only for the gas used at the actual base fee plus tip.

Can I cancel a pending transaction?

You can usually replace it by sending a new transaction with the same nonce and a higher fee — most wallets offer “speed up” and “cancel” buttons that do this.

What is a good gas price?

There is no fixed number. Check the current base fee in a gas tracker and add a small tip. Paying far above the base fee rarely speeds things up much.

Further reading: gas and fees (ethereum.org).

Similar Posts