---
title: "Fee Estimation — definition | Nuri Glossary"
description: "Predicting a fee rate likely to confirm soon, based on what the mempool looks like right now."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/fee-estimation"
---

# Fee Estimation

Predicting a fee rate likely to confirm soon, based on what the mempool looks like right now.

## Basically

Fee estimation predicts how much fee your Bitcoin transaction needs for timely confirmation. It uses the queue of waiting transactions to make that prediction.

## Key Takeaways

- Fee estimation predicts how many satoshis per virtual byte a Bitcoin transaction needs to confirm within a target number of blocks. Getting it wrong means overpaying or waiting hours for confirmation.
- Common approaches include mempool-based analysis of pending transactions, historical confirmation tracking, and blended methods that combine both for different time horizons.
- Fee estimation is primarily an on-chain problem: Lightning Network routing fees are deterministic and calculated upfront, eliminating the need for probabilistic guessing.

## What Is Fee Estimation?

Fee estimation is the process of predicting the minimum transaction fee rate needed for a Bitcoin transaction to be included in a block within a desired timeframe. Bitcoin blocks have a fixed capacity of 4,000,000 weight units (roughly 1,000,000 virtual bytes), so transactions compete for space by offering higher fees. Miners prioritise transactions with the highest fee rates, so wallets must estimate what fee rate will be competitive enough for timely confirmation.
The challenge is fundamentally a prediction problem: your wallet must guess what the fee market will look like when the next blocks are mined, not just what it looks like right now. New transactions constantly enter the mempool, demand fluctuates unpredictably, and blocks arrive at irregular intervals. A fee rate that guarantees next-block confirmation during a quiet weekend might leave a transaction stranded for hours during a congestion spike.

## How It Works

Fee estimation algorithms fall into three broad categories. Each has different strengths depending on the confirmation target.

## Mempool-Based Estimation

Mempool-based estimators analyse the current pool of unconfirmed transactions in real time. They project which transactions would fit into the next several blocks based on their fee rates and sizes, then determine the minimum fee rate needed to land within a target confirmation window. A small buffer is typically added to account for new transactions that arrive before the block is mined.
Mempool-based estimation excels at short-term predictions (1 to 6 blocks) because it reflects current demand directly. Its weakness is that the mempool differs across nodes: each node sees a slightly different set of pending transactions, and no node can predict future demand surges.

## Historical Confirmation Tracking

Bitcoin Core's built-in estimator (CBlockPolicyEstimator) takes a historical approach. It tracks how long transactions at various fee rate levels actually took to confirm, grouping them into fee rate buckets and using exponentially decaying moving averages to weight recent data more heavily.
The estimator uses three time horizons. Each has a different decay rate.
The estimator checks multiple confidence thresholds for each target: 60% confirmation probability at half the target, 85% at the target itself, and 95% at double the target. It returns the maximum fee rate across all applicable thresholds.
Bitcoin Core offers two modes: "conservative" (uses longer history, higher fees, more reliable) and "economical" (uses shorter history, lower fees, assumes Replace-by-Fee is available). As of Bitcoin Core v30, the default was changed from conservative to economical, reflecting the philosophy of starting low and bumping fees if needed.

## Blended Approaches

Modern fee estimators increasingly combine mempool analysis with historical data. Mempool-based estimates respond faster to current conditions for near-term targets, while historical data provides a more stable baseline for longer-term targets. Block's Augur library, open-sourced in 2025 and used in production at Cash App, takes this approach by analysing current mempool composition, transaction inflow rates, and block production probability, with confidence-based estimates at 50% (optimistic), 80% (balanced), and 95% (conservative) levels.

## Transaction Size and Fee Calculation

The total fee for a transaction is the product of its size in virtual bytes and the chosen fee rate. Both figures therefore determine what you pay.
SegWit and Taproot address formats reduce the virtual size of a transaction compared with legacy formats. The smaller virtual size directly lowers fees regardless of the fee rate.

## Fee Estimation Tools and APIs

Several services provide fee estimation through public APIs. Each uses a different methodology.
Wallets typically use one or more of these APIs to present you with preset fee tiers such as "fast," "medium," and "economy." Some wallets allow manual fee entry for advanced users, while others lock users into automatic estimates. For a deeper look at how fees interact with block space demand, see the research article on Bitcoin fee market dynamics.

## Why It Matters

Fee estimation directly affects both cost and user experience. During quiet periods, fees can drop to 1 sat/vB (the minimum relay fee), making transactions nearly free, while average fees spiked above $90 during congestion events like the April 2024 halving. A wallet with poor fee estimation might overpay by 10x during calm periods or underpay and leave transactions stuck for hours during spikes.
Fee estimation quality determines operational costs for applications building on Bitcoin. Exchanges processing thousands of withdrawals daily can save significant amounts by using accurate estimation combined with Replace-by-Fee for fee bumping. Payment processors need reliable confirmation within expected timeframes to maintain service quality.
Layer 2 solutions like Spark reduce reliance on fee estimation by moving most transactions off-chain. On Spark, transfers settle instantly without competing for block space, making on-chain fee volatility irrelevant for day-to-day payments.

## Fee Bumping: When Estimation Falls Short

Bitcoin provides mechanisms to adjust fees after a transaction has been broadcast because fee estimation is inherently imperfect. These mechanisms let you respond when the initial fee is too low.
These mechanisms make "economical" fee estimation practical. Wallets can start with a lower fee and bump it only if confirmation takes too long, rather than always overpaying as insurance.

## Lightning Network: Deterministic Fees

Fee estimation is primarily an on-chain concern. On the Lightning Network, routing fees follow a completely different model: each node advertises a fixed base fee (in millisatoshis) plus a proportional fee rate (in parts per million), and the sender's wallet calculates the exact total cost before dispatching the payment.
Lightning fees are typically 100x to 10,000x cheaper than on-chain fees and are known exactly before the payment is sent. There is no probabilistic guessing, no competition for block space, and no risk of overpaying. The scarce resource on Lightning is channel liquidity rather than block space, which is why liquidity management matters more than fee estimation for Lightning node operators.

## Overpayment During Quiet Periods

Conservative fee estimators often suggest rates far higher than necessary when the mempool is nearly empty. A wallet suggesting 10 sat/vB when 1 sat/vB would confirm in the next block wastes user funds. UTXO consolidation and batch transactions are especially costly cases because even small per-transaction overpayments add up.

## Underpayment During Congestion

Mempool-based estimators can underestimate fees if a sudden surge of high-fee transactions arrives after the estimate is generated but before the next block is mined. Transactions paying below the new competitive threshold may wait many blocks or require fee bumping via RBF.

## Mempool Divergence

Each Bitcoin node maintains its own mempool, and not all nodes see the same set of unconfirmed transactions at the same time. An estimator based on one node's mempool view may not reflect what miners actually see. Rapid fee market shifts make this particularly relevant because transaction propagation delays can cause meaningful differences between node mempools.

## Fee Sniping Risk

Fee sniping is a theoretical attack where miners re-mine previous blocks to capture high-fee transactions. Although not directly a fee estimation issue, extremely high fee rates during congestion events increase the incentive for this behaviour. Wallets mitigate this by setting the nLockTime field to the current block height.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
