Part 3: Mining & Proof of Work
Mining is the engine that powers Bitcoin — a global competition where thousands of computers race to solve a puzzle, and the winner gets paid in Bitcoin.
If Part 1 told you what Bitcoin is, and Part 2 explained how the blockchain works at a high level, Part 3 is where we pop the hood and look at the engine. That engine is called mining, and it’s one of the most misunderstood — and most fascinating — parts of Bitcoin.
Let’s start with the simple question.
What Is Mining?
The word “mining” is a metaphor — like gold mining, but with computers instead of pickaxes, and math instead of dirt.
In gold mining, you dig through tons of earth hoping to find a nugget. The work is hard, the result is random, and the reward is valuable. Bitcoin mining works the same way: computers burn through trillions of calculations per second, hoping to find a specific number that wins them the right to add the next block to the blockchain. The winner gets a pile of newly-created Bitcoin.
But a better analogy than gold mining is actually a lottery — specifically, a lottery that everyone on earth can play, running 24/7, where a winner is found roughly every ten minutes.
Here’s how it plays out:
- Every ten minutes, a new “puzzle” is announced to every miner on the planet
- Every miner tries to solve it as fast as possible
- The first miner to find the solution shouts “I got it!” to the whole network
- All the other miners check the solution, agree it’s correct, and start working on the next puzzle
- The winner collects the reward in Bitcoin
The puzzle isn’t clever or strategic — it’s pure brute-force guessing. There’s no shortcut, no strategy, no “being smarter than the other guy.” You just guess numbers as fast as you can until you get lucky.
This sounds wasteful. Why would Satoshi design a system based on random guessing? The answer is beautifully elegant: the guessing is the security.
What Is Proof of Work?
Proof of Work (PoW) is the name for this guessing game. It’s the single innovation that makes Bitcoin possible.
Here’s how it works at a technical level — simplified as much as humanly possible:
Every block on the blockchain contains data — the transactions, the time, a reference to the previous block. The miner needs to take all that data, run it through a cryptographic function called SHA-256, and produce a hash (a string of letters and numbers) that meets a specific requirement.
The requirement is: the hash must start with a certain number of zeros.
Think of it like rolling a 20-sided die and needing to roll a 1. On a regular die, you’d keep rolling until you got it. Now imagine rolling a die with 100,000,000,000,000,000,000,000,000,000,000,000,000,000,000 sides (roughly the current difficulty). That’s what miners are doing — trillions of rolls per second across the network, waiting for someone to hit the target hash.
The key insight: proving you did the work is trivially easy. Any node in the network can check your solution in a fraction of a millisecond — they just run the hash function once and check if the output starts with enough zeros. But finding that solution requires an astronomical amount of computation.
This is where the name comes from: you must prove you did the work.
Satoshi borrowed this idea from an existing system called Hashcash, which was originally designed to fight email spam. The idea was: if sending an email cost a tiny bit of computational work, spammers couldn’t send billions of emails for free. Satoshi turned this into: if creating a block costs real computational work, attackers can’t rewrite history for free.
Why Proof of Work Matters
Proof of Work is what makes the blockchain immutable — unable to be changed.
Imagine someone wants to tamper with a past transaction. Maybe they want to reverse a payment they made, or create Bitcoin out of thin air. To do that, they’d need to:
- Find the block containing that transaction
- Recalculate a valid hash for that block (which requires the same brute-force guessing as finding a new block)
- Recalculate valid hashes for every single block after it — because each block references the previous one
The amount of work required grows with every new block added. To rewrite a transaction from six blocks ago, you’d need to redo six blocks of work. To rewrite a transaction from 100 blocks ago — well, good luck. You’d need more computing power than the entire Bitcoin network combined, running for hours or days.
This is why your Bitcoin transaction is considered “confirmed” after six blocks (about an hour). At that point, the cost of reversing it is so astronomically high that it’s effectively impossible.
The security is in the chain. The work is the proof.
Block Rewards: Why Miners Do It
Miners don’t mine for fun. They mine for money.
When a miner successfully finds a block, they’re rewarded in two ways:
1. The Block Subsidy (Newly Created Bitcoin)
Every block comes with a fixed number of newly created Bitcoin. As of 2024 (after the fourth halving), that number is 3.125 BTC per block. At current prices, that’s worth hundreds of thousands of dollars.
This is the only way new Bitcoin enters circulation. There is no other minting mechanism, no central bank printing presses — just this reward, given to miners every ten minutes, slowly and predictably.
2. Transaction Fees
Every Bitcoin transaction includes a small fee, paid by the sender. When a miner builds a block, they choose which transactions to include, and they collect all the fees from those transactions. This is the second part of their reward.
Right now, the block subsidy dwarfs the fees. But every four years, the subsidy gets cut in half — this is the halving we’ll discuss in Part 4. Over time, fees will become the primary incentive for miners.
Here’s the clever part: the block subsidy pays miners for securing the network. Those newly minted coins are effectively the cost of creating a decentralized, trustless, global payment system — paid to the people who run it.
Why Does Mining Use So Much Electricity?
This is the most common criticism of Bitcoin, and it deserves an honest answer.
The Bitcoin network uses roughly as much electricity as a small country. Yes, really. You’ve probably seen headlines: “Bitcoin uses more power than Argentina!” or “Bitcoin is an environmental disaster!”
Here’s the uncomfortable truth: the electricity usage isn’t a bug. It’s a feature.
Remember, Bitcoin’s security depends on the cost of rewriting history. The more energy miners expend, the harder it is for an attacker to overcome them. If mining were cheap, Bitcoin would be insecure. The energy is the moat.
Think of it this way:
- A bank vault is incredibly heavy. It costs a lot to build, install, and move. That weight is what makes it secure — a thief can’t just pick it up and walk away.
- The US military spends hundreds of billions of dollars per year. That spending is what makes the country hard to invade.
- Bitcoin spends electricity. That expenditure is what makes the blockchain impossible to rewrite.
The energy cost creates a wall around every transaction. To undo a Bitcoin payment, you’d need to spend more on electricity than the transaction is worth — and then some.
But there’s more to the story. A lot of Bitcoin mining uses stranded energy — electricity that would otherwise be wasted. Remote hydroelectric dams in China, flare gas from oil wells in Texas, geothermal energy in Iceland. Miners are uniquely flexible: they can set up anywhere with cheap electricity, throttle down when the grid needs power, and soak up excess energy that has no other buyer.
And the trend is moving toward cleaner energy. A 2024 survey by the Bitcoin Mining Council found that over 50% of Bitcoin mining uses sustainable energy — one of the highest rates of any major industry.
The Difficulty Adjustment: The Secret Sauce
Here’s where things get really clever.
What happens if thousands of new miners plug into the network? Blocks would be found faster — maybe every five minutes instead of every ten. That would break Bitcoin’s carefully designed rhythm.
Bitcoin’s solution is called the difficulty adjustment.
Every 2,016 blocks (roughly two weeks), every Bitcoin node in the world looks back at how long it took to find those blocks. If it took less than two weeks (too many miners, blocks found too fast), the difficulty goes up. If it took more than two weeks (too few miners, blocks found too slow), the difficulty goes down.
The difficulty controls exactly how many zeros the hash must start with. More zeros = harder puzzle. Fewer zeros = easier puzzle.
This adjustment happens automatically, based on code that every node runs. No human intervention required. No meeting. No vote. Just math.
The result: whether there are 10 miners or 10 million, Bitcoin maintains a steady heartbeat of one block every ten minutes, on average. This has been true since 2009 and will remain true forever.
Think of it like a thermostat. If a room gets too hot, the AC kicks on. If it gets too cold, the heat kicks on. Bitcoin’s difficulty thermostat keeps the block time locked at ten minutes, regardless of how much computing power is pointed at the network.
Who Can Mine? From CPU to ASIC
In the very beginning, anyone with a laptop could mine Bitcoin. Satoshi Nakamoto mined the genesis block using what was likely an ordinary computer. For the first year or two, people mined on their CPUs while browsing the web.
That didn’t last.
CPU Mining (2009)
Your laptop’s central processor can do about 10-20 million hashes per second (MH/s). In 2009, that was enough to find blocks. By 2010, it wasn’t.
GPU Mining (2010-2012)
Graphics cards (GPUs) are much better at parallel computation than CPUs. Miners discovered that gaming GPUs could do hundreds of millions of hashes per second. Suddenly, people were building rigs with six graphics cards strapped to a wooden frame, mining in their bedrooms. It looked like something from a mad scientist’s lab.
FPGA Mining (2011-2013)
Field-Programmable Gate Arrays (FPGAs) are chips you can program for specific tasks. They were more efficient than GPUs but harder to set up. An intermediate step on the road to…
ASIC Mining (2013 — Present)
An ASIC (Application-Specific Integrated Circuit) is a chip designed to do exactly one thing and nothing else. These mining machines do trillions of hashes per second (TH/s) and are many orders of magnitude more efficient than any general-purpose computer.
The first ASIC miners hit the market in 2013, and the mining world changed forever. Within months, CPU and GPU mining became completely unprofitable. If you’re mining Bitcoin today on your laptop, you’ll never find a single block in your lifetime.
A modern ASIC miner (like the Bitmain Antminer S21) does about 200 terahashes per second — that’s 200,000,000,000,000 hashes per second. Your laptop does about 20 million. The ASIC is 10 million times faster.
Mining Pools: Together We Win
If you’re a solo miner with one ASIC miner, here’s your reality: you’ll find a block, on average, once every several thousand years.
That’s not a great business model.
Enter mining pools. Thousands of miners around the world combine their computing power, share the work, and split the rewards proportionally. It’s like buying a lottery ticket as a group — you win less per person, but you win regularly.
Most mining today happens through pools. The largest pools control a significant percentage of the network’s total hash power, and this has led to concerns about centralization — which brings us to the last and perhaps most important topic.
The Race to Zero: Centralization
There’s a dark side to the story of mining hardware evolution.
Because miners are rational economic actors, they chase the cheapest electricity on earth. Because ASICs are expensive, only well-funded operations can afford them in quantity. Because mining is a commodity business with razor-thin margins, it naturally concentrates in places with the lowest costs.
As a result, Bitcoin mining has become surprisingly centralized:
- Geography: A large percentage of mining hash power is concentrated in a handful of regions — historically China (before the 2021 ban), now the United States (especially Texas), Kazakhstan, and Russia.
- Hardware: A single company, Bitmain, produces the majority of ASIC miners.
- Pools: The top 3-4 mining pools control more than half of the network’s hash power.
This seems to contradict Bitcoin’s promise of decentralization. And it does, to some extent. But there are important counter-factors:
-
Anyone can start mining. ASICs are expensive but not impossibly so — a decent machine costs a few thousand dollars. You can plug it into a pool and start earning immediately.
-
Miners don’t control the protocol. Even if one pool controls 51% of hash power (which would be dangerous), they can’t change Bitcoin’s rules. They can only temporarily reorder transactions or double-spend their own coins. They can’t create Bitcoin out of thin air, change the supply cap, or steal coins from anyone.
-
Incentives align. A mining pool that attacks the network would destroy the value of Bitcoin — and therefore destroy the value of its own expensive mining equipment. The rational choice is to play by the rules.
-
New technology is emerging. Mining chips are getting more efficient, and new form factors (like immersion cooling and containerized mining farms) are expanding where mining is viable.
Still, the centralization of mining is a real concern that Bitcoin’s community continues to debate. It’s one of the few areas where the system’s incentives aren’t perfectly aligned with its ideals.
The Big Picture
Mining is Bitcoin’s engine of security, its method of distribution, and its heartbeat.
- Security: Proof of Work makes the blockchain immutable, anchoring every transaction in real-world energy expenditure.
- Distribution: The block reward slowly and predictably distributes new Bitcoin to those who secure the network.
- Heartbeat: The difficulty adjustment ensures a steady, predictable rhythm of one block every ten minutes.
In Part 4, we’ll dive into the economics: why only 21 million Bitcoin will ever exist, what happens when the block reward keeps halving, and how scarcity drives value.
But for now, here’s what to remember: Bitcoin mining isn’t really about finding coins. It’s about making the network impossible to attack. The energy, the hardware, the competition — it all serves one purpose: creating a ledger that no one can rewrite.
That’s Proof of Work. And it’s one of the most elegant solutions to a hard problem ever invented.
Continue to [Part 4: Why Only 21 Million? — Scarcity and the Halving →](Part 4 - Scarcity and the Halving.md)
Part 3 of the Bitcoin for Beginners series. Next: why Bitcoin’s supply is capped at 21 million, how the halving works, and what happens when the last Bitcoin is mined.