A gas fee is the amount paid to get a transaction processed on a blockchain. It compensates the network participants who validate and record activity, such as transfers or smart contract calls. Some chains use the term transaction fee instead, but the idea is the same: users pay for the computation their action consumes.
Public blockchains rely on independent validators who run software and hardware to keep the ledger accurate. Gas fees move value from users who need a service to those validators who provide the computing work, which helps secure the network and discourages spam.
Ethereum popularized the gas model, and many EVM-style networks follow it. Other chains may simply say transaction fees, but the role is comparable: you pay to get included in a block.
On Ethereum, gas is measured in units, and the price you are willing to pay per unit is quoted in gwei, a small denomination of ETH. The total cost of a transaction equals the units consumed times the price per unit. Put simply, the gas price is the rate, the gas units are the amount, and the gas fee is the bill.
Before sending a transaction, users set a gas limit, which is the maximum units they are willing to spend. Simple transfers need a low, fixed amount, while complex smart contract interactions need more. If the limit is set too low and the transaction runs out of gas, it fails, and you still pay for the work already performed. Unused gas is returned when the limit is higher than required.
Ethereum no longer uses a simple first-price auction. With EIP-1559, each block includes a base fee that adjusts with demand and is burned, plus an optional priority tip that goes to the validator. The common way to think about it is:
Total gas fee = Gas units used × (Base fee + Priority tip).
Fees rise and fall with activity on the network and with the complexity of what you are doing. Heavy traffic can push prices up, while quiet periods are cheaper. Smart contracts and NFT mints generally use more gas than a plain token transfer.
Most wallets suggest a fee automatically and let you pick faster or slower confirmation settings. On some custodial platforms, parts of the on-chain cost can be handled off-chain for actions that stay inside the platform, so users may not see fluctuating gas on every action there.
Gas connects real resource use with cost. It rewards validators, keeps the ledger from being flooded with junk, and nudges users to time their transactions or pick appropriate settings for speed and price.