What Is Bitcoin Mining?

Bitcoin mining is the process by which new transactions are verified and permanently added to the Bitcoin blockchain. Miners compete using specialized computers to solve a mathematical puzzle called proof of work. The first miner to solve it earns the right to add the next block of transactions and receives newly created Bitcoin as a reward.

Mining is what keeps the Bitcoin network secure without any central authority. It replaces trust in a bank with trust in mathematics - making it computationally prohibitive for anyone to alter the transaction history.

How Does Bitcoin Mining Work?

Here is the mining process step by step:

  1. Users broadcast Bitcoin transactions to the network
  2. Transactions sit in a waiting area called the mempool
  3. Miners select transactions from the mempool and bundle them into a block
  4. Miners repeatedly hash the block header (changing a random number called the nonce each time) until they find a hash that meets the network's current difficulty target
  5. The winning miner broadcasts their valid block to the network
  6. Other nodes verify the block and add it to their copy of the blockchain
  7. The winning miner receives the block reward plus transaction fees

What Is Proof of Work?

Proof of work (PoW) is the consensus mechanism Bitcoin uses to agree on which transactions are valid. It requires miners to demonstrate that they've expended real computational effort - electricity and hardware - to produce a valid block.

This expenditure of real-world resources is what makes the blockchain secure. To rewrite Bitcoin's history, an attacker would need to redo all the computational work for every block they wanted to change, plus outpace the entire honest network going forward. At Bitcoin's scale, this is economically impossible.

What Is the Block Reward?

When a miner successfully adds a block, they receive two types of compensation:

What Is Mining Difficulty?

Bitcoin's protocol automatically adjusts how hard it is to mine a block every 2,016 blocks (approximately every two weeks). If blocks are being found too fast, difficulty increases. If too slow, it decreases. This keeps the average block time close to 10 minutes regardless of how much mining power joins or leaves the network.

What Hardware Do Miners Use?

Early Bitcoin miners used regular CPUs, then GPUs. Today, mining is dominated by Application-Specific Integrated Circuits (ASICs) - chips designed to do nothing but compute Bitcoin hashes as efficiently as possible. Large mining operations run thousands of ASICs in warehouses located near cheap electricity sources.

See Bitcoin Mining Explained Visually

Bitcoin From Scratch dedicates an entire section to mining and network security - including 3D animated explanations of proof of work, hash functions, and how the blockchain stays secure. See exactly what miners do, animated.

Start Bitcoin From Scratch - $97

Frequently Asked Questions

What does a Bitcoin miner actually do?
A Bitcoin miner collects pending transactions from the mempool, bundles them into a block, and repeatedly hashes that block with a random number until the resulting hash meets the network's difficulty target. The first miner to find a valid hash broadcasts the block and earns the block reward plus transaction fees.
Why does Bitcoin mining use so much energy?
Bitcoin mining requires energy by design. The proof of work mechanism makes it computationally expensive to add a block, which means it would cost an enormous amount of energy for an attacker to rewrite the blockchain. The energy expenditure is not a bug - it is what makes Bitcoin secure and resistant to manipulation.
What is the Bitcoin block reward?
The block reward is the new Bitcoin paid to miners for successfully mining a block. It started at 50 BTC in 2009 and halves every 210,000 blocks. As of the 2024 halving, the block reward is 3.125 BTC.
Can I mine Bitcoin at home?
Home mining is technically possible but economically impractical for most people. The Bitcoin network's hash rate is dominated by large industrial operations with cheap electricity and specialized ASIC hardware. Joining a mining pool can help distribute rewards but requires significant upfront investment.
What happens when all Bitcoin is mined?
When the last Bitcoin is mined (around 2140), miners will only earn transaction fees. Whether fees alone will be sufficient to keep miners securing the network is an ongoing topic of discussion in the Bitcoin community.