The balance is a sum calculated by the wallet
Suppose you received three payments: 20,000, 30,000 and 50,000 satoshis. The network does not maintain a row saying ‘balance: 100,000’. There are three separate unspent outputs, and the wallet finds which ones its keys can spend. It presents their sum as a user-friendly balance.
A UTXO comes from a particular transaction, has an exact value and carries a locking condition. Once a valid later transaction uses it as an input, it becomes spent and can never be used again. New outputs take its place. Full nodes maintain the current set of unspent outputs so that double spending can be detected efficiently.
An output cannot be torn in half
If you have a UTXO worth 50,000 satoshis and want to pay 18,000, the transaction consumes the original output in full. It might create 18,000 satoshis for the recipient, 31,500 satoshis as change back to your wallet, and leave 500 satoshis as the fee.
On a block explorer, the change address may look like a second recipient even though it belongs to the sender. The wallet normally creates it automatically. If change were omitted, the entire difference between the inputs and all other outputs could be treated as a miner fee. Building raw transactions without sufficient knowledge is therefore unsafe.
- selected UTXOs are consumed in full
- the payment and change become new, separate outputs
- the fee is not a separate output; it is the difference between total inputs and outputs
Coin selection affects both cost and privacy
A wallet must decide which UTXOs to use. More inputs generally mean a larger transaction and therefore a higher total fee at the same fee rate. Many tiny outputs may become uneconomic to spend when block space is expensive because their inputs consume more data than their value justifies.
Combining several UTXOs in one transaction also publicly suggests that they may share an owner. This is not mathematical proof of identity, but it is a commonly used analytical heuristic. A capable wallet therefore balances the immediate fee, privacy, change size and future usability of its outputs.
The UTXO model enables independent verification
When a node receives a transaction, it looks up the named UTXO for each input, checks the spending condition and verifies that the outputs do not exceed the value permitted by the inputs. After accepting a block, it removes spent items from its UTXO set and adds new spendable outputs.
The node does not have to trust a balance reported by somebody else's wallet. It derives the state from its own validated history. The price of this model is a less intuitive interface and the need to manage outputs sensibly. Wallets hide these details, but they become important again when fees are high or privacy matters.