Fees, Transaction Speed, and Cost Estimation
The Concept
Picking back up from "transactions-and-mempool," this lesson focuses on the practical decision every sender actually faces: what fee to attach to a transaction. Fees are quoted in satoshis per virtual byte (sat/vB) — a measure of the transaction's data size rather than its BTC amount, since miners are limited by block space, not by the dollar value moving through it. The "right" fee depends on two things: how full the mempool is right now, and how quickly you personally need the transaction confirmed. A fee that would clear in the very next block during a quiet period might sit unconfirmed for hours during a busy one, as covered in the previous lesson's exercise.
fee_in_sats = fee_rate_sat_per_vbyte * transaction_size_vbytes
fee_in_BTC = fee_in_sats / 100_000_000
fee_in_USD = fee_in_BTC * current_BTC_price_USD
Two additional tools exist for when a fee estimate turns out to be too low after broadcasting. Replace-by-fee (RBF) lets a sender rebroadcast an unconfirmed transaction with a higher fee, replacing the original before it confirms — useful when conditions got busier than expected after you sent. Child-pays-for-parent (CPFP) lets the recipient (or sender) of an unconfirmed, low-fee transaction create a second, dependent transaction spending from the first with a high enough fee that a miner is incentivized to confirm both together, since miners evaluate the combined fee rate of the linked pair, not each transaction's fee in isolation. Which tool applies depends on whether the sender's wallet enabled RBF when the transaction was first broadcast, and whether the recipient has already received an output they can spend from.
Worked Example
Consider a sample mempool fee chart, the kind wallet software displays before you send:
| Target confirmation | Fee rate (sat/vB) | |---|---| | Next block (~10 min) | 40 | | Within 6 blocks (~1 hr) | 15 | | Within 24 hours | 3 |
Take a typical 250-vByte transaction (two inputs, two outputs, roughly the size of the example in "transactions-and-mempool"). At the "next block" rate: 250 × 40 = 10,000 sats = 0.0001 BTC. At the "within 24 hours" rate: 250 × 3 = 750 sats = 0.0000075 BTC — more than thirteen times cheaper.
Now apply two real scenarios. An exchange withdrawal you need settled today, where the exchange or counterparty requires visible confirmation before releasing something else (goods, a trade settlement), justifies paying the higher "next block" rate — the cost difference is small in absolute terms, and the time saved has real value. A cold-storage transfer — moving funds into a hardware wallet you plan to hold for years, with no deadline — does not justify that premium; the "within 24 hours" rate accomplishes the exact same outcome at a fraction of the cost, since nothing is waiting on this specific confirmation.
Now add a correction scenario. Suppose you broadcast the cold-storage transfer at the low, 3 sat/vB rate, but the mempool unexpectedly fills with higher-fee transactions right afterward, and an hour later it still hasn't confirmed and you decide you actually do need it settled soon after all. If your wallet enabled RBF when it first broadcast the transaction, you can rebroadcast the same transaction with a higher fee (say, 20 sat/vB), and the original low-fee version is replaced before either version confirms. If RBF was not enabled, your only options are to wait it out or use CPFP once you have a spendable output from the stuck transaction, attaching a high enough combined fee on a new, linked transaction to make the pair attractive to miners. Most wallet software estimates an appropriate fee automatically based on current mempool conditions, but it's worth overriding that estimate manually when you know your actual urgency differs from the default assumption, and worth knowing which correction tool is available before you actually need it.
Exercise
Using the sample fee chart above, calculate the total fee in BTC for a 250-vByte transaction at the "next block" rate (40 sat/vB) and separately at the "within 24 hours" rate (3 sat/vB) — show both calculations. Then state which of the two scenarios described above (urgent exchange withdrawal vs. unhurried cold-storage transfer) would justify paying the higher fee, and why. Finally, explain in one or two sentences the difference between replace-by-fee and child-pays-for-parent as ways to speed up a transaction that is already stuck in the mempool.
Recap
- Fees are priced per byte of transaction data (sat/vB), not per BTC amount, because miners are constrained by block space.
- The right fee depends on mempool conditions and your actual urgency — a fee that clears instantly in a quiet period may sit for hours in a busy one.
- Wallet software estimates fees automatically, but overriding the estimate is worthwhile whenever your real deadline differs from the default assumption; if a transaction gets stuck, replace-by-fee (if enabled) or child-pays-for-parent can speed up confirmation without waiting it out.
Resources
- mempool.space — live fee-rate charts by target confirmation time.
- BIP 125, "Opt-in Full Replace-by-Fee Signaling" (github.com/bitcoin/bips/blob/master/bip-0125.mediawiki).
- Bitcoin Optech, "Fee estimation" and "CPFP" primers (bitcoinops.org).