FormatForge logoFormatForge

Crypto guide

Ethereum Gas Fees Explained: Gas, Gwei, Base Fee and Priority Fee

Understand Ethereum gas units, Gwei, base fee, priority fee, max fee and how an EIP-1559 transaction fee is calculated.

By FormatForge2026-08-1610 min read

Quick summary

Understand Ethereum gas units, Gwei, base fee, priority fee, max fee and how an EIP-1559 transaction fee is calculated. This guide gives you a clear, practical explanation before you use the related online tool.

1

Gas measures computation, while the fee pays for it

On Ethereum, gas measures the computational work required by a transaction or smart-contract operation. The fee is the amount of gas actually used multiplied by the effective price paid per unit of gas. More complex contract interactions can use substantially more gas than a simple ETH transfer.

2

Why gas prices are quoted in Gwei

Gas prices are usually expressed in Gwei because ETH is too large a unit for convenient per-gas prices. One Gwei is one-billionth of an ETH. Keeping gas price in Gwei and final cost in ETH is why a combined unit converter and fee calculator is useful.

3

Base fee

Under Ethereum's EIP-1559 fee model, the protocol sets a base fee for a block. The base fee responds to network demand and is burned rather than paid to the validator. A transaction needs to accommodate the applicable base fee to be eligible for inclusion.

4

Priority fee or tip

The priority fee is an additional amount intended to incentivize validators to include a transaction. Wallets often estimate an appropriate value based on network conditions. A calculator should not present one fixed priority fee as universally correct.

5

Max fee per gas

A user can specify the maximum fee per gas they are willing to pay. In an EIP-1559-style scenario, the effective price is constrained by that maximum while covering the base fee and allowable priority fee. Unused headroom between the cap and the effective price is not simply charged as if it were consumed.

6

Worked arithmetic example

Using 21,000 gas, a 20 Gwei base fee and a 2 Gwei priority fee gives a requested effective price of 22 Gwei when the max fee is high enough. Multiplying 21,000 by 22 Gwei gives 462,000 Gwei, or 0.000462 ETH. This is an arithmetic example, not a current network quote.

7

Gas limit is not the same as gas used

Gas limit is a ceiling on the amount of gas the transaction may consume. Actual gas used can be lower. A basic ETH transfer commonly uses 21,000 gas, while contract interactions can require much more. Do not reuse 21,000 as a universal estimate.

8

Use current network estimates from a wallet or node

FormatForge does not fetch live gas conditions. Enter values from your wallet, RPC provider, block explorer or a hypothetical scenario, then use the Ethereum Gas Fee & Unit Calculator to understand the arithmetic. Network conditions can change between estimation and inclusion.

Continue with a free tool

Related FormatForge tools

Frequently asked questions

What is Gwei?

Gwei is one-billionth of an ETH and is commonly used to quote Ethereum gas prices.

How is an Ethereum gas fee calculated?

At a high level, gas used is multiplied by the effective gas price. Under EIP-1559, base fee, priority fee and the user's max fee determine that effective price.

What is the difference between gas limit and gas used?

Gas limit is the maximum gas the transaction may consume; gas used is what execution actually consumes.

Is 21,000 gas enough for every Ethereum transaction?

No. It is the standard simple ETH-transfer amount; smart-contract interactions can require much more.

Does the FormatForge calculator show live gas prices?

No. Users enter the gas values themselves so the tool does not present a stale or speculative network quote.

Keep learning

Related guides