What Is the Process of Crypto Mining? A Look Under the Hood

What Crypto to Buy Now Reddit Discussions Often Miss

On a proof-of-work network such as Bitcoin, mining is the mechanism that lets thousands of mutually distrusting computers agree on one shared version of the transaction history. Each miner gathers pending transactions, assembles them into a candidate block, and expends computation on a guessing contest whose winner earns the right to append that block to the chain and collect the reward attached to it. Everything else about the industry — warehouses of machines, mining pools, energy debates — follows from that single design choice.

The word bundles four distinct jobs that run in parallel: validating incoming transactions, building block templates, racing to solve a hash puzzle, and broadcasting the result. Separating the stages is the clearest way to see what the hardware is actually doing.

The ordering problem mining exists to solve

A peer-to-peer payment network has no central server to rule on which transaction came first, and without a ruling the same coins could be spent twice — once to each of two merchants, with half the network seeing each version. Mining solves this by making ordering expensive. Miners compete to extend a single chain of blocks, and the network treats whichever chain carries the most accumulated work as the official history.

That cost is the security. Rewriting a block buried under thousands of successors means redoing all the work embedded in them faster than the honest network keeps extending the chain, so the odds of success collapse as confirmations pile up. The term applies only to proof-of-work networks: Ethereum retired its miners when it moved to staking in 2022, so any coin still described as mineable runs some version of this race.

How SHA-256 turns header hashing into a lottery

The puzzle itself is mechanically simple. A Bitcoin block header is an 80-byte structure holding the hash of the previous block, a merkle root summarizing the block’s transactions, a timestamp, the current difficulty target, and a number called the nonce. The miner runs this header through the SHA-256 function twice and checks whether the result is numerically smaller than the target. If it is not, the miner bumps the nonce by one and hashes again.

Hash outputs are unpredictable: flipping one input bit produces an entirely different result, and there is no way to work “toward” a solution. Every attempt is an independent draw with identical odds, so no progress accumulates, and a miner’s chance of winning is proportional to its share of total network hashrate — nothing else. When the 32-bit nonce field exhausts, miners vary an extra nonce inside their coinbase transaction, which changes the merkle root and opens fresh search space.

Tracing what is the process of crypto mining from mempool to mined block

Assembled into a cycle, the full process runs like this:

  1. Receive newly broadcast transactions, run each one against the network’s validation rules, and hold the ones that pass in the mempool — the local waiting room for unconfirmed payments.
  2. Build a candidate block, typically filling it with the transactions paying the highest fees, and open it with a coinbase transaction that pays the block subsidy plus all collected fees to an address the miner controls.
  3. Hash the header trillions of times per second, stepping the nonce and extra nonce, until one result lands below the difficulty target.
  4. Broadcast the winning block immediately. Every listening node re-validates it independently, and invalid blocks are discarded no matter who found them.
  5. All other miners discard their own candidates and start building on the new block, restarting the race.

Occasionally two miners find valid blocks a second apart and the network briefly splits. The fork resolves when the next block lands on one branch; miners follow the heavier chain, the losing block becomes stale, and its transactions return to the mempool. For a compact question-and-answer treatment of the same mechanics, the site’s crypto FAQ archive answers what is the process of crypto mining alongside other questions newcomers raise most.

Difficulty retargeting and the ten-minute heartbeat

Bitcoin aims for one block roughly every ten minutes, and machines pay no attention to schedules. The network therefore retargets itself: every 2016 blocks it compares the actual time taken against the intended two weeks and tightens or loosens the difficulty target to match. If total hashrate has doubled, the target adjusts until the ten-minute pace is restored.

This is why adding machines cannot mine coins faster in aggregate. Extra hashrate raises difficulty proportionally, so each participant’s expected reward tracks its share of the network rather than its absolute speed — and the issuance schedule itself is enforced by every node, indifferent to how much power gets thrown at it.

Solo rigs, pools, and where the block reward goes

Hardware has moved through distinct generations: ordinary CPUs, then graphics cards whose parallel processors suited hashing, then ASICs — chips that compute one hash function and nothing else — which have dominated Bitcoin mining since 2013. Other networks use different proof-of-work algorithms, so ASICs are built per algorithm and GPU rigs survive on some of them. Efficiency is measured in joules per terahash, and since electricity dominates operating cost, capacity migrates toward cheap power.

For an individual the obstacle is variance. A rig holding one ten-thousandth of the network hashrate would expect a block roughly every two months on average, but because each attempt is an independent draw the actual wait can run far longer. Pools flatten this: thousands of miners contribute work to a shared candidate, submit shares as proof of their contribution, and get paid proportionally whenever the pool wins. Pay-per-share schemes even pay per accepted share regardless of the pool’s luck, transferring the variance to the operator for a fee.

Each block pays the winning miner the fixed subsidy plus the transaction fees in that block. The subsidy stands at 3.125 BTC after the 2024 halving and halves again every 210,000 blocks; it also stays unspendable until 100 further blocks build on top, a rule that discourages attacks aimed at clawing back fresh rewards. As the subsidy shrinks, fees must gradually carry the network’s security budget alone.

The table below summarizes what a miner gives up, and gains, by joining a pool instead of mining solo.

Aspect Solo mining Pool mining
Chance of a block Expected wait of months to years on a large network Payouts whenever the pool wins
Income pattern Rare windfall, long droughts Small regular payments
Setup Own full node, own block templates Pool runs the node and templates
Transaction choice Miner decides everything Pool operator selects most transactions
Fee None Pool cut, varies by operator

How to price a mining decision before buying hardware

Mining economics reduce to three numbers anyone can look up: hardware efficiency in joules per terahash, local electricity price per kilowatt-hour, and current network revenue per terahash per day, published on public dashboards. Revenue minus power cost is the margin, and the margin must also repay the hardware before difficulty rises or a newer machine generation resets the economics — historically a fast-moving target.

Two checks finish the job. Multiply the machine’s watts by 24, divide by 1,000, and multiply by the electricity price to get the daily power bill; if that approaches expected revenue, there is no business. Then watch the process directly on a block explorer: each new block lists its finder, subsidy, fees, and the coinbase transaction that pays them, so the mechanics described here can be verified in public rather than taken on faith. For most people on residential rates the arithmetic ends the same way — buying the asset outright beats mining it — and the exception, cheap otherwise-unused power, still hinges on hardware paying for itself before it loses its edge.