THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Bitcoin Dust Policy: Thresholds, Change Outputs, and Fee Economics

permalink THAMER
#bitcoin#change#dust#fees#transaction-outputs

A Bitcoin output is often called dust when its value is so small that spending it would cost a significant share of its value. In Bitcoin Core, dust is also a concrete policy classification used when deciding whether a transaction is standard for relay. The threshold is not a single immutable satoshi amount for all outputs.

Dust is a relay-policy concept

Bitcoin consensus does not establish a universal minimum value for every ordinary transaction output. Instead, standard relay policy evaluates an output against an estimated cost of spending it, using the output's script type and the node's dust-relay fee setting. Consequently, different output templates can have different dust thresholds.

A node may reject a transaction with a spendable output below its policy threshold, even though the transaction is not inherently invalid under consensus. Do not equate a dust-policy rejection with a consensus failure.

Why script type matters

An output's future spending cost depends on the kind of unlocking data required. A legacy P2PKH input generally consumes more virtual bytes than a typical native SegWit P2WPKH input. Because policy calculations estimate that future cost, output types can yield different thresholds under the same relay setting.

Dust thresholds should be computed from the target node's policy rather than hardcoded as a universal "546 sats" rule. That number is familiar from common legacy-policy examples but does not describe every script type or configuration.

Change output decisions

Wallet coin selection often faces a choice: create a change output or add a small remainder to the miner fee. Creating change consumes output space now and requires spending the change UTXO later. If the remainder is below the relevant dust threshold, an ordinary standard transaction generally cannot create that change output.

Even above dust, change may be economically inefficient if its future spending cost outweighs its benefit. Wallets should distinguish the policy dust threshold from a higher economic change threshold used by coin-selection algorithms. They are not interchangeable.

Avoid accumulating uneconomic UTXOs

Applications that distribute tiny rewards or create many outputs can impose future consolidation costs. A UTXO that is spendable today may be uneconomic at a higher future fee rate. Before constructing many low-value outputs, model expected input virtual size and fee conditions.

The same principle applies to payment batching and withdrawal systems: minimizing the number of outputs can reduce long-term wallet costs, but output consolidation must not compromise recipients' amounts or accounting.

Operational checks

For a proposed transaction, verify each output's script template, amount, and policy threshold. Check whether any output is provably unspendable, since such outputs are treated differently in dust-policy calculations. Run testmempoolaccept against the intended node version, and do not assume another network peer will apply identical defaults.

Primary references

Bitcoin Core policy implementation: https://github.com/bitcoin/bitcoin/blob/master/src/policy/policy.cpp

Bitcoin Core transaction creation RPC reference: https://bitcoincore.org/en/doc/

Bitcoin developer guide: https://developer.bitcoin.org/devguide/transactions.html

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects