Gas Fees & EIP-1559 in MetaMask

Try Tangem secure wallet →

Gas Fees & EIP-1559 in MetaMask

Table of contents


Overview: What EIP-1559 changed

EIP-1559 redesigned how Ethereum gas fees are priced. Instead of a single auction-style gas price, each block has a base fee (burned) plus a priority fee (a tip paid to the validator). Transactions declare two EIP-1559 fields: maxFeePerGas and maxPriorityFeePerGas. MetaMask exposes these fields in its UI so you can control how much you pay in total and how much goes to validators as a tip.

Why care? Because the base fee is unpredictable and can spike quickly during congestion. Setting sensible priority fees helps your transaction confirm faster without wildly overpaying. I've learned that by experience — I once bumped a priority fee too high during a mempool rush and regretted it.


How MetaMask shows gas fees and priority fees

MetaMask presents gas choices with simple presets (slow / average / fast) and an Edit option for advanced control. On EIP-1559 chains these presets translate to ranges of maxFee and maxPriorityFee. The extension and mobile app share core behavior, but the extension typically exposes more granular controls by default.

Table: Quick feature comparison (Desktop vs Mobile vs Hardware via MetaMask)

Feature Extension (Desktop) Mobile app Hardware wallet via MetaMask
EIP-1559 fields shown (maxFee / priority) Yes (advanced) Yes (Edit) Yes (MetaMask calculates; signs with device)
Speed up / Cancel UI Yes Yes (simpler) Yes (signing on device required)
Custom RPC / L2 support Yes Yes Yes
Gas presets (slow/avg/fast) Yes Yes Yes

Note: gas estimation accuracy depends on the RPC you use. See the troubleshooting section below and see add-custom-network if you want to point MetaMask at a specific RPC.


Step-by-step: Set custom gas in MetaMask (extension)

  1. Create or open the transaction in MetaMask. When the confirmation screen appears, click Edit next to the suggested gas fee.
  2. Choose "Advanced" (or "Manual") to see max fee and max priority fee fields.
  3. Enter values in gwei. Example: set maxPriorityFeePerGas = 2 gwei and maxFeePerGas = 100 gwei (this caps your total spend).
  4. Optionally adjust the Gas Limit if the dApp suggests a custom limit.
  5. Confirm the transaction and monitor it in the activity tab.

Tip: If you’re unsure what numbers to use, pick the "slow" preset for non-urgent calls and leave the defaults for swaps that need speed. But be careful — too-low settings can leave a transaction pending.


Step-by-step: Set custom gas in MetaMask (mobile)

  1. Tap the pending transaction to open details and tap Edit (or "Edit fee").
  2. Pick a preset or choose manual to set max fee and priority fee.
  3. Tap Confirm to send the updated transaction.

Mobile UI is streamlined. In my experience the mobile app is faster for quick edits but sometimes hides advanced values behind extra taps. And that can be a benefit if you prefer simplicity.


Speed up, cancel, or replace a stuck transaction

MetaMask supports replacing a pending transaction by sending a new transaction with the same nonce and a higher fee (Replace-By-Fee style behavior for EIP-1559). Steps:

  1. Find the pending transaction in MetaMask activity.
  2. Click Speed Up to re-send the same transaction with a higher fee. Or select Cancel to send a 0-value transaction with the same nonce (this replaces the original so it won't execute).
  3. Confirm the new transaction and wait.

What if Speed Up/Cancel isn't available? You can manually send a raw transaction with the same nonce and higher gas fees (advanced). This is how I recovered once when the UI options were limited.


Practical ways to reduce gas fees (including L2s)

But remember: cheaper doesn't always mean safer. Cross-chain bridges and some L2 bridges add complexity and different trust assumptions. Read guides like bridges-crosschain before moving funds.


Gas estimation accuracy & troubleshooting

MetaMask’s gas estimation comes from RPC nodes and on-chain state. If the RPC you’re using is slow or returning stale data, estimations will be off. Symptoms include transactions that stay pending or transactions that pay far more than expected.

Checklist when gas estimates look wrong:

I've had cases where a popular dApp caused a sudden gas spike and the default suggestion lagged behind the mempool. That cost me extra gas (lesson learned). So monitor the network during big drops or launches.


Security tips and common mistakes I’ve made


Who this guide is for — and who should look elsewhere

Who this helps:

Who might look elsewhere:


FAQ

Q: Is it safe to keep crypto in a hot wallet?

A: Hot wallets trade convenience for a higher attack surface. For everyday use and small balances they’re fine if you follow security best practices (strong passwords, recovery phrase backup, hardware for large funds). See backup-recovery-seed for recovery options.

Q: How do I revoke token approvals?

A: Use a revoke tool or wallet UI to view and revoke allowances. See token-approvals-revoke for step-by-step instructions. I recommend revoking approvals you no longer need.

Q: What happens if I lose my phone?

A: You can restore MetaMask on a new device with your seed phrase (recovery phrase). If you lost that phrase, funds are unrecoverable. Read lost-phone-recovery and backup-recovery-seed.


Conclusion & next steps

EIP-1559 changed how fees are priced and gave users more control over priority fees and total cost. MetaMask surfaces those controls across its extension and mobile app, and you can set custom gas, speed up or cancel stuck transactions, and reduce costs by using L2s or lower priority fees for non-urgent calls. What I’ve found: a little attention to gas settings saves money over time, and pairing MetaMask with a hardware wallet makes higher-value operations safer.

Ready to adjust your settings? If you don’t yet have MetaMask installed, follow the relevant setup guide: Install MetaMask extension or Install MetaMask mobile app. For L2 fee details see gas-fees-l2 and layer2-networks. If you want to tighten approvals after changing fees, see token-approvals-revoke.

And remember: always preview transactions before signing. Small steps reduce avoidable costs.

Try Tangem secure wallet →