User Guide: Gas | MetaMask Help Center 🦊♥️ (2024)

Does this article need to be translated?

Contribute to the Help Center

Submit translations, corrections, and suggestions on GitHub, or reach out on our Community forums.

note

New to crypto and web3?

Head to MetaMask Learn for a straightforward learning experience designed specifically for newcomers to web3. It's completely free, available in multiple languages, and includes useful tools such as simulations to help you find your feet with MetaMask.

Gas is the unit of measure for how much computational work is required to process transactions and smart contracts. Essentially a transaction fee, the term originates from Ethereum, in which context it refers to computation undertaken on the Ethereum Virtual Machine (EVM). Since Ethereum was founded, numerous EVM-compatible (and non-EVM-compatible!) networks have emerged and adopted similar models.

The term is analogous to the gas that powers a car engine: it's the fluctuating, occasionally expensive cost of operation. More complex smart contracts require more gas to power their computation, just as a bigger, more powerful car takes more gas to run.

The method for calculating gas fees varies depending on the network. For example, calculating gas on Ethereum used to be very complicated, but was considerably simplified with the implementation of Ethereum Improvement Protocol (EIP) 1559 in August 2021 (also known as the London Upgrade). Essentially, you pay a base fee for every unit of gas, which is burned (read: it is deleted, and disappears) upon successful completion of the transaction. On top of the base fee, you add a priority fee, again per unit of gas, the value of which depends on how quickly you want the transaction to go through.

Across the broad range of EVM-compatible networks available, gas, or similarly-functioning alternatives, have essentially become the standard method of calculating transaction costs. Fees are paid in the network's native token: for example, any transaction on Ethereum requires ETH; using BSC requires BNB; using Polygon requires POL (previously MATIC). Some networks have adopted Ethereum's EIP-1559 model wholesale, such as Polygon, whilst others have made adjustments, including Avalanche, for their C-Chain (which burns both the base fee and priority fee, rather than just the former).

If you want to read a more in-depth look at how gas works on Ethereum, see here.

Here are some essential details for dealing with gas in MetaMask:

The gas limit (units of gas used)

The gas limit is the maximum number of units of gas you are willing to pay for in order to carry out a transaction or EVM operation. Different operations demand different quantities of gas units. A normal transaction sending ETH or a token normally costs 21,000 gas, whereas an ERC-20 token approval requires 45,000. Many networks, such as EVM-compatible blockchain Harmony, use an identical model in which standard transactions also cost 21,000 gas.

info

Do I need to edit gas limit?

No! MetaMask automatically sets your gas limit depending on the transaction you're trying to execute. In the vast majority of cases, this will be adequate to complete your transaction. If you want to check or edit it, make sure you have advanced gas controls turned on and hit the button next to the gas information on the transaction confirmation screen that reads 'Market', 'Low', or 'Aggressive'.

The base fee

Every block on the Ethereum network has a base fee determined by network demand: the base fee is based on the block size of the block before it, compared against a target block size (where size refers to the total amount of gas used for all the transactions the block includes). If the size of the previous block exceeds the target, the base fee for the next block increases by 12.5%, leaving you, the user (or your wallet), with absolute certainty as to the base fee of the upcoming block. Your total gas fee must meet this price as a minimum in order to be considered for inclusion in the block.

The priority fee

The priority fee, also referred to as the "miner tip", incentivizes the miner to prioritize your transaction.

Naturally, whether this does actually go to a miner depends on the consensus mechanism they use: Ethereum mainnet became a Proof of Stake network following the Merge in September 2022, so the priority fee goes to validators instead of miners.

The max fee

The max fee is the total, global amount paid for your transaction. It is calculated as: (base fee + priority fee) x units of gas used. MetaMask initially sets this amount based on the previous block's history. However, users can edit this amount through custom settings (see below). The difference between max fee per gas and (base fee + max priority fee per gas) is “refunded” to the user.

User Guide: Gas | MetaMask Help Center 🦊♥️ (1)

Additional Concepts

Gwei

Gwei is a unit of ether, the smallest denomination, which stands for gigawei (or 1,000,000,000). Gwei is used for gas fees, or rather payments made by users to compensate for the computing energy required to process and validate transactions on the Ethereum blockchain.

Other networks also tend to calculate costs using gwei — for example, Fantom, Harmony and Avalanche.

Slippage

Slippage is the expected percentage difference between a quoted and an executed price.

Gas fee

Gas fee refers to the transaction fee on the Ethereum blockchain. It is what users pay to get their transaction validated, or completed.

Base fee

Generated by the protocol. Represents the minimum 'gasUsed' multiplier required for a transaction to be included in a block (i.e. for a transaction to be completed). This is the part of the transaction fee that is burnt.

Advanced Gas Controls

If you want to get into the nitty-gritty of your gas controls (this can be helpful if you're testing a dapp, for example), MetaMask can do that! See the full article here.

FAQs

Why did I pay gas fees for a failed transaction?

Can you refund my gas fees?

How do I speed up or cancel a pending transaction?

How to estimate the gas fee

Why are my gas fees so high?

Error: [ethjs-query] while formatting outputs from RPC (transaction underpriced error)

How to fix "insufficient funds" error or greyed-out confirm button

User Guide: Gas | MetaMask Help Center 🦊♥️ (2024)

FAQs

Why is MetaMask not connecting? ›

Disconnect from the site using the method explained here (available for both Mobile and Extension), then return to the dapp and click 'Connect wallet'. Afterwards, retry connecting to the dapp. If reconnecting using the above steps doesn't work, you could also try reinstalling MetaMask and restoring.

How do I speak to someone at MetaMask? ›

The best method is to get in touch via the “Start a Conversation” button on the Support page. See here for more information. I found a bug, what do I do? Either get in touch with Support via the “Start a Conversation” button on the Support page, or submit a bug report on the MetaMask Github.

Why is my transaction failing on MetaMask? ›

If you sent a transaction, and it failed, the most likely cause is a lack of gas: you "ran out of gas", in other words, the transaction had a cost in gas that, when multiplied by the gas price, resulted in a total amount of the network's native currency that was greater than what you had in your wallet.

How do I fix MetaMask error? ›

Here are some of our top fixes:
  1. Restart your browser, or force close the mobile app and reopen.
  2. Restart your computer or mobile device.
  3. Lock and unlock MetaMask.
  4. If your problem relates to a specific transaction, check the relevant block explorer for the network you're using, such as Etherscan.
Sep 5, 2024

How do I Connect MetaMask to my network? ›

From the homepage of your wallet, click on the network selector in the top left. Scroll down until you see the 'Additional networks' section. Alternatively, you can also search for the network to add in the search bar. Tap the 'Add' button next to the network to add it to your MetaMask instance.

Does MetaMask have a help desk? ›

Yes, MetaMask offers 24/7 support through +1-812-217-4492 🔰 phone and live chat.

How to unlock MetaMask wallet? ›

As soon you are on the Unlock view, click Forgot password:
  1. Enter your 12-word secret Secret Recovery Phrase in the text boxes. Make sure you insert each word in the correct order, and all in lower case.
  2. Enter your new password.
  3. Retype your password to confirm it was written correctly.
  4. Click restore:
Sep 5, 2024

How to activate MetaMask wallet? ›

  1. Download MetaMask. The first thing you'll want to do is visit https://metamask.io/ and click Download. ...
  2. Create your Wallet. Now that you installed MetaMask, you have the browser extension. ...
  3. Back Up and Verify Your Secret Backup Phrase. This is a very important step! ...
  4. Find your Ethereum address.

How do I reset my MetaMask account? ›

Lock your account by tapping the gear icon in the tab bar, then scrolling to the bottom of the settings menu and hitting 'Lock'.
  1. On the lock screen, tap 'Reset wallet'.
  2. A warning message will appear, reminding you to not proceed unless you have your Secret Recovery Phrase securely recorded.

Why is MetaMask not letting me confirm? ›

Usually, when you intend to connect MetaMask to a dapp in a desktop browser, a pop-up will appear in MetaMask asking you to confirm the connection. If nothing happens, the most common reason is because you have more than one browser-based wallet installed and active.

Why is my money not showing up on MetaMask? ›

Check on a block explorer. Are you on the correct network? If you sent the token on an EVM-compatible network that you can use in MetaMask (e.g. BNB Smart Chain, Polygon, Avalanche C-Chain, etc.), simply change networks in MetaMask. If the token was not sent on an EVM-compatible network, your funds may be lost.

How do I contact MetaMask customer service? ›

If you can't find an answer in these resources, click on the 'Contact Support' button on https://support.metamask.io/ to speak to a support agent.

Why is my MetaMask wallet not connecting? ›

Check if the installed browser Metamask Chrome extension has been disabled or not. If you have an account on several wallets and are using all of them then temporarily disable all other extensions. And then try to see if the MetaMask not connecting issue is resolved or not. Try to use any other browser such as Brave.

How do I refresh MetaMask? ›

Find the account whose balance you want to refresh and click the three vertical dots next to it when you mouseover. Once in the 'More actions' menu, you'll see the option to 'Resync balances'. Click it to refresh your balances.

Why can't i log into MetaMask? ›

Outdated Browser Extensions: In some cases, outdated or incompatible browser extensions can conflict with the Metamask wallet, leading to login errors. To address this issue, users should ensure that they are using the latest version of their preferred browser and update any extensions related to Metamask.

Why is MetaMask unable to load balance? ›

This error message can be prompted because: You are using the wrong token address. Check here for guidance on how to find it. MetaMask needs to be updated to the latest version.

How do I Connect my MetaMask app? ›

on https://app.1inch.io/ choose 'connect wallet', accept the Terms of Service and select the first connection option - 'MetaMask'. You can now use the MetaMask internal browser for interaction with 1inch. To connect the Metamask app on your mobile phone to a browser on your desktop, use the 'WalletConnect' option.

Top Articles
What Is an Error Log: Uses, Best Practices & More - Sematext
Personal Trainer's Perspective: If You're Not Sore, You Didn't Get a Good Workout: MPOWER Physical Therapy: Massage Therapists
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
How To Cut Eelgrass Grounded
Pac Man Deviantart
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Dmv In Anoka
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Umn Biology
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
San Pedro Sula To Miami Google Flights
Selly Medaline
Latest Posts
Article information

Author: Msgr. Benton Quitzon

Last Updated:

Views: 5676

Rating: 4.2 / 5 (63 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Msgr. Benton Quitzon

Birthday: 2001-08-13

Address: 96487 Kris Cliff, Teresiafurt, WI 95201

Phone: +9418513585781

Job: Senior Designer

Hobby: Calligraphy, Rowing, Vacation, Geocaching, Web surfing, Electronics, Electronics

Introduction: My name is Msgr. Benton Quitzon, I am a comfortable, charming, thankful, happy, adventurous, handsome, precious person who loves writing and wants to share my knowledge and understanding with you.