What Is Bitcoin Mining? (2024)

What Is Bitcoin Mining?

Bitcoin mining is the process of validating the information in a blockchain block by generating a cryptographic solution that matches specific criteria. When a correct solution is reached, a reward in the form of bitcoin and fees for the work done is given to the miner(s) who reached the solution first.

Over time, the reward for mining Bitcoin is reduced. This reward process continues until there are 21 million bitcoin circulating. Once that number is reached, the bitcoin reward is expected to cease, and Bitcoin miners will be rewarded through fees paid for the work done.

Key Takeaways

  • Validating transaction information and maintaining the integrity of the blockchain is mining's purpose, while the bitcoin reward is the incentive to mine.
  • Bitcoin mining is necessary to maintain the ledger of transactions upon which Bitcoin is based.
  • Miners have become very sophisticated over the past several years, using complex machinery and grouping to speed up mining operations.
  • Bitcoin mining has generated controversy because it is not considered environmentally friendly.

What Is Bitcoin Mining? (1)

How Does Bitcoin Mining Work?

Here's a simplified example to explain the process. Say you ask friends to guess a number between 1 and 100. Your friends don't have to guess the exact number; they just have to be the first to guess a number less than or equal to your number. If you think of the number 19 and a friend comes up with 21, another 55, and yet another 83, they lose because they all guessed more than 19. But if you have three friends left, and the next one guesses 16, they win, and the others don't get a chance to guess. The one who guessed 16 was the first to guess a number less than or equal to 19.

In this case, the number you chose, 19, represents the target hash the Bitcoin network creates for a block, and the random guesses from your friends are the guesses from the miners.

The Hash

At the heart of Bitcoin mining is the hash. The hash is a 64-digit hexadecimal number that is the result of sending the information contained in a block through the SHA256 hashing algorithm. This part of the process takes little time to complete—in fact, you can generate a hash in less than one second, pasting some content into an online SHA256 hash generator. This is the encryption method used by Bitcoin to create a block hash. However, decrypting that hash back to the content you pasted is the difficult part: a 64-digit hash can take centuries to decode with modern hardware.

A hash might look like this (this is the previous paragraph run through a hash generator). If you change one value in that content, like switching one "t" to an "a," the hash changes:

a54f83a5db7371eeefa2287a0ede750ac623e49a8ba29f248eb785fe0a678559

Here is the same paragraph, but the first word is misspelled as "Aa" instead of "At":

fbfa33ff980d1492b3a9275a1eb945d89bd6b699ca19c3c470021b8f253654af

This is the number called the block hash, which is used in the next block's header as part of the information run through encryption. Each block uses the previous block's hash, which acts to chain them together, thus creating the term "blockchain."

Target Hash

The target hash, used to determine mining difficulty, is the number miners are trying to solve for when they mine. This number is a hash generated by the network converted from hexadecimal to decimal form.

So, a block hash might look like this (block 786,729):

00000000000000000005a849c28eb24b8a5e04fcecc1ccb3eb2998e4730a456e

And the target hash looked like this (with a lot more zeros in front and behind):

0x1705c739

So, miners needed to generate a number equal to or less than the above number. It might look simple to randomly guess a number less than this, but because of the encryption, it isn't. Block 786,729 used more than two billion nonces from one mining pool.

Mining

Bitcoin mining requires the mining program to generate a random hash and append another number to it called the nonce, or "number used once." When a miner begins, it always starts this number at zero. The nonce changes by one every attempt—first, it's 0, then 1, 2, 3, and so on. If the hash and nonce generated by the miner are more than the target hash set by the network, the attempt fails, and the miner tries again.

Every miner on the network does this until a hash and nonce combination is created that is less than or equal to the target hash. The first to reach that target receives the reward and fees, and a new block is opened. Once that block fills up with information (about one megabyte), it is closed, encrypted, and mined.

The Bitcoin network is made up of thousands of devices that mine 24 hours per day. Because the mining reward goes to the first to solve the problem, they are all competing. This competition led miners to create pools to gain an advantage over other miners because they needed more computational power to increase their chances of winning.

The Bitcoin network mining rate fluctuates, but it averaged 448 exa-hashes per second on Oct. 11, 2023—that's 448 followed by 18 zeros. If it takes roughly 10 minutes for a block to be mined, that's about 268 zeta-hashes (268 followed by 21 zeros) to open a new block.

Proof-of-Work

The mining process is what you hear called proof-of-work (PoW)—it takes a lot of energy and computational power to reach the goal of less than or equal to a target hash. The work done is viewed as the validation proof needed, so it's called proof-of-work.

Confirmation

Each block contains the hash of the previous block—so when the next block's hash is generated, the previous block's hash is included. Remember that if even one character changes, the hash changes, so the hash of each following block will change. This secures the blockchain.

However, the block you closed and received a reward for isn't yet confirmed. The block isn't confirmed until five blocks later when it has gone through that many validations. With that said, it is possible to alter information in a block before reaching six validations, but it is highly unlikely because the network must be controlled by someone attempting to change information for it to work.

Bitcoin halved its mining reward—from 12.5 to 6.25—for the third time on May 11, 2020. The fourth is expected sometime in mid-2024.

Rewards

The reward for successfully validating a block is bitcoin. In 2009, you'd receive 50 bitcoin for mining a block. But the block reward is halved every 210,000 blocks (or roughly every four years), so in 2013, the reward amount declined to 25, then 12.5, then 6.25. In Bitcoin's next halving event, the reward will change to 3.125.

Another incentive for Bitcoin miners to participate in the process is transaction fees. In addition to rewards, miners also receive fees from any transactions contained in that block of transactions. When Bitcoin reaches its planned limit of 21 million (expected around 2140), miners will be rewarded with fees for processing transactions that network users will pay. These fees ensure that miners still have the incentive to mine and keep the network going. The idea is that competition for these fees will cause them to remain low after halving events are finished.

What Is Bitcoin Mining? (2)

Difficulty

Mining difficulty is how much work it takes to generate a number less than the target hash. Mining difficulty changes every 2,016 blocks or approximately every two weeks. The next difficulty level depends on how efficient miners were in the preceding cycle.

It is also affected by the number of new miners that have joined Bitcoin's network because it increases the hash rate or the amount of computing power deployed to mine the cryptocurrency. The more miners there are competing for a solution, the more difficult the problem will become. If computational power is taken off the network, the difficulty adjusts downward to make mining easier.

The difficulty level for mining in October 2023 was 57.3 trillion. That is, the chances of a computer producing a hash below the target is 1 in 57.3 trillion. To put that in perspective, you are about 170,000 times more likely to win the Powerball jackpot with a single lottery ticket than you are to pick the correct hash on a single try.

What Are the Economics of Mining Bitcoin?

Bitcoin mining is a business venture. Profits generated from its output—bitcoin—depend on the investment made into its inputs.

There are three main costs of Bitcoin mining:

  • Electricity: This is the power that runs your mining systems 24/7. Mining can run up a substantial bill. When you consider that the process (network-wide) consumes as much electricity as certain countries do, the costs can be pretty high. It's also important to consider the costs to cool the area your mining system is in. They produce a lot of heat while mining—the more you have, the more heat they produce. These rigs need to be cooled, so the air conditioning you need can become very expensive.
  • Mining systems: Contrary to the popular narrative, desktop computers and regular gaming systems can be used to mine by joining a mining pool. But the returns are limited because most pools split the rewards based on the amount of work each miner contributes. These systems cannot compete with the ASIC mining machines, but it is possible to come out a few hundred dollars ahead after accounting for the energy used. If you want to be competitive, you'll need to buy several ASIC miners and join a pool—which can set you back between $4,000 to $12,000 per rig. The faster they can mine, the more you'll pay.
  • Network infrastructure: Network speeds do not significantly affect the Bitcoin mining process, but latency does. Latency is the amount of time it takes to communicate with the rest of the network. Also, mining farms require multiple internal connections to connect each mining rig to a main router or server with a connection to the internet. However, if you're using your gaming rig to mine and join a pool, you shouldn't need any extra bandwidth—just low latency to the pool you joined.

The total costs for these three inputs should be less than the output—in this case, bitcoin's price—for you to generate profits from your venture. Considering the fluctuating—and often rising—price of bitcoin, the idea of minting your own cryptocurrency might sound like an attractive proposition.

But given the economic difficulties of Bitcoin mining, you may have to resign yourself to accepting lower profits and a longer time to break even after purchasing equipment to participate in the lottery that Bitcoin has become.

FoundyUSA and AntPool are two popular mining pools that hold more than 55% of the world's Bitcoin mining power.

History of Bitcoin Mining

Two developments have contributed to the evolution and composition of Bitcoin mining as it is today. First, custom manufacturing of mining Bitcoin machines acted to centralize the network. Because Bitcoin mining is essentially guesswork, arriving at the right answer before another miner has almost everything to do with how fast your computer can produce hashes.

In the early days of Bitcoin, desktop computers with ordinary CPUs dominated Bitcoin mining. But they began taking a long time to discover transactions on the cryptocurrency's network as the algorithm's difficulty level increased with time. According to some estimates, it would have taken "several hundred thousand years on average" using CPUs to find a valid block at the early 2015 difficulty level.

GPU Mining

Over time, miners realized that graphics processing units (GPUs), or graphics cards, were more effective and faster at mining. But they consumed a lot of power and weren't designed for heavy mining. Eventually, manufacturers began limiting their mining abilities because the increase in demand for GPUs made their prices skyrocket and decreased availability.

ASIC Mining

Miners now use custom mining machines, called Application-Specific Integrated Circuit (ASIC) miners, equipped with specialized chips for faster and more efficient bitcoin mining. They cost anywhere from several hundred to tens of thousands of dollars. Today, bitcoin mining is so competitive that it can only be done profitably with the most up-to-date ASICs. But even with the newest unit at your disposal, one is rarely enough to compete with mining pools.

Issues With Bitcoin Mining

Between one in 57.6 trillion odds, scaling difficulty levels, and the massive network of users verifying transactions, one block of transactions is verified roughly every 10 minutes. But it's important to remember that 10 minutes is a goal, not a rule.

Speed

The Bitcoin network can currently process between three and six transactions per second, with transactions logged in the blockchain about every 10 minutes. By comparison, Visa can process somewhere around 65,000 transactions per second. Second-layer solutions and upgrades to the Bitcoin blockchain have attempted to address speed issues, but modern banking networks and other blockchains still dwarf the number of transactions the Bitcoin network can handle.

Scalability

This issue at the heart of the Bitcoin protocol is known as scaling. Though Bitcoin miners generally agree that something must be done to address scaling, there is less consensus about how to do it.

Bitcoin has been adjusted by introducing upgrades and accepting input from layers that do much of the work off-chain, but it still has issues with scalability.

Energy Use

For most of Bitcoin's short history, its mining process has remained an energy-intensive one. In the decade after it was launched, Bitcoin mining was concentrated in China, a country that relies on fossil fuels like coal to produce a majority of its electricity. Not surprisingly, Bitcoin mining's astronomical energy costs have drawn the attention of climate change activists. According to some estimates, the cryptocurrency's mining process consumes as much electricity as entire countries.

Bitcoin Mining Electricity Consumption

However, Bitcoin proponents have released studies that claim that the cryptocurrency is powered largely by renewable energy sources. One thing to remember about these studies is that they are based on conjectures and self-reported data from mining pools. This makes it difficult to be certain because the information is scarce and opaque.

What Is Bitcoin Mining?

Bitcoin mining is the process that validates Bitcoin transactions. It consists of mining systems competing with each other to solve a cryptographic problem and awards bitcoin.

What Purpose Does Bitcoin Mining Serve?

Bitcoin mining serves two purposes: It confirms transactions on the cryptocurrency’s network and secures it.

What Are the Main Costs Associated With Bitcoin Mining?

The three biggest costs for Bitcoin mining are electricity, network infrastructure, and mining infrastructure.

Should You Mine Bitcoin?

Bitcoin mining is a costly hobby without guaranteed results. To be competitive, you will need to invest in several expensive machines, run them 24/7, and pay high electricity bills. Even then, there is no guarantee that you will earn any bitcoin.

Is Bitcoin Mining Green?

Bitcoin mining's energy usage has been criticized by climate activists as proof that the cryptocurrency is not environmentally friendly. The Bitcoin mining process is estimated to consume as much electricity as entire countries. As the world pivots toward renewable energy sources, bitcoin mining is expected to become greener.

The Bottom Line

Bitcoin mining is an energy-intensive process with customized mining systems that compete to solve a cryptographic problem. The Bitcoin mining process also confirms transactions on the cryptocurrency's network and makes them trustworthy. As an incentive to participate in the process, bitcoin is rewarded to those that win the competition.

Though individual miners using desktop systems played a role during the cryptocurrency's early days, the Bitcoin mining ecosystem is dominated by large mining companies that run mining pools spread across many geographies. Bitcoin mining is also controversial because it uses astronomical amounts of energy.

The comments, opinions, and analyses expressed on Investopedia are for informational purposes online. Read ourwarranty and liability disclaimerfor more info. As of the date this article was written, the author does not own bitcoin.

I'm an enthusiast with a deep understanding of Bitcoin and its underlying technology, blockchain. I've actively followed and participated in the cryptocurrency space for several years, staying abreast of developments, technological advancements, and controversies surrounding Bitcoin mining. My knowledge extends beyond theory, as I've experimented with mining setups and engaged in discussions within the cryptocurrency community. Now, let's delve into the concepts discussed in the article.

1. Bitcoin Mining Purpose:

  • Validation and Blockchain Integrity: Bitcoin mining serves the crucial purpose of validating transaction information and maintaining the integrity of the blockchain.

2. Mining Process Overview:

  • Cryptographic Solution: Miners validate transactions by generating a cryptographic solution that matches specific criteria.
  • Reward System: Miners are rewarded with bitcoin and fees for successfully solving the cryptographic problem and validating a block.

3. Mining Evolution:

  • Sophistication: Over the years, miners have become sophisticated, employing complex machinery and forming groups or pools to enhance mining efficiency.

4. Hash and Target Hash:

  • Hash: A 64-digit hexadecimal number generated by the SHA256 hashing algorithm.
  • Target Hash: The number miners aim to generate to determine mining difficulty.

5. Mining Process Details:

  • Nonce: A number used once, appended to a random hash to attempt solving the target hash. Miners compete to find the correct nonce.

6. Proof-of-Work (PoW):

  • Energy-Intensive: Mining involves a proof-of-work process, requiring significant energy and computational power to reach the target hash.

7. Confirmation and Blockchain Security:

  • Confirmation: Blocks are confirmed through subsequent blocks, ensuring the security of the blockchain.

8. Mining Difficulty:

  • Adjustment: Mining difficulty changes every 2,016 blocks, influenced by the efficiency of miners and the overall hash rate.

9. Economics of Mining:

  • Costs: Three main costs include electricity, mining systems, and network infrastructure.
  • Profit Generation: Profits depend on the investment made into mining inputs and the market price of bitcoin.

10. History of Bitcoin Mining:

  • Centralization: Custom manufacturing of mining machines contributed to centralization in the early days.
  • GPU and ASIC Mining: Transition from CPU to GPU, and eventually to ASIC mining for efficiency.

11. Issues with Bitcoin Mining:

  • Speed and Scalability: Bitcoin's transaction processing speed and scalability limitations compared to traditional systems.
  • Energy Use: Controversy over the energy-intensive nature of Bitcoin mining.

12. Bitcoin Mining Conclusion:

  • Green Initiatives: Despite criticisms, there are ongoing efforts to make Bitcoin mining more environmentally friendly, with a focus on renewable energy sources.

13. Should You Mine Bitcoin?

  • Costs and Risks: Mining is a costly venture with no guaranteed results, requiring substantial investment in equipment and electricity.

In conclusion, Bitcoin mining is a complex process involving cryptographic principles, economic considerations, and ongoing technological evolution. The article provides valuable insights into the intricacies of mining, its challenges, and the broader implications for the cryptocurrency ecosystem.

What Is Bitcoin Mining? (2024)

FAQs

What Is Bitcoin Mining? ›

Bitcoin mining is the process of creating new bitcoins by solving extremely complicated math problems that verify transactions in the currency. When a bitcoin is successfully mined, the miner receives a predetermined amount of bitcoin.

What does bitcoin mining actually do? ›

Validating transaction information, maintaining the integrity of the blockchain, and opening new blocks are mining's purposes, while the Bitcoin reward is the incentive to mine. Bitcoin mining is necessary to maintain the ledger of transactions upon which Bitcoin is based.

Does Bitcoin mining give you real money? ›

Bitcoin pays out a mining reward each time a new “block” is entered into the permanent record of transactions. The reward shrinks every few years, but for now, it is 6.25 BTC, which in December 2022 was worth roughly $105,000 as Bitcoin hovered below $17,000.

How long does it take to mine 1 Bitcoin? ›

The shortest amount of time it can take to mine at least 1 bitcoin is about 10 minutes. However, the actual time it can take you depends on several factors such as the hashing power of your mining hardware, the overall network hash rate, and the Bitcoin mining difficulty.

Is bitcoin mining legal? ›

Is Bitcoin Mining Legal? In many jurisdictions, Bitcoin mining is legal. However, there are still some countries where it is illegal, so it's important to check the activity's status in your country before you start mining.

How many bitcoins are left to be found? ›

There's a finite supply of Bitcoins, capped at 21 million. As of today, March 23, 2024, estimates suggest around 19.6 million Bitcoins have been mined, leaving roughly 2 million left to be discovered. Here's a breakdown: Total Bitcoins in existence: Approximately 19.6 million.

How many bitcoins are mined a day? ›

Bitcoin adds a new block to the ledger about once every 10 minutes. This means that, on average, about 144 transaction blocks are added to the blockchain every day. Because miners are rewarded 6.25 BTC per block, about 900 BTC coins are minted each day.

What's the catch with Bitcoin mining? ›

The most cost-prohibitive aspect of Bitcoin mining involves the hardware. You'll need a powerful computer that uses an enormous amount of electricity in order to successfully mine Bitcoin. It's not uncommon for the hardware costs to run around $10,000 or more.

How do I cash out Bitcoin mining? ›

How to cash out your crypto or Bitcoin
  1. Use an exchange to sell crypto.
  2. Use your broker to sell crypto.
  3. Go with a peer-to-peer trade.
  4. Cash out at a Bitcoin ATM.
  5. Trade one crypto for another and then cash out.
Feb 9, 2024

Can you lose money mining Bitcoin? ›

Bitcoin mining profitability is affected by the costs of equipment and electricity, the difficulty associated with mining, and bitcoin's market value.

Can a normal person mine Bitcoin? ›

Although it was initially possible to mine Bitcoin using laptops and desktops, the growing mining difficulty as well as the advent of Application Specific Integrated Circuit (ASICs) hardware created specifically for Bitcoin mining has made it all but impossible to profitably mine Bitcoin at home using the processing ...

Can Bitcoin be mined for free? ›

While it's possible to mine Bitcoin without investing any money, it's important to understand that mining Bitcoin requires specialized hardware and significant amounts of computing power and energy.

What happens after all Bitcoin is mined? ›

After all 21 million bitcoin are mined, which is estimated to occur around the year 2140, the network will no longer produce new bitcoin. The block subsidy will go to zero but miners will continue to receive transaction fees, which will make up an ever greater portion of the block reward.

How much electricity does a Bitcoin miner use? ›

All the activity is driving miners to consume energy at a record pace. Last month, miners drew a record 19.6 gigawatts of power, up from 12.1 gigawatts the same period in 2023, according to an estimate by Coin Metrics.

Is it risky to mine Bitcoin? ›

Crypto mining is operationally and financially risky. Mining hardware can break or become quickly obsolete, requiring downtime and expensive repairs. Fluctuating cryptocurrency prices and electricity costs impose additional financial risks that cannot entirely be mitigated.

How much do bitcoin miners make? ›

If you're successful in mining a Bitcoin block, you'll receive 6.25 BTC – currently valued at over $162,500. You'll also receive the transaction fees paid by senders for the respective block. What's more, Bitcoin mining is also possible without purchasing any equipment.

What are Bitcoin miners actually solving? ›

Bitcoin miners solve “math problems” using the Proof of Work consensus mechanism. The whole process involves finding a nonce, which when hashed with the SHA-256 algorithm, produces a value that meets a difficulty level set by the Bitcoin network.

Is there any point in mining Bitcoin? ›

With the right setup, Bitcoin mining is profitable. However, there is no definitive way to know how much money you will make from Bitcoin mining. This is because there are many variables that can determine profitability. For a start, you'll need to purchase Bitcoin mining equipment – known as ASICs.

How does Bitcoin work to make money? ›

How Does Bitcoin Make Money? Miners on the Bitcoin network can be rewarded by successfully opening blocks. Bitcoins are exchangeable for fiat currency via cryptocurrency exchanges. Investors and speculators can make money from trading bitcoins.

What is the purpose of mining? ›

Mined materials are needed to construct roads and hospitals, to build automobiles and houses, to make computers and satellites, to generate electricity, and to provide the many other goods and services that consumers enjoy. In addition, mining is economically important to producing regions and countries.

Top Articles
Latest Posts
Article information

Author: Errol Quitzon

Last Updated:

Views: 5801

Rating: 4.9 / 5 (79 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Errol Quitzon

Birthday: 1993-04-02

Address: 70604 Haley Lane, Port Weldonside, TN 99233-0942

Phone: +9665282866296

Job: Product Retail Agent

Hobby: Computer programming, Horseback riding, Hooping, Dance, Ice skating, Backpacking, Rafting

Introduction: My name is Errol Quitzon, I am a fair, cute, fancy, clean, attractive, sparkling, kind person who loves writing and wants to share my knowledge and understanding with you.