Every wallet shows a fee suggestion, and almost every wallet gets it from one of two places: a node’s own estimator, or a public API that reads the mempool. The two answer different questions, fail in different conditions, and disagree most sharply exactly when the answer matters. Bitcoin Core now runs both and combines them, which is a more interesting design than either alone.
What question is an estimator answering?
Not “what will the fee rate be.” That is unanswerable, and no part of the code pretends otherwise.
The historical estimator answers: of transactions that entered the mempool at a given fee rate, what fraction confirmed within N blocks, and what is the lowest rate whose success fraction clears a threshold. It is a statement about the past, used as a bet that the next hour resembles the last.
The mempool estimator answers a different question: if the next block were built from the mempool as it stands, what fee rate would get into it. That is a statement about the present, and it is only meaningful for a target of one or two blocks, because the mempool an hour from now is not this one.
Neither question is “what will demand do.” Both methods are blind to a spike that has not started, which is why every estimator is at its worst during the events people most want help with.
How does the historical estimator work?
By bucketing fee rates and tracking confirmation outcomes over three decaying horizons.
Fee rates are placed in buckets spaced five per cent apart, from 100 to ten million satoshis per thousand virtual bytes. For every transaction the node sees enter the mempool and later sees confirmed, it records which bucket it was in and how many blocks it took. Three horizons run in parallel:
short 12 periods × 1 block decay 0.962 fast-moving, noisy
medium 24 periods × 2 blocks decay 0.9952 the default workhorse
long 42 periods × 24 blocks decay 0.99931 up to a week
The decay is the clever part. Rather than keeping a window and dropping old data at its edge, each bucket’s counts are multiplied by the decay factor on every block. The short horizon forgets most of a day’s history within a day; the long horizon remembers for weeks. Three different memories of the same events, consulted according to how far ahead you asked.
The answer is then the lowest bucket whose confirmation record clears a success threshold — 85 per cent at the requested target, with 60 and 95 per cent used when checking half and double the target. A bucket also has to carry enough transactions to be meaningful, or it is merged with its neighbours until it does.
The two modes exposed by estimatesmartfee fall out of this. Economical
answers from the shortest horizon that has data, responding quickly to a
quiet mempool. Conservative consults longer horizons too and takes the
higher answer, so it is slower to believe that fees have fallen. The
difference is a judgement about regret, not about accuracy: the
conservative mode exists for transactions you cannot easily replace.
Why does it refuse to answer sometimes?
Because an estimate built from stale or thin data is worse than no estimate.
A node that has been offline has no record of the intervening blocks, and its buckets describe a market that may no longer exist. Core will not use fee data older than sixty hours unless explicitly told to — the default for accepting stale estimates is off — so a freshly started or long-dormant node returns an error rather than a number. Wallets that treat that error as zero produce the worst possible outcome, which is why the error is worth knowing about.
The same applies to targets the data cannot support. Ask for a one-block target on a node with little history and the honest answer is a failure. The estimator is allowed to say so.
What does the mempool estimator add?
A reading of right now, derived from the block the node would build.
The mempool estimator runs the node’s own block-construction algorithm against the current mempool, producing the template a miner using the same software would produce. It then takes percentiles of the fee rates of the selected chunks, ordered by mining score: the 75th percentile is returned as the economical estimate and the 50th as the conservative one.
That ordering reads backwards until you picture the block. Chunks are sorted from most to least profitable, so the 50th percentile sits halfway down — a rate comfortably inside the block — while the 75th sits nearer the bottom edge, cheaper and closer to being cut. Deeper into the block means safer and dearer; nearer the margin means cheaper and more easily displaced.
Two guards constrain it. The target is capped at two blocks, because beyond that the mempool stops being evidence. And the estimator checks whether recent blocks actually resembled the node’s mempool: over a six-block window, if the mempool’s transactions did not account for at least three-quarters of the weight those blocks contained, coverage is treated as too low and the estimator declines. That check catches the cases that would otherwise poison it — a node with a partial view of the network, or miners including transactions it never saw.
Why take the lower of the two?
Because the combination is designed to avoid overpaying, and each estimator fails in the direction the other catches.
The manager asks both and returns the lower, falling back to the historical figure when the mempool estimator has no answer, and failing only when the historical one is unavailable. The asymmetry is deliberate. After a demand spike subsides, the historical estimator is still remembering the spike and quotes too high for hours; the mempool knows immediately that the queue has cleared. Conversely the mempool can be emptied by a run of fast blocks and imply a fee rate that will not hold once the next wave arrives, and the historical record is the thing that remembers waves exist.
Taking the minimum means a user overpays less often and underpays more often, which is the right trade when underpaying is recoverable and overpaying is not. A transaction that was too cheap can be replaced at a higher rate; a transaction that was too expensive is simply confirmed, with the overpayment gone.
What is the floor beneath the estimate?
A relay policy, not a consensus rule, and it moves.
Every estimate sits above a floor that has nothing to do with estimation. Bitcoin Core sets its default minimum relay fee to 100 satoshis per 1,000 virtual bytes, or 0.1 sat/vB. A standalone transaction below a particular node’s threshold ordinarily stops there. Other nodes can configure a lower floor. A qualifying package can also pay for a low-fee parent through its child. Whether a miner includes the transaction depends on the miner’s policy and what reaches its mempool.
The floor also rises under load. A node’s mempool has a size limit, and when it fills, the lowest-paying packages are evicted and the node raises its minimum to the rate of the cheapest thing it dropped. That number then decays back toward the default as space frees up. During a busy period, a transaction can therefore be relayable when constructed, unrelayable a few minutes later, and forgotten entirely by nodes that have evicted it — while still sitting in the sender’s wallet looking pending.
This is why the fee market is better understood as an auction with a reserve price than as a queue. There is no queue. There is a set of independently maintained mempools, each holding what it can afford to hold, and a transaction below the reserve is not waiting its turn.
Why can no estimator get this right?
Because the quantity being estimated depends on decisions nobody has made yet.
A fee rate is the clearing price of an auction for the next block’s space, and the bidders include people who have not opened their wallets. An estimator reading history is extrapolating; an estimator reading the mempool is assuming nobody else shows up. Both assumptions break under the same conditions — a sudden surge in demand, or its sudden end — and those are precisely the moments when a wrong answer costs the most.
The practical conclusion is that fee estimation is not the tool to get right. The tools that matter are the ones that make a wrong estimate cheap: replace-by-fee for bumping a transaction that is stuck, child-pays -for-parent when the stuck transaction is not yours to replace, and batching so that fewer transactions need estimating at all. A wallet with good fee estimation and no bumping is worse than the reverse.
Check it yourself
Compare the two modes at the same six-block target on your own node. Then change only the target to see how much the longer deadline matters.
bitcoin-cli estimatesmartfee 6 CONSERVATIVE
bitcoin-cli estimatesmartfee 6 ECONOMICAL
bitcoin-cli estimatesmartfee 144 ECONOMICAL
Results are in BTC per thousand virtual bytes, so multiply by 100,000 to read them as satoshis per virtual byte. Then look at what the mempool itself says:
bitcoin-cli getmempoolinfo
Compare mempoolminfee with minrelaytxfee in the same output. Both are
quoted in BTC/kvB. When the former is higher, your node is applying a
rolling floor above its configured relay minimum. Another node with more
room can report a different number at the same block height.
What remains uncertain
Whether combining estimators is better than choosing one. Taking the minimum is a reasoned default rather than a measured optimum, and the measurement is awkward to make: judging an estimator requires knowing what would have happened at a different fee rate, which is unobservable. The design is defensible and it is not validated.
How much the mempool-coverage check misses. Requiring three-quarters coverage over six blocks catches a node with a poor view of the network. Whether it catches miners including out-of-band transactions, or a period where template policies diverge across pools, depends on how large that share grows, and nobody is publishing it.
Whether wallets will surface any of this. The node exposes modes, targets, failures and a relay floor. Most wallets show three buttons. The information needed to make a good fee decision exists and is almost never presented, and that gap, rather than the estimator, is where most overpayment actually happens.