Base fee vs. priority fee (max fee, max priority fee)
- Base fee: a protocol-determined amount that increases or decreases per block. This fee is burned (removed from supply) and is not a tip to validators. You cannot change it directly.
- Priority fee (a.k.a. miner/validator tip): what you pay to incentivize inclusion. This is the editable part in the MetaMask UI.
- Max fee and max priority fee: MetaMask often asks for a max priority fee and a max fee. The network uses the lesser of these values combined with the base fee to compute the effective gas price.
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)
- Start a transaction (send token, swap, or interact with a dApp).
- When MetaMask estimates fees, click the gas fee area to open Advanced controls (often an "Edit" link).
- Choose a preset or select "Advanced" to set Max priority fee and Max total fee. Enter numbers in gwei.
- Confirm and send.
Mobile (iOS/Android)
- Create the transaction inside the wallet or via WalletConnect.
- Tap the fee preview, then tap "Edit".
- Change the priority fee (some versions show presets: low/medium/high).
- 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)
- Transactions on Ethereum use a nonce. Sending another transaction with the same nonce and a higher gas tip replaces the earlier one once the new one mines.
- MetaMask provides UI options: "Speed Up" resubmits the same transaction with higher fees. "Cancel" sends a zero-value transaction to your own address using the same nonce (works only if the cancel tx mines first).
Step-by-step (extension)
- In Activity, find the pending transaction.
- Click it and choose "Speed Up" or "Cancel".
- 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.
- L2 gas savings MetaMask: when connected to an L2 network in MetaMask, you pay local gas on that L2 (usually much lower). But bridging to/from Ethereum mainnet costs mainnet gas.
- Bridges: moving assets on or off an L2 often requires an on-chain mainnet transaction. That can wipe out short-term savings if you bridge frequently.
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
- Time your transactions: quieter periods often mean lower priority fees. Simple.
- Use L2s for frequent trading or micro-transactions.
- Batch operations when possible (some dApps support batched approvals or bundled actions).
- Avoid unlimited token allowances; revoke unnecessary approvals via token-approvals-revoke.
- For swaps, on-wallet DEX aggregators sometimes find cheaper routes and reduce total gas spent.
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:
- Try a different RPC or a dedicated provider (add via add-custom-network).
- Watch the pending transactions on a block explorer to estimate realistic priority fees.
- Some RPCs underreport or overreport gas; changing RPC can improve the estimate or show different mempool data.
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.