A Bitcoin transaction that pays too low a fee can sit unconfirmed for a long time. There are two standard ways to fix that after broadcasting. Replace-by-fee (RBF) swaps the stuck transaction for a new version that pays more, and child-pays-for-parent (CPFP) attaches a new, well-paid transaction that makes miners want to include the stuck one as well.
Why a transaction gets stuck
Miners fill blocks from the highest fee rate down, as described in the guide on fee rates and weight. If you broadcast at a rate below what recent blocks accepted, your transaction waits in the mempool of each node that holds it. It can stay there for as long as nodes keep it, which by default is limited by memory and by an expiry window.
A stuck transaction is not lost. The funds are still committed to it, so the same outputs cannot be spent elsewhere unless the transaction is replaced or dropped. That is what makes bumping tools necessary: you cannot just send the funds again in a second, unrelated transaction.
Replace-by-fee: a short history
Bitcoin Core’s node rules have long said that a transaction in the mempool is not replaced by a conflicting one that spends the same inputs. Simply allowing replacement by anything that pays more would let a sender overwrite a payment the recipient had already seen. The compromise, written up in BIP125, was opt-in replacement. A transaction signals that it can be replaced by setting the sequence number of at least one input to a value lower than 0xfffffffe.
That signal let recipients and services decide whether to treat an unconfirmed payment as final. A transaction that did not signal was left alone by nodes following the policy.
Full RBF becomes the default
The release notes for Bitcoin Core 28.0 record that the default for the mempoolfullrbf setting changed from 0 to 1. With full RBF, a node accepts a replacement whether or not the original signaled, as long as the replacement meets the fee rules. The practical point for anyone receiving funds is that an unconfirmed transaction was never final, signal or no signal, and that was already the cautious reading.
What a replacement must satisfy
A replacement cannot be arbitrary. Nodes apply rules meant to stop replacement from being used to waste bandwidth or to churn the mempool for free. BIP125 sets out the original rules, in summary:
- The replacement must conflict with the original by spending at least one of the same inputs.
- It must not add a new unconfirmed input that the original did not have.
- It must pay a higher absolute fee than everything it replaces.
- It must pay for its own relay, meaning the extra fee is at least the incremental relay fee times its size.
- It may not evict more than 100 transactions in total.
Details of these rules have changed across releases, so the authoritative description is the Bitcoin Core document on mempool replacements. The 31.0 notes describe a further change, which is covered next.
The feerate diagram rule in Core 31.0
The 31.0 release notes state that, with the new cluster mempool, a replacement is accepted only if it strictly improves the mempool’s feerate diagram. In plain terms, a node compares the order in which miners would pick transactions before and after the swap, and accepts the swap only if it makes that selection strictly better.
This changes how you reason about a bump. Earlier rules asked whether the new fee was high enough in absolute terms and per byte. The diagram test asks whether the whole mempool becomes more valuable to a miner. In ordinary cases, paying a clearly higher fee rate still passes.
Doing an RBF bump in practice
You can only replace a transaction you created, or one where you control every input. The steps are the same whichever software you use:
- Confirm that the original is unconfirmed and still known to the network.
- Look at the fee rate recent blocks needed. The guide on reading the mempool explains how.
- Choose a new fee rate above both that and the old rate, by enough margin to satisfy the incremental relay fee.
- Build the replacement. Wallets usually shrink the change output to pay the extra fee. If there is no change output, a good wallet adds another input.
- Broadcast the replacement and check that the original disappeared from view.
Bitcoin Core’s wallet exposes this as the bumpfee RPC, which builds the replacement for a wallet transaction that is still unconfirmed. The documentation lists the conditions under which it refuses.
Side effects to expect
- The replacement has a different transaction id. Anyone watching the old one will see it vanish.
- A transaction that was seen by a recipient is no longer the one that will confirm. That can confuse accounting, so keep the new id.
- If the original has already been mined, there is nothing to replace.
Child pays for parent
CPFP works differently. You do not touch the stuck transaction, which is the parent. Instead you broadcast a second transaction, the child, that spends one of the parent’s outputs and pays a high fee. A miner cannot include the child without the parent, since the child spends an output that does not exist until the parent confirms. So when selecting what to include, miners look at the combined fee rate of the group.
The group rate is the total fee of parent and child divided by their combined virtual size. If that rate is competitive, the miner takes both.
The arithmetic
Take made-up numbers. A parent of 200 vB paid 2 sat/vB, which is 400 satoshis. You want the pair to move at 10 sat/vB. The child is 150 vB. The combined size is 350 vB, so the pair needs 3,500 satoshis in total. The parent already paid 400, so the child must pay 3,100 satoshis, which is about 20.7 sat/vB on its own.
Notice what that means: the child pays a rate far above the one you want for the pair because it is also carrying the parent. The cost is real, and it is paid by whoever creates the child.
| Item | Size | Fee paid |
|---|---|---|
| Parent (stuck) | 200 vB | 400 sat |
| Child (new) | 150 vB | 3,100 sat |
| Pair | 350 vB | 3,500 sat, or 10 sat/vB |
Who can create the child
Anyone who can spend an output of the parent. That includes the sender, through the change output, and the recipient, through the payment output. This is the main reason CPFP exists alongside RBF: it lets a recipient who is waiting on a payment do something about it, which replacement cannot.
Packages and TRUC transactions
Ordinary CPFP has a catch. If the parent’s fee rate is below the minimum a node’s mempool will accept, the node rejects the parent on arrival, and the child has nothing to attach to. Bitcoin Core’s package relay document describes evaluating a parent and child together as a unit so that the pair can be accepted.
The 28.0 release added relay for one parent with one child, and also support for TRUC transactions, which are the version-3 transactions specified in BIP431. TRUC is an opt-in set of stricter rules, including a limited shape for chains of unconfirmed transactions, designed to make fee bumping reliable and hard to obstruct.
For a user, the takeaway is modest. Whether a child can rescue a very low-fee parent depends on the software of the nodes in between, and on how the original was built. Do not rely on it as the only plan.
When a transaction drops out
Sometimes a stuck transaction disappears from the nodes you can see. A node may evict low-fee transactions when its memory fills, and by default it forgets very old ones after a period of days. Some nodes will drop yours while others still hold it.
A dropped transaction is not a confirmed one, and it is not automatically cancelled either. Your wallet may still consider the funds spent, and a node elsewhere may still relay the original. Before you rebroadcast anything, check the state of the transaction on more than one source, and prefer a replacement with a higher fee rate over a plain rebroadcast of the same low rate.
If a transaction has been gone for a long time and no node reports it, wallets typically offer a way to abandon it locally so its inputs become spendable again. That is only safe once you are sure no node will still mine the original.
Choosing between RBF and CPFP
| Situation | Usually better | Why |
|---|---|---|
| You made the transaction and control its inputs | RBF | One transaction replaces another, and the extra fee is only the difference |
| You are the recipient of an unconfirmed payment | CPFP | You cannot replace the sender’s transaction, but you can spend your output |
| The original had no change output and no spare inputs | CPFP, or RBF with an added input | Replacement needs funds to raise the fee from |
| Many unconfirmed transactions are chained | Depends | Check the replacement and package limits first |
Before either, consider waiting. If the fee rate you paid is only slightly low, a quiet stretch can clear it without any further cost. The fee estimator helps compare the cost of a bump with the fee you already paid.
Limits and risks
- Neither tool guarantees confirmation. Both raise the effective fee rate, and the market can still move above it.
- Replacement and package rules are policy, not consensus. Different nodes may run different versions, so a bump that works for most may not reach every node.
- Check addresses and amounts of any replacement yourself. A bump should change only the fee and, if needed, the change output.
- Be wary of any service or message offering to speed up a transaction in return for a payment or private details. Normal bumping needs only your own wallet.
This guide is educational and not financial advice. For the broader market context, see the network hub, and for how nodes decide what to accept, the guide on mempool policy and relay rules.
Frequently asked questions
Can I cancel a Bitcoin transaction?
Is an unconfirmed transaction safe to accept?
How do I calculate the CPFP fee?
Does bumping change the transaction id?
Sources
- BIP125: Opt-in Full Replace-by-Fee Signaling · Bitcoin Improvement Proposals
- Mempool replacements policy · Bitcoin Core
- Package relay policy · Bitcoin Core
- Bitcoin Core 28.0 release notes · Bitcoin Core
- Bitcoin Core 31.0 release notes · Bitcoin Core
- RPC bumpfee · Bitcoin Core developer documentation
- BIP431: Topologically Restricted Until Confirmation Transactions · Bitcoin Improvement Proposals
Educational data only. Not financial, investment or tax advice; no licence is claimed. Bitcoin Prime publishes no forecasts, targets or trading signals.