Level 3 · How it worksThe village#219

Gas explained: you pay for every step the village does for you, even the steps that fail

Gas measures how much work an Ethereum transaction asks the network to do. You pay for it per unit: a base fee that is burned, plus a tip for the validator. A plain transfer uses 21,000 gas, and a transaction that fails still pays for the work done.

Every time someone writes to the village notebook, every house has to do the work: read the letter, check the signature, run any rule it touches, update the page. That takes firewood. So the village charges for it, step by step.

The firewood is called gas. A simple payment takes a fixed bundle of it. A call to a complicated rule takes more. And if your request fails halfway, the houses still burned the wood for the steps they did, so you still pay for them.

That's gas: a measure of work, priced per unit. Part of the price is destroyed, part goes to the validator who wrote the page. This article does the sums with one real block.

What it is

ethereum.org: "Gas refers to the unit that measures the amount of computational effort required to execute specific operations" (ethereum.org). The price per unit is quoted in gwei: "Each gwei is equal to one-billionth of an ETH".

Since the London upgrade of August 2021, each unit's price has two parts, set out in EIP-1559 (EIP-1559). The base fee is set by the protocol for each block, and "The base fee per gas is burned." The priority fee, or tip, is what you add on top for the validator. You also set a gas limit: the most gas your transaction may use.

How it works

The house block is Ethereum block 26,449,058, written on 19 November 2026 at 12:14:35 UTC. All figures read on Etherscan the same day.

  1. The page size. The block could hold up to 60,000,000 gas. ethereum.org explains that each block has a target of half that, 30 million, and can stretch up to the limit (ethereum.org). This one used 30,452,446 gas, 50.75% of the limit, just over target.
  2. The base fee. 0.137961262 gwei per unit of gas, for every transaction in the block.
  3. The burn. Base fee x gas used: 30,452,446 x 0.137961262 gwei = 4,201,257.881146852 gwei, or 0.004201257881146852 ETH. Etherscan shows exactly that as "Burnt fees". Nobody received it.
  4. The tips. The 280 transactions paid 0.013317284494146751 ETH in fees in all. Minus the burn, 0.009116026612999899 ETH went to the block's fee recipient, a block builder Etherscan labels "quasarbuilder". That's an average tip of about 0.2994 gwei per gas.
  5. One plain transfer. A standard ether transfer "requires a gas limit of 21,000 units of gas". At this base fee, the burned part is 21,000 x 0.137961262 = 2,897.186502 gwei, about 0.0000029 ETH. With a tip of 0.1 gwei per gas, Anna adds 2,100 gwei for the validator: 4,997.186502 gwei in all.
  6. The cap and the change. Wallets also let you set a maximum fee per gas. ethereum.org: "The transaction sender is refunded the difference between the max fee and the sum of the base fee and tip." If Anna's cap was 1 gwei, she pays 0.237961262 per gas and the other 0.762038738 is never charged: 16,002.813498 gwei on her 21,000-gas transfer.

The next block's base fee follows from this one. Because block 26,449,058 ran slightly over target, the EIP-1559 rule raised the base fee a fraction: block 26,449,059 shows 0.138221345 gwei (Etherscan), exactly what the formula gives. "EIP-1559 and burned fees" explains that rule.

When it fails

Now Rosa calls a contract and sets a gas limit of 60,000. Halfway through, the rule needs more than that. ethereum.org is blunt: "the EVM will revert any changes, but all the gas provided will still be consumed for the work performed." Rosa's call does nothing, and at the same base fee and tip she pays 60,000 x 0.237961262 = 14,277.67572 gwei for it. "The fee is paid regardless of whether a transaction succeeds or fails."

Why it matters

  • It keeps the village from being flooded. ethereum.org: "By requiring a fee for every computation executed on the network, we prevent bad actors from spamming the network." Ben could write an endless rule; the gas runs out first.
  • Busy days cost more. When blocks run above target, the base fee climbs block after block, and every user pays more per unit.
  • The burn changes the supply. The base fee is destroyed rather than paid out. Only the tip rewards the validator.

Where people get it wrong

  • "Gas is a coin." Gas is a unit of work. You pay for it in ether, priced in gwei.
  • "A higher gas limit makes it faster." The limit is a ceiling on work. Speed comes from the tip and the base fee you're willing to pay.
  • "If it failed, I get my fee back." No. The houses did the work, and you pay for every unit used.
  • "Fees are always about the same." The base fee moves with demand, block by block. The figures above are one block's, on one day.

Read the fee line before you press send

Before you confirm any transaction, your wallet shows an estimated fee and, under "advanced" or "edit", the gas limit and maximum fee. Check two things: is this a plain transfer of about 21,000 gas, or a contract call that uses more? And does the maximum fee look sane next to what the wallet estimated?

If a "free" token claim asks you to pay gas for a contract call you can't read, think twice. The stranger at the gate rarely sells firewood. He wants the woodshed.

Frequently asked questions

What is gas on Ethereum?

Gas is the unit that measures how much computational work a transaction asks the Ethereum network to do. Every operation has a gas cost, and you pay for the gas used in ether, priced per unit in gwei.

How much gas does a simple ether transfer use?

A standard ether transfer uses 21,000 gas. What that costs depends on the base fee and tip at the time; at the base fee of block 26,449,058 on 19 November 2026, the burned part was about 0.0000029 ETH.

What is the difference between the base fee and the priority fee?

The base fee is set by the protocol for each block and is burned. The priority fee, or tip, is added by the sender and goes to the validator or block builder who includes the transaction.

Why do I pay gas for a failed transaction?

Because the network's nodes still did the work up to the point of failure. According to ethereum.org, the fee is paid whether a transaction succeeds or fails, and a transaction that runs out of gas consumes all the gas it was given.

What is a gas limit?

It is the most gas a transaction is allowed to use, set by the sender or their wallet. Blocks also have a gas limit, which caps the total work in one block; on Ethereum each block targets half of its limit.

Sources

  1. ethereum.org, Gas and fees
  2. ethereum.org, Blocks
  3. Vitalik Buterin and others, EIP-1559: Fee market change for ETH 1.0 chain (created 13 April 2019)
  4. Etherscan, Ethereum block 26,449,058 (read on 19 November 2026)
  5. Etherscan, Ethereum block 26,449,059 (read on 19 November 2026)

Read next.