How Bitcoin Works: Blockchain, Mining, Halvings and the 21 Million Cap
Bitcoin is a shared ledger kept honest by math and competition rather than a bank. This explainer walks through how transactions move, what miners actually do, why new supply is cut in half roughly every four years, and what the 21 million limit means for anyone trying to understand the asset.
Bitcoin is easy to buy and surprisingly hard to explain. Underneath the price charts is a fairly simple idea: a public ledger that thousands of computers keep in sync, where new entries are added only when someone proves they have spent real computing effort, and where the total number of coins is fixed in the rules from day one. Understanding those mechanics will not tell you what bitcoin is worth, but it does make news about halvings, mining and fees far easier to follow.
The problem bitcoin set out to solve
Digital money has always had a "double-spend" problem. A file can be copied, so what stops someone from sending the same digital dollar twice? Traditionally the answer is a trusted middleman, a bank or a payment network, that keeps the official record of who owns what.
In October 2008, a person or group using the name Satoshi Nakamoto published a short white paper proposing a different answer: let everyone keep a copy of the record, and make it very expensive to rewrite history. The network launched in January 2009, and the core design has stayed recognizably the same since.
The blockchain: a shared ledger
The ledger is called the blockchain because transactions are grouped into blocks, and each block contains a cryptographic fingerprint (a hash) of the block before it. Change anything in an old block and its fingerprint changes, which breaks the link to every block that follows. Tampering is therefore obvious to anyone checking the chain.
Copies of the blockchain are kept by nodes, computers running bitcoin software that independently check every transaction and block against the rules. There is no master copy. If a block breaks a rule, such as spending coins that do not exist, honest nodes simply reject it.
How a transaction moves
- You sign a transaction with your private key, the secret that proves you control certain coins. Wallet software does this for you.
- The transaction is broadcast to the network and waits in a pool of unconfirmed transactions.
- A miner includes it in a block, usually prioritizing transactions that pay higher fees.
- The block is added to the chain, and the transaction now has one "confirmation." Each later block adds another.
The more confirmations a transaction has, the harder it is to reverse. Exchanges and merchants set their own thresholds, and several confirmations is a common convention for larger amounts. Because blocks arrive roughly every 10 minutes on average, settlement on the base layer takes minutes, not seconds. Faster payment systems, most notably the Lightning Network, have been built on top to handle small, frequent payments.
Keeping control of the private key is the user's responsibility; lose it and the coins are effectively gone. Our guide to crypto wallets and custody covers how exchanges, hardware wallets and self-custody compare.
Mining and proof of work
Mining is how new blocks get added and how new bitcoin enters circulation. Miners bundle pending transactions into a candidate block and then race to find a number that, combined with the block's contents and run through the SHA-256 hash function, produces a result below a target value. There is no shortcut: the only way to find a valid answer is to guess, trillions of times per second, using specialized hardware.
The first miner to find a valid block broadcasts it, other nodes verify it instantly, and that miner earns the block reward: newly created bitcoin plus the fees paid by the transactions inside the block.
This system, called proof of work, is what makes rewriting history expensive. To change a past transaction, an attacker would need to redo the work for that block and every block since, faster than the rest of the network combined. That cost is the security model.
Difficulty adjustment: keeping time steady
More miners joining the network would normally mean faster blocks. Bitcoin compensates automatically. Every 2,016 blocks, roughly every two weeks, the network recalculates the difficulty so that blocks keep arriving at about one every 10 minutes on average. If total computing power rises, finding a block gets harder; if miners switch off, it gets easier.
This self-correcting clock is why bitcoin's issuance schedule is predictable years in advance, regardless of how much hardware is pointed at it.
Halvings: new supply cut in half
Every 210,000 blocks, roughly every four years, the new-coin part of the block reward is cut in half. This is the halving.
| Period | New bitcoin per block |
|---|---|
| 2009 launch | 50 |
| After 2012 halving | 25 |
| After 2016 halving | 12.5 |
| After 2020 halving | 6.25 |
| After 2024 halving | 3.125 |
The next halving is expected around 2028, though its exact date depends on how quickly blocks are found. Halvings reduce the flow of new coins, which is why they attract so much attention. Whether they move the price is a separate question: the schedule is public and known in advance, and past market behavior around halvings has coincided with many other factors, so any single cause is hard to isolate.
Halvings also squeeze miners. When the reward drops, miners with higher electricity costs or older equipment can become unprofitable, which is why mining has concentrated in places and companies with cheap power.
The 21 million cap
Add up a reward that starts at 50 and halves every 210,000 blocks, and the total converges on just under 21 million bitcoin. That limit is not a separate promise; it is the arithmetic outcome of the issuance rules. The final fractions are expected to be mined around 2140.
Each bitcoin is divisible into 100 million units called satoshis, so the fixed supply does not prevent small payments. In practice, the number of usable coins is lower than the number issued, because coins sent to lost keys can never be spent again.
Could the cap change? Technically the rules are just software, but changing them requires the people running nodes to adopt the change. A higher cap would undercut the main reason many holders value bitcoin, so it is widely regarded as one of the network's most durable features.
What this means for understanding the asset
The mechanics explain several things investors see in the news:
- Fees rise and fall with demand for block space, because blocks have limited capacity.
- Mining company results are tied to the bitcoin price, the difficulty level, energy costs and the halving cycle.
- Price is not set by the protocol. Supply follows a fixed schedule; demand does not. That mismatch is one reason bitcoin has historically been far more volatile than stocks or bonds.
Americans can now gain exposure in several ways, including directly through exchanges and through exchange-traded products; our explainer on spot bitcoin ETFs compares those routes. Whatever the route, the IRS treats digital assets as property, so sales and trades can create taxable gains or losses.
Understanding how the system works is the starting point, not the conclusion. Volatility, custody risk, regulation and how any holding fits within a broader plan all matter as much as the code.
This article is for general information and education only and is not financial, investment, tax or legal advice. Consider your own circumstances and consult a licensed professional.
Frequently asked questions
Who controls bitcoin?
No single company or government runs the network. Thousands of independently operated computers, called nodes, each keep a copy of the ledger and enforce the same rules, and changes to those rules only take effect if the people running that software choose to adopt them. Exchanges, miners and developers all have influence, but none can change the rules alone.
What happens when all 21 million bitcoin have been mined?
Based on the current halving schedule, the last fractions of a bitcoin are expected to be issued around the year 2140. After that, miners would be paid only through transaction fees. Whether fees alone will be enough to keep the network secure is an open question that economists and developers continue to debate.
How is bitcoin taxed in the US?
The IRS treats digital assets such as bitcoin as property, not currency. Selling, trading or spending bitcoin can trigger a capital gain or loss, and mining or staking rewards are generally taxed as income. The IRS publishes current guidance on its digital assets page, and a tax professional can apply it to your situation.