Every Ethereum transaction uses network resources. Whether you send ETH, swap tokens, mint an NFT, or interact with a smart contract, the network measures the computational work in units called gas. The fee you pay depends on how much gas the transaction uses and the price paid for each unit. Understanding these two parts makes wallet fee screens much easier to read.

This guide focuses on Ethereum mainnet and its EIP-1559 fee market. Other blockchains and layer-2 networks can use different fee rules or payment assets, so always check which network your wallet is using before confirming a transaction.

What Is Gas on Ethereum?

Gas is a measurement of the computational work required to process an Ethereum transaction. A simple ETH transfer uses less gas than a transaction that calls a smart contract, because a contract interaction may execute many operations and read or update data.

Gas is not the same as ETH. Gas measures work; ETH is the asset used to pay Ethereum mainnet transaction fees. Wallets and fee trackers commonly display the price per gas unit in gwei, a small denomination of ETH.

Gas Limit vs. Gas Used

The gas limit is the maximum amount of gas you allow a transaction to consume. Gas used is the amount the transaction actually consumes when it is processed.

A standard transfer of ETH from one externally owned account to another requires 21,000 gas under the usual conditions. A smart-contract interaction can require more, and the amount depends on what the contract does and the state it encounters.

If you set a limit above the amount ultimately used, the unused portion is not charged as consumed gas. If a transaction runs out of gas during execution, its state changes are reverted and the gas supplied for that execution is consumed. A transaction that reverts for another execution reason can also still incur a fee for the work performed.

Base Fee and Priority Fee

For Ethereum’s EIP-1559 fee mechanism, the price per unit of gas has two main parts:

  • Base fee: A protocol-set amount that a transaction must cover to be eligible for inclusion. It changes with recent block demand. The base-fee portion is burned by the protocol.
  • Priority fee: An optional tip offered to the validator to make the transaction more attractive for inclusion. A higher tip can help with urgency, but it does not guarantee a particular confirmation time.

When blocks use more gas than the protocol’s target, the base fee rises; when they use less than the target, it falls. This adjustment responds to demand for block space. EIP-1559 did not promise that fees would always be low—it changed how the fee market adjusts and how users specify fee limits.

What Do Max Fee and Max Priority Fee Mean?

Modern Ethereum wallets commonly show two additional settings:

  • Max fee per gas: The highest total amount per gas unit you are willing to pay, including the base fee and priority fee.
  • Max priority fee per gas: The highest tip per gas unit you are willing to offer the validator.

These are caps, not necessarily the amount you will pay. The effective priority fee cannot exceed either the tip cap or the room left under your max-fee cap after the base fee is covered. If the max fee is below the base fee required by a block, the transaction cannot be included in that block.

How to Calculate an Ethereum Gas Fee

A useful simplified formula for an included EIP-1559 transaction is:

Total fee = gas used × (base fee + effective priority fee)

For example, suppose a plain ETH transfer uses 21,000 gas, the base fee is 10 gwei, and the effective priority fee is 2 gwei. The calculation is:

  • Effective gas price: 10 + 2 = 12 gwei
  • Total: 21,000 × 12 = 252,000 gwei
  • In ETH: 0.000252 ETH

This is an illustrative calculation, not a live fee quote. The actual amount depends on the gas used and the effective gas price when the transaction is included.

Why Do Ethereum Gas Fees Change?

Ethereum block space is limited. When more users want transactions included, they compete for that space. The protocol adjusts the base fee according to how full recent blocks have been, while users can offer a priority fee to signal urgency.

Contract complexity also matters. Sending ETH is generally simpler than swapping tokens or interacting with a DeFi contract. Two transactions made at the same time can therefore have different total fees because they consume different amounts of gas.

Why Can a Transaction Fail and Still Cost ETH?

Once an included transaction begins execution, the network has already performed work. If a smart contract call reverts, the state changes are undone, but the gas used to process the attempt is still charged. If execution runs out of gas, the full gas allowance for that execution can be consumed.

This is why it is worth checking the destination address, network, contract details, and transaction summary before signing. Do not increase a fee or gas limit simply because a website or stranger tells you to do so.

Practical Ways to Avoid Common Fee Mistakes

  • Check the network: Make sure your wallet is set to Ethereum mainnet if that is where you intend to transact. Fees and supported assets can differ on other networks.
  • Review the wallet estimate: Compare the estimated fee with the transaction you are making. A token swap or contract call can use more gas than a simple transfer.
  • Understand urgency: A larger priority fee may help a transaction compete for inclusion, but it is not a guarantee. Avoid paying for speed you do not need.
  • Do not set an unrealistically low gas limit: A limit that is too low can cause execution to run out of gas. Use the wallet’s estimate unless you understand why it needs adjustment.
  • Consider whether a layer 2 is suitable: Layer-2 networks can have different fee structures and trade-offs. Confirm the destination network and any bridging steps before moving assets.
  • Keep swap costs separate: Network gas is separate from a swap’s price impact and slippage settings. Read our guide to DEX slippage vs. price impact before confirming a token swap.

Frequently Asked Questions

What is gwei?

Gwei is a denomination of ETH. One gwei equals 0.000000001 ETH, or one-billionth of an ETH. It makes small per-gas prices easier to display.

Does a higher gas limit always mean a higher fee?

No. The gas limit is a maximum allowance. The fee is based on gas actually used and the effective price per gas, although a transaction that runs out of gas can consume its full allowance.

Who receives the Ethereum gas fee?

Under EIP-1559, the base-fee portion is burned. The effective priority-fee portion is paid to the validator that includes the transaction.

Can I know the exact fee before sending?

A wallet can estimate the likely gas usage and fee, but the final amount can change with network conditions and the transaction’s actual execution. Treat an estimate as an estimate, not a guaranteed quote.

Final Thoughts

Ethereum gas fees become easier to understand once you separate the amount of work from the price per unit of work. Gas used measures execution, the base fee reflects network demand, and the priority fee is a tip that can influence inclusion. Review the network and transaction details before signing, and remember that no fee setting removes the risks of interacting with an unfamiliar contract.

This article is for educational purposes only and is not investment, legal, or tax advice.

Sources and Further Reading