A Bitcoin transaction moves bitcoin from one owner to another and is recorded for good on the blockchain, Bitcoin’s shared public record. Unlike a card payment or a bank transfer, there is no company in the middle. Your wallet signs the transaction; the network’s nodes (computers that each check every transaction against Bitcoin’s rules) pass it along; it waits in a queue called the mempool; and a miner (a computer competing to add the next block of transactions) puts it in a block. You choose the fee, and the fee decides how fast that happens.
This lesson follows a transaction from the moment you press “send” to the point where it is safe to treat as final. You’ll learn how Bitcoin keeps track of coins (the UTXO model), why fees go up and down, what confirmations mean, and how to read a transaction on a block explorer.
How Bitcoin Transactions Work
A Bitcoin transaction is a signed message that says, in effect, “take these particular coins and send them to these destinations.” To see what that means, two ideas come first: keys and coins.
Keys and Addresses in One Minute
Your wallet holds a private key, a very large secret number, and derives from it the addresses (modern ones start with bc1) that you give to people who pay you. Coins sent to an address can only be spent with a valid digital signature made with the matching private key: anyone can check the signature, but nobody can make one without the key. Your seed phrase, the 12 or 24 words a wallet asks you to write down, is a backup from which all your keys can be recreated. Keys, Addresses and Signatures in Plain Language explains how this works.
Inputs, Outputs, and the UTXO Model
Bitcoin doesn’t keep an account balance for you the way a bank does. It keeps track of individual chunks of bitcoin, each locked to an address. A chunk that hasn’t been spent yet is an unspent transaction output (UTXO). Your “balance” is just the sum of the UTXOs your keys can spend.
A transaction spends one or more UTXOs whole (its inputs) and creates new ones (its outputs). If the inputs add up to more than you want to send, one output returns the rest to you as change. Whatever is left over, inputs minus outputs, is the fee, and it goes to the miner.
An example:
- You have one UTXO worth 0.5 BTC.
- You want to send 0.3 BTC to a friend.
- Your transaction creates two outputs: 0.3 BTC to your friend and 0.1997 BTC back to you as change.
- The difference, 0.0003 BTC, is the fee.
What Actually Happens When You Send Bitcoin
- Input selection: your wallet picks UTXOs that cover the amount plus the fee.
- Output construction: it sets the destination, the amount and a change address.
- Signing: it uses your private key to sign each input, proving you may spend them without revealing the key.
- Broadcasting: it sends the signed transaction to a few nodes, which check it and pass it on.
- Mempool: the transaction waits with other unconfirmed ones until a miner includes it.
- Confirmation: once it is in a valid block, it has its first confirmation.
Digital Signatures Prove Ownership
Every node checks every signature before accepting a transaction, and rejects the transaction if one doesn’t match. That is how Bitcoin stops theft without a bank: you can’t spend coins you can’t sign for. Why a signature can’t be forged is covered in the keys and signatures lesson.
What Is the Mempool?
The mempool (“memory pool”) is where valid but unconfirmed transactions wait for a miner to include them in a block.
How the Mempool Functions
There is no single mempool. Each node keeps its own, and because nodes pass transactions to each other, most of them hold nearly the same set within seconds.
- It’s temporary: a transaction can be dropped if the node’s mempool fills up with better-paying ones, or after about two weeks unconfirmed. Dropped doesn’t mean cancelled: the transaction can be rebroadcast.
- Its size varies: it can hold hundreds of thousands of transactions at busy times and nearly empty out on quiet days.
- It works like an auction: miners prefer transactions that pay more per unit of space, so you bid for block space with your fee rate.
How Miners Select Transactions
A block can hold at most 4 million weight units of data (explained under fees below). Miners fill it to earn as much as possible from fees. They rank transactions by fee rate, but they treat linked transactions as groups: if a transaction spends an output of another unconfirmed one, the parent must go in the block first, and a high-paying child can pull its low-paying parent in with it. So a block isn’t simply sorted from highest to lowest fee.
At busy times a low fee can leave a transaction waiting for hours or days. On quiet days, such as early November 2026, a fee of 1 sat/vB is often enough for the next block. Since Bitcoin Core 29.1, nodes by default relay transactions paying as little as 0.1 sat/vB, and some miners include them.
Mempool Congestion and Its Effects
When more people want to transact than blocks can hold, the queue grows and fees rise as people outbid each other. mempool.space shows the queue live and suggests fee rates. For frequent small payments there is a second option that keeps most of them off the blockchain: the Lightning Network, described below with its trade-offs.
Bitcoin Transaction Fees Explained
Fees pay for block space. Unlike card networks, which charge a percentage of the amount, Bitcoin fees depend on how much space your transaction takes, not how much it moves. Sending 0.001 BTC or 1,000 BTC costs the same if the transactions are the same size.
Fees Measured in sat/vB
Space is measured in virtual bytes (vB). Since the SegWit upgrade in 2017, each piece of a transaction gets a “weight”: the signature data (called the witness) counts 1 weight unit per byte, and everything else counts 4. Divide the total weight by 4 and you get the virtual size in vB. Because signatures get this discount, the same payment costs less from a modern address than from an old one. A simple payment with one input and two outputs is about 226 vB from an old address starting with 1, but about 141 vB from a native SegWit address starting with bc1q.
Fee rates are quoted in satoshis per virtual byte (sat/vB). At 20 sat/vB, a 141 vB transaction costs 2,820 sats, about $2 at November 2026 prices. At 1 sat/vB it costs 141 sats, about a dime.
Why Fees Fluctuate
About one block every 10 minutes, each with limited space, means block space is in fixed supply. When demand rises, fees rise. Demand jumps with:
- Market swings: big price moves set off waves of buying, selling and moving coins.
- New uses of block space: for example, token protocols that write data to the chain; the launch of one (Runes) at the April 2024 halving, the four-yearly cut in new bitcoin per block, briefly pushed fees very high.
- Time of day and week: weekends and some hours are quieter than others.
How to Estimate Appropriate Fees
Most wallets look at the mempool and suggest a fee rate. A rough guide:
| Priority | Target | Strategy |
|---|---|---|
| High | Next 1–2 blocks (~10–20 min) | Pay the current high-priority rate |
| Medium | Within 6 blocks (~1 hour) | A moderate rate; fine for most transfers |
| Low | Within 24–144 blocks (hours to a day) | A low rate and some patience |
For urgent or large payments, paying a little more is cheap insurance. For anything that can wait, a low fee saves sats.
RBF (Replace-By-Fee) and CPFP (Child-Pays-For-Parent)
If you set your fee too low and the transaction is stuck, there are two fixes:
Replace-By-Fee (RBF): you broadcast a new version of the same transaction, spending the same inputs, with a higher fee. Miners prefer the better-paying version. Since Bitcoin Core 28.0 (October 2024), nodes by default accept such a replacement whether or not the original was marked as replaceable, so as the sender you can usually bump any unconfirmed transaction, as long as your wallet offers the option.
Child-Pays-For-Parent (CPFP): if you are the receiver (or the sender, using your change output), you can spend an output of the stuck transaction in a new transaction with a high fee. A miner who wants that fee has to include the parent too, so both confirm together.
The flip side matters just as much: as a receiver, never treat an unconfirmed payment as final. The sender can replace it with one that pays someone else, including themselves. Wait for at least one confirmation, more for large amounts. Our step-by-step guide to unsticking a transaction walks through both methods.
Confirmations: When Is a Bitcoin Transaction Final?
A transaction gets its first confirmation when it is included in a block, and one more each time another block is added on top.
Why Confirmations Matter
To reverse a confirmed transaction, someone would have to build a different chain without it, starting from before its block, and overtake the chain everyone else is extending. Nodes always follow the valid chain with the most accumulated work, so with less than half the network’s mining power the attacker’s chances shrink sharply with every block. Each confirmation makes a reversal much less likely. The proof of work lesson gives the numbers.
How Many Confirmations Are Enough?
| Confirmations | Time (~) | Use case |
|---|---|---|
| 0 (unconfirmed) | — | Not final: the sender can still replace it. Only for tiny amounts from people you trust. |
| 1 | ~10 min | Reasonable for small amounts |
| 3 | ~30 min | Common for everyday payments |
| 6 | ~60 min | Widely used standard for large amounts |
| 100 | ~16–17 hours | Coinbase maturity: miners must wait 100 blocks before spending newly created coins |
Understanding UTXOs and UTXO Management
How your coins are split into UTXOs affects your fees and your privacy.
The Cash Analogy
UTXOs behave like notes in your wallet. With a $50 note and a $20 note, you have $70, but no single $70 object. To pay $60, you hand over both and get $10 back.
Change Outputs
- Every change output is a new UTXO you’ll spend later.
- Each input adds size, so spending many small UTXOs costs more.
- Change can reveal things: if observers can tell which output is change, they learn which coins are still yours.
Why UTXO Management Matters
If you receive many small payments, you collect many small UTXOs. Spending them later means a big transaction with a big fee, and when fees are high, very small UTXOs can cost more to spend than they are worth.
- Use a new address for every payment you receive. Your wallet does this automatically. It doesn’t create extra UTXOs (that depends on the number of payments, not addresses), and reusing an address publicly links all the payments to it. See why your address keeps changing.
- Consolidate carefully. Combining small UTXOs into one when fees are low saves money later, but it also publicly links those coins as belonging to the same owner. Only consolidate coins you don’t mind connecting.
- Coin control: some wallets let you choose which UTXOs to spend, which helps with both fees and privacy. Our lesson on UTXO management and coin control covers it in depth.
When On-Chain Is Too Slow or Too Costly: Lightning
Waiting about ten minutes for a first confirmation, and paying for block space, is fine for savings but awkward for buying a coffee. The Lightning Network is a second layer built on top of Bitcoin for small, fast payments. Two parties lock bitcoin into a shared channel with one on-chain transaction, then pay each other by signing updated balances between themselves; a payment can also hop across other people’s channels to reach someone you have no channel with. Only opening and closing a channel touch the blockchain. Payments arrive in seconds and usually cost a few sats or less.
The costs are real, and worth knowing before you rely on it:
- Getting in and out costs on-chain fees: opening and closing a channel are ordinary Bitcoin transactions.
- Liquidity: a channel can only send what sits on your side of it and receive what sits on the other side, so a new wallet may have to pay for “inbound capacity” before it can receive.
- Someone has to keep watch: if a channel partner broadcasts an old balance, you, or a watchtower service acting for you, must spot it within a set time and claim the funds back. A wallet that stays offline too long is exposed.
- Custody: many of the simplest Lightning apps hold the coins for you, like an exchange does. Non-custodial wallets keep the keys on your device but ask more of you.
Lightning has its own security model, different from the base layer’s, so treat it as a spending wallet, not a vault. Course 4 covers it properly, starting with the Lightning Network explained; watchtowers and channel backups have their own lesson.
Reading a Bitcoin Transaction
Here is how to read what a block explorer such as mempool.space shows you.
Transaction Components
| Field | Description |
|---|---|
| TXID | A unique 64-character identifier: a hash of the transaction’s data. For SegWit transactions it leaves out the signature (witness) data |
| Inputs | The earlier UTXOs being spent, each with its signature |
| Outputs | The new UTXOs created, each locked to an address |
| Amount | The total value of the outputs |
| Fee | Total inputs minus total outputs |
| Size / Weight | Size in bytes, weight in weight units (WU), and virtual size in vB (weight ÷ 4) |
| Fee rate | Fee divided by virtual size, in sat/vB |
Breaking Down an Example
Suppose an explorer shows:
- Inputs: 1 input from bc1q…xyz, spending 0.15000000 BTC
- Outputs: 0.10000000 BTC to bc1q…abc and 0.04985600 BTC to bc1q…def
- Fee: 0.00014400 BTC (14,400 sats)
- Size: 141 vB
- Fee rate: 102.1 sat/vB
- Status: Confirmed (3 confirmations)
The sender spent one 0.15 BTC UTXO, paid 0.1 BTC to someone, most likely got 0.049856 BTC back as change, and paid 14,400 sats to the miner. At 102 sat/vB that was a very high fee, the kind people pay when blocks are full and they want the next one.
Using Block Explorers
A block explorer is a website that lets you look up any transaction, address or block. mempool.space (open source, with a good live view of the mempool) and blockstream.info are widely used. Search by TXID, address or block height.
Looking up your own addresses on someone else’s website tells that site which addresses you’re interested in, and from which internet connection. For privacy, use Tor (a network that hides your internet address from the sites you visit) or run your own explorer (mempool.space’s software can be installed on your own node); network privacy has its own lesson.
Try It Yourself
This exercise needs no account and puts no coins at risk:
- Open mempool.space and click the most recent mined block.
- Open any transaction in it except the first (that one is the miner’s reward) and find its inputs, its outputs and its fee rate in sat/vB.
- Check that the inputs minus the outputs equal the fee, and guess which output is probably change.
- Look at the transaction again an hour later: it will show about six confirmations.
When you are ready to move real coins, start with a small amount; your first withdrawal to your own wallet walks through it step by step. Keeping the keys behind your transactions safe is the subject of seed phrase security and choosing the right hardware wallet.
Key Takeaways
- Your balance is the sum of your unspent outputs (UTXOs); transactions spend whole UTXOs and send change back to you.
- Fees depend on size in virtual bytes, not on the amount sent; signatures get a discount, so modern bc1 addresses cost less to spend from.
- Unconfirmed transactions wait in the mempool; on quiet days 1 sat/vB is often enough for the next block.
- Senders can usually replace any unconfirmed transaction with a higher-fee version (RBF); receivers can speed one up with CPFP.
- Never treat an unconfirmed incoming payment as final; wait for confirmations, six for large amounts.
- Use a new address for every payment, and consolidate only coins you don’t mind linking.
- For small, frequent payments, Lightning is faster and cheaper, at the price of channel fees, limited liquidity, keeping watch and, in many apps, custody.
Frequently Asked Questions
Can a Bitcoin transaction be reversed or cancelled?
Before it is confirmed, usually yes, by the sender: use RBF to replace it with a version that pays a higher fee back to yourself. Once it is in a block and other blocks are added on top, reversing it would mean out-mining the rest of the network: with less than half the mining power, the chance of doing it falls sharply with every block added.
Why is my Bitcoin transaction taking so long to confirm?
Almost always, the fee rate is too low for current demand. Compare your transaction’s fee rate with the current suggestions on mempool.space. As the sender, bump it with RBF; as the receiver, use CPFP.
What happens if I send Bitcoin to the wrong address?
Bitcoin addresses contain a checksum, so a typo almost always produces an invalid address that your wallet refuses. But if you send to the wrong valid address, for example one swapped in by malware on your clipboard, the coins go to whoever controls it, and there is no way to claw them back. Check the address carefully, including characters in the middle, and send a small test first for large amounts.
How are Bitcoin transaction fees calculated?
The fee is total inputs minus total outputs. Your priority depends on the fee rate (fee ÷ virtual size). Virtual size depends on how many inputs and outputs there are and on the address type: SegWit and Taproot addresses produce smaller transactions than old legacy ones. Your wallet works this out and suggests a rate.
What is the minimum amount of Bitcoin I can send?
Bitcoin Core nodes, by default, won’t relay a transaction that creates an output below a “dust” threshold: 294 satoshis for a standard bc1q output. That is a relay policy, not a consensus rule, but in practice it is the floor, and fees often make tiny amounts uneconomical anyway. For very small payments, the Lightning Network handles amounts of a single satoshi, once you have a channel.
Check Your Understanding
1. You have two UTXOs, 0.3 BTC and 0.2 BTC, and send 0.4 BTC paying a 0.0002 BTC fee. What outputs does the transaction create?
Answer
Two outputs: 0.4 BTC to the recipient and 0.0998 BTC of change back to you. Both UTXOs are spent in full (0.5 BTC in); 0.5 − 0.4 − 0.0002 = 0.0998.
2. A buyer shows you an unconfirmed payment on their phone and asks you to hand over the goods. Why is that risky?
Answer
Until it is in a block, the buyer can broadcast a replacement that spends the same coins to themselves with a higher fee, and most nodes and miners will accept it. Wait for at least one confirmation, and more for larger amounts.
3. Why does a payment from a bc1q address usually cost less in fees than the same payment from an address starting with “1”?
Answer
Fees are charged per virtual byte, and SegWit counts signature data at a quarter of the weight of other data. A bc1q transaction keeps its signatures in that discounted witness part, so its virtual size (about 141 vB for one input and two outputs) is smaller than the legacy version (about 226 vB).
