Ethereum out-of-gas errors: limits and resubmission
Out of gas error on Ethereum? Raise the gas limit, confirm 100% gas use on Etherscan, then resend with a fresh wallet estimate; the failed attempt’s fee is spent.
By Web3 Report Editorial4 min read
An Ethereum transaction that failed with out of gas needs a higher gas limit on the retry, usually the fresh estimate from your wallet. Open the failed transaction on Etherscan, confirm that gas used reached the limit, then submit it again with a suitable limit; a successful transaction will show a successful status. The failed attempt’s fee is not refunded.
Was the gas limit too low?
A limit set below the work the transaction needed is the likeliest cause of an out-of-gas failure. The gas limit is the maximum amount of gas the transaction can use; gas used is what execution actually consumed. If execution reaches the cap, Ethereum stops it and reverts the transaction’s state changes.
A plain ETH transfer uses exactly 21,000 gas. A contract call needs more, and the amount can vary with the contract and its state. A wallet estimates the required gas before submission, but that estimate reflects the conditions at the time. Contract state can change before the transaction is included, changing how much work the call needs.
Say you lowered the gas limit manually to reduce the maximum fee. A swap or Bury action on shiba swap, a decentralized exchange, may then need more steps under the state it encounters when mined than the limit allows. The practical comparison is between that capped retry and the wallet’s fresh estimate: use the estimate unless you have a specific reason to set a different limit.
The fee trade-off matters. A higher gas limit raises the maximum amount the transaction could consume, but unused gas is returned. If execution runs out of gas, however, the gas it used is still paid. The failed transaction’s state changes are reverted; its fee is not.
What does Etherscan show?
On Etherscan, gas usage at 100% of the gas limit confirms that the transaction ran out of gas. Open the failed transaction and compare “Gas Used” with “Gas Limit.” If the values match, resubmit with the wallet’s fresh estimate, or set a limit clearly above the failed usage.
Do not simply copy the old limit into the retry. That repeats the same cap even though the failed transaction has shown it was too low. A fresh estimate accounts for the current call and contract state. If you must enter a limit yourself, make it high enough to clear the failed usage rather than raising it by a token amount.
The amount of ETH available for the fee is a separate question from the gas limit. Under EIP-1559, the fee paid is gas used × (base fee + priority fee). The max fee is a ceiling on the per-gas price; it does not add execution gas. Raising the max fee or priority fee alone will not fix an out-of-gas failure.
That distinction separates three common problems: “out of gas” calls for a higher gas limit; “insufficient funds for gas” means the wallet needs more ETH to cover the fee; and a transaction stuck pending may need a higher max fee to improve its chance of inclusion. Changing the wrong setting can leave the actual problem untouched.
Resubmit with the right setting
Once Etherscan shows gas usage at the limit, start a new transaction in the wallet or application and let the wallet estimate gas again. Review the destination, token, and action before confirming. If the application offers a gas-limit field, use the fresh estimate or a limit above the failed usage; leave EIP-1559 fee settings to address the price per unit of gas.
Ethereum.org’s “Gas and fees” documentation describes gas limits, gas used, and the consequences of running out of gas. The EIP-1559 specification describes the base-fee and priority-fee model. Together, they explain why this fix is specific: execution capacity comes from the limit, while the fee settings affect the price paid for each unit used.
After resubmission, use the new transaction hash on Etherscan. A successful status confirms the transaction executed; the receipt shows how much gas it used. A new failure with gas usage again at 100% points to another limit shortfall, so estimate again against the current state rather than increasing the fee.
When should you contact support?
Contact the wallet or application’s support team if a fresh wallet estimate still fails, or if Etherscan shows a failure reason other than gas usage reaching the limit. Share the transaction hash and the action you attempted so support can inspect the specific failure. Never share your recovery phrase or private key.
For the next attempt, the signals to watch are the gas-used and gas-limit values on Etherscan, the wallet’s current estimate, and the failure reason in the transaction details. A matching gas-used and gas-limit value points to capacity; a pending status or an insufficient-funds message points to a different setting.