Crypto / Evergreen
Coin selection determines which past receipts fund a payment
Coin selection is the wallet's choice of which available UTXOs to consume when constructing a new Bitcoin transaction with sufficient value.
Coin selection is an operational and privacy choice as well as an arithmetic task.
The distinction that matters
Coin selection is the wallet's choice of which available UTXOs to consume when constructing a new Bitcoin transaction with sufficient value. Bitcoin transactions consume previously created unspent transaction outputs, commonly called UTXOs, and create new outputs with their own spending conditions. The network does not simply subtract a number from a conventional account. Inputs identify earlier outputs; authorization data satisfies their conditions; outputs define the next allocation.
How the mechanism works
Different selections can change transaction size, fees, change creation, and the public links among earlier receipts even when the recipient receives the same amount. This structure explains change, consolidation, and why a transaction can involve several inputs even when the payment is directed to only one recipient. The referenced outputs must exist and remain unspent, the signatures and scripts must satisfy applicable rules, and the new transaction must not create value beyond its inputs. Wallet software automates much of this construction, but that automation can hide meaningful choices.
A worked situation
Consider this hypothetical situation: A hypothetical wallet can fund a payment using one large output or ten small outputs, each representing a separate earlier receipt. The ten-input construction generally requires more transaction data and can publicly connect those receipts through their use in one common spending transaction.
Where interpretation can fail
A strategy that minimizes the immediate fee can leave awkward small outputs, while a strategy that consolidates now can cost more during congestion. Review the selected input set and resulting change alongside the payment amount, especially when several accounts or accounting categories share one wallet. Coin selection is an operational and privacy choice as well as an arithmetic task.
The wider technical implication
Selection also determines which outputs remain available afterward. Spending a large output can create fresh change, while combining exact-sized outputs may avoid change but reveal more historical linkage. Wallet algorithms can optimize different objectives, including immediate fee, expected future cost, privacy, or avoidance of unnecessary small outputs. There is no single selection that is best under every future fee path and payment need. A clear explanation should name the objective being optimized. Two wallets can construct different valid transactions for the same payment because they make different trade-offs about the rest of the sender's inventory.
A global perspective
Bitcoin transaction rules are network rules. Merchant acceptance, refunds, accounting treatment, and legal payment finality can depend on separate local agreements or laws.
Sources & further reading
Bitcoin Developer Guide — Transactions ↗Bitcoin Developer Guide — Payment processing ↗Sources checked Oct 27, 2026. Educational examples. Historical observations are attributed to their sources. No affiliation with cited organizations.
Make the idea stick.
Mark complete when you are ready. Reaching the end alone does not mark a lesson complete.
What assumption in this guide would change the result in a different situation? Revisit the example and explain that change in your own words.
Explore crypto →