network

mining

Mining is the process by which new Bitcoin transactions are confirmed and added to the blockchain. Miners compete to solve a computational puzzle, and the winner earns newly created bitcoin as a reward.

Mining is the mechanism that keeps the Bitcoin network secure and decentralized. Miners are computers, or purpose-built machines called ASICs, that collect pending transactions and bundle them into a candidate block. To add that block to the blockchain, they must find a specific number called a nonce that, when combined with the block's data and run through the SHA-256 hashing algorithm, produces a result below a certain target. This process requires enormous computational effort and is intentionally designed to be difficult.

When a miner finds a valid solution, it broadcasts the block to the network. Other nodes verify the solution instantly and, if valid, accept the new block. The winning miner receives two things: the block subsidy, which is newly created bitcoin, and all the transaction fees included in that block. This reward is the only way new bitcoin enters circulation. The subsidy started at 50 BTC per block in 2009 and halves approximately every four years in an event called the halving. As of 2024, the subsidy is 3.125 BTC per block.

Mining also enforces the rules of Bitcoin without relying on any central authority. Because rewriting history would require redoing all the computational work that came after, the cost of attacking the network grows with its size. This is what makes Bitcoin records permanent. A transaction buried under many blocks is, for all practical purposes, irreversible.

Frequently asked questions

Do I need special hardware to mine Bitcoin?

Yes. Bitcoin mining today requires purpose-built machines called ASICs (Application-Specific Integrated Circuits). Regular computers and graphics cards are no longer competitive. Mining is now an industrial-scale operation dominated by large facilities with cheap electricity.

What happens when all 21 million bitcoin are mined?

Once the last bitcoin is mined, around the year 2140, miners will no longer receive block subsidies. From that point, their only income will be transaction fees paid by users. Whether this is sufficient to keep the network secure long-term is an open question in Bitcoin research.

Is Bitcoin mining bad for the environment?

The energy debate is real but often oversimplified. Bitcoin mining does consume significant electricity. However, a growing share comes from renewable sources, and miners have an economic incentive to use the cheapest energy available, which is often surplus or stranded renewable power. The full picture is more nuanced than most headlines suggest.