Gas Fees & Fee Management in MetaMask: EIP-1559, Priority Fees & L2s

Try Tangem secure wallet →

Table of contents


Quick overview

MetaMask is a hot wallet that supports EIP-1559 fee fields and offers both automatic and manual gas controls. This guide explains how MetaMask displays base fee, max fee, and priority fee; how to adjust those fields on desktop and mobile; how gas estimation works (and why it sometimes misses); and where L2 savings come from.

I use MetaMask daily for small swaps and staking UX tests, so these recommendations come from hands-on experience (and a few regrettable high-gas transactions). And yes, you can fix most pending problems without panicking.

EIP-1559 and what MetaMask shows

What changed with EIP-1559? Instead of a single gas price, transactions now include two user-set fields: maxPriorityFeePerGas (the miner/tip) and maxFeePerGas (the cap). The network calculates a base fee per block (which is burned). MetaMask surfaces those fields during confirmation as "Max priority fee" and "Max fee".

On a practical level this means:

(If you like formulas: effectiveGasPrice = min(maxFeePerGas, baseFee + maxPriorityFeePerGas).)

See also: gas-fees and gas-fees-eip1559-l2.

How to change gas: step-by-step (extension + mobile)

Step-by-step (MetaMask extension):

  1. Start a send, contract interaction, or swap.
  2. On the confirmation screen click "Edit" next to the suggested gas fees.
  3. Choose "Advanced" to reveal Max Priority Fee, Max Fee, and Gas Limit.
  4. Adjust "Max priority fee" to increase the tip, or raise "Max fee" to widen the cap.
  5. Confirm the transaction.

Step-by-step (MetaMask mobile):

  1. Initiate a transaction in the app.
  2. Tap the gas fee area (often labeled "Edit suggested gas fee").
  3. Select "Advanced" to change Max Priority Fee, Max Fee, and Gas Limit.
  4. Save and confirm.

How to set gas limit in MetaMask: the Gas Limit field appears inside the Advanced panel (desktop and mobile). If a contract requires more compute, increase the gas limit slightly — but remember unused gas is refunded. See set-gas-limit-metamask for examples.

Image:

Priority fee, max fee, and real costs

How much should you tip? Priority fee MetaMask shows helps you tune how quickly miners pick up your tx. Higher priority fees often push a transaction into the next block. But higher priority fees don’t change the burned base fee.

Example (rounded numbers):

If included, effective gas price ≈ base fee + priority fee = 62 Gwei (you won't pay the full 100). If your max fee is set lower than base + priority, the tx will likely stay pending.

Pro tip: on low congestion days, a 1–3 Gwei priority fee may be enough (on Ethereum mainnet). But those numbers change fast. I believe setting a modest priority fee and a reasonable max fee cap protects you from sudden spikes while keeping costs predictable.

Gas estimation: why estimates are sometimes wrong

MetaMask queries the selected RPC node to estimate gas. If the node's mempool or the chain's current conditions differ from the node's view, estimates can be off. Contract complexity adds another layer: some contracts perform extra checks or read state that changes between estimation and execution.

Common symptoms:

Fixes:

If your gas estimation keeps failing, try switching RPC or see the developer guide: developer-rpc-and-node-guide.

Layer 2 (L2) gas savings with MetaMask

L2 networks reduce per-transaction gas fees by batching or compressing execution. MetaMask supports adding L2 networks (either from the network list or via add-l2-networks-to-metamask).

Why you might save gas on L2:

But watch out: bridging on/off the L2 costs mainnet gas and sometimes bridge fees. So short-term savings depend on how often you move assets across chains. For bridge safety, see bridges-cross-chain-security.

Practical gas optimization for swaps and DeFi

If you swap daily, small adjustments compound. Here are measurable ways to reduce spend:

And remember: sometimes paying a slightly higher priority fee is cheaper than being stuck and resubmitting three times.

Security risks & common mistakes (and how I recovered)

Common mistakes I've made (honest notes): I once accepted a transaction with an inflated gas limit from a sketchy dApp and watched estimated fees spike. I also approved a token allowance I shouldn't have.

How to protect yourself:

But what if you lose a phone? Recover with your seed phrase on another device (see seed-phrase-backup-recovery). Keep backups offline.

Comparison: Extension vs Mobile vs Hardware-connected MetaMask

Feature Extension (desktop) Mobile app Hardware (with MetaMask)
Advanced gas controls Yes Yes Yes (signed via device)
Speed up / Cancel Yes Yes Yes (via extension)
Gas estimation accuracy Good (depends on RPC) Good (depends on RPC) Same as extension
Convenience for frequent swaps High Highest (phone-first flows) Lower (requires device)

Who this is for — and who should look elsewhere

Who MetaMask gas controls suit:

Who should look elsewhere:

If you use a hardware wallet, see ledger-with-metamask-guide and hardware-wallets-with-metamask.

FAQ

Q: Is it safe to set manual gas in MetaMask? A: Yes, if you understand the fields. Manual control prevents overpaying, but setting fees too low can stall a tx.

Q: How do I revoke token approvals if I suspect abuse? A: Use the revoke flow in our guide (token-allowances-and-revoke) or a trusted revoke tool.

Q: What happens if I lose my phone? A: Restore your account using your seed phrase on another device (see seed-phrase-backup-recovery). Never share the seed phrase.

Q: My transaction says ‘replacement transaction underpriced’—what now? A: Increase the priority fee and max fee when using Speed up; or pick a higher gas recommendation.

Conclusion & next steps

MetaMask exposes EIP-1559 fields clearly and gives you practical manual gas controls on both extension and mobile. Use priority fee settings to control speed, set reasonable max fee caps to avoid surprises, and move repeat activity to L2s for measurable gas savings. What I've found: a small amount of attention to these fields saves real dollars over time (and prevents surprises).

Next steps: if you're new, read getting-started-metamask and the in-wallet-swap-guide. If gas estimation keeps failing, try switching RPCs (custom-rpc-network-settings) or run your own node (developer-rpc-and-node-guide).

If you want a shorter checklist, see gas-fees and gas-fees-eip1559-l2 for quick troubleshooting steps.

Try Tangem secure wallet →