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

1

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
Bitcoin mining server rack connected to Bitcoin logo - illustrating the mining process
2

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
Block Template
Block Height: 930,885
Previous Hash: 0000000000000000000155ce2e7cf6738e7810aa214ec4d79b2974be583ce549
Merkle Root: e3d2f7348ac15233819927fb68e1ac2f8fea3b2cf7be74dbf1e3a621896b5483
Miner submit (Nonce): 0000000000000000| Pool Hashrate: 300 PH/s = 300,000,000,000,000,000 tries/sec (300.0 quadrillion tries to solve the block)
Coinbase: 0200000001000008888888888888888000ffffffff1a0345348e6f6c6f786f6f6c000000000000000000000000ffffffff838fdb5f00000000001976a914a4b066b5ecd01fd0f7c61b116e0d270a774e03cd88ac3f065912000000001600149693fdaf237c0d00000000000aa21a9ed909de85e3bda559ad99f309a059fa3963cd0a900001G1o92pY2csJvJLZo3H8ie8yjFR3k1v12 (User bitcoin address)
Block Reward: 3.14116116 BTC1G1o92pY2csJvJLZo3H8ie8yjFR3k1v12 (User bitcoin address)
Timestamp: 4/24/2026, 3:28:58 AM
Bits: 0x1701e605
Version: 0x20000000
Pool Best Difficulty:100.0 T
Network Required:148.0 T
Active Miners:1200
Status:
Not meeting requirement
3

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
Miner to Pool Stratum Connection - showing miners connected to mining pool server
4

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
Mining PoolServerProcessingBlock TemplateCreated✓ ReadyDifficultyAdjustmentShare ValidationValid Share → RecordedInvalid Share → Rejected
5

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
BlockFound!Valid HashBlockchainBlock Added✓ ConfirmedReward Distribution3.125 BTC + Fees✓ 100% to Block Finder(Solo Mining Pool)

Ready to Start Mining?

Now that you understand how Bitcoin mining works, start mining with MySoloPool and keep 100% of your block rewards.