You open your wallet, tap send, and see a line you did not expect: a network fee. Sometimes it is a few cents of crypto. Sometimes it is far more than the amount you are sending. On Ethereum this fee is called gas, and it follows a clear set of rules. Once you know those rules, the number on the confirmation screen stops being a mystery, and you can make smarter choices about when and how to send.

Diagram of an Ethereum gas fee: 21,000 gas used times the sum of a 10 gwei base fee and a 2 gwei tip equals 252,000 gwei, or 0.000252 ETH

This guide explains what gas is, how the fee is calculated, why it rises and falls, and what you can do before you press confirm. Everything here about how Ethereum fees work comes from the Ethereum Foundation's own documentation, named in the sources at the end.


What gas actually is

Every action on Ethereum needs computing work from the network: moving ETH, swapping a token, minting an item, calling a smart contract. Gas is the unit that measures that work. The more computation an action needs, the more gas it uses. Gas is not a coin you buy. It is a measurement, and you pay for it in ETH.

The fee exists for a practical reason. According to the Ethereum documentation, charging for every computation step stops spam and prevents code from running in endless loops. If sending a transaction were free, anyone could flood the network at no cost. The fee is paid whether the transaction succeeds or fails, because the network did the work either way.

The formula behind every fee

Gas prices are usually quoted in gwei. One gwei is one billionth of an ETH, or 0.000000001 ETH. The total fee is:

gas used x (base fee + priority fee)

A plain ETH transfer uses 21,000 units of gas. The Ethereum documentation gives this example: the base fee is 10 gwei and the sender adds a 2 gwei tip. The calculation is 21,000 x (10 + 2) = 252,000 gwei, which is 0.000252 ETH. If you check the arithmetic yourself, you get the same number.

The same example also shows where the money goes. The tip, 0.000042 ETH, goes to the validator that includes your transaction. The base fee, 0.00021 ETH, is burned, which means it is removed from circulation instead of being paid to anyone.

Base fee, priority fee and max fee

Base fee

The base fee is set by the protocol, not by you. Each block has one, and it works like a reserve price: your offer per unit of gas must be at least this amount for the transaction to be valid. The base fee is calculated from the block before it. If that block was fuller than the target, the base fee goes up. If it was emptier, the base fee goes down. The documentation says the change is at most 12.5 percent per block, so fees move in steps, not in sudden jumps from one block to the next.

Priority fee (the tip)

The tip is the part you control. It gives validators a reason to pick your transaction. A transaction that pays only the base fee is technically valid, but the documentation says it is unlikely to be chosen because it gives the validator no extra incentive. When many people want space in the next block, tips rise. When the network is quiet, a small tip is usually enough.

Max fee

You can also set a maximum price per unit of gas you are willing to pay. The base fee plus the tip can never go above that cap, and the documentation says the sender is refunded the difference between the max fee and the base fee plus tip actually paid. This is a safety limit, not an amount you are charged in full.

Gas limit: why you sometimes get gas back

The gas limit is the most gas you allow a transaction to use. A simple ETH transfer needs 21,000 units. If you set a limit of 50,000 for that transfer, the network uses 21,000 and returns the remaining 29,000. If you set too little, such as 20,000, the transaction is rejected before it goes into a block and no gas is consumed. If a smart contract call runs out of gas during execution, the Ethereum documentation says all of the gas supplied is consumed and the contract's changes are reverted. Unused gas is returned only when the transaction completes. This is one reason complex actions cost more than a plain transfer: they use more gas, and the limit must be higher.

Why fees get high

The documentation gives two causes. The first is demand. When many people want to transact at the same time, users compete by offering larger tips, and the base fee also rises block after block while blocks stay full. The second is complexity. Apps that run many operations inside a single transaction use far more gas than a transfer. Storage is a good example: the documentation's walkthrough shows that writing a new storage slot costs 22,100 gas, much more than the cheap operations around it.

Seven practical ways to avoid overpaying

  1. Read the fee screen before you confirm. Most wallets suggest a fee automatically. The documentation notes that wallet providers usually set a recommended base fee plus tip so users do not have to. Look at the total in ETH, not only the gwei number.
  2. Match the fee to your urgency. If the transfer is not urgent, a lower tip may work when the network is quiet. If you need it in the next block, expect to pay more.
  3. Do not cut the fee to the bare minimum. An offer that is too low can leave the transaction waiting for a long time or not included at all.
  4. Check the cost of the action, not only the amount. A token swap or a contract approval can cost many times more gas than sending ETH. Compare before you click.
  5. Keep a little extra ETH in the wallet. Gas must be paid in ETH, even when you are moving another token. A wallet with tokens and no ETH cannot send them.
  6. Consider a layer 2 network when it fits your use. The Ethereum documentation calls layer 2 scaling a primary initiative to improve gas costs. Each layer 2 has its own bridge, rules and risks, so read the project's own documentation and start with a small test amount.
  7. Double-check the address. Blockchain transfers cannot be reversed, so a wrong address costs you both the amount and the fee.

Common mistakes to avoid

Do not trust a website that asks for your recovery phrase to "lower your fees" or "refund your gas." No fee system needs it, and anyone who has the phrase controls your funds. Our guide on crypto scams lists more red flags. Also be careful with messages that promise a cheaper route through a link you did not look up yourself. Type the address of the service you want, or use a bookmark you saved earlier.

Another mistake is repeating a "stuck" transaction again and again. If a transaction looks pending, check its status in your wallet or a block explorer first. Sending the same payment twice means paying fees twice.

Quick reference

TermWhat it means
GasA unit that measures computing work on Ethereum
GweiOne billionth of an ETH, used to quote gas prices
Base feeMinimum price per gas set by the protocol and burned
Priority feeTip to the validator, chosen by the sender
Max feeYour cap on price per gas; the difference from what you actually pay is refunded
Gas limitThe most gas a transaction may use; 21,000 for a plain ETH transfer

Final thoughts

A gas fee is not a random charge. It is a measured amount of work multiplied by a price that moves with demand. Know the formula, glance at the confirmation screen, and match your tip to how fast you need the transaction to land. That is enough to avoid most overpaying.

This article is general education, not financial advice. Crypto assets can lose value and transactions cannot be reversed. Fee numbers in the examples are illustrations from the documentation, not live prices.

Questions or corrections? Please contact us.

Sources

Ethereum.org, "Gas and fees: technical overview" (ethereum.org/en/developers/docs/gas/), and Ethereum.org, "Layer 2" (ethereum.org/en/layer-2/), both checked on November 25.