Crypto

Gas fee

A gas fee is the amount paid to process a transaction or execute operations on a blockchain that prices computation as gas. On Ethereum, the fee equals the gas used multiplied by the applicable price per gas unit and is paid in ether, even if the transaction fails after consuming gas.

What Gas fee means

Gas separates the amount of computational work from the cryptoasset used to pay for it. A simple transfer typically uses less gas than a transaction that changes a complex smart contract’s state. On Ethereum, fees can include a base fee and a priority fee, while a wallet may also set a maximum fee limit. The mechanism differs across networks.

A gas fee can affect the total cost and timing of onchain activity. A transaction may remain pending if its fee settings are not competitive under current network conditions, and a failed contract transaction can still cost gas because validators used resources to execute it. Users should distinguish gas fees from exchange trading fees and blockchain withdrawal fees.

On Ethereum, assume a transaction uses 21,000 gas and the effective price is 40 gwei per gas. The fee is 840,000 gwei, or 0.00084 ETH, because 1 ETH equals 1 billion gwei. This simplified calculation excludes the value being transferred and assumes all 21,000 gas is used.

Common questions

Do failed Ethereum transactions cost gas?+

Usually, yes. If a transaction is included and execution consumes computational resources before reverting or failing, gas is charged for the work performed. A transaction that is never included is different and generally does not incur an onchain gas charge.

Is a gas fee the same as an exchange fee?+

No. A gas fee is a blockchain execution cost. An exchange may separately charge trading, withdrawal, conversion, or service fees. A withdrawal fee can include a network cost but is set and collected under the platform’s own terms.

Go to the original material.

01Ethereum.org — Gas and fees02Ethereum.org — Transactions