WHAT IS BITCOIN MINING AND HOW DOES IT WORK

bitcoin data mining 1

WHAT IS BITCOIN MINING?

Bitcoin mining is the process of creating new bitcoin by solving a computational puzzle. 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 to speed up mining operations.

The mining process also confirms transactions on the cryptocurrency’s network and makes them trustworthy. 

For a short time after Bitcoin was launched, it was mined on desktop computers with regular central processing units (CPUs). But the process was extremely slow. Now the cryptocurrency is generated using large MINING POOLS spread across many geographies. Bitcoin miners aggregate mining systems that consume massive amounts of electricity to mine the cryptocurrency. 

In regions where electricity is generated using fossil fuels, bitcoin mining is considered detrimental to the environment. As a result, many bitcoin miners have moved operations to places with renewable sources of energy to reduce Bitcoin’s impact on climate change.

History of Bitcoin Mining

Two developments have contributed to the evolution and composition of bitcoin mining as it is today. The first one is the manufacture of custom mining machines for bitcoin. 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 cards, also known as graphics processing units (GPUs), were more effective and faster at mining. But they consumed a lot of power for individual hardware systems that weren’t really required for mining the cryptocurrency. Field-programmable gate arrays (FPGAs), a type of GPU, were an improvement, but they suffered from the same drawbacks GPUs did. 

Nowadays, miners use custom mining machines, called ASIC miners, that are 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. When using desktop computers, GPUs, or older models of ASICs, the cost of energy consumption actually exceeds the revenue generated. Even with the newest unit at your disposal, one computer is rarely enough to compete with mining pools—groups of miners who combine their computing power and split the mined bitcoin between them.

Bitcoin forks have also influenced the makeup of the bitcoin miner network. Between 1 in 16 trillion odds, scaling difficulty levels, and the massive network of users verifying transactions, one block of transactions is verified roughly every 10 minutes.12 But it’s important to remember that 10 minutes is a goal, not a rule.

The Bitcoin network can currently process just under four transactions per second, with transactions logged in the blockchain every 10 minutes.13 By comparison, Visa can process somewhere around 65,000 transactions per second.14 As the network of Bitcoin users continues to grow, however, the number of transactions made in 10 minutes will eventually exceed the number of transactions that can be processed in 10 minutes. At that point, waiting times for transactions will begin and continue to get longer, unless a change is made to the Bitcoin protocol.

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. There have been two major solutions proposed to address the scaling problem. Developers have suggested either creating a secondary “off-chain” layer of Bitcoin that would allow for faster transactions that can be verified by the blockchain later or increasing the number of transactions that each block can store. With less data to verify per block, the first solution would make transactions faster and cheaper for miners. The second would deal with scaling by allowing for more information to be processed every 10 minutes by increasing block size.

In July 2017, bitcoin miners and mining companies representing roughly 80% to 90% of the network’s computing power voted to incorporate a program that would decrease the amount of data needed to verify each block.

The program that miners voted to add to the Bitcoin protocol is called a segregated witness or SegWit. This term is an amalgamation of segregated, meaning separate, and witness, which refers to signatures on a Bitcoin transaction. Segregated witness, then, means to separate transaction signatures from a block and attach them as an extended block. Though adding a single program to the Bitcoin protocol may not seem like much in the way of a solution, signature data has been estimated to account for up to 65% of the data processed in each block of transactions.

Less than a month later, in August 2017, a group of miners and developers initiated a hard fork, leaving the Bitcoin network to create a new currency using the same codebase as Bitcoin. Although this group agreed with the need for a solution to scaling, they worried that adopting SegWit technology would not fully address the scaling problem.

Instead, they went with the second solution of increasing the number of transactions that each block can store. The resulting currency, called Bitcoin cash increased the block size to 8MB in order to accelerate the verification process to allow a performance of around 2 million transactions per day.

What Are the Main Costs Associated with Bitcoin Mining?

The three biggest costs for bitcoin mining are: 

  • Electricity
  • Network infrastructure
  • Mining infrastructure
  • Electricity: This is the power that runs your mining systems 24/7. It can run up to a substantial bill. When you consider that the process consumes as much electricity as certain countries do, the costs can work out to be pretty big.8
  • Mining systems: Contrary to the popular narrative, desktop computers and regular gaming systems are not fit or efficient for bitcoin mining. The process can heat up such systems and cause bandwidth issues in a home network. Application-specific integrated chip (ASIC) systems, which are customized machines for bitcoin mining, are the main infrastructure investment for bitcoin miners. The price range for such machines can range anywhere from $4,000 to $12,000. Even with such high costs, a single ASIC-equipped system generates less than a single bitcoin. Bitcoin miners organize thousands of ASIC systems into mining pools that run 24/7 to generate the 64-digit hexadecimal number required to solve a hash puzzle. 
  • Network infrastructure: Network speeds do not make a marked difference to the bitcoin mining process. However, it is important to have an Internet connection that is available 24/7 without any interruptions. The connection should also have latency from nearby mining pools. Dedicated networks reduce external dependency and ensure that latency is minimized. Going offline does not necessarily stop the process of syncing transactions. But it can make the process time-consuming and, possibly, prone to errors after a connection has resumed.

The total costs for these three inputs should be less than the output—in this case, the bitcoin price—for miners to generate profits from their venture. Considering the skyrocketing price of bitcoin, the idea of minting your own cryptocurrency might sound like an attractive proposition.

However, despite what Bitcoin proponents tell you, mining the cryptocurrency is not a hobby of any sort. It is an expensive venture with a high probability of failure. As illustrated in the section on mining difficulty, there is no guarantee that you will earn bitcoin rewards even after spending considerable expenses and effort. Aggregating mining systems to run a small business that mines bitcoin might offer a way out. However, even such businesses are at the mercy of the cryptocurrency’s volatile prices. If the cryptocurrency’s price crashes as it did in 2018, then it becomes uneconomic to run bitcoin mining systems, and small miners will be forced to go out of business.9

 The decline in the number of bitcoins awarded to miners every four years makes the activity even more unappealing.

Given the considerable difficulty inherent in the economics of mining bitcoin, the activity is now dominated by large mining companies that have operations spanning multiple continents. AntPool, the world’s biggest bitcoin mining company, runs mining pools in many countries. Many bitcoin mining companies have also gone public, although their valuations are relatively modest.

How much electricity does the bitcoin mining process use?

For most of Bitcoin’s short history, its mining process has remained an energy-intensive process. 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 astronomical energy cost have drawn the attention of climate change activists who blame the activity for rising emissions. According to some estimates, the cryptocurrency’s mining process consumes as much electricity as entire countries.8 But 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. For example, a Coinshares report from 2019 makes several assumptions regarding the power sources for miners included in their assessment of the bitcoin mining ecosystem

Should You Mine Bitcoin?

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

What is the bitcoin mining math puzzle?

At the heart of bitcoin mining is a math puzzle that miners are supposed to solve in order to earn bitcoin rewards. The puzzle is called PROOF OF WORK, a reference to the computational work expended by miners to mine bitcoin. Though it is often referred to as complex, the mining puzzle is actually fairly simple and can be described as guesswork. 

The miners in Bitcoin’s network try to come up with a 64-digit hexadecimal number, called a hash, that is less than or equal to a target hash in SHA256, Bitcoin’s PoW algorithm. A miner’s systems use considerable brute force in the form of multiple processing units stacked together and spit out hashes at different rates—megahashes per second (MH/s), gigahashes per second (GH/s), or terahashes per second (TH/s)—depending on the unit, guessing all possible 64-digit combinations until they arrive at a solution. The systems that guess a number less than or equal to the hash are rewarded with bitcoin. 

Here’s an example to explain the process. Say you ask friends to guess a number between 1 and 100 that you have thought of and written down on a piece of paper. Your friends don’t have to guess the exact number; they just have to be the first person to guess a number less than or equal to your number.

If you are thinking of the number 19 and a friend comes up with 21, they lose because 21 is greater than 19. But if someone guesses 16 and another friend guesses 18, then the latter wins because 18 is closer to 19 than 16. In very simple terms, the bitcoin mining math puzzle is the same situation described above except with 64-digit hexadecimal numbers and thousands of computing systems.

What is Bitcoin mining difficulty?

One of the terms you will often come across in bitcoin mining literature is mining difficulty. Mining difficulty refers to the difficulty of solving the math puzzle and generating bitcoin. Mining difficulty influences the rate at which bitcoins are generated. 

Mining difficulty changes every 2,016 blocks or approximately every two weeks. The succeeding 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. In 2013 and 2014, as the price of bitcoin rose, more miners joined its network, and the average time to discover a block of transactions fell to nine minutes from 10 minutes. 

But the opposite can also be true. That is, 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 March 2022 was 27.55 trillion. That is, the chances of a computer producing a hash below the target is 1 in 27.55 trillion. To put that in perspective, you are about 91,655 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

Understanding Bitcoin Better

Bitcoin is one of the most popular types of cryptocurrencies, which are digital mediums of exchange that exist solely online. Bitcoin runs on a decentralized computer network or distributed ledger that tracks transactions in the cryptocurrency. When computers on the network verify and process transactions, new bitcoins are created, or mined.

These networked computers, or miners, process the transaction in exchange for a payment in Bitcoin.

Bitcoin is powered by blockchain, which is the technology that powers many cryptocurrencies. A blockchain is a decentralized ledger of all the transactions across a network. Groups of approved transactions together form a block and are joined to create a chain. Think of it as a long public record that functions almost like a long running receipt. Bitcoin mining is the process of adding a block to the chain.

How Bitcoin mining works

In order to successfully add a block, Bitcoin miners compete to solve extremely complex math problems that require the use of expensive computers and enormous amounts of electricity. The computer hardware required is known as application-specific integrated circuits, or ASICs, and can cost up to $10,000. ASICs consume huge amounts of electricity, which has drawn criticism from environmental groups and limits the profitability of miners.

If a miner is able to successfully add a block to the blockchain, they will receive 6.25 bitcoins as a reward. The reward amount is cut in half roughly every four years, or every 210,000 blocks.  As of January 2022, bitcoin traded at around $43,000, making 6.25 bitcoins worth nearly $270,000.

But the price of bitcoin has been highly volatile which makes it difficult or impossible for miners to know what their payment might be worth whenever they receive it.

Is Bitcoin mining profitable?

It depends. Even if Bitcoin miners are successful, it’s not clear that their efforts will end up being profitable due to the high upfront costs of equipment and the ongoing electricity costs. The electricity for one ASIC can use the same amount of electricity as half a million PlayStation 3 devices, according to a 2019 report from the congressional Research service

One way to share some of the high costs of mining is by joining a mining pool. Pools allow miners to share resources and add more capability, but shared resources mean shared rewards, so the potential payout is less when working through a pool. The volatility of Bitcoin’s price also makes it difficult to know exactly how much you’re working for.

How do you start Bitcoin mining?

Here are the basics you’ll need to start mining Bitcoin:

  • Wallet: This is where any Bitcoin you earn as a result of your mining efforts will be stored. A wallet is an encrypted online account that allows you to store, transfer and accept Bitcoin or other cryptocurrencies. Companies such as Coinbase, Trezor and Exodus all offer wallet options for cryptocurrency.
  • Mining software: There are a number of different providers of mining software, many of which are free to download and can run on Windows and Mac computers. Once the software is connected to the necessary hardware, you’ll be able to mine Bitcoin.
  • Computer equipment: 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.

Risks of Bitcoin mining

  • Price volatility. Bitcoin’s price has varied widely since it was introduced in 2009. In just the past year, Bitcoin has traded for less than $30,000 and nearly $69,000. This kind of volatility makes it difficult for miners to know if their reward will outweigh the high costs of mining.
  • Regulation. Very few governments have embraced cryptocurrencies such as Bitcoin, and many are more likely to view them skeptically because the currencies operate outside government control. There is always the risk that governments could outlaw the mining of Bitcoin or cryptocurrencies altogether as China did in 2021, citing financial risks and increased speculative trading.

Taxes on Bitcoin mining

It’s important to remember the impact that taxes can have on Bitcoin mining. The IRS has been looking to crack down on owners and traders of cryptocurrencies as the asset prices have ballooned in recent years. Here are the key tax considerations to keep in mind for Bitcoin mining.

  • Are you a business? If Bitcoin mining is your business, you may be able to deduct expenses you incur for tax purposes. Revenue would be the value of the bitcoin you earn. But if mining is a hobby for you, it’s not likely you’ll be able to deduct expenses.
  • Mined bitcoin is income. If you’re successfully able to mine bitcoin or other cryptocurrencies, the fair market value of the currencies at the time of receipt will be taxed at ordinary income rates.
  • Capital gains. If you sell bitcoins at a price above where you received them, that qualifies as a capital gain which would be taxed the same way it would for traditional assets such as stocks or bonds.

Drop your comment

0Shares

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *