> For the complete documentation index, see [llms.txt](https://docs.defiswap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.defiswap.io/click-here-for-help/fixing-stuck-pending-transactions-on-metamask.md).

# Fixing Stuck Pending Transactions on MetaMask

Need to "unstick" a pending transactions that’s stuck in your MetaMask?

If your transaction is stuck on pending in Metamask, and the “Cancel” button isn’t helping, you might need to use this method to clear your backlog.

This method works by essentially overwriting the stuck transaction with another, higher-priority transaction.

### &#x31;**. 1. Enable Customized Transaction Nonce**

1. Open your MetaMask plugin.

![](https://2065354902-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA61dWszP0puVblkx6p8D%2Fuploads%2Ftsdy6FRILuvef8GX2XsN%2Fimage%20\(1\).png?alt=media\&token=be749cf4-cd9c-4a40-9a04-f9309666eaa1)

2\. Click on the colourful circle icon on the top-right and click Settings from the dropdown menu.

![](https://2065354902-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA61dWszP0puVblkx6p8D%2Fuploads%2Fd3NJ578IP4UpFLLC0bav%2F1-2-MetaMask_settings.png?alt=media\&token=53bfcb85-a7b8-4f7e-9365-c8f8e87f20a6)

3\. In the Settings menu, select **Advanced**.

![](https://2065354902-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA61dWszP0puVblkx6p8D%2Fuploads%2FKPyCVdNrl6uz4xsxLjs0%2F1-3-MetaMask_advanced.png?alt=media\&token=a5194eb6-4c2e-49fb-81b9-c711c49d27b0)

4\. Scroll down until you see **Advanced gas controls**. Toggle this to ON.

![](https://2065354902-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA61dWszP0puVblkx6p8D%2Fuploads%2FAqSu2u5zBXjn4JOHS9IM%2F1-4-MetaMask_gas_control_on.png?alt=media\&token=a8845e4a-041a-4425-b3a5-a323742ee06e)

**5.** Still in Advanced settings, keep scrolling until you see **Customize transaction nonce**. Toggle this to ON.

![](https://2065354902-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA61dWszP0puVblkx6p8D%2Fuploads%2FBeHxM8MMtqSQkAXOcORG%2F1-4-MetaMask_gas_control_on%20\(1\).png?alt=media\&token=af965915-d142-46e6-838c-48b7d33fc313)

### **2. Find Your Stuck Transaction**

We’re now going to find the transaction that’s stuck and make a note of the “nonce”. That’s a kind of identifier, which we’ll re-use later.
