Out of Gas Error
Transaction failed with "out of gas" — you were charged but nothing happened.
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.
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.
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.
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.