Mining

Mining is the process by which computers on a proof-of-work blockchain compete to bundle pending transactions into new blocks. It secures the network, and the winning miner earns newly issued coins plus transaction fees.

Miners gather waiting transactions from the mempool into a candidate block. They then run that block through a hash function over and over, changing a number called the nonce each time, until the result falls below a target set by the network. There is no shortcut, so finding a valid hash takes enormous trial and error, yet anyone can check the answer instantly. The first miner to succeed broadcasts the block, other nodes verify it, and the chain grows by one block.

For anyone using crypto, mining is what confirms transactions and makes history hard to rewrite. To change an old transaction, an attacker would have to redo the work for that block and every block after it, and do so faster than the rest of the network combined.

Bitcoin is the best-known example. Miners run specialized ASIC machines, and the network adjusts the difficulty so that blocks arrive about every ten minutes on average. The winner receives the block subsidy, which halves roughly every four years, plus the fees from the transactions in the block. Many miners join pools to share rewards and get a steadier income.

A common misconception is that the puzzles are useful calculations. They are brute-force guessing. Not every cryptocurrency is mined, either: proof-of-stake networks such as Ethereum rely on validators instead. Mining profitability depends on hardware, electricity costs, difficulty and the coin's price, and so-called cloud mining offers are a frequent vehicle for scams.

Learn more

Related terms