Deciphr Academy
Track 1 · Module 3 · Lesson 4 of 6 · 6 min read

What is a UTXO, and why does a Bitcoin wallet give you change?

Short answer

Bitcoin doesn't store account balances. It stores unspent transaction outputs (UTXOs), separate amounts waiting to be spent, and your wallet adds them up to show a balance.1 Like banknotes, they can't be partly spent, so a payment usually sends the leftover back to you as change.2

0.30 BTCUTXO0.25 BTCUTXOTransaction0.55 BTC in0.40 BTCto Tomás0.149958 BTCchange to Brindlecovefee 0.000042 BTCkept by the minerNotes are spent whole. The leftover comes back as change.
Fig. 4. Two coin notes go in. Out come the payment and the change. The gap left over is the miner's fee.

No balances, just notes

Your wallet shows a balance, but that is not what Bitcoin stores. Wallets make it look as if bitcoin sits in a wallet, but it really moves from transaction to transaction.1,3

Each transaction has inputs and outputs. Each input spends an output from an earlier transaction.1 An output that hasn't been spent yet is called an unspent transaction output, or UTXO.1

So when your wallet shows 10,000 sats, it means you have 10,000 sats waiting in one or more UTXOs.1

Each note is spent once, in full

Each output can be used as an input only once. Using it again would be a double spend, which the network refuses.3

Inputs work like banknotes: they can't be partly spent.2 If you pay for a $5 item with a $20 note, you get $15 back. Bitcoin works the same way. The transaction adds a second output that pays the leftover back to you. This is the change output.2

To the network, a change output looks like any other payment.2 For privacy, wallets often send change to a brand-new address of yours.2,1

The whitepaper planned for this. A normal transaction has one input, or several small ones joined together, and at most two outputs: one for the payment and one for the change.4

The fee is the gap

No line in a transaction says "fee". The fee is simply the difference between what goes in and what comes out.2,4 The miner who adds the transaction to a block keeps that difference.3

This has a sharp edge. The full value of every UTXO you spend must go either to an output or to the miner as a fee.1 So if a change output is left out by mistake, the miner keeps the whole leftover.1

Choosing which notes to spend

Wallets choose which UTXOs to spend. This is called coin selection.2 Unless the notes add up to roughly the payment plus the fee, there will be change.2

Spending lots of small UTXOs at once can cost more in fees, because the transaction gets bigger (Lesson 5 explains why size matters).5

How the quiz works out change

Change = everything that goes in − the payment − the fee. Work in sats, then divide by 100,000,000 to get BTC.

Our viewThinking in notes makes a block explorer much easier to read. A "balance" is just the notes you haven't spent yet.
Sources
  1. Transactions (Bitcoin Developer Guide). Bitcoin Developer Documentation (developer.bitcoin.org).
  2. Mastering Bitcoin, 3rd edition, chapter 2: How Bitcoin Works. Andreas M. Antonopoulos and David A. Harding (CC BY-SA 4.0), GitHub, December 2023.
  3. Block Chain (Bitcoin Developer Guide). Bitcoin Developer Documentation (developer.bitcoin.org).
  4. Bitcoin: A Peer-to-Peer Electronic Cash System. Satoshi Nakamoto (the Bitcoin whitepaper), 2008.
  5. Frequently Asked Questions. Bitcoin.org.

General education built from the publicly available sources listed above. Not financial, legal, tax or investment advice. Naming a company, project or regulator is not an endorsement either way. Last checked 2026-10-22. Terms and disclaimer.