Gas Fees & Layer 2s — EIP-1559, Priority Fees, and Savings

Try Tangem secure wallet →

Gas Fees & Layer 2s — EIP-1559, Priority Fees, and Savings

Table of contents


Quick overview

If you use a software wallet on Ethereum or EVM-compatible chains, gas fees are one of the daily UX items you'll manage. Short version: EIP-1559 changed how fees are structured, MetaMask exposes controls for priority fees, and using Layer 2s (L2) can cut on-chain costs significantly—but bridging and UX trade-offs exist.

I’ve been using this daily for months and have both saved money and made mistakes. One example: I once set a very low priority fee before a busy market move and waited three hours—then speeded it up and paid more than necessary. Learn from that; it’s practical.

For setup basics see install-metamask-extension or install-metamask-mobile-app.

How EIP-1559 works in MetaMask

EIP-1559 changed Ethereum’s gas model from a single auction price to a two-component system. MetaMask shows this in the gas UI and lets you set both values.

Base fee vs. priority fee (max fee, max priority fee)

Under the hood: the effective gas paid equals min(maxFeePerGas, baseFeePerGas + maxPriorityFeePerGas). If you set a maxFee too low relative to baseFee, your transaction can remain pending.

Want a visual?

Set priority fees in MetaMask — step by step

Here’s a short, practical walkthrough for both extension and mobile.

Extension (desktop)

  1. Start a transaction (send token, swap, or interact with a dApp).
  2. When MetaMask estimates fees, click the gas fee area to open Advanced controls (often an "Edit" link).
  3. Choose a preset or select "Advanced" to set Max priority fee and Max total fee. Enter numbers in gwei.
  4. Confirm and send.

Mobile (iOS/Android)

  1. Create the transaction inside the wallet or via WalletConnect.
  2. Tap the fee preview, then tap "Edit".
  3. Change the priority fee (some versions show presets: low/medium/high).
  4. Confirm and send.

Set gas price MetaMask: always prefer the Advanced fields if you need granular control. If you’re unsure, use the wallet’s medium recommendation and watch the mempool.

And yes, changing priority fee sometimes backfires if you overpay during a short spike.

Speed up or cancel a transaction (replace transaction in MetaMask)

Stuck TX? MetaMask exposes replacement mechanics.

How replace transaction MetaMask works (conceptually)

Step-by-step (extension)

  1. In Activity, find the pending transaction.
  2. Click it and choose "Speed Up" or "Cancel".
  3. For manual replacement, you can enable Custom Nonce, craft a replacement tx with the same nonce, and set a higher priority fee.

A practical tip: if you try to cancel and the replacement fails, you may need to submit a replacement with a substantially higher priority fee so miners prefer it.

Layer 2s: where you save gas (and where you don’t)

L2 networks batch transactions off-chain and post proofs or data on Ethereum, which generally reduces per-transaction gas fees. Popular L2 examples include Optimism and Arbitrum (both rollups). Polygon is often used as a lower-cost option too, though it’s architecturally different.

Quick links to add networks: add-optimism, add-arbitrum, add-polygon, and a broader list at layer2-networks.

But remember: bridging costs and delay vary. If you plan to move funds between chains often, check bridges-crosschain before you start.

Practical tips to lower gas costs

If you do a lot of DeFi activity, switching networks in MetaMask is like changing browser tabs — seamless on desktop, and on mobile the in-app dApp browser often remembers your last chain.

Advanced: gas estimation accuracy and RPC choices

Gas estimation accuracy MetaMask depends on the RPC node your wallet talks to. Default RPCs are fine for most users, but if you see inconsistent estimates:

If you run your own node or use a higher-quality RPC, estimates and replace/cancel behavior tend to be more reliable.

FAQ

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

A: Hot wallets are convenient but trade some security for usability. For daily trading and DeFi, a software (hot) wallet is standard. For large sums or long-term storage, consider combining MetaMask with a hardware wallet (see hardware-wallets-overview).

Q: How do I revoke token approvals?

A: Use the token approvals tool in the wallet or a revoke UI. For step-by-step, see token-approvals-revoke.

Q: What happens if I lose my phone?

A: If you have your seed phrase (recovery phrase) securely backed up, you can restore to a new device. If not, funds can be lost permanently. See backup-recovery-seed and lost-phone-recovery for options and best practices.

Who this guide is for — and who should look elsewhere

This guide helps daily DeFi users and intermediate traders who use MetaMask to swap, stake, and interact with dApps across mainnet and L2s. If you make frequent micro-transactions or trade on L2s, these tips will save you money.

If your priority is maximal security for long-term holdings, a hardware wallet (connected via MetaMask) or cold storage might be a better fit. For developer-level RPC tuning and custom fee markets, check developers-connect.

Final thoughts and next steps

Gas is a daily UX for active users. EIP-1559 changed the mechanics and MetaMask exposes the right levers: priority fees, max fee controls, and replacement tools. L2s are a practical way to reduce per-transaction costs, but bridging fees and UX trade-offs mean you should plan movement of funds intentionally.

If you want hands-on setup help, start with these next pages: install-metamask-extension or install-metamask-mobile-app. And if you haven’t set up a secure backup yet, see backup-recovery.

If you have a specific transaction that’s stuck or a gas question tied to a dApp, ask here or follow the step-by-step sections above — what I’ve found is that a careful edit of the priority fee usually does the trick without needing a rush cancel.

Try Tangem secure wallet →