How Do I Cancel a Stuck Ethereum Transaction?
A stuck Ethereum transaction remains unconfirmed in the mempool because the gas fee is too low for validators to prioritize it. Since Ethereum processes transactions in nonce order, one stuck transaction blocks all subsequent ones from the same wallet. You can cancel or replace it by submitting a new transaction with the same nonce but a higher gas fee, which wallets like MetaMask and Rabby support natively. Understanding this process is essential for anyone using Ethereum, especially during periods of high network congestion.
A stuck Ethereum transaction is one that has been broadcast to the network but remains unconfirmed in the mempool, usually because the gas fee is too low. You can cancel or speed up a stuck transaction by submitting a replacement transaction with the same nonce but a higher gas fee, a process supported natively by wallets like MetaMask and Rabby. Knowing how to handle stuck transactions is essential for anyone actively using Ethereum, especially during periods of network congestion.
Whether you're trying to send ETH, swap tokens on a DEX, or interact with a smart contract, gas spikes and underpriced transactions can leave funds in limbo. So what causes Ethereum transactions to get stuck, and how can you safely cancel or replace them without losing money?
What Does It Mean for an Ethereum Transaction to Be Stuck?
An Ethereum transaction is considered "stuck" when it has been signed and broadcast but is not being included in a block by validators. Each transaction has a nonce (a sequential number tied to your wallet) and a gas fee bid in Gwei. If the gas fee is below the current market level, validators will skip the transaction in favor of higher-paying ones, leaving it in the pending state.
A stuck transaction also blocks all subsequent transactions from the same wallet, because Ethereum processes transactions in nonce order. Until the pending transaction is mined or replaced, no later transaction can confirm. This is why a single stuck transaction can quickly snowball into a backlog of pending activity that all waits behind it.
Why Do Ethereum Transactions Get Stuck?
Here are the main reasons Ethereum transactions become stuck in the mempool:
1. Gas Fee Set Too Low
The most common cause of stuck transactions is simply underpriced gas. Ethereum's gas market is dynamic, and a transaction priced for normal conditions can become uncompetitive within minutes if demand spikes. Wallets show estimated gas prices at the moment of submission, but those estimates can become outdated immediately if a major event triggers congestion. Common scenarios include:
- Setting a max fee in Gwei below the current network base fee.
- Using "low" or "slow" gas options during sudden network congestion.
- Sending transactions during NFT mints, token launches, or volatile market events.
When demand spikes, low-gas transactions can sit pending for hours or days. The fix is usually a replacement transaction with a higher fee, not waiting it out.
Read More: Ethereum Gas Fees Explained: What Is ETH Gas and How Does Gwei Work?
2. Network Congestion
Ethereum's gas market reacts to real-time demand for block space, and short-term congestion can strand even reasonably priced transactions. Major events that pull users into the network simultaneously, like high-profile NFT mints or major DeFi launches, can briefly push base fees far above normal levels. Common congestion drivers include:
- High-traffic events like NFT mints, token launches, and airdrop claims.
- Layer-1 activity, MEV bots, and arbitrage spikes competing for block space.
- Rapid market moves that trigger waves of liquidations and DEX activity.
This is why wallet gas suggestions are estimates, not guarantees. Even good estimates can be outdated within a single block during peak demand.
3. Nonce Conflicts
Nonce-related issues are a less common but particularly tricky cause of stuck transactions. Because Ethereum requires transactions to confirm in strict nonce order, any disruption to that sequence can halt all subsequent transactions from the same wallet. These issues are most common for advanced users who manage transactions across multiple devices or set custom nonces manually. Common nonce problems include:
- A pending transaction blocking all later nonces from confirming.
- Submitting transactions from multiple devices creating nonce gaps.
- Manually setting an incorrect nonce that prevents inclusion.
Resolving stuck transactions often requires understanding how nonces work. For most users, sticking to a single device per wallet avoids these issues entirely.
4. Smart Contract Errors
Some "stuck" transactions are not really stuck at all; they're failing silently due to smart contract conditions that are no longer satisfied. These transactions may eventually fail rather than confirm, but they still consume gas in the process. This is most common with DEX swaps, NFT mints, and other contract interactions where parameters can go stale quickly. Common contract-related failures include:
- Insufficient gas limit causing out-of-gas reverts mid-execution.
- Slippage or deadline parameters that have already expired.
- Contract conditions that are no longer satisfied (e.g., price moved past your slippage tolerance).
These transactions may eventually fail rather than confirm, still costing gas. Knowing the difference between an underpriced transaction and a failing one helps you choose the right resolution.
How Can You Cancel or Replace a Stuck Ethereum Transaction?
Here are the main methods to resolve a stuck transaction:
1. Cancel via Wallet (MetaMask or Similar)
Most modern wallets offer a built-in cancel option that handles the technical details automatically. The wallet broadcasts a 0 ETH transaction to your own address using the same nonce as the stuck transaction, but with a higher gas fee. If validators accept the cancellation first, the original transaction is dropped. Standard cancellation steps include:
- Open the pending transaction in your wallet's activity tab.
- Click "Cancel" to broadcast a 0 ETH transaction to your own address with the same nonce.
- Approve the higher gas fee required for the cancellation to outbid the original.
If accepted by validators, the original transaction is dropped. The cancellation itself costs gas, but it frees up the nonce for new transactions.
2. Speed Up the Transaction
If you still want the original transaction to go through but just need it to confirm faster, the "Speed Up" option is usually the better choice. Instead of cancelling, the wallet resubmits the same transaction with a higher gas fee, keeping the same nonce. This is faster and often cheaper than a full cancel-and-resend cycle. Standard speed-up steps include:
- Click "Speed Up" in the wallet to resubmit with a higher gas fee.
- The replacement keeps the same nonce but pays validators more to include it.
- Approve the new fee, which must be at least 10% higher than the original.
Speed-ups are especially useful when timing matters, such as during DeFi swaps where slippage can change quickly.
3. Manually Replace With Custom Nonce
Advanced users can manually replace stuck transactions by enabling custom nonce settings in their wallet. This is the most flexible option but also the riskiest, since incorrect nonces can create their own problems. It's most useful when the wallet's built-in cancel/speed-up options aren't working or when handling complex multi-transaction scenarios. Standard manual replacement steps include:
- Enable custom nonce settings in MetaMask or a similar wallet.
- Submit a new transaction using the same nonce as the stuck one.
- Set a higher gas fee to ensure the replacement is mined first.
This method gives full control but requires care to avoid nonce mistakes. For most users, the built-in cancel and speed-up buttons are safer and just as effective.
4. Wait for the Transaction to Drop
If gas fees fall and you don't urgently need to cancel or confirm the transaction, it will eventually be dropped from the mempool by most nodes. Once dropped, the nonce becomes available again for new transactions. This passive option costs nothing but isn't reliable for time-sensitive situations. Typical drop dynamics include:
- Most nodes drop pending transactions after a few hours or days.
- Once dropped, the nonce becomes available again for new transactions.
- Some wallets allow you to "clear" stuck transactions manually after expiry.
This passive option works when there is no urgency to confirm or cancel. For anything time-sensitive, active cancellation or speed-up is the better path.
How Can You Avoid Stuck Ethereum Transactions in the Future?
Here are practical steps to reduce the chance of stuck transactions:
- Check current Gwei levels on Etherscan Gas Tracker before sending.
- Use "market" or "fast" gas settings during periods of high network activity.
- Avoid transacting during major NFT mints or token launches when possible.
- Use Layer-2 networks like Arbitrum, Optimism, or Base for cheaper, faster transfers.
- Keep a small ETH balance for gas to handle cancellations or speed-ups when needed.
These habits make day-to-day Ethereum usage smoother and less stressful, especially for active users who transact frequently.
Summary
A stuck Ethereum transaction can feel alarming, but it's usually a fixable problem caused by underpriced gas or temporary network congestion. By understanding how nonces, gas fees, and the mempool interact, users can confidently cancel, speed up, or replace stuck transactions without panic. Modern wallets have made this process far more accessible, even for newer users navigating Ethereum for the first time.
With a little preparation and awareness of gas conditions, stuck transactions become a manageable inconvenience rather than a costly mistake. Once you've handled one or two, the process becomes routine.
Related Concepts
Further Reading
FAQ
What Is a Stuck Ethereum Transaction
A stuck Ethereum transaction is one that has been broadcast to the network but remains unconfirmed in the mempool, usually because the gas fee is too low.
How do I know if my transaction is stuck or just slow?
Will I lose money if I cancel a stuck transaction?
Can I cancel a transaction after it's already confirmed?
Don't have an account?
Sign up now to start your cryptocurrency journey