Gas fees: the calculation and common failures
Work through the four checks below, then use the related tools or contact support if an account-specific question remains.
Different fees, different causes
Exchange trading fees usually depend on traded value and a rate. Gas pays for network execution. Buying, withdrawing, bridging and using a contract can each involve separate costs.
Work through the units
At 21,000 gas and an effective price of 10 gwei, the fee is 0.00021 ETH. This is a worked example, not a live quote. Contract interactions may use substantially more gas.
Why enough tokens may not be enough
Sending a token on Ethereum generally also requires ETH for gas. Other networks may use different fee assets and mechanisms. An exchange withdrawal promotion does not make every subsequent blockchain action free.
Before trying again
Check the transaction hash and status before resubmitting. A failed transaction may still consume execution resources. Confirm the network, estimated total fee and destination before signing.
This is an independently written practical guide. Product availability, network support and exchange terms can change. Verify the relevant product screen before acting; examples are not live quotes.
ethereum.org · Ethereum gas and fees: technical overview · Page updated 24 June 2026
ethereum.org · Transactions · Page updated 7 October 2026. Original publication dates unavailable; both reviewed 30 October. Independent examples and calculations by Panda.
Ethereum Improvement Proposals · EIP-1559: Fee market change for ETH 1.0 chain · Created 13 April 2019. Specification cross-check: effective-price cap and unused-gas accounting. Reviewed 30 October 2026.
Gas receipt workshop
New learning goal: separate a budget, a charge and a status
After this workshop, distinguish gas limit, gas used, maximum fee per gas and effective price for an ordinary Ethereum mainnet transaction. Calculate both a budget and a receipt-based charge, then determine whether a failed attempt incurred execution cost. All figures below are Panda teaching assumptions, not quotes. This worksheet does not estimate rollup data charges, blob fees, exchange withdrawal charges or sponsored-wallet pricing.
Case one: the maximum budget is not the actual charge
Assume a Type 2 transaction with gas limit 60,000, maxFeePerGas 30 gwei and maxPriorityFeePerGas 2 gwei. Its block has a base fee of 18 gwei and execution uses 42,000 gas. The effective price here is min(30,18+2)=20 gwei. Execution costs 42,000×20×10⁻⁹=0.00084 ETH. The ceiling is 60,000×30×10⁻⁹=0.0018 ETH, leaving a difference of 0.00096 ETH that is not execution cost. Do not record the wallet budget as a paid fee. Transfer principal is separate, and a 60,000 limit is not the 42,000 actually used.
Reconciliation: a balance change is not a receipt
With those assumptions, the base-fee component is 42,000×18×10⁻⁹=0.000756 ETH and the priority component is 42,000×2×10⁻⁹=0.000084 ETH, totaling 0.00084 ETH. Sending 0.01 ETH would give total expenditure of 0.01084 ETH only if there were no other balance changes. For a real check, record network, transaction hash, block, receipt status, gasUsed, effectiveGasPrice and transfer outcome. Other transactions can affect the balance difference. Panda has inspected no personal transaction.
Case two: a low limit can produce different outcomes
Reader A sets only 20,000 gas for an ordinary ETH transfer without extra data, below its 21,000 intrinsic requirement. Validation rejects it before block inclusion, so that attempt incurs no onchain execution charge. Reader B submits a valid contract transaction that exhausts its 60,000 gas during execution: state changes revert, but computation is charged. At an assumed effective price of 20 gwei, B pays 0.0012 ETH. These are teaching scenarios. A wallet failure label establishes neither a free attempt nor consumption of the whole limit in every failure.
Case three: REVERT is different from exhausting gas
Assume another contract reverts after using 25,000 gas because a condition is unmet. With a failed receipt and effective price of 20 gwei, execution costs 0.0005 ETH. Failure establishes neither payment delivery nor a charge for all unused gas. The 25,000 figure is the complete actual usage assumed for this exercise, not a fixed cost for any contract. Check the real receipt and error: insufficient balance, slippage conditions, permissions and resource exhaustion do not share one universal “increase gas” remedy.
Pending: establish the state before resending
An absent receipt differs from a failed receipt. Check the network and whether its explorer can find the transaction hash; a missing lookup alone does not prove it was never broadcast. A maximum price below the current base fee cannot qualify at that current fee, but does not by itself prove failure or payment of a charge. Panda’s workflow is to inspect wallet history, nonce and possible replacements before following the wallet’s own instructions. Avoid creating a second identical transfer by assumption. We provide no current fee, inclusion deadline or guaranteed acceleration setting.
Self-check: three numbers, three conclusions
Is case one charged 0.0018 or 0.00084 ETH? It is 0.00084; the former is its assumed ceiling. Does a failed receipt using 25,000 gas at 20 gwei mean no fee? No: this example costs 0.0005 ETH. Is a pending screenshot a receipt of funds? No: distinguish pending, inclusion, execution outcome and the recipient’s confirmation requirement. The existing calculator below multiplies actual usage by effective price. Enter 42,000 and 20 to check case one, rather than treating the 30 gwei cap as an effective quote.
Reviewed 30 October 2026. Network-specific teaching for global readers; wallet, product and regional conditions require separate checks.
Calculate a gas fee
Enter assumed gas usage and effective gas price. The ETH price is used only for conversion to USD.
Fee = gas units × effective gas price × 10⁻⁹ ETH. This formula does not cover every network surcharge; these numbers are not quotes.
panda