Blog

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. Ka3 Miner

What Is Bitcoin Mining?

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.

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:

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

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."

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

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

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.

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.

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.

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.

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.

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.

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:

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

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

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.

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.

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 our warranty and liability disclaimer for more info. As of the date this article was written, the author does not own bitcoin.

Bitcoin Magazine. "What Is the Bitcoin Block Size Limit?"

Bitcoin.com. "Bitcoin's Third Halving Complete: Reward Cut Surprisingly Faster Than Previous Time Estimates."

Cambridge University. "Cambridge Bitcoin Electricity Consumption Index."

Arvind Narayanan, et al. "Bitcoin and Cryptocurrency Technologies: A Comprehensive Introduction," Page 112. Princeton University Press, 2016.

Blockchain. "Transaction Rate per Second."

What Is Bitcoin Mining?

S19 Pro Hashboard By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.