CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

Gas fees: meaning and how they work

This page defines gas fees, walks through how a fee is built up, and shows where the term appears in wallets, explorers and news.

Extrade Pakistan editorial team ·

On this page
  1. What is gas fees: the short definition
  2. The precise definition
  3. Worked example (hypothetical)
  4. Edge cases experienced users meet
  5. Where the term appears
  6. Related terms
  7. Frequent questions

What is gas fees: the short definition

A gas fee is the fee a user pays, in the network's native coin, to have a transaction or smart-contract action processed and recorded on Ethereum or a similar blockchain.

"Gas" is the unit that measures how much computing work an action needs. A plain coin transfer needs little gas. A token swap or a DeFi contract call needs more.

The precise definition

On Ethereum, the fee for a transaction is:

gas used × (base fee + priority fee)

Worked example (hypothetical)

Say you send a token from your crypto wallet. Before you confirm, the wallet shows an estimated gas amount for the action, the current base fee and a suggested tip.

  1. The wallet multiplies the estimated gas by the base fee plus tip.
  2. It converts the result from gwei into ETH and shows it next to your transfer.
  3. After the transaction is mined, the actual fee is the gas really used times the price paid. If the transaction used less gas than the limit, you are not charged for the unused part.

If the network gets busy before you confirm, the base fee goes up and so does the total. The same transfer can cost much more at a busy hour than at a quiet one.

Edge cases experienced users meet

Where the term appears

On-chain gas fees do not apply when you trade crypto CFDs. CFDs are price contracts with a broker, and their costs are the spread, commission and swap. Leveraged CFD trading on volatile crypto prices can lose money fast.

Frequent questions

What does gas fees mean in simple words?

It is the fee you pay the network to process your transaction. More complex actions and busier periods mean a higher fee.

Who receives the Ethereum gas fee?

The base fee is burned. The priority fee goes to the validator who includes your transaction in a block.

Why did I pay a crypto gas fee for a failed transaction?

The network still did the computing work before the transaction failed, and that work is charged.

Can I avoid gas fees?

Not for on-chain transactions. Wallets usually let you change the tip, and fees are lower when the network is less busy, but some fee is always charged.

Related pages