Bitcoin Fee Estimation Explained: Confirmation Targets and Feerates
A Bitcoin fee estimate is a forecast of the feerate likely to attract confirmation within a chosen number of blocks. It is not a price guaranteed by consensus, and miners do not promise inclusion at a quoted rate.
Fee amount versus feerate
A transaction pays the difference between its input values and output values. Feerate expresses that fee relative to virtual size, commonly in sat/vB. For example, a 140-vbyte transaction at 8 sat/vB pays 1,120 sat. A larger transaction at the same rate pays more total satoshis.
SegWit weight determines virtual size: weight = 4 × non-witness bytes + witness bytes, where the stripped and total sizes are counted according to the serialization rules. Virtual size is the ceiling of weight divided by four.
How confirmation targets work
A target such as two blocks or six blocks is a statistical objective, not a deadline. Bitcoin Core's estimatesmartfee uses observed confirmation behavior and returns a feerate estimate and block target when enough data is available. Results depend on the node's mempool, observation history, software version, and network conditions.
A wallet should distinguish an unavailable estimate from a zero-fee estimate. An empty or recently restarted node may lack enough observations. A fallback should be labeled as a policy choice rather than presented as a live network fact.
Why estimates change
Transactions compete for limited block weight. When higher-feerate transactions arrive faster than blocks can clear them, the price of near-term inclusion tends to rise. When demand falls, lower-feerate transactions may confirm. Miner transaction selection also considers package dependencies, not merely an isolated transaction's advertised rate.
Building a safer wallet fee flow
Display the target, estimated sat/vB, expected virtual size, and total satoshis before signing. Warn when an estimate is stale or unavailable. Support explicit fee adjustment where possible and make replacement policy clear. Avoid treating a mempool acceptance response as a promise of confirmation.
Primary references
Bitcoin Core RPC estimatesmartfee: https://bitcoincore.org/en/doc/
Bitcoin Developer Reference: https://developer.bitcoin.org/reference/transactions.html
BIP141 Segregated Witness: https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki
