What Bitcoin mining actually does

Bitcoin mining is the process that both creates new bitcoins and confirms transactions on the Bitcoin network. Miners use computers to solve complex math problems. When a miner solves the problem first, 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.

This is not mining in the traditional sense of digging for something that already exists. Instead, miners are performing the computational work that keeps the Bitcoin network running. Without miners, no one could send bitcoins to anyone else, because there would be no one to verify and record those transactions.

The reward for mining changes over time. When Bitcoin started in 2009, miners received 50 bitcoins per block. This amount cuts in half roughly every four years in an event called a "halving." The most recent halving occurred in 2024, and miners now receive 6.25 bitcoins per block. This schedule was built into Bitcoin's code from the beginning.

Key Takeaways

  • Miners use specialized computers to solve math problems that validate Bitcoin transactions and find the network.
  • The first miner to solve each problem adds a block to the blockchain and receives newly created bitcoins plus transaction fees.
  • Mining difficulty adjusts automatically so that a new block is added roughly every 10 minutes, regardless of how many miners are competing.
  • Modern mining requires expensive hardware called ASICs and significant electricity, making it unprofitable for most individual miners.
  • Mining pools allow many miners to combine their computing power and share rewards based on the work each one contributes.

The math problem miners actually solve

The problem miners solve is called a hash puzzle. A hash is a long string of numbers and letters produced by running data through a mathematical function. Bitcoin uses a specific hash function called SHA-256.

Here is what happens: a miner takes a batch of pending transactions (a block), adds a number called a nonce (which stands for "number used once"), and runs both through SHA-256. The result is a hash. The miner's goal is to find a nonce that produces a hash starting with a certain number of zeros.

The difficulty of the puzzle is determined by how many zeros the hash must start with. More zeros means the puzzle is harder. Bitcoin's network adjusts this difficulty every 2,016 blocks (roughly two weeks) so that miners across the entire network find a solution roughly every 10 minutes, on average. If more miners join and solve blocks faster, the difficulty increases. If miners leave, the difficulty decreases.

There is no shortcut to this puzzle. A miner cannot predict which nonce will work — they must try millions or billions of different nonces until one produces a hash with the required number of leading zeros. This is why mining requires so much computing power.

Mining hardware and why it matters

In Bitcoin's early years, miners could use regular computers or graphics cards (GPUs). As more miners joined and the difficulty increased, this became impractical. Today, serious miners use ASICs — process-specific integrated circuits — computers designed solely to solve Bitcoin's hash puzzle.

An ASIC is thousands of times faster at mining than a regular computer, but it can do almost nothing else. A modern ASIC might cost between $5,000 and $15,000 and consume 1,000 to 3,000 watts of electricity continuously. A miner running such a machine 24 hours a day might spend $2,000 to $5,000 per month on electricity alone, depending on local power rates.

This hardware cost and electricity expense is why individual mining is rarely profitable today. A miner must calculate whether the bitcoins they will earn exceed the cost of the hardware and electricity. In regions with cheap electricity — Iceland, parts of Central Asia, areas with hydroelectric power — mining can be profitable. In regions with expensive electricity, it usually cannot.

Mining pools and how rewards are split

Because the difficulty is so high and the hardware so expensive, most miners today join a mining pool. A mining pool is a group of miners who combine their computing power and share the rewards.

Here is how it works: the pool operator runs a server that distributes work to all the miners in the pool. Each miner works on the same block of transactions. When any miner in the pool solves the block, the pool receives the reward. The pool then distributes the bitcoins to all its members based on how much computing power each one contributed.

For example, if a pool has 1,000 miners and your miner provides 1% of the pool's total computing power, you would receive roughly 1% of every reward the pool earns. This happens more frequently than if you mined alone — instead of waiting months or years to solve a block by yourself, you might receive a small share of a reward every few days or weeks.

The pool operator typically takes a fee, usually between 1% and 3% of the rewards, for running the infrastructure. Major mining pools include Foundry USA, AntPool, and Stratum Mining Pool, though the largest pools change over time as miners move between them.

Why mining uses so much electricity

Mining consumes enormous amounts of electricity because miners must perform billions of hash calculations to find one that meets the difficulty requirement. Every calculation requires power, and modern mining hardware is designed to perform these calculations as fast as possible.

The total electricity used by all Bitcoin miners worldwide varies depending on the price of bitcoin and the number of active miners. When bitcoin's price is high, more miners turn on their machines because the rewards are worth more. When the price drops, some miners shut down unprofitable operations. The network's total electricity use fluctuates with these changes.

This electricity consumption is a real cost that miners must account for. It is also why mining tends to concentrate in places with cheap electricity — countries with abundant hydroelectric power, geothermal energy, or natural gas, or regions where electricity rates are subsidized.

What happens to transaction fees in mining

When a miner solves a block, they receive two types of reward: the newly created bitcoins (called the block subsidy) and the transaction fees from all the transactions included in that block.

Every time someone sends bitcoins, they can include a fee. This fee goes to the miner who includes that transaction in a block. Miners prioritize transactions with higher fees, so if you want your transaction confirmed quickly, you pay a higher fee. If you are willing to wait, you can pay a lower fee.

As the block subsidy decreases with each halving, transaction fees become a larger share of miners' total income. Eventually, when the block subsidy reaches zero (sometime around the year 2140), miners will rely entirely on transaction fees to cover their costs. This is why Bitcoin's long-term security depends on people continuing to use the network and pay fees.

The difference between mining and staking

Bitcoin uses mining, but some other cryptocurrencies use a different system called staking. In staking, people lock up their coins to validate transactions and earn rewards, without needing specialized hardware or massive electricity consumption.

Bitcoin's creator, Satoshi Nakamoto, chose mining because it ties the security of the network to real-world resources — electricity and hardware. This makes it expensive to attack the network, because an attacker would need to control more computing power than all honest miners combined. Staking ties security to coin ownership instead, which has different tradeoffs.

Bitcoin mining will not change to staking. The Bitcoin network's rules are extremely difficult to change, and the mining system is fundamental to how Bitcoin works. Any change would require agreement from the vast majority of the network's participants, which has not happened and is unlikely to happen.

Frequently Asked Questions

Can I mine Bitcoin on my laptop or home computer?

Technically yes, but you will earn almost nothing. Your laptop produces a tiny fraction of the computing power of an ASIC miner, and you will spend far more on electricity than you earn in bitcoins. Mining on a home computer is not profitable in any region with normal electricity rates.

How long does it take to mine one bitcoin?

This depends entirely on your hardware and electricity costs. A solo miner with a single ASIC might take months or years to mine one bitcoin, if ever. A miner in a large pool might earn a fraction of a bitcoin every few weeks. The exact time depends on the pool's size, your share of its power, and current bitcoin prices.

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

The network accepts whichever block it receives first. The other block becomes an orphan and is discarded. The miner who created the orphan block receives no reward. This is rare because the network is designed so that blocks are found roughly 10 minutes apart, giving one miner time to broadcast their solution before another finds theirs.

Is Bitcoin mining bad for the environment?

Bitcoin mining uses significant electricity, which has environmental impact depending on the energy source. Mining powered by renewable energy has lower environmental impact than mining powered by fossil fuels. Some miners deliberately locate in regions with cheap renewable energy to reduce both costs and emissions.

Do I need to own bitcoins to start mining?

No. You need hardware, electricity, and access to a mining pool. You do not need to own any bitcoins beforehand. The bitcoins you earn from mining are new coins created by the network, not coins you already owned.