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 21 million bitcoins are 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, 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.
  • 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 they get to guess again, and the next guesses are 16, 41, and 67. The one who guessed 16 wins because they were 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.

Bitcoin mining is the same thing but at a much larger scale. It uses cryptography, encryption, distributed computing, and technology to verify and secure transactions. Here are the main ideas behind mining that make it work.

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):

a54f83a5db7371eeefa2287a0ede750ac623e49a8ba29f248eb785fe0a678559

If you change one value in that content, like switching one "t" to an "a," the hash changes. 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

The target hash looked like this:

0x175c739

This number is a compacted representation of the difficulty target:

0...000005c73900000...0

So, miners needed to generate a number equal to or less than the above number.

Mining

Bitcoin mining requires the mining program to generate a 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 has their proposed block added to the chain, 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 a little more than 611 exa-hashes per second on March 30, 2024—that's 611 followed by 18 zeros. If it takes roughly 10 minutes for a block to be mined, that's about 367 zeta-hashes (367 followed by 21 zeros) to open a new block.

Proof-of-Work

The mining process is what you hear called proof-of-work (PoW)—the work done to generate the winning hash is viewed as proof the miner validated the transactions in the block, so it's called proof-of-work.

PoW is also sometimes called a consensus mechanism, but proof-of-work is only part of consensus. Consensus is achieved after the miner adds the block to the blockchain, and the rest of the network validates it using the hashes (reaching consensus). This doesn't require much energy or computational power because each mining node also does this while mining the latest block. As new blocks are added, the network confirms them.

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.

When you mine a block and close it, it isn't yet confirmed. The block isn't said to be confirmed until five blocks later, when it has gone through six total 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 on April 19, 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. 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 and how many miners are participating.

Bitcoin's network increases and decreases the hash rate (the amount of computing power) needed 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. This is done to keep block times averaging about 10 minutes.

The difficulty level for mining in March 204 was 83.13 trillion. That is, the chances of a computer producing a hash below the target is 1 in 83.13 trillion. To put that in perspective, you are about 285,000 times more likely to win the Powerball Grand Prize 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 involved in 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 of cooling the area your mining system is in. They produce a lot of heat while mining—the more units you have, the more heat they produce. These rigs need to be cooled, so the air conditioning you need can also add to the cost.
  • 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 almost 50% 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 device can produce hashes.

In the early days of Bitcoin, desktop computers with ordinary CPUs dominated Bitcoin mining. However, 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

Many 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 83 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 claims it can process about 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

The main issue at the heart of the Bitcoin protocol is scaling—the blockchain's ability to handle more work efficiently. 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. When making adjustments, blockchain is surrounded by three central concerns: decentralization, security, and scalability. With current technology, one cannot be changed without affecting another. For example, if the Bitcoin blockchain were altered so that it could scale more effectively, it would likely decrease security and increase centralization.

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, in an age where all endeavors should have their environmental impacts evaluated and adjusted, Bitcoin mining's astronomical energy costs have drawn attention. 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. Some Bitcoin mining farms claim to lower capacity when there is a higher demand for energy. Another theory is that Bitcoin can be good for ESG because it drives green energy production, can stabilize energy grids, and can use methane as an energy source.

One thing to remember about these reports and studies is that they are based on conjectures, self-reported data from mining pools, and theory. This makes it difficult to be certain because the information is scarce and opaque.

Does Bitcoin Mining Actually Pay?

It depends on your mining setup and the costs you've incurred to begin mining. It can take years to recoup your costs and start making a profit. However, if you're not worried about costs and profit but only about what you'll get per day, a modern high-end gaming PC can generate about $1 per day before considering electricity and other costs.

How Long Does It Take to Mine 1 Bitcoin?

The reward for mining is 6.25 bitcoins. In April 2024, it will drop to 3.125 bitcoins. It takes the network about 10 minutes to mine one block, so it will take 10 minutes to mine 3.125 bitcoins.

How Do I Start Bitcoin Mining?

To begin mining Bitcoin, you need to join a mining pool and install a mining client. Some pools have their own mining software; others only provide instructions on how to connect one of several mining clients. Mining pools share rewards based on the amount of work contributed, so the faster your computer or mining machine is, the more you'll receive. You can mine solo, but your chances of ever being rewarded are minuscule at best.

The Bottom Line

Bitcoin mining is an energy-intensive process involving mining devices and software that compete to solve a cryptographic problem. The Bitcoin mining process also confirms transactions on the cryptocurrency's network. 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.

What Is Bitcoin Mining? (2024)

FAQs

What Is Bitcoin Mining? ›

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

What does Bitcoin mining actually do? ›

Here's an explanation for how we make money . 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.

How long does it take to mine 1 Bitcoin? ›

The time it takes to mine 1 Bitcoin depends on your computing power
Number of mining rigsHashrateTime to mine 1 Bitcoin
10012,000 TH/s51 days
50060,000 TH/s10 days
1,000120,000 TH/s5 days
5,000600,000 TH/s1 day
4 more rows
Feb 16, 2024

Does Bitcoin mining give you real money? ›

Does Bitcoin Mining Actually Pay? Bitcoin mining can be profitable if you contribute enough hashing power to a mining pool to receive larger rewards. If you're solo mining at home on your computer, you may never receive rewards.

Can anyone mine bitcoin? ›

Anyone can participate in the Bitcoin mining process, but unless you have access to powerful computers known as ASICs (that's “application-specific integrated circuits”), your chances of winning a Bitcoin reward are pretty low.

Is Bitcoin mining illegal? ›

Is bitcoin mining legal? According to TheStreet, reporting on a November 2021 Law Library of Congress report, bitcoin mining is banned in various countries, such as Bangladesh, China, Egypt, Iraq, Morocco, Nepal, Qatar, and more. However, it is legal in the US, and most countries, but not all US states allow the same.

Who pays bitcoin miners? ›

Miner fees are amounts of cryptocurrency given to incentivize miners (and their operators) to confirm transactions. Miners are the special pieces of hardware that confirm and secure transactions on the network. Miner fees pay miners for the service they provide. Miner fees do not go to BitPay.

How many Bitcoins are left? ›

Limited Supply: Bitcoin has a maximum supply of 21 million coins, and as of March 2023, more than 19 million have been mined. Remaining bitcoins: There are approximately 2 million bitcoins left to be mined. Impact on Value: Knowing this matters because it affects Bitcoin's value and future price.

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.

How many computers do you need to mine Bitcoin? ›

The resources required for mining Bitcoin include: At least one specialized computer (called an Application-specific Integrated Circuit or ASIC miner) designed to compete for and support a particular cryptocurrency. A reliable and inexpensive energy supply. A dependable internet connection.

Can you lose money mining Bitcoin? ›

Bitcoin mining profitability in 2024 depends on factors like Bitcoin's price, mining hardware specifications, electricity cost, block reward after the 2024 halving (3.125 BTC), and operational costs. With an assumed Bitcoin price of $43,000, the annual loss after the halving is approximately $18,822.

Can you withdraw money from Bitcoin mining? ›

However, since Bitcoin exists only as a digital currency, you cannot physically withdraw it from a traditional ATM. What you can do is sell your Bitcoin in exchange for fiat cash when using a Bitcoin ATM. You may also sell and exchange Bitcoin for fiat cash, then withdraw it from the Bitcoin ATM.

How much does it cost to mine 1 Bitcoin? ›

How Much Does it Cost to Mine a Bitcoin? $20K with 4.7c/Kwh. Mining a Bitcoin depends on your energy rate per Kwh, it costs $11,000K to mine a Bitcoin at 10 cents per Kwh and $5,170K to mine a Bitcoin at 4.7 cents per Kwh. Learn how and if mining right for you in 2024!

Do you need a license to mine Bitcoin? ›

California prohibits mining but allows exchanges (with restrictions). Tax laws apply.

How to earn 1 Bitcoin per day without investment? ›

Obtaining 1 BTC per day without any cost or risk is not possible. While there are various ways to obtain Bitcoin, such as through mining or trading, all of these methods come with some level of cost or risk.

How do I start Bitcoin mining? ›

Because it's so popular and there are so many miners competing to earn rewards, it's extremely difficult to make a profit with Bitcoin mining.
  1. Buy your mining equipment. ...
  2. Set up a crypto wallet. ...
  3. Configure your mining device. ...
  4. Join a mining pool.

How does Bitcoin mining pay out? ›

Miners check each block, and, once they confirm it, they add it to the blockchain. For helping to keep the network secure, miners earn Bitcoin rewards as they add blocks. The rewards are paid using transaction fees and through the creation of new Bitcoin.

Is Bitcoin mining even worth it? ›

Ultimately, although Bitcoin mining is profitable, you still need to consider the risks. If you don't have the correct mining setup in place or your devices are running inefficiently, you could lose money.

Is it good or bad to mine for bitcoins? ›

Environmental impact.

Crypto mining is typically harmful to the environment because of the significant energy and equipment that are required. Nonrenewable energy production and electronic equipment manufacturing are both associated with the emission of greenhouse gases.

How much does Bitcoin mining make? ›

Crypto Mining Salary
Annual SalaryWeekly Pay
Top Earners$68,500$1,317
75th Percentile$62,000$1,192
Average$55,819$1,073
25th Percentile$48,500$932

Top Articles
Why Sonic The Hedgehog Turns Yellow In Sonic 2
The Pros and Cons of Hiring a Financial Advisor: Is it Worth it?
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Pearson Correlation Coefficient
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Duncan Muller

Last Updated:

Views: 6086

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Duncan Muller

Birthday: 1997-01-13

Address: Apt. 505 914 Phillip Crossroad, O'Konborough, NV 62411

Phone: +8555305800947

Job: Construction Agent

Hobby: Shopping, Table tennis, Snowboarding, Rafting, Motor sports, Homebrewing, Taxidermy

Introduction: My name is Duncan Muller, I am a enchanting, good, gentle, modern, tasty, nice, elegant person who loves writing and wants to share my knowledge and understanding with you.