How to Set Gas Fees Manually in MetaMask
Learn how to adjust gas price and gas limit manually in MetaMask, and when doing so helps during network congestion.
Setting gas fees manually in MetaMask means overriding the wallet's automatically suggested transaction fee with your own chosen values for gas price (or, on networks using EIP-1559 pricing, the base fee, priority fee, and max fee) and gas limit, rather than accepting the default estimate. This gives you direct control over the tradeoff between transaction cost and confirmation speed, which matters most during periods of network congestion.
Most of the time, the default automatic estimate MetaMask provides is reasonable and doesn't need adjustment. Manual gas settings become useful in specific situations: when a transaction is stuck, when you want to prioritize speed during a time-sensitive DeFi action, or when you want to minimize cost during a period of low network activity.
Understanding the components of a gas fee
On networks using the EIP-1559 fee model (Ethereum mainnet and most EVM-compatible chains today), a transaction fee has three parts:
- Base fee: set algorithmically by the network based on current demand, and burned rather than paid to any specific party. You cannot set this directly — it moves with network conditions.
- Priority fee (tip): an additional amount paid directly to the block producer as an incentive to include your transaction sooner. This is the main lever you control to speed up inclusion.
- Max fee: the absolute ceiling you're willing to pay per unit of gas, covering both the base fee and priority fee together. If the base fee rises above what your max fee allows, your transaction simply won't be included until conditions change or you adjust it.
Gas limit is a separate setting — the maximum amount of computational work (measured in gas units) you're willing to let the transaction consume. Setting this too low can cause a transaction to fail partway through (still costing gas for the work attempted) without completing its intended action.
Adjusting gas settings in MetaMask
- When reviewing a transaction before confirming, look for an "edit" or "advanced" option near the estimated fee.
- Choose between preset speed tiers (commonly labeled something like low, market, and aggressive) or select a fully custom option.
- For custom settings, adjust the priority fee to influence how quickly the transaction is likely to be included, and confirm the gas limit matches what the transaction type typically requires (MetaMask usually pre-fills a reasonable estimate here).
- Review the total estimated cost before confirming — a higher priority fee and max fee generally mean faster inclusion but higher total cost.
When manual adjustment actually helps
- During network congestion, when the automatic estimate may be conservative or when you specifically need a transaction confirmed quickly — for example, to avoid missing a time-sensitive liquidation threshold in a lending position.
- Speeding up a stuck transaction, by resubmitting the same transaction (same nonce) with a higher priority fee, which can supersede the original if it hasn't confirmed yet.
- Canceling a stuck transaction, by submitting an empty transaction with the same nonce and a sufficient fee to get it confirmed before the original.
- Minimizing cost during low-congestion periods, if you're not in a hurry and want to trim the fee below the default suggestion.
Risks of adjusting gas manually
| Mistake | Consequence |
|---|---|
| Gas limit set too low | Transaction can fail ("out of gas") after partially executing, still consuming gas spent |
| Max fee set too low during congestion | Transaction stays pending indefinitely until conditions improve or you replace it |
| Priority fee set unnecessarily high | Overpaying for speed you didn't need |
| Attempting to cancel/speed up with an insufficient fee bump | Replacement transaction may not be recognized by the network, leaving both pending |
Why this matters more in DeFi than simple transfers
Gas fee timing has outsized importance in DeFi contexts beyond simple transfers — a delayed transaction during a fast-moving market can mean missing a liquidation deadline, an arbitrage window, or a limited-time claim. Understanding manual gas control is part of the broader toolkit that separates casual holding from active participation, discussed further in best wallets for DeFi users.
A note on Layer 2 networks
Gas fee dynamics differ significantly on Layer 2 networks, where fees are typically far lower and less volatile than Ethereum mainnet during peak congestion. Manual gas adjustment is less critical (though still available) on most L2s, since the fee environment is generally calmer to begin with.
Bottom line
Manually setting gas fees in MetaMask gives you direct control over the tradeoff between transaction speed and cost, most useful during network congestion, when speeding up or canceling a stuck transaction, or when timing matters for a DeFi action like avoiding a liquidation. For routine, non-urgent transactions, the automatic estimate is usually sufficient — manual adjustment is a tool for specific situations, not a setting that needs constant attention.
Related articles
This article is for educational purposes only and is not financial advice. DeFi involves significant risk, including total loss of funds. Always do your own research.