How Bitcoin Mining Actually Works — From Nonces to Block Rewards
Bitcoin mining is misunderstood by almost everyone. Here's the real technical process — hashing, difficulty, and the elegant incentive design.
Uvin Vindula — IAMUVIN
Published 2025-08-01 · Updated 2026-03-01
How Bitcoin Mining Actually Works
Most explanations of Bitcoin mining are either oversimplified ("computers solve math puzzles") or intimidatingly complex. I'm going to give you the real picture, technical enough to be accurate but clear enough to actually understand.
The Core Process
Mining is a competition to find a number (a nonce) that, when combined with the block data and hashed using SHA-256 twice, produces a hash below a target threshold. That's it. Everything else is detail.
Step by Step
- Collect transactions: A miner gathers unconfirmed transactions from the mempool
- Build a candidate block: Assemble transactions into a block with a header containing: version, previous block hash, merkle root, timestamp, difficulty target, and nonce
- Hash the header: Apply SHA-256 twice to the 80-byte block header
- Check the result: If the hash is below the target, you've found a valid block. If not, increment the nonce and try again
- Broadcast: When a valid hash is found, broadcast the block to the network
The Numbers
At current difficulty, miners collectively perform approximately 600+ exahashes per second (EH/s). That's 600,000,000,000,000,000,000 hash attempts every second. The probability of any single hash being valid is astronomically small — that's what makes mining expensive and blocks scarce.
Difficulty Adjustment — Bitcoin's Thermostat
Every 2,016 blocks (roughly 2 weeks), Bitcoin automatically adjusts the mining difficulty. If blocks are coming too fast (hashrate increased), difficulty goes up. If blocks are too slow, difficulty decreases. This ensures blocks arrive approximately every 10 minutes regardless of how much hashpower exists.
This is one of Bitcoin's most elegant features. No human intervention, no committee vote. Pure algorithmic adjustment. It's why Bitcoin has maintained its 10-minute block time for over 15 years despite hashrate growing by a factor of trillions.
Block Rewards and the Subsidy
Miners receive two types of income:
- Block subsidy: Currently 3.125 BTC per block (after the April 2024 halving)
- Transaction fees: Sum of all fees from transactions included in the block
The subsidy halves every 210,000 blocks (~4 years). By 2140, all 21 million Bitcoin will have been mined, and miners will rely entirely on transaction fees.
Merkle Trees and Transaction Ordering
Transactions in a block are organized into a Merkle tree — a binary hash tree where each leaf is a transaction hash, and each parent is the hash of its two children. The root of this tree goes into the block header. This means you can verify any transaction's inclusion in a block by checking only log(n) hashes, not every transaction.
Why This Matters
Mining isn't wasteful computation. It's the mechanism that converts real-world energy into digital scarcity. Without it, Bitcoin's fixed supply means nothing.
Dive deeper into mining economics on our learning center.

By Uvin Vindula — IAMUVIN
Sri Lanka's leading Bitcoin educator. Author of "The Rise of Bitcoin".
Learn more →Related Articles
The Bitcoin Brief: LK
Weekly Bitcoin insights, market analysis, and Sri Lanka crypto news. Join 1,000+ readers.
Unsubscribe anytime · Educational content only