Skip to content
PayableWithCrypto

Glossary

What Is Replace-by-Fee (RBF)? Speeding Up a Stuck Bitcoin Payment

Editorial teamFact-checked against official sources Last updated 3 min read

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
  1. 1How RBF works
  2. 2When you would use it as a payer
  3. 3Why merchants care
  4. 4Pitfalls
  5. 5RBF on other networks
  6. 6Practical tips
  7. 7Common questions

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:

  1. Open the pending transaction in your wallet.
  2. Choose “bump fee” or “speed up” and select a higher fee rate.
  3. 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?
While the transaction is unconfirmed, some wallets let you replace it with one that sends the funds back to yourself. It only works if the replacement confirms first. Once the original has a confirmation, it cannot be replaced.
Does my transaction need to signal RBF?
BIP 125 introduced opt-in signalling. Since 2024, Bitcoin Core nodes accept replacements by default whether or not the original signalled, a policy known as full RBF. Your wallet still needs to offer a bump-fee or speed-up button.
Will the transaction hash change after a fee bump?
Yes. The replacement is a different transaction with a new hash. Give the merchant or support the new hash, as the original will never confirm.
Can I bump the fee on a withdrawal from an exchange?
No. The exchange signed that transaction, so only the exchange can replace it. Contact its support with the transaction hash if a withdrawal is stuck.

Sources

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.

Related terms

Compare cards Find a store