21Relay
Intermediate curriculum
Lesson 212 minReviewed July 2026

UTXOs Explained

Understand the pieces of spendable bitcoin your wallet tracks, why its displayed balance is a calculated total, and how UTXO selection affects payments.

Learning outcomes

By the end of this lesson, you should be able to

  • Bitcoin tracks unspent outputs rather than account balances.
  • A wallet balance is the sum of UTXOs its keys can spend.
  • Selected UTXOs are consumed completely.
  • Input count can affect both fees and privacy.
1

Your balance is a collection of outputs

A UTXO is a transaction output that has not yet been spent. Your wallet finds outputs its keys can unlock and adds their values together to display a balance.

Two wallets can show the same balance while holding very different UTXO sets: one large output or many small outputs.

2

Inputs are consumed completely

A transaction cannot spend only part of a UTXO. The wallet selects whole outputs, assigns value to the recipient, accounts for the fee and usually returns the remainder as change.

Once confirmed, the original inputs are spent. The recipient output and any change output become new UTXOs.

3

UTXO shape affects cost and privacy

Using more inputs generally creates a larger transaction and can increase its fee. Consolidation may reduce future input count but publicly links the selected outputs.

Wallets usually automate selection. Coin-control tools expose the choice when users need tighter control over fees, labels or privacy.

UTXO selection and change

Inputs are consumed; new outputs are created

See why a wallet spends whole UTXOs and returns the remainder as a new change output.

1

Select inputs

The wallet selects enough existing UTXOs to cover the payment and fee. Selection affects cost and privacy.

Key vocabulary

Terms worth knowing

UTXO
An unspent transaction output that can be used as an input in a later transaction.
Coin selection
The wallet process for choosing which available UTXOs to spend.
Dust
An output whose value is uneconomical to spend under the applicable relay and fee conditions.

Worked example

The same balance, different spending cost

Wallet A holds one 1,000,000-sat UTXO. Wallet B holds one hundred 10,000-sat UTXOs. Their displayed balances match, but spending can require very different transaction sizes.

  1. 1Identify how many inputs each payment needs
  2. 2Estimate transaction virtual size
  3. 3Apply the same sat/vB fee rate
  4. 4Compare privacy effects of combining many inputs

A wallet balance hides its underlying UTXO structure. Input count can materially affect fees and privacy.

Common misconceptions

What learners often get wrong

Misconception

All sats in a wallet form one account balance on-chain.

More accurate

The wallet sums individually spendable UTXOs to present a convenient balance.

Misconception

Consolidating UTXOs is always best.

More accurate

It can reduce future input costs but may reveal common ownership and can be expensive when current fees are high.

Try it yourself

Compare two hypothetical wallets with the same total value.

  • List the UTXOs in each
  • Choose enough inputs for a payment
  • Estimate which transaction is larger
  • Describe the fee and privacy trade-offs

Use fictional values and public information only. Never enter seed words, private keys or other wallet secrets into a learning exercise.

Key takeaways

  • Bitcoin tracks unspent outputs rather than account balances.
  • A wallet balance is the sum of UTXOs its keys can spend.
  • Selected UTXOs are consumed completely.
  • Input count can affect both fees and privacy.

Lesson recap

Check what you learned

Reveal each model answer, then honestly mark whether you understood it or need another review.

1 of 3

Recall

What happens to a UTXO after a confirmed transaction spends it?

References

Further reading

Lesson progress

Loading progress...

Rate this lesson

Was this lesson helpful?

No name or financial information is collected.

Found inaccurate or outdated information? Report a correction