Home / Forex glossary / Gas Fees

Gas Fees

Gas fees are what you pay the network to process a transaction, most often talked about on Ethereum. The busier the network, the more you pay to get in the next block.

Ξ $$gashigher activity = higher fee
The cost paid to validators to process a transaction on a blockchain like Ethereum. Higher network activity = higher gas.

How it works

Every action on a network like Ethereum, such as sending coins or swapping tokens, requires computing work. Gas measures that work. A simple transfer uses a small, fixed amount, and a complicated swap uses much more.

The fee equals the gas used times the price per unit of gas, which is quoted in gwei, a tiny fraction of an Ether coin. The price is set by demand for space in the next block, so it rises when many people are transacting.

Gas fees are paid whether or not the transaction does what you wanted, since the network did the work. A failed swap still costs gas. That is one reason to avoid sending many small transactions and to check the estimate before you confirm.

Fee = gas used × price per gas unit (gwei); 1 ETH = 1,000,000,000 gwei

A worked example

Hypothetical: a simple Ether transfer uses 21,000 gas. At 20 gwei, the fee is 21,000 × 20 = 420,000 gwei, which is 0.00042 ETH. If Ether is $3,000, that is about $1.26. If the network is busy and the price is 100 gwei, the same transfer costs about $6.30. A token swap using 150,000 gas at 100 gwei would cost about $45 at that Ether price.

Common mistakes

  • Moving small amounts often, where the fee takes a large share.
  • Not checking the fee estimate before confirming, especially when the network is busy.
  • Assuming a failed transaction costs nothing. It still uses gas.

Check yourself

A transfer uses 21,000 gas at 20 gwei. What is the fee in gwei?
Why do gas fees rise?

Common questions

What are gas fees?

The fees paid to the network to process a transaction or run a smart contract, priced by how much computation is required and how busy the network is.

Why do gas fees change?

The price per unit of gas rises when many people want their transactions processed at once and falls when the network is quiet.

What is gwei?

A unit of Ether equal to one billionth of an Ether, used to quote gas prices.

Related terms

Use it on a demo account

The fastest way to make this stick is to use it. PipPath gives you a $10,000 demo account to practice position size, stops and targets with no real money at risk.

Start free

Educational content, not financial advice. Examples use made-up numbers.