# How to cancel the transaction with Custom Nonce? (Metamask)
Every transaction on the ethereum has a Nonce. Ethereum Yellow paper describes Nonce as "A scalar value equal to the number of transactions sent from this address or, in the case of accounts with associated code, the number of contract-creations made by this account." Each time a transaction is send from the address nonce value is increased by 1. This ensures transaction are mined in order, Transaction with Nonce 1 cannot be mined before the transaction with Nonce 0. Value of Nonce prevents the double spending.
Follwoing are the Steps to cancel the stuck transaction on metamask with Nonce:
**1. Click on account and click on settings.**

**2. Click on Advanced.**

**3. Scroll downa and toggle on the customize transaction Nonce.**

**4. Send a new transaction(Either to the same address or to the different address) with a same nonce of the previously pending transaction.**
