Independent review. This site is not the official website and is not affiliated with, endorsed by, or operated by the wallet vendor reviewed here. Never enter your seed phrase or private keys on any third-party site.

Gas Fees in MetaMask — EIP-1559, Priority Fees, and Estimation

Try Tangem secure wallet →

Who this guide is for

This article is for people using MetaMask (a hot software wallet) who want to understand and control gas fees. If you swap tokens, interact with DeFi, or move funds across Layer 2s, you'll find practical steps here. If you rely solely on hardware wallets or custodial services and don't touch gas settings, this is less relevant — but still useful for context.

Who should look elsewhere? If you need enterprise-grade fee automation, or you never touch gas settings and prefer a third-party filler service, consider a more advanced tooling or a custodial flow. This guide focuses on hands-on, non-custodial workflows.

Quick primer: What are gas fees and EIP-1559?

Gas fees are the per-operation charges that pay validators for block space on a blockchain. MetaMask surfaces those fees when you sign transactions. After the London fork, EIP-1559 changed fee mechanics. In plain terms:

  • The network sets a flexible base fee that adjusts by demand (think of it as a toll). That base fee is burned.
  • You add a tip (priority fee) to motivate validators to include your transaction sooner.
  • You also set a max fee to cap what you're willing to spend.

Why two numbers (tip + max)? Because the base fee is unpredictable until inclusion. The two-number model gives you control while protecting against runaway costs. EIP-1559 metamask settings expose these fields so you can tune speed vs cost.

Try Tangem secure wallet →

Analogy: imagine a busy bridge with a dynamic toll (base fee). You tell the toll operator: “I’ll pay the toll plus a small tip if you hurry it along, and I won’t pay more than $X total.” Simple.

Key MetaMask fields explained (table)

Field What it is Editable in MetaMask?
Base fee Network-determined toll per gas unit (burned) No
Max priority fee (tip) Extra per-gas to reward validators (goes to miner/validator) Yes (custom)
Max fee per gas Absolute cap you’re willing to pay per gas unit Yes (custom)
Gas limit Max gas units the transaction can use Yes (advanced)

MetaMask gas controls screenshot (placeholder)

These fields map directly to EIP-1559 parameters. Knowing them helps when gas estimation suggests values that feel high.

How MetaMask estimates gas (gas estimation metamask)

MetaMask uses a combination of the connected RPC node's gas oracle, eth_estimateGas, and conservative heuristics. In plain language: it asks a node to simulate the transaction (estimateGas), checks recent blocks for fee levels, and then pads the result so the transaction succeeds.

Why pad? A failed transaction still burns computational resources and sometimes costs more (in time). So MetaMask often errs on the side of reliability instead of the absolute cheapest estimate. I believe that's a sensible default for most users. (But it can be frustrating when you want rock-bottom fees.)

What affects estimation accuracy? Contract complexity, network congestion, and stale RPC info. If the node is lagging or the mempool is spiking, gas estimation can under- or over-shoot. You can improve accuracy by switching RPCs or configuring advanced fields manually.

And yes, MetaMask can overestimate at times. That’s when manual tweaking pays off.

How to edit gas in MetaMask — Step by step

Below are step-by-step workflows for both desktop and mobile. Keep in mind UI labels change slightly between releases.

Desktop extension

  1. Initiate the transaction and view the confirmation popup.
  2. Click Edit (or the gear icon) next to Gas Fee.
  3. Choose a preset (e.g., Low/Market/Aggressive) or open Advanced options.
  4. In Advanced, edit Max priority fee and Max fee per gas, plus Gas limit if needed.
  5. Confirm and sign.

If you plan to edit gas frequently, enable Advanced gas controls in settings (if available).

Mobile app

  1. Start the transaction and tap the Gas Fee field.
  2. Pick a preset or tap Custom/Gas Options.
  3. Change Priority fee and Max fee, then Save.
  4. Confirm the transaction.

But you can also speed up later from the activity screen if the transaction is pending.

Speed up, replace, or cancel a transaction

MetaMask uses replacement transactions (same nonce) to speed up or cancel a pending tx. Steps:

  • Find the pending transaction in Activity.
  • Tap Speed Up to resend with higher gas (keep same nonce).
  • Or tap Cancel, which creates a 0-value transaction to yourself with a higher gas to replace the pending one.

This works because nodes accept the later tx with the same nonce and higher gas. Quick tip: the replacement must have an equal or higher Max fee and priority fee than the pending tx.

Layer 2 and L2 gas savings with MetaMask

Connecting MetaMask to Layer 2 networks can cut per-transaction fees dramatically (L2 gas savings metamask). Many L2s trade security for throughput and have much lower gas fees for swaps and contract calls.

Remember: moving assets between L1 and L2 often costs L1 gas for the bridge step. So plan transfers and batch operations where possible. See our guide on Layer 2 transfers for step-by-step bridge considerations.

Practical tips for DeFi swaps and gas optimization

  • Approvals cost gas. Use minimal allowances and revoke old approvals via revoke approvals.
  • Complex swaps (multi-hop or many contract calls) use more gas. The built-in swap aggregator in MetaMask attempts to balance price vs gas, but test small amounts first. See swap gas optimization and the built-in swap guide.
  • If you swap daily, set sensible priority fees and watch mempool congestion. And if you're swapping daily, keep an eye on approvals.

Security notes and real mistakes I made

I've overpaid gas and once retried a transaction without increasing the tip, leaving it stuck for hours. I've also approved a malicious contract (long story), then used a revoke tool and a hardware wallet to recover. My takeaway: be conservative with custom RPCs, double-check transaction details, and use transaction simulation before signing DeFi interactions.

Account abstraction and smart-contract wallets change the picture: session keys and bundled transactions can mask or replace who pays gas. Learn more at account abstraction and smart contract wallets.

FAQ

Q: Is it safe to keep crypto in a hot wallet? A: Hot wallets like MetaMask are convenient for everyday DeFi. They trade off some security compared with hardware wallets. Use small balances for daily use and keep bulk funds in cold storage.

Q: How do I revoke token approvals? A: Use the approvals management tools linked above or in the UI. Revoke unnecessary allowances to reduce risk.

Q: What happens if I lose my phone? A: Recover with your seed phrase on a new device. Never share the seed phrase. See seed phrase backup and recovery.

Q: Can I lower gas after sending a transaction? A: No. Once submitted, you can only replace it with a higher-fee transaction (speed up) or send a cancel replacement using the same nonce.

Q: Why did my estimated gas differ from actual usage? A: Estimates are simulations. Interacting with dynamic contracts or changing state during inclusion can alter actual gas used.

Conclusion and next steps

Understanding gas fees in MetaMask (EIP-1559 metamask mechanics, priority fee metamask, and gas estimation metamask behavior) gives you control over cost and speed. Tweak settings when needed, use Layer 2 for cheaper routine work (layer2-and-transfers), and simulate risky DeFi calls (transaction-simulation).

If you want a hands-on walkthrough of adjusting gas for swaps and transfers, check swap gas optimization and transactions and gas for deeper, step-by-step examples.

Need help with a stuck transaction? Read our troubleshooting guide in transactions and gas or the mobile-vs-desktop notes in MetaMask mobile vs desktop.

Safe signing — and watch that tip. And yes, I've overpaid gas too, so you’re not alone.

Try Tangem secure wallet →