Do failed Ethereum transactions still cost gas? What a revert means
Do failed Ethereum transactions still cost gas? Yes, if included: execution fees remain even when a revert rolls back contract changes; rejected attempts cost no gas.
Crypto Talk Newsroom 3 min read
Yes. A failed Ethereum transaction costs gas if the network includes it, because executing the transaction uses resources even when its contract changes are rolled back. A wallet rejection or an attempt that never reaches inclusion has no on-chain execution fee.
The distinction is inclusion: once a transaction is executed in a block, its consumed gas is charged. A reverted contract call can therefore leave the intended state unchanged while still costing ETH.
Gnosis Bridge is a cross-chain bridge for moving tokens and messages between Ethereum and Gnosis Chain. Say an Ethereum deposit into Gnosis Bridge reverts: the deposit’s principal stays put, but the included transaction still uses gas.
What gets charged when execution fails?
An included Ethereum transaction pays for the gas it consumes, whether execution succeeds or reverts. For an ordinary transaction, the fee in ETH is receipt gasUsed × effectiveGasPrice, converted from wei.
REVERT rolls back state changes made by the call, but it does not refund gas already consumed. Unused gas remains unused, so a call that reverts before using its full allocation can cost less than one that runs out of gas.
Running out of gas is different: execution exhausts the transaction’s gas allocation, so that allocation is consumed. In both cases, inclusion is the charging threshold. If you reject the transaction in your wallet, or it never gets included and executed, there is no on-chain execution fee.
This is why a failed transaction can look contradictory: the token movement or contract update did not happen, yet the ETH balance fell. The state change rolled back; the work the network performed did not.
What does a revert mean for a retry?
An included reverted transaction consumes its account’s nonce, so retrying requires a new transaction with the next nonce and another gas budget.
Ethereum uses nonces to order transactions from an account. A revert does not restore the nonce, because the transaction was included and processed even though its contract effects were undone.
For a failed Gnosis Bridge deposit, that means the principal remains in the original state after the revert, while the fee for execution is spent and the account’s nonce advances. A retry is a separate transaction: it must use a fresh nonce and can incur another fee if included, even if it also reverts.
Before retrying, inspect the receipt’s status, gas used, and effective gas price to understand the fee already paid. Then fix the condition that caused execution to revert and submit a new transaction with enough gas for the call. A wallet rejection needs no on-chain retry accounting; an included failure does.