What Bitcoin mining does and why it happens
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.
Mining serves two purposes at once. It produces the new bitcoins that enter circulation (this is how all bitcoins come into existence), and it validates transactions so that the network can trust that a bitcoin sent from one person to another is real and not spent twice. Without miners, there would be no way to confirm that transactions are legitimate.
The Bitcoin network is designed so that mining becomes harder as more miners join. This keeps the rate at which new blocks are added roughly constant — approximately one block every ten minutes — no matter how much computing power is pointed at the network.
Key Takeaways
- Miners use specialized computers to solve mathematical puzzles, and the first to solve each puzzle adds the next block to the blockchain and receives newly created bitcoins.
- The puzzle difficulty adjusts automatically so that a new block is added roughly every ten minutes, regardless of how many miners are competing.
- Mining requires significant electricity and specialized hardware called ASICs, which makes it profitable only in locations with cheap power or when bitcoin's price is high.
- The reward for mining a block started at 50 bitcoins in 2009 and is cut in half every four years; it is currently 6.25 bitcoins per block.
- Miners can work alone or join mining pools where they combine computing power and share rewards based on the work each contributes.
The mathematical puzzle miners solve
The puzzle miners solve is called a hash function. A miner takes a batch of pending transactions (a block) and runs it through a mathematical algorithm. The algorithm produces a string of numbers and letters called a hash. The miner's goal is to find a hash that meets a specific requirement: it must start with a certain number of zeros.
The only way to find a hash that meets this requirement is to try different combinations of numbers over and over until one works. A miner might try millions or billions of combinations before finding one that produces the right hash. The first miner to find a valid hash broadcasts it to the network, and all other miners verify that the solution is correct.
The requirement for zeros is not fixed. The Bitcoin network adjusts how many zeros are required every 2,016 blocks (roughly two weeks) based on how fast blocks were found in the previous period. If blocks were found faster than ten minutes on average, the requirement gets stricter. If they were slower, it gets easier. This adjustment keeps the mining rate stable even as the total computing power on the network changes.
Mining hardware and electricity costs
Early Bitcoin miners used regular computers and graphics cards. As mining became more competitive, specialized chips called ASICs (process-Specific Integrated Circuits) were developed. An ASIC is a computer chip designed to do only one thing: solve Bitcoin's hash puzzle as fast as possible. Modern mining is dominated by ASIC machines because they are thousands of times faster than older hardware.
A single ASIC miner costs between a few hundred and several thousand dollars depending on its power and age. Large mining operations use thousands of these machines running continuously. The machines generate significant heat, so miners need cooling systems, which adds to the cost.
Electricity is the largest ongoing expense in mining. A modern ASIC consumes between 1,000 and 3,500 watts of power depending on the model. Running one continuously for a year costs between $1,000 and $4,000 in electricity alone, depending on local power rates. In regions where electricity is expensive, mining is rarely profitable. In regions where power is cheap — Iceland, parts of China, parts of North America — mining operations cluster.
Mining rewards and the halving schedule
When a miner successfully adds a block to the blockchain, they receive two types of reward: newly created bitcoins and transaction fees from the transactions in that block. The amount of newly created bitcoins is called the block reward.
The block reward started at 50 bitcoins when Bitcoin launched in 2009. It is cut in half every 210,000 blocks, which occurs roughly every four years. This event is called a halving. The reward was 50 bitcoins until 2012, then 25 bitcoins, then 12.5 bitcoins, then 6.25 bitcoins (as of 2020). The next halving will reduce it to 3.125 bitcoins. Eventually, the reward will become so small that it rounds to zero, and no new bitcoins will be created. This is expected to happen around the year 2140.
Transaction fees are paid by people sending bitcoins. When the block reward becomes very small, transaction fees will become the main incentive for miners to continue securing the network. Currently, transaction fees make up a small portion of total mining income, but this will change over time.
Solo mining versus mining pools
A miner can work alone, keeping all rewards from any blocks they find. However, solo mining is extremely unlikely to be profitable for an individual. The odds of a single miner finding a valid hash before thousands of other miners do is very small. A solo miner might run their equipment for months or years without finding a single block.
Mining pools solve this problem by combining the computing power of many miners. When any miner in the pool finds a valid hash, the pool adds the block to the blockchain and receives the reward. The pool then distributes the reward to all members based on how much computing power each contributed. A miner in a pool might receive small, frequent payouts instead of rare, large ones.
Mining pools charge a fee, usually between 1 and 4 percent of rewards, for coordinating the work and distributing payments. Large pools like Foundry USA, AntPool, and Stratum operate continuously and handle the technical details of connecting miners and tracking contributions. Joining a pool requires creating an account and pointing your mining hardware at the pool's servers.
Mining profitability and break-even calculations
Whether mining is profitable depends on three factors: the cost of your hardware, the cost of electricity in your location, and the current price of bitcoin. A miner breaks even when the value of bitcoins earned equals the cost of hardware and electricity spent.
If bitcoin's price is $30,000 and you earn 0.001 bitcoins per month from a $5,000 machine that costs $200 per month in electricity, you earn $30 in value but spend $200 in power. You would lose $170 that month. If bitcoin's price rises to $60,000, the same 0.001 bitcoins becomes worth $60, still a loss but smaller. Mining becomes profitable only when either bitcoin's price rises, your electricity costs fall, or your hardware becomes more efficient.
Many miners use online calculators that estimate profitability based on hardware model, electricity rate, and current bitcoin price. These calculators show what you might earn in a month or year, but they cannot predict future bitcoin prices or changes in mining difficulty. A profitable operation today might become unprofitable if bitcoin's price drops or if many new miners join the network and increase difficulty.
Environmental impact and energy sources
Bitcoin mining consumes significant electricity. The total energy used by all Bitcoin miners worldwide varies depending on the price of bitcoin and the efficiency of hardware, but estimates range from 120 to 240 terawatt-hours per year. This is comparable to the electricity consumption of some countries.
The environmental impact depends on where the electricity comes from. Mining powered by renewable energy like hydroelectric dams or wind farms has a lower carbon footprint than mining powered by coal or natural gas. Some mining operations are located in regions with abundant hydroelectric power, such as Iceland or parts of Canada. Others operate in regions where power comes from fossil fuels.
The Bitcoin network does not control where miners source their power. Individual miners choose locations based on electricity cost, and cheaper power often comes from fossil fuels. However, as renewable energy becomes cheaper, more mining operations are moving to renewable sources.
Frequently Asked Questions
Can I mine Bitcoin on my laptop or home computer?
You can technically mine Bitcoin on any computer, but you will not earn enough to cover electricity costs. Modern mining is dominated by specialized ASIC machines that are millions of times faster than a laptop. Mining on a home computer would take years to earn a single bitcoin and would cost far more in electricity than any reward you receive.
What happens if two miners solve the puzzle at the same time?
The Bitcoin network accepts the block that reaches the majority of nodes first. The other block is rejected, and the miner who solved it receives no reward. This is rare because the network is large and one solution almost always reaches most nodes slightly before the other. The rejected miner can include those transactions in the next block they find.
Is mining the only way new bitcoins are created?
Yes. Mining is the only mechanism that creates new bitcoins. No central authority issues bitcoins, and no other process generates them. When the block reward eventually reaches zero around 2140, no new bitcoins will be created, and the total supply will be capped at 21 million bitcoins.
Do miners need to own bitcoins to start mining?
No. You do not need to own any bitcoins to begin mining. You need hardware, electricity, and a way to receive and store the bitcoins you earn (a wallet). Many miners sell the bitcoins they earn when ready to cover costs, while others hold them as an investment.
What is the difference between mining and staking?
Mining uses computational power to solve puzzles and create new blocks. Staking is a different process used by some cryptocurrencies where holders lock up coins they already own to validate transactions and earn rewards. Bitcoin uses mining, not staking. Ethereum switched from mining to staking in 2022, but Bitcoin has no plans to do so.