Coin Selection
Pronunciation: KOYN suh-LEK-shun
Also known as: UTXO Selection, Input Selection
Definition
Coin selection is the wallet process of choosing which unspent transaction outputs to use as inputs for a UTXO-based transaction. The choice affects fees, change, privacy, and the wallet’s future UTXO set. An effective algorithm must fund the payment and fee while avoiding uneconomical inputs, excessive change, unnecessary address linkage, and operational problems such as locked or immature outputs.
Overview
Meaning and scope
Coin selection is the wallet process of choosing which unspent transaction outputs to use as inputs for a UTXO-based transaction. The choice affects fees, change, privacy, and the wallet’s future UTXO set. An effective algorithm must fund the payment and fee while avoiding uneconomical inputs, excessive change, unnecessary address linkage, and operational problems such as locked or immature outputs.
Mechanism and operation
Coin Selection determines which available UTXOs a wallet will consume. Because each input adds transaction weight, using many small outputs can increase the fee. Selecting one large output can be cheaper but may reveal links between funds or create a large Change Output. Algorithms balance several goals: reaching the target amount, minimizing fees, avoiding dust, reducing change, preserving privacy, and maintaining useful future outputs. Some wallets search for an exact or near-exact match, while others group outputs or consolidate them when fees are low. A UTXO can be immature, already reserved by another pending transaction, locked by policy, tied to a specific script, or too small to spend economically at the current feerate.
Practical payment example
A Bitcoin wallet chooses among several UTXOs to fund a payment, balancing transaction fees, change creation, privacy and avoidance of unwanted input combinations.
Operational checks
Coin selection has privacy consequences because spending several UTXOs together can suggest common control. Organizations may separate treasury pools, customer funds, or accounting categories even when a lower-fee combination is technically available. For payouts, the algorithm should be deterministic enough to audit while still adapting to fee conditions.
Distinctions and limits
Wallet software must coordinate concurrent spending so two transactions do not select the same input. Reusing a change address or combining funds from distinct business activities can strengthen that inference.
Related reading
Related definitions: Change Output, Virtual Byte (vByte).
Example
A Bitcoin wallet chooses among several UTXOs to fund a payment, balancing transaction fees, change creation, privacy and avoidance of unwanted input combinations.
Comparison
Wallet software must coordinate concurrent spending so two transactions do not select the same input. Reusing a change address or combining funds from distinct business activities can strengthen that inference.
Key Takeaway
Coin selection funds a UTXO transaction while balancing fees, privacy, change, and future wallet health, so the cheapest immediate choice is not always the best.
Sources
- Bitcoin Developer Guide: Transactions — Bitcoin Developer Documentation (2026-08-02)
- Bitcoin Developer Guide: Wallets — Bitcoin Developer Documentation (2026-08-02)
- Bitcoin Developer Reference: Transactions — Bitcoin Developer Documentation (2026-08-02)