← Back to Problems/Out of Gas Error

Advanced Help ModeRECOMMENDED

Connect your wallet to get diagnostics tailored to your exact transaction history, approvals, and chain activity.

Approval scanner
TX diagnostics
Live support
Connect Wallet
Gas & FeesMedium Severity

Out of Gas Error

Transaction failed with "out of gas" — you were charged but nothing happened.

Gas LimitFailed TxEstimation

This guide covers 3 verified steps to resolve "Out of Gas Error". Follow each step in order before moving to the next. If the steps below don't resolve your issue, use the community support options at the bottom of this page.

01

Increase Gas Limit

MetaMask auto-estimates gas but sometimes underestimates complex contracts. Manually increase the Gas Limit by 20–30% above the estimate before submitting.

02

Understand Gas Limit vs Gas Price

Gas Limit = max units you're willing to use. Gas Price = cost per unit. You only pay for gas actually used, but if you hit the limit, tx fails and you still pay for what was used.

03

Check Contract Complexity

Some DeFi protocols (especially aggregators) run complex multi-hop routes. If gas limits are too low, use a simpler DEX or direct pool.

Etherscan
MetaMask