Gas is the fee paid to process a transaction or run a smart contract on Ethereum, compensating the network for the computing resources a transaction consumes. Every action on Ethereum, from a simple transfer to a complex DeFi trade, costs some amount of gas, part of how Ethereum actually functions day to day. The Ethereum Foundation's gas documentation sets out exactly how the fee is calculated.
Gas units
Gas measures the computational work a transaction requires. Simple transfers use relatively little gas; complex smart contract interactions use more. The gas amount reflects complexity, not the dollar value being transferred.
That last sentence is the one people find hardest to believe, and it is worth sitting with: moving five dollars and moving five million dollars cost exactly the same. The network is charging for computation, not for value, because the work involved in updating two balances is identical either way. This is precisely backwards from how banks and card networks price transfers, and it explains why Ethereum is uneconomic for small payments and remarkably cheap for large ones.
The gas has a purpose beyond revenue, too. Every operation carries a fixed cost in gas units, and each transaction sets a limit on how much it will consume. Without that limit, a program with an infinite loop would run forever on every node on earth. Charging per step makes runaway code impossible, since it eventually runs out of gas and halts. The fee is a metering system first and a payment second.
Gwei
Gas prices are typically quoted in gwei, a tiny fraction of ETH. The total fee for a transaction equals the gas used multiplied by the gas price you're willing to pay per unit, in gwei.
A gwei is one billionth of an ETH, which exists purely because quoting fees in ETH would mean reading strings of zeros. Since 2021 the fee itself has had two parts, and the split is worth knowing because it changes what your money does. A base fee is set automatically by the protocol according to how full recent blocks were, and it is burned, permanently destroyed rather than paid to anyone. On top of that sits a priority fee, a tip you choose, which goes to the validator and is what actually competes for faster inclusion.
The burning is not a detail. Every transaction on Ethereum destroys a little ETH, which means heavy network usage shrinks the supply. During busy periods, more ETH is burned than issued and the total supply falls. That is an unusual property for a monetary asset and it ties the value of ETH directly to how much the network is used.
Why fees spike
Gas prices rise when many people are trying to transact at once and network capacity is limited, since users effectively bid for inclusion in the next block. High-demand periods, like a popular NFT launch, can push fees sharply higher.
The blunt fact underneath is that block space is scarce by design. Each block holds a fixed budget of gas, and that budget is deliberately small enough that ordinary people can still run a node and verify the chain. Raise it and fees fall, but the hardware needed to keep up rises, and verification concentrates into fewer hands. The fee is the visible price of keeping the network verifiable by hobbyists rather than data centers.
Which is why the base fee moves the way it does: it adjusts automatically, rising when blocks run over half full and falling when they run under. Demand does not queue politely; it gets priced. And it is worth knowing that a failed transaction still costs gas, because the network did the work of attempting it before it reverted. Paying a fee for nothing feels like a bug and is exactly the intended behavior.
Saving on fees
Options include timing transactions during lower-demand periods, adjusting gas settings carefully, and using Layer 2 networks, which handle transactions more cheaply before settling back to Ethereum's base layer.
Of those three, only one changes the picture by an order of magnitude. Timing helps at the margins, since weekends and quiet hours are genuinely cheaper, and batching several actions into one transaction where an application supports it avoids paying the fixed overhead repeatedly. Setting a lower priority fee saves a little if you are not in a hurry.
Layer 2s are the real answer, and they are where the ecosystem has actually gone. A rollup executes your transaction off the main chain and posts a compressed proof back to it, which cuts the cost by a factor of ten to a hundred while still inheriting Ethereum's security. If you are paying base-layer fees for routine activity, the fix is not a gas tracker, it is a different layer.
Two habits are worth building regardless. Keep a small ETH balance in any wallet holding tokens, because gas is paid in ETH and a wallet full of USDC with no ETH cannot move any of it, which people discover at the worst possible moment. And read the fee estimate before confirming, since the same action can cost a dollar or forty depending on the hour, and nothing forces you to transact right now.
The useful mental model: gas is not a tax the network collects, it is an auction for scarce block space, priced by demand and metered by computation. Once that clicks, the fees stop feeling arbitrary and start being something you can plan around.