How Bitcoin Works
A beginner-friendly explanation of how Bitcoin actually works — blockchain, transactions, mining, and the technology behind it all.
Disclosure: This article contains affiliate links. If you sign up or make a purchase through these links, we may earn a commission at no extra cost to you. This helps us keep the site running and our content free. Read our full disclosure.
The Big Picture
Bitcoin is a system that lets people send money to each other without using a bank. But how does it actually work? How do you prevent someone from spending the same money twice if there’s no bank keeping track?
The answer is a combination of three ideas: a shared ledger, cryptography, and a network of computers that verify everything. Let’s break each one down.
The Blockchain: A Shared Ledger
At the core of Bitcoin is the blockchain — a record of every Bitcoin transaction ever made. Think of it like a giant public spreadsheet that says things like:
“Address A sent 0.5 BTC to Address B on March 1, 2026”
This ledger isn’t stored in one place. Thousands of computers around the world each hold a complete copy. When a new transaction happens, it gets broadcast to the entire network. Every computer checks that the transaction is valid, and then adds it to their copy.
Why Is It Called a “Blockchain”?
Transactions are grouped into blocks. Each block contains a batch of recent transactions, plus a reference to the previous block. This creates a chain — hence, “blockchain.” This chain structure makes it extremely difficult to go back and change old records, because altering one block would require changing every block that came after it.
A new block is added roughly every 10 minutes. As of early 2026, there are over 880,000 blocks in the chain, each containing hundreds of transactions.
What’s Actually Inside a Block?
Each block in the Bitcoin blockchain contains:
- A block header: Metadata including the timestamp, a reference to the previous block (the “parent hash”), and a nonce (explained below)
- A list of transactions: Typically 1,000-4,000 transactions in a standard block
- The Merkle root: A mathematical summary of all transactions in the block that allows efficient verification
- Difficulty target: The standard that the block’s hash must meet to be valid
The reference to the previous block is what creates the “chain” — and makes it nearly impossible to alter history. To change block 500,000, you’d need to redo the proof-of-work for blocks 500,001, 500,002, and every block that came after — while the rest of the network keeps adding more blocks. The further back the block, the more computationally infeasible it becomes.
How Transactions Work: The Full Lifecycle
Here’s exactly what happens when you send Bitcoin to someone, from start to confirmation:
Step 1: You Create and Sign a Transaction
Using your Bitcoin wallet (an app or device), you specify:
- The Bitcoin address you’re sending to
- The amount of Bitcoin to send
- A transaction fee (incentive for miners to include your transaction)
Your wallet uses your private key — a secret cryptographic code — to digitally sign the transaction. This signature mathematically proves that you authorized the transaction, without revealing the private key itself. It’s the digital equivalent of a handwritten signature, except it’s mathematically impossible to forge.
Step 2: Transaction Broadcast
Once signed, your wallet broadcasts the transaction to the Bitcoin network. Your transaction is transmitted to nearby nodes (computers running Bitcoin software), which then relay it to their neighbors. Within seconds, your transaction has propagated to thousands of computers worldwide.
Step 3: Mempool — The Waiting Room
Your transaction enters a “mempool” (short for memory pool) — a queue of unconfirmed transactions waiting to be included in the next block. Every node maintains its own mempool.
The transaction fee you set determines how quickly your transaction gets picked up by a miner. During periods of high network congestion, transactions with higher fees get prioritized. During quiet periods, even low fees get included quickly.
You can see the current state of the mempool and recommended fee rates at sites like mempool.space.
Step 4: Miners Compete to Include Your Transaction
Miners are computers (actually, specialized hardware) that compete to add the next block to the blockchain. To win this competition, a miner must solve a computational puzzle.
The puzzle: find a number (the “nonce”) that, when combined with the block data and run through the SHA-256 cryptographic function twice, produces a hash (a 64-character string) that starts with a specific number of zeros.
This is called proof of work. The hash must meet the current difficulty target. Since SHA-256 is a one-way function, there’s no shortcut — miners must try trillions of random nonces per second until one produces a valid hash.
When a miner finds a valid hash, they broadcast their solution to the network.
Step 5: Consensus — The Network Accepts the Block
Other nodes verify the solution instantly — checking the hash is valid takes microseconds. If valid, nodes add the block to their copy of the blockchain and broadcast it to their peers.
The winning miner receives two rewards:
- The block subsidy — newly created Bitcoin (3.125 BTC as of 2024)
- Transaction fees — the fees from all transactions included in the block
Your transaction is now confirmed — it’s permanently recorded in the blockchain. One confirmation means your transaction is in a block. Most people consider 3-6 confirmations sufficient for finality (each additional confirmation makes reversal more computationally expensive).
Step 6: The Recipient’s Wallet Updates
The recipient’s wallet, which constantly monitors the blockchain for incoming transactions, detects the payment and updates the balance. No action required on their part beyond having a receiving address.
What Is Bitcoin Mining?
Mining serves two critical functions:
- Transaction processing — Miners collect pending transactions from the mempool and bundle them into blocks
- Security — The computational cost of mining makes the network resistant to attack
Who Are Bitcoin Miners?
Bitcoin mining has evolved dramatically since the early days when enthusiasts could mine with home computers. Today, mining is dominated by:
- Large mining farms: Industrial operations with warehouses full of specialized hardware, often located in areas with cheap electricity (hydroelectric power in Iceland, Scandinavia; wind and solar in Texas)
- Mining pools: Groups of miners that combine their computing power and split rewards proportionally
- ASICs: Application-Specific Integrated Circuits — chips designed exclusively for SHA-256 hashing, thousands of times more efficient than general-purpose processors
An individual trying to mine with a home computer today would earn essentially nothing and waste electricity. The mining ecosystem has become highly specialized.
The Difficulty Adjustment
Bitcoin automatically adjusts how hard the computational puzzle is every 2,016 blocks (roughly two weeks). If blocks are being found faster than every 10 minutes, difficulty increases. If slower, difficulty decreases.
This mechanism ensures that new blocks are produced at a consistent rate regardless of how many miners are competing — a crucial feature that makes Bitcoin’s monetary policy predictable.
Why Does Mining Require So Much Energy?
The computational puzzle is deliberately hard to solve but easy to verify. This asymmetry is what secures the network. An attacker wanting to rewrite Bitcoin history would need to redo all the proof-of-work for the blocks they want to change, plus outpace the ongoing work of all honest miners. At Bitcoin’s current scale, this would cost billions of dollars per hour and still likely fail.
The energy cost of mining is a real trade-off. Critics point out the environmental impact — Bitcoin’s annual energy consumption is roughly comparable to a small country. Supporters argue that an increasing percentage of that energy comes from renewable sources, and that the energy cost is the price of a truly decentralized, censorship-resistant financial system that no single authority can shut down or manipulate.
Both sides have valid points. The debate continues.
Keys and Addresses: Your Identity on Bitcoin
Bitcoin uses public-key cryptography — a mathematical system where each user has two related numbers:
Private Key
A private key is a randomly generated 256-bit number — a number so large that generating the same one twice by random chance is essentially impossible. This is the master secret of your Bitcoin. Whoever has it can spend the Bitcoin associated with the corresponding address.
Your private key never leaves your wallet. When you sign a transaction, your wallet uses the private key to generate a signature, but the private key itself is never transmitted to anyone.
Critically: If you lose your private key, you lose access to your Bitcoin permanently. There is no recovery option. No customer support. No “forgot my password.” This is the fundamental trade-off of self-custody.
Public Key and Address
Your public key is mathematically derived from your private key, but cannot be reversed to reveal the private key. Your Bitcoin address is derived from your public key through additional hashing.
You can freely share your Bitcoin address — it’s like a bank account number. Knowing your address tells someone where to send Bitcoin, but gives them no ability to spend it.
Modern Bitcoin wallets (specifically HD wallets — Hierarchical Deterministic) generate a new receiving address for each transaction, improving privacy. All these addresses are controlled by the same underlying key.
Seed Phrases: The Human-Readable Backup
A 12 or 24-word seed phrase is a human-readable representation of your master private key. It looks like: witch collapse practice feed shame open despair creek road again ice least
If your wallet device is lost, stolen, or destroyed, you can recover all your Bitcoin on any compatible wallet using only these words. The seed phrase is everything. Store it offline, in multiple secure locations.
The Bitcoin Network: Nodes and Their Roles
Bitcoin’s network consists of several types of participants:
Full Nodes
A full node downloads and independently verifies the entire blockchain from the genesis block to the present. Full nodes enforce all of Bitcoin’s consensus rules — they’ll reject any block or transaction that violates the rules, regardless of what miners say.
Running a full node is how you achieve maximum trustlessness. You don’t need to trust any third party — you verify everything yourself. Anyone can run a full node; it requires about 500GB of storage and a standard computer.
There are an estimated 15,000-20,000 publicly reachable full nodes worldwide (and many more private ones).
Lightweight (SPV) Wallets
Most mobile and desktop wallets are “lightweight” — they don’t download the full blockchain. Instead, they trust full nodes for transaction data and verify their own transactions using simplified payment verification (SPV). This is a practical trade-off for everyday users.
Miners
Miners are nodes that participate in the proof-of-work competition to add new blocks. A mining node doesn’t have to be a full node, but most serious miners run full nodes to independently verify what they’re building on.
How Is Bitcoin’s Supply Controlled?
New Bitcoin is created through mining rewards. When Bitcoin launched in 2009, miners received 50 BTC per block. This reward halves approximately every four years:
| Year | Halving | Block Reward |
|---|---|---|
| 2009 | Launch | 50 BTC |
| 2012 | 1st halving | 25 BTC |
| 2016 | 2nd halving | 12.5 BTC |
| 2020 | 3rd halving | 6.25 BTC |
| 2024 | 4th halving | 3.125 BTC |
| ~2028 | 5th halving | 1.5625 BTC |
This predictable, diminishing schedule means we know exactly how much Bitcoin will exist at any time. The total supply will never exceed 21 million. Approximately 93% of all Bitcoin has already been mined. The last Bitcoin is expected to be mined around the year 2140.
After the last Bitcoin is mined, miners will be compensated entirely through transaction fees — the fees paid by users to have their transactions included in blocks.
The Consensus Mechanism: How Bitcoin Stays Honest
Bitcoin uses Proof of Work (PoW) as its consensus mechanism — the method by which the decentralized network agrees on the true state of the ledger.
Here’s why it works:
- Computational cost. Adding a block requires real-world resources (electricity and hardware). You can’t fake work.
- Longest chain rule. Nodes always accept the chain with the most accumulated proof of work as the valid chain. An attacker would need to produce more proof of work than the entire honest network to override it.
- Economic incentives. Miners earn rewards by following the rules. Attempting to cheat (e.g., including fraudulent transactions) would result in the block being rejected by other nodes — the miner would waste electricity and earn nothing.
- Transparency. Every transaction and block is public and auditable.
This system doesn’t require trust in any participant — it requires that attackers be unable to outspend honest participants in computing power, which at Bitcoin’s current scale would cost billions of dollars.
The Lightning Network: Bitcoin’s Layer 2
For small, fast payments, the Bitcoin blockchain has limitations — each transaction takes 10-60 minutes to confirm and fees can be high during congestion. The Lightning Network is a second-layer solution built on top of Bitcoin.
Lightning works by opening payment channels between parties. These channels allow unlimited transactions off-chain, with only the opening and closing of the channel recorded on the blockchain. This enables:
- Instant payments: Transactions settle in milliseconds
- Microtransactions: Fees as low as fractions of a cent
- High throughput: The Lightning Network can theoretically handle millions of transactions per second
Lightning is increasingly used for everyday Bitcoin payments. El Salvador’s Chivo wallet, Strike, and Cash App all support Lightning. If you’re using Bitcoin for purchases (rather than savings), Lightning is the practical payment layer.
What Keeps the Network Honest?
Several mechanisms work together:
- Decentralization. No single entity controls the network. Thousands of independent nodes verify every transaction.
- Proof of work. The computational cost of mining makes it expensive to attack the network.
- Economic incentives. Miners earn money by following the rules. Cheating would cost more than it’s worth.
- Transparency. Every transaction is public and auditable. Anyone can verify the blockchain.
- Open source. The Bitcoin software code is publicly available. Anyone can review it, audit it, or run it.
Common Misconceptions
“Bitcoin is anonymous.” Not exactly. Bitcoin is pseudonymous. Transactions are tied to addresses, not names. But with enough analysis, transactions can sometimes be linked to real identities. It’s more private than a credit card but less private than cash. For stronger privacy, additional tools (like CoinJoin) are required.
“Bitcoin is just used by criminals.” Studies consistently show that the vast majority of Bitcoin transactions are for legitimate purposes. Bitcoin’s transparent ledger actually makes it a poor choice for sophisticated criminal activity compared to cash. Blockchain analytics companies have developed sophisticated tools for tracing illicit flows.
“Bitcoin can be hacked.” The Bitcoin network itself has never been successfully hacked. When you hear about Bitcoin “hacks,” these are almost always hacks of exchanges or wallet services — not the Bitcoin protocol itself. The distinction matters enormously.
“Bitcoin is wasteful compared to other cryptocurrencies.” Some cryptocurrencies use Proof of Stake instead of Proof of Work, which uses less energy. Proponents argue that PoW’s energy use is precisely what gives Bitcoin its security properties, and that PoS introduces different security trade-offs. Both approaches involve genuine trade-offs that the crypto community continues to debate.
Key Takeaways
- Bitcoin is a decentralized digital ledger maintained by thousands of computers worldwide
- Transactions are verified by the network through cryptographic signatures and recorded permanently on the blockchain
- Mining secures the network through proof of work and creates new Bitcoin according to a predictable, diminishing schedule
- Private keys control your Bitcoin — lose them, and you lose your money permanently
- The total supply is capped at 21 million and cannot be changed by any government or authority
- The Lightning Network enables fast, cheap payments on top of Bitcoin’s secure base layer
Frequently Asked Questions
How long does a Bitcoin transaction take?
Initial broadcast: seconds. First confirmation (your transaction included in a block): about 10 minutes on average. For everyday purchases, most recipients accept 1 confirmation. For large transactions, 6 confirmations (about 1 hour) provides strong finality. Lightning Network transactions confirm in milliseconds.
Can Bitcoin be reversed?
No. Once a transaction has several confirmations on the blockchain, it is practically irreversible. This is by design — irreversibility is what makes Bitcoin work without a trusted third party. Double-check addresses before sending.
Can Bitcoin be shut down?
Bitcoin has no central server or headquarters. To “shut down” Bitcoin, you’d need to simultaneously disable thousands of computers in dozens of countries, including private computers that can’t be identified. While specific exchanges or services can be shut down, the network itself is highly resistant to censorship.
How is Bitcoin different from other cryptocurrencies?
Bitcoin was the first, has the most established track record, the highest market capitalization, and the most decentralized development process. Most other cryptocurrencies made design trade-offs (more features, faster transactions, lower energy use) at the cost of some of Bitcoin’s security or decentralization properties.
What happens to Bitcoin after all 21 million are mined?
After the final Bitcoin is mined (around 2140), miners will be compensated entirely through transaction fees. This is already anticipated in Bitcoin’s design. Whether this provides sufficient incentive to maintain mining security is an open research question that won’t need to be answered for over a century.
Next Steps
- How to Buy Bitcoin — Ready to buy? Here’s how
- Bitcoin Wallets Explained — Learn about storing Bitcoin
- Is Bitcoin Safe? — Understand the risks
This article is for educational purposes only.
Found this helpful?
This site is free and independent. A small Bitcoin donation keeps it that way.
Related Guides
What Is DeFi? Decentralized Finance Explained
Learn what DeFi (decentralized finance) is, how it relates to Bitcoin, and why it matters. A plain-language guide to understanding this growing financial ecosystem.
Read guide →What is Bitcoin?
A plain-language guide to Bitcoin for complete beginners. Learn what Bitcoin is, why it was created, and how it works — no technical jargon required.
Read guide →Bitcoin for Beginners: Complete Getting Started Guide
Everything you need to know about Bitcoin in one place. A comprehensive guide from 'what is Bitcoin?' to buying your first sats, storing them safely, and understanding the risks.
Read guide →