You send someone 60,000 satoshis. When you open the transaction in a Bitcoin explorer, it shows that your wallet spent 100,000 sats and paid two addresses. You only entered one address. Where did the other 40,000 sats go?

In this example, 38,590 sats return to your wallet as change and 1,410 sats pay the miner fee. The person you paid receives exactly 60,000 sats. The reason the amounts look different in your wallet and on the blockchain comes down to how Bitcoin records money.

What is a Bitcoin UTXO?

A UTXO, short for unspent transaction output, is an amount of bitcoin created by an earlier transaction that is still available to spend under its spending conditions. A satoshi, usually shortened to sat, is one hundred-millionth of a bitcoin. So a UTXO worth 100,000 sats holds 0.001 BTC.

Each output has an amount and a rule describing who can spend it. For an ordinary wallet payment, satisfying that rule involves a signature from the right key. A later transaction points to the exact output using the earlier transaction’s ID and the output’s position, counted from zero. Together, these identify an outpoint. Even two payments of exactly the same amount to the same address create distinct outputs if they come from separate transactions. Bitcoin developer guide to transactions

Your wallet adds up the outputs it controls to show a balance. If you receive 40,000 sats and later another 60,000, the screen can show 100,000 sats while the network still records two outputs. That distinction matters the next time you pay someone.

Step 1. Choose the payment and its input

Imagine Maya owes a bookshop 60,000 sats. Her wallet contains one confirmed UTXO worth 100,000 sats. She enters the shop’s on-chain Bitcoin address and the amount. She wants the shop to receive the full invoice amount and will cover the network fee herself.

Her wallet selects the 100,000-sat output as the input to this payment. An output is spent as a whole and can be consumed only once on the confirmed chain. Maya cannot take 60,000 sats from the old output and leave the balance sitting in it. Her wallet will use the full input to create new outputs. Choosing which available outputs to use is called coin selection. Bitcoin Core’s wallet funding documentation

Step 2. Calculate the transaction fee

For this worked example, assume an ordinary native SegWit payment with one input, two outputs, a final size of 141 virtual bytes, and a fee rate of 10 sats per virtual byte. These are illustrative figures. A wallet preparing a real payment estimates its signed size and a fee rate for current conditions.

The calculation is 141 vB × 10 sat/vB = 1,410 sats. A virtual byte (vB) measures Bitcoin transaction weight. Different parts of a transaction contribute different amounts of weight, so a transaction’s virtual size can differ from its raw file size. Bitcoin calculates virtual size by dividing weight by four and rounding up. BIP 141 on transaction weight and virtual size

The fee rate prices the space a transaction uses. Sending twice the value can cost the same fee if the transaction has the same virtual size and fee rate. Fees can also change between two otherwise identical payments when demand for block space changes. A wallet can estimate the rate that might get a payment confirmed within a target number of blocks. New transactions can enter the queue after that estimate. Bitcoin Core’s fee estimator

Step 3. Create the payment and the change

The shop needs 60,000 sats and the transaction needs 1,410 sats in fees. Maya’s wallet subtracts both from the input. 100,000 − 60,000 − 1,410 = 38,590 sats of change.

  • The shop receives 60,000 sats. The first destination in our walkthrough belongs to the shop. Its wallet can later spend the payment under that output’s conditions.
  • Maya receives 38,590 sats back. Her wallet puts the change in a second output, usually using a fresh change address it controls. Maya can spend this output in a later payment.
  • The miner can claim 1,410 sats. The two outputs add up to 98,590 sats. Bitcoin treats the difference between the 100,000-sat input and those outputs as the fee. A miner that includes the transaction can claim that difference in the block’s special first transaction, called the coinbase transaction.

One 100,000-sat input pays 60,000 sats to the bookshop and returns 38,590 sats to Maya as change. The 1,410-sat difference is the miner fee.

The fee has no output address in Maya’s transaction. If an explorer displays a fee underneath the two destinations, it calculated it from the previous output’s value and the new output values. The shop receives the amount on its invoice, and Maya’s balance falls by 61,410 sats in total. Bitcoin’s explanation of fees and change

Step 4. Sign, broadcast and check the payment

Before signing, Maya checks the destination against the bookshop’s invoice, confirms the 60,000-sat amount and reviews the 1,410-sat fee. Her wallet signs the transaction and broadcasts it. Nodes that accept it can hold it in their pool of pending transactions, called a mempool. Her wallet may already show the outgoing payment and pending change at this point.

The payment gets its first confirmation when a miner includes it in a block accepted by the network. The old 100,000-sat output is then spent onchain. The shop’s 60,000-sat output and Maya’s 38,590-sat output are each unspent until a later transaction uses them. If Maya pays again using her change, the next transaction points to this payment and the position of her change output. Bitcoin developer guide to payment verification

An explorer can show the input, both output amounts, the fee, the virtual size and the confirmation status. The transaction itself has no field that identifies the shop or labels an output as change. The shop knows its invoice address. Maya’s wallet recognizes its own change address. Someone looking only at output order or the rounder amount can make a guess and get it wrong. Bitcoin Core’s decoded transaction fields

Why does change go to a different Bitcoin address?

Many wallets derive receiving addresses and change addresses from separate branches of the same account. That allows Maya’s wallet to recognize the 38,590 sats even when the address looks unfamiliar. Looking up only the old receiving address can show a zero balance after the payment. The wallet can still control the change at the new address. BIP 44 on the change branch · Why Bitcoin receiving addresses change in Oath

This matters when restoring a wallet. With the correct seed, passphrase if one was used, and compatible account settings, a recovery wallet can derive the relevant addresses and scan their history. Importing only the private key for Maya’s original receiving address gives access to that key alone. A change output controlled by a separately derived key requires that key too. Oath’s guide to Bitcoin address types and account indexes

The spending condition on a change output also determines when its public key becomes visible. A fresh SegWit key-hash output and a Taproot output reveal different information while they sit unspent. That difference is one reason output types feature in Bitcoin’s quantum computing debate. Oath’s guide to Bitcoin and quantum computing

Why can two wallets pay different fees for the same amount?

Now give Maya the same total as two 50,000-sat UTXOs. Neither one can fund the 60,000-sat invoice by itself. Her wallet needs both inputs. Keep the recipient, output types and fee rate the same. If this two-input transaction measures 209 vB, its fee is 209 × 10 = 2,090 sats. Maya’s change is 37,910 sats. The shop still receives 60,000 sats.

The extra input increased the example’s fee by 680 sats. The signed sizes here illustrate a particular payment shape. Different signatures, input types and output types can change them. This is why a balance built from many small deposits can cost more to spend in one payment than a balance received as one larger deposit. Bitcoin Core’s coin-selection model

A wallet can also consolidate several small UTXOs into one output it controls. Doing so pays a fee now and can reduce the number of inputs a future payment needs. It also puts those previously separate outputs together onchain, which can help an observer associate them. Whether consolidation saves money depends on the fee paid today, future fee rates and whether those outputs would otherwise be spent together. Bitcoin developer guide on transaction privacy

Does every payment need a change output?

No. If the selected inputs exactly cover the recipient amount and the fee for a transaction with one output, there is nothing left to return. A send maximum payment can also direct the spendable amount, after the fee, to a single recipient. Removing a change output makes the transaction smaller, so the wallet must recalculate its fee for that shape.

A tiny remainder presents another choice. Creating a change output costs space now, and spending it later will also cost a fee. A wallet may add a small excess to the fee if returning it would be uneconomical. Bitcoin nodes also apply relay policies for very small outputs, often called dust. The applicable threshold depends on the output type and node policy. An output already onchain can be valid yet cost more to spend than it is worth at a given fee rate. Bitcoin Core’s dust policy

How to read your next Bitcoin payment in Oath

Open Send, choose BTC on the Bitcoin network, and check the recipient’s on-chain address and amount. Oath’s Bitcoin guide explains that Max accounts for the fee. To pay a fixed invoice like Maya’s, enter the invoice amount and review the displayed fee before confirming. After broadcast, use the transaction ID to match the payment in your wallet with its on-chain record. Sending Bitcoin with Oath

To check the numbers yourself, add up the input values, add up the output values, and subtract the second total from the first. For Maya, 100,000 − (60,000 + 38,590) = 1,410 sats. The explorer accounts for the full input. Her wallet shows the amount she actually gave up, and the bookshop can verify exactly what it received.

Explore all articles