Glossary
What Is Replace-by-Fee (RBF)? Speeding Up a Stuck Bitcoin Payment
Definition
Replace-by-fee (RBF): Replace-by-fee is a Bitcoin node policy that lets an unconfirmed transaction be replaced by a new version spending the same inputs with a higher fee.
On this page
Replace-by-fee (RBF) lets you swap an unconfirmed bitcoin transaction for a new version that pays a higher fee. Because the replacement spends at least one of the same inputs, only one of the two can ever confirm, and miners will prefer the higher-paying one. In practice it is the “speed up” or “bump fee” button in a bitcoin wallet.
How RBF works
BIP 125 defined the original rules. Bitcoin Optech summarises the key ones: the replacement must spend at least one input of the original, and must pay both a higher fee rate and a higher absolute fee than what it replaces.
The policy has changed over time:
| Period | Bitcoin Core default |
|---|---|
| From version 0.12.0 (2016) | Opt-in RBF: only transactions that signalled replaceability could be replaced |
| 2022 | An optional mempoolfullrbf setting let node operators accept any replacement |
| 2024 | Full RBF enabled by default (Optech, August 2024); the setting was later removed (November 2024) |
RBF is mempool policy, not a consensus rule. Nodes and miners choose what to relay and mine, but with the default now being full RBF, any unconfirmed bitcoin transaction should be treated as replaceable.
When you would use it as a payer
You send an on-chain bitcoin payment to a checkout. Fees spike, and your transaction sits in the mempool while the invoice timer runs down. With RBF you:
- Open the pending transaction in your wallet.
- Choose “bump fee” or “speed up” and select a higher fee rate.
- Confirm. The wallet broadcasts a replacement paying the same recipient the same amount, with more going to the miner.
The merchant’s processor sees the replacement and, in most cases, treats it as the same payment because it pays the same address and amount. If the original was already detected before the invoice expired, many processors still honour the locked rate. See invoice expiry for the edge cases.
An alternative is child-pays-for-parent (CPFP), where you spend the change output of the stuck transaction with a high fee so miners take both. It works even with wallets that do not support RBF, as long as you control an output.
Why merchants care
RBF is the reason zero-confirmation bitcoin payments are risky for merchants. A customer could broadcast a payment, receive goods, then replace the transaction with one sending the coins back to themselves. This is a form of double-spend. As a result:
- Most processors wait for at least one confirmation before marking an on-chain payment as settled.
- Some accept unconfirmed payments only for low amounts, at their own risk.
- Lightning, where payments settle without waiting for blocks, is often offered for instant checkout instead.
Pitfalls
- Wallet support varies. Some wallets, especially simple mobile ones, cannot bump fees. Check before relying on it.
- Changing the amount by accident. Some wallets bump the fee by reducing the payment output instead of the change. That turns a correct payment into an underpayment. Make sure the recipient amount stays the same.
- Sending again instead of replacing. A second independent payment can confirm alongside the first, so you pay twice.
- Tracking the right hash. After a replacement, the old transaction hash is dead. Use the new one.
RBF on other networks
Ethereum has a similar mechanism: a pending transaction can be replaced by a new one with the same nonce and a higher fee, which wallets offer as “speed up” or “cancel”. Chains with short transaction lifetimes, such as TRON and Solana, rarely need it, because transactions either land quickly or expire and can be resent.
Practical tips
- Pick a fee rate suited to the invoice deadline from the start; bumping costs more than getting it right.
- Keep some spare UTXOs or change in your wallet so CPFP is available as a fallback; see UTXO.
- For small, time-sensitive payments, paying with Lightning avoids the problem.
- The fee reduction guide explains how to choose a fee rate sensibly.
Frequently asked questions
Can I use RBF to cancel a bitcoin payment?
Does my transaction need to signal RBF?
Will the transaction hash change after a fee bump?
Can I bump the fee on a withdrawal from an exchange?
Sources
- BIP 125: Opt-in full replace-by-fee signaling
- Bitcoin Optech: Replace-by-fee topic
- Bitcoin developer guide: Payment processing
Facts were checked against these pages on the date shown above. Terms change; confirm on the official page before acting. General information, not financial, tax or legal advice. See our methodology.