CR²CR SQUARED CRYPTO
Explore Colony ↗
Chapter 03 of 06 · The Learning Hive

How Bitcoin Mining Works

Discover what miners actually do, how proof of work secures Bitcoin, and why mining is a competition—not a guaranteed payout.

About 9 minutes · Beginner friendly · Always free
Rows of Bitcoin mining machines with large cooling fans and blue lighting
Explore All Chapters

Bitcoin mining sounds like digging for digital treasure. But no pickaxes are involved—and no one is uncovering coins buried on the internet.

Mining is how Bitcoin's network adds new blocks of transactions to its shared history. Specialized computers compete to solve a mathematical challenge, and the winner may earn a reward for producing a valid block.

1. What is Bitcoin mining?

When people send Bitcoin, their transactions are broadcast to the network. Nodes check whether transactions follow Bitcoin's rules. Miners select eligible transactions, assemble them into a candidate block, and compete to find a valid proof of work for that block.

Think of it as proposing the next page in a shared record book. The miner does the computational work to propose a page, but other network participants independently verify that it follows the rules.

The three jobs working together
① TransactionsPeople broadcast signed payments.
② MinersCompete to propose a valid new block.
③ NodesIndependently verify and accept valid blocks.
Miners and nodes have different roles. A miner cannot make an invalid block acceptable just by using more computing power.

2. Proof of work: the digital puzzle

Bitcoin miners repeatedly calculate cryptographic hashes—short digital fingerprints of block-header data—while changing a value called a nonce and, when needed, other block data.

Each attempt produces a hash that is unpredictable in advance. To qualify, the hash must be below the network's current target. Miners therefore make enormous numbers of attempts, searching for a result that meets the target.

Interactive: Try to find a block

Press the button to test batches of sample nonces. A real Bitcoin miner performs SHA-256 calculations at vastly greater speeds.

SIMULATED BLOCK HEADER · EDUCATIONAL DEMO
0
0
LATEST SHA-256 HASH (HEX)
Press Start Mining
Target for this simplified demonstration: hash begins with 00
Uses real SHA-256 in supported browsers, but simplified sample data and a fixed easy target. This is not Bitcoin block mining, and no real coins or network activity are involved. A valid Bitcoin block requires its entire header hash to be below the current network target.

The key lesson: finding a qualifying hash requires trial and error, but checking a proposed solution is comparatively easy.

Dig Deeper: What is a nonce?

A nonce is a number miners can change in the block header to produce different hashes. Since the nonce field is limited, miners also modify other candidate-block data to continue searching. Each different candidate gives them another chance to find a hash below the target.

3. What happens when someone finds a block?

A miner who finds a qualifying hash broadcasts the candidate block. Other nodes check its proof of work, transactions, and other consensus rules. If valid, they can add it to their view of the blockchain and relay it onward.

From candidate to accepted block
Earlier blockLatest blockNew blockVerifiedVerified✓ VerifiedEach block references the previous block's hashIllustration only. Actual blocks include transaction data and additional fields.

Bitcoin aims for an average of about 10 minutes per block across the entire network—not every 10 minutes for each miner. Actual intervals vary because mining is probabilistic.

Sometimes two miners find competing valid blocks close together. The network eventually converges on the chain with the most accumulated proof of work, and a previously accepted block can become stale. That's one reason additional confirmations matter.

4. Hashrate and mining difficulty

Hashrate measures how many hash attempts a miner can make per second. Higher hashrate generally means more chances to find a qualifying hash, but it also typically means more equipment and electricity.

Understanding the scale
TH/sTrillion hashes per second
PH/sQuadrillion hashes per second
EH/sQuintillion hashes per second

1 PH/s = 1,000 TH/s · 1 EH/s = 1,000 PH/s

Bitcoin also adjusts its mining difficulty approximately every 2,016 blocks, aiming to keep the average block interval near 10 minutes as total network computing power changes.

Interactive: Compare mining power

Slide to change an example miner's hashrate. The bar shows its share relative to an illustrative 1 EH/s reference, not the live Bitcoin network.

100 TH/s is 0.01% of 1 EH/s.

This is a unit comparison only. It does not calculate block odds, mining revenue, or the current network hashrate.
Dig Deeper: Why does difficulty change?

If the network has more total hashing power, blocks would tend to arrive faster without adjustment. Bitcoin periodically adjusts the target so that valid hashes become harder or easier to find. This helps maintain the long-run block schedule, though individual block times remain unpredictable.

5. What do miners earn?

When a miner produces a valid block that remains in the accepted chain, the block's coinbase transaction can award the miner newly created Bitcoin (the block subsidy) plus the transaction fees from included transactions.

What's inside a block reward?
3.125 BTCCurrent subsidy per block (2024–2028 era)
+ feesTransaction fees vary from block to block
Subsidy is scheduled to halve again at block height 1,050,000, expected around 2028. Figures describe protocol rewards, not any miner's guaranteed earnings.

Newly created coinbase outputs cannot be spent until they have matured through 100 additional blocks on top of the block containing them. This is commonly called the 100-confirmation maturity rule.

Important: Most individual miners will never find a block on their own. Even a powerful miner may run for a long time without finding one. Rewards are probabilistic, equipment and energy cost money, and mining can result in a financial loss.

Dig Deeper: Why wait for coinbase maturity?

Bitcoin requires coinbase outputs to mature before spending because a block can be displaced by a competing chain. The waiting period reduces complications from newly created coins in blocks that later become stale.

6. Can anyone mine Bitcoin?

Anyone can participate in Bitcoin mining, but competitive mining today generally uses specialized computers called ASICs (application-specific integrated circuits). These machines are designed to calculate Bitcoin hashes efficiently.

Some people operate small home miners to learn, experiment, or support the network. Larger operations run many machines and manage substantial power and cooling needs. Either way, electricity cost, hardware reliability, noise, heat, and network difficulty all matter.

Home mining vs. larger operations
Illustrative comparison of a Bitaxe home Bitcoin miner and rows of ASIC miners in an industrial mining facilityIllustrative images showing the difference in scale; actual devices and facilities vary widely.

We'll explore solo mining versus pool mining in Chapter 4. Those approaches change how miners pursue and share rewards, but neither eliminates mining costs or guarantees a profit.

A quick knowledge check

Let's see what you've learned!

No grades or accounts—just three questions to reinforce the big ideas.

Questions about any of these concepts? You're welcome to get in touch. These lessons are free and require no membership.

↑ Back to Top