A failed Ethereum transaction can still cost ETH when the network has done the work of executing it. The payment buys computation, rather than a successful swap or transfer. Before trying again, distinguish a transaction that failed during execution from one that never entered a block.
| What you need to know |
|---|
| Gas pays for computation on Ethereum, including work done by an unsuccessful transaction. |
| Running out of gas during execution reverses state changes but consumes the supplied gas. |
| A transaction rejected before block inclusion does not consume gas, Ethereum's documentation explains. |
| The gas limit caps computational units; it is different from the price paid per unit. |
The Ethereum gas documentation draws a useful boundary. If a transaction runs out of gas while executing a smart contract, its changes are reverted. The computation has nevertheless happened, so the gas used for that work remains payable. A failed action and a charge can therefore appear together without the intended transfer or swap having completed.
That is different from rejection during validation. The same documentation gives an example of a basic ETH transfer submitted with a gas limit below the required amount. It is rejected before inclusion in a block and consumes no gas. This distinction matters when interpreting a wallet’s error message: the word “failed” alone does not establish which stage the transaction reached.
More gas units and a higher gas price solve different problems
MetaMask’s gas guide defines an out-of-gas error as exhausting the permitted units before processing is complete. The gas limit is a quantity of computational work. The gas price is the cost of each unit. Paying a higher price for the same insufficient number of units does not expand that limit.
A simplified calculation makes the distinction concrete. Suppose a transaction consumes 40,000 gas at an effective price of 3 gwei per unit. Its fee is 120,000 gwei, or 0.00012 ETH. These are illustrative inputs, not a current network quote. A higher limit would not by itself mean paying for every extra unit: Ethereum explains that unused gas is returned. Raising a limit also cannot repair an unrelated contract error.
For a transaction already recorded on-chain, use its execution status and gas-used figure to establish what happened, rather than reading the wallet’s original estimate as the final bill. MetaMask recommends reviewing successful transactions involving the same contract when assessing an out-of-gas limit. Its guide also says the wallet’s automatic limit is sufficient in the vast majority of cases; manual changes are not a routine requirement.
The practical consequence of the two documents is a narrower retry decision. An out-of-gas execution points to the permitted amount of work. A transaction rejected before inclusion has not incurred an execution fee. Identify that boundary first, because repeatedly submitting the same inadequate execution limit can pay for more failed work without completing the intended action.






