What is Mining?
How it works
In proof-of-work (PoW) mining, participants (miners) compete to be the first to find a valid hash for a new block of transactions. The hash must be below a network-difficulty target. Miners repeatedly change a field called the nonce (and sometimes other block data) and hash the block header using algorithms like SHA-256 (Bitcoin) or Ethash (pre-merge Ethereum). The first miner to find a valid hash broadcasts the block to the network. Other nodes verify the work and the transactions, then add the block to their copy of the blockchain. The winning miner receives a block reward (newly minted coins) plus the transaction fees from the block.
Mining hardware has evolved dramatically. Early Bitcoin miners used CPUs, then GPUs, then FPGAs, and now application-specific integrated circuits (ASICs) designed exclusively for SHA-256 hashing. Because ASICs are orders of magnitude more efficient, they dominate Bitcoin mining. Other PoW chains use different algorithms to resist ASIC dominance—for example, Monero uses RandomX, which is optimized for CPUs. Mining pools emerged to allow individual miners to combine their hashrate and share rewards proportionally, producing more consistent payouts. The pool coordinator builds blocks, assigns work, and distributes rewards minus a fee.
The network automatically adjusts the mining difficulty periodically to maintain a consistent block time. For Bitcoin, difficulty adjusts every 2,016 blocks (about two weeks) to target a 10-minute block interval. If hashrate increases, difficulty rises; if hashrate drops, difficulty falls. This self-correction ensures that blocks are found at a stable rate regardless of total computational power. Mining profitability depends on hardware efficiency, electricity cost, network difficulty, and the cryptocurrency's market price. The high energy consumption of PoW mining has led to criticism and motivated alternatives like proof-of-stake (PoS).
Why it matters
Mining is the foundational security layer of proof-of-work blockchains. It makes altering the blockchain exorbitantly expensive, as an attacker would need to control a majority of the network's hashrate. This trustless system enables censorship-resistant value transfer without a central authority. Mining also distributes new coins in a relatively fair, market-driven manner. However, its energy footprint and potential for centralization via large mining pools have spurred innovation in consensus mechanisms, most notably Ethereum's transition to proof-of-stake in 2022 (The Merge).
Real-world examples
Bitcoin (SHA-256) is the most famous mined cryptocurrency, with a fixed supply of 21 million coins. Litecoin (Scrypt) and Dogecoin (Scrypt) are other popular PoW chains. Monero uses RandomX to be ASIC-resistant and privacy-focused. Ethereum used Ethash mining until September 2022, when it completed The Merge and switched to proof-of-stake, ending mining on the mainnet. These examples illustrate the variety of mining algorithms and the ongoing evolution of consensus mechanisms.
FAQ
Is mining the same as staking?
No. Mining uses computational work (proof-of-work) to validate transactions and secure the network, while staking involves locking up tokens as collateral (proof-of-stake) to become a validator. Both create new coins but through different mechanisms and with different energy profiles.
Can I mine Bitcoin from home?
Home mining is difficult for Bitcoin because ASIC miners are expensive and noisy, and electricity costs often make it unprofitable against large-scale operations. Some enthusiasts join mining pools or mine less competitive PoW coins with GPUs.
What happens when all 21 million Bitcoin are mined?
Miners will no longer receive block rewards in new coins. They will earn only transaction fees. The security model relies on fees becoming sufficient to incentivize continued mining, which is expected to occur as Bitcoin's adoption and transaction volume increase.
Related terms
Go deeper
Browse the complete crypto glossary to explore related terms and concepts.
Browse Glossary