What Bitcoin mining actually does

Bitcoin mining is the process that creates new bitcoins and confirms transactions on the Bitcoin network. Miners use computers to solve complex mathematical puzzles. When a miner solves a puzzle correctly, they add a new block of transactions to the blockchain — the permanent record of all Bitcoin transfers — and receive newly created bitcoins as a reward.

The puzzles are not something miners choose. The Bitcoin network automatically generates them, and they get harder as more miners join. This design keeps the rate of new blocks steady at roughly one every ten minutes, regardless of how much computing power is pointed at the network.

Mining serves two purposes at once: it distributes new bitcoins into circulation, and it secures the network by making it computationally expensive to fake or alter past transactions. Without miners, there would be no way to verify that a transaction actually happened.

Key Takeaways

  • Miners use specialized computers to solve mathematical puzzles, and the first to solve each puzzle gets to add the next block of transactions and receive new bitcoins.
  • The puzzle difficulty adjusts automatically so that a new block is found roughly every ten minutes, even as the total computing power on the network changes.
  • Mining requires significant electricity and hardware investment, so most individual miners now join mining pools where they combine computing power and split rewards.
  • The reward for mining a block started at 50 bitcoins in 2009 and is cut in half every four years; it was 6.25 bitcoins as of 2024.

The mining process step by step

When someone sends bitcoins, that transaction is broadcast to the network and collected into a memory pool. Miners select transactions from this pool and bundle them into a candidate block. They then begin trying to solve the puzzle for that block.

The puzzle involves finding a number (called a nonce) that, when combined with the block's data and run through a specific mathematical function called SHA-256, produces a result that meets certain criteria. The criteria is that the result must start with a certain number of zeros. There is no way to predict which nonce will work — miners must try billions of combinations per second.

The first miner to find a valid nonce broadcasts their solved block to the network. Other nodes verify that the transactions in the block are legitimate and that the puzzle was actually solved correctly. If the block is valid, it gets added to the blockchain, and the miner receives the block reward plus transaction fees from the transactions they included.

The network then moves on to the next block, and miners start over with a new set of pending transactions. This cycle repeats continuously, 24 hours a day.

Why mining requires so much electricity

A single mining computer must perform trillions of calculations per second to have a reasonable chance of solving a puzzle before another miner does. Modern mining operations use specialized chips called ASICs (process-specific integrated circuits) that are designed solely to perform the SHA-256 calculation as fast as possible.

Even with ASICs, the electricity cost is enormous. A large mining operation might consume as much power as a small town. The cost of electricity is often the largest expense for miners, which is why mining operations tend to locate in places with cheap power — regions with abundant hydroelectric generation, geothermal energy, or areas where electricity is otherwise inexpensive.

The total electricity use of the Bitcoin network varies depending on how many miners are active and how powerful their equipment is. As of 2024, estimates of annual Bitcoin network electricity consumption range widely, but the network uses a measurable fraction of global electricity production.

Mining pools and why most miners join them

The difficulty of mining means that a solo miner with a single computer has almost no chance of ever solving a block. The odds are similar to buying one lottery ticket and expecting to win the jackpot. For this reason, most miners join a mining pool — a group of miners who combine their computing power.

In a mining pool, thousands or millions of miners work together. When any miner in the pool solves a block, the pool receives the reward. The pool then distributes the reward among all members based on how much computing power each contributed. A miner with one percent of the pool's total power receives roughly one percent of the rewards.

This arrangement means a miner gets a small, steady stream of income rather than waiting months or years for a single lucky solve. The pool operator takes a fee (typically one to three percent) for running the infrastructure and distributing payments. Major mining pools include Foundry USA, AntPool, and Stratum.

How the puzzle difficulty adjusts

The Bitcoin network measures how long it took to find the last 2,016 blocks. If blocks are being found faster than the target rate of one every ten minutes, the network increases the puzzle difficulty. If blocks are being found slower, it decreases the difficulty. This adjustment happens automatically every 2,016 blocks, which is roughly every two weeks.

This mechanism is what keeps Bitcoin's supply predictable. Without it, if many new miners joined and added computing power, blocks would be found much faster and bitcoins would be created much faster than intended. The difficulty adjustment prevents that by making the puzzle harder.

When the price of bitcoin rises, more miners often join the network because mining becomes more profitable. The difficulty then rises to compensate. When the price falls and miners leave, difficulty falls. This feedback loop keeps the block time stable.

The block reward and how it changes over time

The first bitcoins ever created came from mining. In 2009, the block reward was 50 bitcoins. Every 210,000 blocks — roughly every four years — this reward is cut in half. This event is called a halving.

The reward was 50 bitcoins from 2009 to 2012, then 25 bitcoins from 2012 to 2016, then 12.5 bitcoins from 2016 to 2020, then 6.25 bitcoins from 2020 to 2024. The next halving will reduce it to 3.125 bitcoins. This process continues until the reward reaches zero, which is projected to happen around the year 2140. At that point, no new bitcoins will be created, and miners will be compensated only through transaction fees.

The halving is built into Bitcoin's code and cannot be changed without a network-wide software update that the majority of nodes would need to accept. This predictable supply schedule is one of Bitcoin's defining features.

Mining hardware: From CPUs to specialized chips

In Bitcoin's early years, miners used regular computer processors (CPUs). As mining became more competitive, miners switched to graphics processing units (GPUs), which could perform the necessary calculations faster. Within a few years, specialized hardware called ASICs became dominant.

An ASIC is a computer chip designed to do one thing extremely well: solve the SHA-256 puzzle. It cannot be repurposed for other tasks. Modern ASICs are thousands of times faster than GPUs at mining but are useless for anything else. A current-generation ASIC might cost between $5,000 and $15,000 and consume 1,000 to 3,000 watts of electricity.

The hardware becomes obsolete as newer, more efficient models are released. A miner must continuously upgrade to remain competitive. This constant hardware churn is one reason mining is increasingly concentrated among large operations that can afford to replace equipment regularly and negotiate bulk electricity rates.

Frequently Asked Questions

Can I mine Bitcoin on my home computer?

Technically yes, but you will not earn anything. Your computer would compete against industrial mining operations with specialized chips and cheap electricity. The electricity cost would exceed any reward you might receive. Mining is only economically viable at scale or in regions with very cheap power.

What happens if two miners solve a block at the same time?

The network temporarily has two competing versions of the blockchain. Miners continue building on whichever version they received first. Eventually, one chain becomes longer than the other, and the shorter chain is abandoned. Transactions in the abandoned block are returned to the memory pool and included in future blocks.

Do miners have to include all pending transactions?

No. Miners choose which transactions to include based on the fees attached. Transactions with higher fees are prioritized. If the memory pool is full, transactions with low fees may wait hours or days to be included, or may be dropped entirely if they expire.

Is Bitcoin mining bad for the environment?

Bitcoin mining uses significant electricity, which has environmental impact that depends on the energy source. Mining powered by renewable energy has lower environmental cost than mining powered by fossil fuels. Some mining operations are located in regions with abundant hydroelectric or geothermal power, while others use coal or natural gas.

What is a 51% attack?

A 51% attack would occur if one entity controlled more than half of the network's total computing power. That entity could theoretically reverse recent transactions or prevent new ones from being confirmed. The cost of acquiring and running enough hardware to achieve this is extremely high, making it impractical for Bitcoin. Smaller blockchains are more vulnerable to this attack.