How to Cancel Pending Transaction on MetaMask in 2023

28 Likes Comment

MetaMask is a popular wallet for managing cryptocurrencies, but sometimes transactions can get stuck in the pending state.

In this comprehensive guide, we will discuss different methods to cancel or speed up pending transactions on MetaMask.

This applies to various networks, including Ethereum, Fantom, Polygon, Avalanche, Binance, and others.

Methods to Fix Pending Transactions in MetaMask

There are five main methods to fix a pending transaction in MetaMask. They are listed below in order of ease and speediness:

  1. Press the In-app Cancel Button
  2. Try to Speed Up the Transaction
  3. Submit a Custom Nonce
  4. Reset Your MetaMask Account
  5. Wait for the Transaction to Go Through

1. Press the In-app Cancel Button

The simplest way to cancel a pending transaction is to press the Cancel button in MetaMask. A cancellation can only be done if the transaction is still pending on the network.

If a transaction has already been confirmed on the blockchain, it cannot be undone.

2. Try to Speed Up the Transaction

If you cannot simply cancel the transaction, you can try to speed it up. Essentially, you are resubmitting the same transaction but with a higher gas fee in an attempt to process the transaction faster.

Speeding up a transaction reuses the same nonce (a number used to identify transactions), so you do not need to pay for gas twice. However, it will increase the amount you are spending to process the transaction.

To speed up your pending transaction, go to the transaction and press the button that says Speed Up.

3 Custom Nonce Method to Cancel Transaction

Another way to cancel a pending transaction is by using a custom nonce. This method involves sending a new transaction with the same nonce as the pending one.

You don’t need to send anything of value; you can send 0 ETH, for example. The goal is to replace the pending transaction, effectively canceling it.

This method almost always works to cancel any stuck pending transactions.

To submit a custom nonce, follow these steps:

  1. Enable “Customize transaction nonce” and “Advanced gas controls” in MetaMask’s advanced settings. This allows you to edit the gas you pay and ensure your cancellation transaction is processed before the original one you want to cancel.
  2. Go to the pending transaction and copy its nonce.
  3. Send a new transaction to your wallet’s public address (send it to yourself). Fill in the “Custom Nonce” field with the same nonce as the transaction that is still pending.
  4. Click “Edit” next to “Gas Fee” (this might appear as “Market”). You’ll see the following options:
    • Gas limit: The maximum number of units of gas you’re willing to pay for the blockchain to complete the transaction.
    • Max priority fee (Gwei): Paid to the validator and incentivizes them to prioritize your transaction.
    • Max fee (Gwei): The total amount paid for your transaction: base fee + priority fee.
  5. To ensure your cancellation request is prioritized before the original, you need to pay more for gas. To do this, follow the steps below:
    • Set your gas limit slightly higher than your original transaction.
    • Set your max priority fee to at least 10% higher (in Gwei) than the gas fee of the original (pending) transaction (if that transaction had a gas fee of 30 Gwei, set the max priority fee to 33-35 Gwei).
    • Make sure your max fee is at least 30% higher than the max fee of the transaction you’re replacing. For example, if your previous fee was 100 Gwei, input something like 150 Gwei.

Reset MetaMask Account

If the cancel button isn’t an option, and you don’t want to or can’t afford to pay the custom nonce, your last option is to reset your MetaMask account.

This will clear all your transactions without affecting your funds.

Keep in mind that if you go this route, you may need to manually add the tokens back into your wallet for them to be displayed.

To do this, sign in to MetaMask, go to the Tokens tab, click “Import Tokens,” then search for the tokens you previously had in your wallet and select them.

They will then appear in your wallet with your balance.

Also, make sure you have your Secret Recovery Phrase available, as you’ll need it to sign back into your wallet.

To reset your MetaMask account, follow these steps:

  1. Click the account icon in the top-right corner of MetaMask.
  2. Choose “Settings.”
  3. Choose “Advanced Settings.”
  4. Click “Reset Account.”

After resetting your account, close the browser before reopening MetaMask to enter your secret phrase.

NOTE: Don’t reset your wallet if you still see the transaction pending on the blockchain explorer. Instead, try speeding it up or canceling it if possible.

Waiting for the Transaction to Go Through

If none of the above methods work, you can also wait for the transaction to go through. Although this is the easiest solution since it requires no effort on your end, it takes the most time.

Furthermore, sometimes the transaction never goes through until you take action.

Why Do Transactions Get Stuck?

Transactions can get stuck for several reasons, the most common being insufficient gas fees, network congestion, or incorrect gas settings.

  • Insufficient gas fees: When submitting a transaction, you’re required to pay a gas fee, which is essentially the cost of processing your transaction on the Ethereum network. If you set a gas fee that is too low, miners may prioritize other transactions with higher fees, leaving your transaction in a pending state.
  • Network congestion: When the Ethereum network experiences high traffic, it becomes congested, leading to slower transaction processing times. In these situations, transactions with higher gas fees are prioritized, while those with lower fees may remain in the pending state for a longer period.
  • Incorrect gas settings: If you’ve manually adjusted the gas limit or gas price and entered incorrect values, your transaction may get stuck. For example, setting a gas limit that is too low might result in your transaction running out of gas and failing, while setting an unusually high gas price might result in your transaction being stuck if no miner is willing to process it at such a high cost.


In conclusion, transactions can get stuck for a variety of reasons, but the most common are insufficient gas fees, network congestion, and incorrect gas settings.

If you find yourself in this situation, you can try the methods mentioned earlier to cancel, speed up, or wait for the transaction to go through.

All rights reserved. Do not copy, rewrite or republish this content, in part or in whole, without proper credit to the source.

You might like

About the Author: Femi Olawole

Femi Olawole is a seasoned blogger with interest on providing helpful Contents on online loan apps, Tech and Business.

Leave a Reply

Your email address will not be published. Required fields are marked *

Copying of this content disabled