Follow a Bitcoin payment through inputs, change and mining
A Bitcoin balance is a convenient total. Underneath it are spendable outputs from earlier transactions. Work through a fictional 8,000-satoshi payment to understand why a transaction can send money back to its own sender, why a fee is a difference between totals, and how mining relates to new issuance.
Start with the pieces you can spend
One bitcoin equals 100,000,000 satoshis. Bitcoin transaction amounts are accounted for in these integer units. Suppose Noor's wallet controls two unspent transaction outputs, or UTXOs: one worth 7,000 satoshis and one worth 5,000. The displayed balance is 12,000 satoshis, but neither output is a reusable account balance that can simply be reduced in place.
To use these outputs, the new transaction spends them and creates replacement outputs with new spending conditions. Spending an output uses the whole output. A change output directs the unused portion back to conditions controlled by Noor's wallet. That is why an explorer can show more than one output even when Noor intended to pay only one other person.
Account for the fee without guessing
Noor's fictional transaction uses both inputs, pays 8,000 satoshis to a recipient and creates 3,400 satoshis of change. Outputs total 11,400 satoshis. Inputs total 12,000. The remaining 600 satoshis are the transaction fee. They are not a third ordinary output labelled fee.
These numbers demonstrate accounting, not a fee recommendation. Transaction weight and the feerate influence the fee a wallet proposes; the amount being sent does not by itself determine it. The fee for a small payment can therefore be a large share of the payment. Wallet selection of inputs can also change the transaction's size.
Mining adds a block, not permission to ignore the rules
Mining combines transaction selection with a search for a block header that satisfies the proof-of-work target. Other nodes can check the result and independently reject invalid blocks. Finding proof of work cannot make Noor's already-spent output spendable again or make an unauthorized transaction valid.
A miner's block reward can include a newly issued subsidy and transaction fees. The halving schedule reduces the permitted subsidy after each 210,000-block interval on Bitcoin mainnet. It does not cut every transaction fee in half, halve existing wallet balances, or prescribe a market price. Block production is variable, so the height rule is more precise than a calendar countdown.
Balance the transaction
Check both sides: 7,000 + 5,000 = 8,000 + 3,400 + 600. Noor's wallet controls 3,400 satoshis of change after this simplified transaction is accepted. The example omits unrelated wallet outputs and assumes both inputs were available to spend.
| Item | Satoshis | Role |
|---|---|---|
| Input A | 7,000 | Earlier UTXO being spent |
| Input B | 5,000 | Earlier UTXO being spent |
| Recipient output | 8,000 | New payment output |
| Change output | 3,400 | New output controlled by Noor |
| Fee | 600 | Input total minus output total |
Check your understanding
Does the 3,400-satoshi change output mean Noor made a second purchase?
No. It can be the remainder returned to Noor's own spending conditions. An output list alone does not identify who owns every output or explain its business purpose. The wallet's transaction details supply useful additional context.
Check the primary sources
These references explain the rules behind the lesson. The examples above are fictional teaching scenarios written for this dictionary.