Bitcoin Fee Bumping: RBF vs CPFP for Stuck Transactions
When a Bitcoin transaction remains unconfirmed, a wallet may be able to improve its confirmation prospects by paying a higher fee. The two widely used strategies are Replace-by-Fee (RBF) and Child Pays for Parent (CPFP). They solve related problems but operate on different transaction relationships.
RBF changes the original transaction
With RBF, a wallet broadcasts a conflicting transaction that spends one or more inputs of the original unconfirmed transaction. The replacement typically pays a larger absolute fee and satisfies the node's replacement rules. Its outputs or amounts may differ. The transaction ID changes, so tracking software must follow the replacement chain.
CPFP adds a descendant
With CPFP, the wallet spends an unconfirmed output from the parent transaction in a new child transaction. The parent and child can be evaluated together for their aggregate fee rate. The parent's transaction ID does not change, but an additional transaction must be accepted.
Which one can you use?
RBF requires the ability to construct and authorize a replacement that satisfies current relay policy. CPFP requires control of a spendable output created by the parent. A recipient may be able to use CPFP on an incoming unconfirmed payment, while the sender may be better positioned to replace its original transaction. Wallet capabilities vary.
Fee estimation and economics
Bitcoin fees are normally expressed in satoshis per virtual byte. Calculate the fee paid across the relevant transactions and the total virtual size; a high child rate does not guarantee a high enough package rate. Also consider the absolute replacement fee and incremental relay policy for RBF.
What fee bumping cannot guarantee
Neither method guarantees confirmation by a deadline. Miner selection, block space demand, mempool propagation, conflicting spends, and node policy matter. Broadcasting repeated attempts without checking actual mempool state can waste fees or create confusing status reports.
Primary references
BIP125 — https://bips.dev/125/
Bitcoin Core RPC documentation — https://bitcoincore.org/en/doc/
Bitcoin Core policy source — https://github.com/bitcoin/bitcoin/tree/master/src/policy
