ThisCalculator

Everyday

Cancel or Speed Up a Pending Blockchain Transaction?

Updated · Standard formula, shown below

Price increase needed 66.7 %
Current gas price (Gwei)
50 Gwei
You entered
Your gas price (Gwei)
30 Gwei
You entered

Cancel or Speed Up a Pending Blockchain Transaction?

Yes, you can cancel or speed up a pending blockchain transaction, but the exact method depends on the network and whether the transaction has been broadcast. This article explains the mechanics behind pending transactions, the tools you can use to manage them, and the risks involved.

Formula

To calculate the percentage increase in gas price needed to outbid the current network average, use:

Price increase (%) = ((Current gas price – Your gas price) / Your gas price) × 100

Variables: Current gas price (Gwei), Your gas price (Gwei). This helps you decide how much to raise the fee for a replacement transaction.

Worked Example

Suppose the current average gas price is 50 Gwei, and your stuck transaction was sent with 30 Gwei. The calculation is:

((50 – 30) / 30) × 100 = (20 / 30) × 100 = 66.7%

So you need to increase your gas price by about 67% to match the current market. Most wallets require at least a 10% increase to replace a transaction.

Why Transactions Get Stuck

A blockchain transaction becomes pending when it is broadcast to the network but not yet included in a block. On proof-of-work networks like Bitcoin and Ethereum (pre-merge), miners prioritize transactions with higher fees. If the network is congested and your fee is too low, your transaction can sit in the mempool (the pool of unconfirmed transactions) for hours or even days. On proof-of-stake networks like Ethereum after the merge, validators similarly prioritize higher fees.

Other reasons for a stuck transaction include:

  • Nonce mismatch – if you send multiple transactions from the same address, they must be processed in order. A low nonce transaction blocks all subsequent ones.
  • Replacement disabled – some wallets mark transactions as “non-replaceable,â€� preventing you from sending a higher-fee version.
  • Wallet bug – occasionally a wallet fails to broadcast the transaction properly, leaving it stuck locally.

How to Speed Up a Pending Transaction

Speeding up means sending a new transaction with a higher fee that replaces the original. The two common methods are:

  • Replace-by-Fee (RBF) – Send a new transaction with the same nonce and recipient but a higher gas price. Most modern wallets (e.g., MetaMask, Trust Wallet) offer a “Speed Upâ€� button that does this automatically. The new transaction must have a fee at least 10% higher (on Ethereum) to be accepted by nodes.
  • Child-Pays-for-Parent (CPFP) – If you cannot replace the original, you can spend the unconfirmed output in a new transaction with a very high fee. Miners are incentivized to include both transactions to collect the high fee on the child. This works on Bitcoin and Ethereum.

For Bitcoin, RBF must be enabled on the original transaction. If it wasn’t, CPFP is your only option. For Ethereum, most wallets support RBF by default.

How to Cancel a Pending Transaction

Cancelling is essentially sending a replacement transaction that overwrites the original with a 0-value transfer to yourself (or a blank transaction). The steps are:

  1. In your wallet, find the pending transaction and select “Cancel� or “Replace�.
  2. The wallet will create a new transaction with the same nonce, a 0 amount (or a small fee), and a higher gas price.
  3. Broadcast this replacement. Once mined, the original is effectively cancelled.

If your wallet does not have a cancel option, you can manually create a transaction with the same nonce and a higher fee using advanced tools like MyEtherWallet or a custom RPC. This requires technical knowledge.

When Speed-Up or Cancel Fails

If the network is extremely congested, even a high-fee replacement may take time. If your transaction has already been included in a block, it is final and cannot be cancelled or sped up. On some networks (e.g., Solana), transactions are processed so fast that they rarely get stuck, but if they do, the same principles apply with different fee mechanisms.

Another failure point: if you use a hardware wallet, you may need to confirm the replacement on the device. If the device is offline, you cannot broadcast the replacement.

Common Mistakes and Misconceptions

  • Mistake: Sending a new transaction with a different nonce. This does not replace the original; it just adds another pending transaction. Always use the same nonce.
  • Mistake: Assuming a higher fee guarantees inclusion. It increases the chance, but not certainty, especially during extreme congestion.
  • Misconception: “The transaction is stuck forever.â€� Most networks eventually drop unconfirmed transactions after a timeout (e.g., 24 hours on Bitcoin). The funds are not lost; they return to your wallet.
  • Misconception: “I can cancel by sending the same amount to myself.â€� That only works if you use the same nonce and a higher fee; otherwise, it’s just a separate transaction.

Frequently Asked Questions

Will a stuck transaction eventually be dropped?

Yes, most nodes drop unconfirmed transactions after a certain time. On Bitcoin, the default is 14 days, but many nodes use 72 hours. On Ethereum, there is no fixed timeout, but nodes may drop after a few days. Once dropped, the funds are available again in your wallet.

Can I cancel a transaction after it’s been broadcast but before it’s mined?

Yes, as long as it hasn’t been included in a block. You can replace it with a higher-fee transaction using the same nonce. This is exactly what the “Cancel� button does in most wallets.

What if I don’t have the private key for the address?

You cannot cancel or speed up a transaction without the private key. Only the owner of the address can sign a replacement. If you sent funds to an exchange and the transaction is stuck, you must contact the exchange’s support; they may be able to help if they control the receiving address.

Does the same method work for all blockchains?

No. Bitcoin and Ethereum support RBF/CPFP. Other networks like Solana use a different fee model and may not have a mempool in the same way. Always check your wallet’s documentation for the specific network.

Is it safe to use a “speed up� feature?

Yes, it is safe as long as you trust your wallet software. The replacement transaction has the same nonce and destination, so it cannot double-spend. However, you should verify that the replacement fee is not excessively high, as you will pay that fee regardless.

Related

Formula used
in t | Current gas price (Gwei) | Gwei | 50 | 0
in s | Your gas price (Gwei) | Gwei | 30 | 0
out p | Price increase needed | % | ((t - s) / s) * 100 | 1

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.