Crypto mining is the process by which participants in a proof-of-work blockchain spend computing power to find a valid new block, append it to the chain and receive a reward of newly issued coins plus transaction fees. Among consensus mechanisms, mining is the method that turns real-world energy and hardware into security: rewriting history would require outspending all honest miners.
Mining performs two functions at once. It orders and confirms transactions, which lets thousands of independent nodes agree on one ledger without a central authority, and it issues new currency on a predictable schedule. Bitcoin is the best-known mined cryptocurrency; Ethereum stopped mining in 2022 when it switched to proof of stake.
How crypto mining works
Crypto mining works as a repeated guessing competition. A miner collects pending transactions from the mempool, builds a candidate block and computes a cryptographic hash of its header. The block is valid only if the hash is below a target value set by the network, so the miner keeps changing a field called the nonce and hashing again, billions or trillions of times per second.
Because a good hash cannot be predicted, the only strategy is to try more guesses than competitors. The first miner to find a valid hash broadcasts the block, other nodes verify it almost instantly, and everyone starts work on the next block. This asymmetry, expensive to produce and cheap to verify, is the heart of proof of work.
| Step | What the miner does | Purpose |
|---|---|---|
| Select transactions | Picks pending transactions, usually by fee | Maximizes fee income |
| Build block header | Includes previous block hash and Merkle root | Links the block to the chain |
| Hash repeatedly | Varies the nonce and recomputes the hash | Searches for a hash below target |
| Broadcast block | Sends the valid block to the network | Claims the block reward |
| Network verification | Nodes check the hash and every transaction | Accepts or rejects the block |
When two miners find blocks at nearly the same time, the chain temporarily splits. Nodes follow the branch with the most accumulated work, a rule known as Nakamoto consensus, and the losing block becomes orphaned. This is why recipients wait for several confirmations before treating a payment as settled.
Difficulty, rewards and hash rate
The network keeps block production steady through difficulty adjustment. If total computing power rises, blocks would come too fast, so the protocol lowers the target and makes valid hashes rarer. In Bitcoin, difficulty adjusts every 2,016 blocks, aiming at an average of about 10 minutes per block.
| Parameter | Value or rule | Effect |
|---|---|---|
| Hash function | Double SHA-256 | Defines the work to be performed |
| Target block time | About 10 minutes | Sets the pace of confirmations |
| Difficulty adjustment | Every 2,016 blocks, about two weeks | Keeps block time stable as hash rate changes |
| Block subsidy | Halves every 210,000 blocks | Controls new coin issuance |
| Supply cap | 21 million coins | Limits total issuance |
The total computing power of a network is its hash rate, measured in hashes per second; for Bitcoin it is quoted in exahashes. A higher hash rate makes attacks more expensive. Because the subsidy halves roughly every four years in a Bitcoin halving, transaction fees are expected to provide a growing share of miner revenue over time.
Mining hardware and pools
Mining hardware has evolved from ordinary processors to highly specialized chips. Today, competitive Bitcoin mining requires application-specific integrated circuits, known as ASICs, which perform only one hash function but do so far more efficiently than general hardware.
| Hardware | Typical use | Main trade-off |
|---|---|---|
| CPU | Early Bitcoin, some CPU-oriented coins | Flexible but very slow |
| GPU | Memory-hard algorithms on smaller coins | Reusable but less efficient than ASICs |
| FPGA | Transitional and niche use | Configurable but complex |
| ASIC | Bitcoin and other SHA-256 chains | Highly efficient but single-purpose |
Since a single machine may wait years to find a block alone, most miners join a mining pool, which combines hash rate and splits rewards in proportion to submitted work. Pools reduce income variance, but concentration of hash rate in a few pools is a recurring decentralization concern, even though individual miners can switch pools.
The decisive economic measure is energy efficiency, expressed in joules per terahash. Profitability depends on electricity price, hardware efficiency, coin price, network difficulty and cooling costs, which is why large operations seek cheap or surplus power.
Mining compared with staking
Mining is the security mechanism of proof of work, while staking plays the equivalent role in proof of stake. Both select who proposes the next block, but they rely on different scarce resources.
- Mining consumes electricity and hardware; security rests on the external cost of computation.
- Staking locks the native token as collateral; dishonest validators can lose funds through slashing.
- Energy use of mining is high and continuous, while staking requires only ordinary servers.
- Finality in mining is probabilistic and grows with confirmations, while many proof-of-stake chains offer explicit finality checkpoints.
Risks, costs and misconceptions
The best-known security risk is a 51% attack, in which an entity controlling most of the hash rate can reorder recent blocks and double-spend. On large networks this is extremely expensive, but smaller mined coins with low hash rate have suffered such attacks, sometimes with rented computing power.
Mining is also a business with volatile margins: a falling coin price or rising difficulty can make hardware unprofitable within months. A common misconception is that mining solves useful mathematical problems; in fact, the work is deliberately arbitrary hashing whose only value is making the ledger costly to rewrite. Environmental impact remains debated and depends heavily on the energy mix miners use.
In plain words
Crypto mining is a worldwide lottery run by computers. Machines make enormous numbers of guesses, and the first one to find a winning answer gets to add the next page of transactions to the shared ledger and is paid in new coins.
Winning requires spending real electricity, so cheating would cost more than it could earn. That cost is what keeps the ledger honest, even though nobody is in charge of it.
A real-world example
A mining company sets up a facility next to a hydroelectric plant that often produces more power than the local grid can absorb. It installs several thousand ASIC machines in containers with fans and connects them to a large mining pool, which pays out rewards daily according to the work submitted.
The company tracks three numbers every day: electricity cost per kilowatt-hour, network difficulty and the coin price. When a difficulty increase and a price drop push older machines below break-even, it switches off the least efficient units and replaces them with newer models, keeping the operation profitable while the network’s total hash rate continues to grow.