Gas Fees & Transaction Management in MetaMask

Try Tangem secure wallet →

Table of contents

Overview

Gas fee management is a daily activity for anyone using a hot wallet with DeFi. This guide explains how MetaMask displays fees, how EIP-1559 changed the numbers you see, and practical steps to control costs and recover from stuck transactions. I use the extension and the mobile app regularly, so these tips come from real interactions (and a few mistakes I've learned from). And yes, sometimes I still forget to increase the priority fee.

EIP-1559 in MetaMask: what the fields mean

MetaMask adopted EIP-1559 terminology after Ethereum upgraded its fee market. The key fields you'll see when confirming a transaction are:

Field What it means Quick example
Base fee A per-block minimum fee that is burned (not paid to miners/validators). It changes each block. If base fee = 30 gwei, that part is burned.
Max priority fee (tip) The small tip you give to miners/validators to prioritize your transaction. (This is the "priority fee".) 1–5 gwei under normal load; higher when congested.
Max fee The absolute ceiling you're willing to pay per gas unit. Must be >= base fee + priority fee. Set to base fee + tip + small headroom (e.g., 2–3 gwei).

What does that mean in practice? If base = 30 gwei and you want a 2 gwei tip, set max fee >= 32 gwei. If blocks get more expensive, MetaMask won't charge you above the max fee. But if you set the max fee too low the transaction may stay pending.

How MetaMask estimates gas (and why estimates can be wrong)

MetaMask asks your RPC provider (node) to estimate gas for a call. The estimate is a heuristic based on executing the call against the latest state. For simple ETH transfers this usually hits the mark. For complex contract interactions (swaps, bridges, staking via smart contracts) the estimate can be off.

Why? Two common causes:

If you need higher accuracy, simulate the transaction with a dev tool or explorer. (See developer-rpc-and-node-guide and using-etherscan-with-metamask for walkthroughs.)

Pro tip: for contract calls I typically add 10–20% headroom to the suggested gas limit instead of cutting it down. That reduces failed transactions (which still cost gas when they revert).

How to set priority fee in MetaMask (step-by-step)

How to set priority fee MetaMask (extension):

  1. Start a transaction (Send or interact with a dApp). The Confirm Transaction modal appears.
  2. Click the fee area labeled "Edit" (or the three-dot menu) next to the estimated gas fee.
  3. Choose "Advanced" or "Customize" (labels vary by version). You will see fields for Max priority fee (gwei) and Max fee (gwei).
  4. Enter a Max priority fee that reflects current network demand (1–5 gwei for quiet moments; much higher during congestion). Set Max fee >= base fee + priority fee. Confirm.

On mobile (iOS/Android): the flow is similar. Tap the pending transaction preview, then "Edit" next to the gas fee. Tap "Advanced" to set Max priority fee and Max fee. The UI differs with updates, but the fields are the same.

I believe setting a sensible tip saves time. But don't overpay by default; check real-time gas estimates from the transaction modal or an external tracker.

Speed up or cancel a pending transaction in MetaMask

Transactions sometimes sit unconfirmed. How to speed up transaction MetaMask:

How to cancel a pending transaction MetaMask:

Important: replacement requires using the same nonce. If the replacement transaction doesn't compete aggressively enough (priority fee too low), both may remain pending. But don't panic if this happens. Try increasing the priority fee and resending (or read the troubleshooting guide at pending-transaction-troubleshooting).

And yes, sometimes the replacement also fails — it's annoying, but usually solvable by bumping the priority fee and checking on-chain with the transaction hash.

Managing gas on Layer 2s (L2 gas savings MetaMask)

L2s generally reduce per-transaction gas by batching or processing off-chain, and MetaMask can connect to many L2 networks (use add-l2-networks-to-metamask to add them). The key points:

See our dedicated guide on EIP-1559 vs L2 behavior at gas-fees-eip1559-l2.

Advanced controls, node choice, and transaction simulation

Advanced levers:

I once sent a complex swap with an underestimated gas limit; the call reverted but I still paid gas. That taught me to add headroom and simulate.

Comparison: extension vs mobile vs hardware via MetaMask

Feature MetaMask Extension MetaMask Mobile Hardware via MetaMask
Edit gas fields (priority/max fee) Yes (full advanced UI) Yes (mobile-optimized) Yes, but approval happens on device; gas set in MetaMask
Speed up / Cancel pending tx Built-in Built-in Works if MetaMask can sign replacement; device approval needed
Gas estimation visibility Detailed Compact Same as extension
L2 network switching Yes Yes Yes
Seed phrase / keys stored Hot wallet on device Hot wallet on device Keys kept in hardware (recommended for large balances)

Who MetaMask is for (and who should look elsewhere)

Who this wallet suits:

Who should look elsewhere:

FAQ

Q: Is it safe to keep crypto in a hot wallet? A: Hot wallets like MetaMask provide convenience for daily DeFi use but carry higher risk than offline custody. Use seed phrase backups, enable device security, and keep large funds in hardware wallets. See seed-phrase-backup-recovery.

Q: How do I revoke token approvals? A: Use token allowance tools or the in-wallet UI to revoke unlimited approvals. I once approved a malicious contract and learned to revoke immediately. See token-allowances-and-revoke for step-by-step instructions.

Q: What happens if I lose my phone? A: If you have your seed phrase, you can restore in another device. If not, contact support resources and follow the recovery guide at compromised-wallet-what-to-do.

Conclusion & next steps

Managing gas fees in MetaMask is both a technical and practical skill. Knowing how EIP-1559 maps to the Max fee / priority fee fields, when to use replacement transactions, and how RPC choice affects estimates will save time and money. If you want setup steps, check the extension and mobile setup guides: install-metamask-chrome-extension and metamask-mobile-ios-android. For pending issues, see pending-transaction-troubleshooting.

If you're actively swapping and using DeFi, practice replacing a low-value test transaction first so you learn the flow without risk. But don’t skip the seed phrase backup.

Try Tangem secure wallet →