How Bitcoin Mining Works
A complete step-by-step guide from miner to blockchain rewards
Learn exactly what happens when you mine Bitcoin, from hash calculations to receiving block rewards
What is Bitcoin Mining?
Bitcoin mining is the process by which new Bitcoin transactions are verified and added to the blockchain. Miners use powerful computers to solve complex mathematical problems that validate and secure transactions on the Bitcoin network.
This process is called Proof of Work. Miners compete to find a solution to a cryptographic puzzle. The first miner to solve it gets the right to add the next block of transactions to the blockchain and receives a reward in Bitcoin.
Key Points:
- Miners validate and secure Bitcoin transactions
- Proof of Work ensures network security and decentralization
- Mining requires significant computational power (hashrate)
- Successful miners receive Bitcoin rewards for their work

The Mining Process: Hash Calculation
Mining begins when a miner receives a block template containing pending transactions. The miner's job is to find a valid nonce(a random number) that, when combined with the block data, produces a hash value below a specific target.
The miner repeatedly calculates the SHA-256 hash of the block header, trying different nonce values. This is essentially a guessing game where the miner tries trillions of combinations per second. The difficulty determines how hard it is to find a valid hash - the higher the difficulty, the more hashes a miner must try.
Block Header Components:
- Version: Block version number
- Previous Hash: Hash of the previous block
- Merkle Root: Hash of all transactions in the block
- Timestamp: Current time
- Difficulty Target: The target hash value
- Nonce: The number miners change to find a valid hash
Miner to Pool: Stratum Connection
All Miners need to connect to a mining pool shared pool or solo pool. The Stratum protocol is the communication standard that allows miners to connect to pools and receive work assignments.
When a miner connects to a pool, the pool sends a mining jobcontaining the block template and difficulty target. The miner then works on finding a valid hash. When the miner finds a hash that meets the pool's difficulty (called a share), they submit it back to the pool. The pool validates the share and credits the miner.
In solo mining pools like MySoloPool, miners still work together but when a block is found, the miner who submitted the winning share receives 100% of the block reward, not split among all participants.
Stratum Protocol Benefits:
- Efficient job distribution to miners
- Real-time share submission and validation
- Automatic difficulty adjustment
- Reduced orphaned blocks

Pool Processing: Share Validation & Block Templates
The mining pool acts as a coordinator, managing the mining process for all connected miners. The pool creates block templates by selecting pending transactions from the mempool and constructing a valid block structure.
When miners submit shares, the pool validates each one by checking if the hash meets the required difficulty. Valid shares are recorded, and the pool tracks each miner's contribution. The pool also maintains a connection to the Bitcoin network, ensuring it has the latest block information.
The pool continuously updates the block template as new transactions arrive and adjusts the difficulty based on the total hashrate of connected miners. This ensures miners receive work that matches their computational power.
Pool Responsibilities:
- Create and distribute block templates
- Validate submitted shares
- Track miner contributions and statistics
- Maintain network connectivity
- Submit valid blocks to the blockchain
Block Discovery & Reward Distribution
When a miner finds a hash that meets the Bitcoin network's difficulty target (not just the pool's share difficulty), they have discovered a valid block. The pool immediately submits this block to the Bitcoin network.
Once the block is validated and accepted by the network, it becomes part of the blockchain. The block reward (currently 3 BTC plus transaction fees) is automatically sent to the Bitcoin address specified by the miner who found the block.
In solo mining pools like MySoloPool, the miner who found the block receives 100% of the reward. and the reward is not split among other pool participants. This makes solo mining pools ideal for miners who want the full reward when they find a block.
Reward Breakdown:
- Block Reward: 3.125 BTC (halves approximately every 4 years)
- Transaction Fees: All fees from transactions in the block
- Total Reward: Block reward + transaction fees
- Solo Mining: 100% to the block finder