Bitcoin Mining

One of the fundamental questions many people have about Bitcoin revolves around the origin of the coins themselves. Questions about its value, security and history all eventually lead to one place: Where do bitcoin come from?

While traditional money is created through (central) banks, bitcoin are “mined” by Bitcoin miners: network participants that perform extra tasks. Specifically, they chronologically order transactions by including them in the Bitcoin blocks they find. This prevents a user from spending the same bitcoin twice; it solves the “double spend” problem.

Skipping over the technical details for now, finding a block most closely resembles a type of network lottery. For each attempt to try and find a new block, which is basically a random guess for a lucky number, a miner has to spend a tiny amount of energy. Most of the attempts fail and a miner will have wasted that energy. Only once about every ten minutes will a miner somewhere succeed and thus add a new block to the blockchain.

This also means that any time a miner finds a valid block, it must have statistically burned much more energy for all the failed attempts. This “proof of work” is at the heart of Bitcoin’s success.

For one, proof of work prevents miners from creating bitcoin out of thin air: they must burn real energy to earn them. And two, proof of work ossifies Bitcoin’s history. If an attacker were to try and change a transaction that happened in the past, that attacker would have to redo all of the work that has been done since to catch up and establish the longest chain. This is practically impossible and is why miners are said to “secure” the Bitcoin network.

In exchange for securing the network, and as the “lottery price” that serves as an incentive for burning this energy, each new block includes a special transaction. It’s this transaction that awards the miner with new bitcoin, which is how bitcoin first come into circulation. At Bitcoin’s launch, each new block awarded the miner with 50 bitcoin, and this amount halves every four years: Currently each block includes 6.25 new bitcoin. This is known as the block subsidy. Additionally, miners get to keep any mining fees that were attached to the transactions they included in their blocks. These transaction fees along with the block subsidy are generally known as the mining revenue or total emission.

Thus, bitcoin mining is the mechanism used to introduce bitcoin into the system and to set the history of transactions in a way that is computationally impractical to modify, and miners are incentivized by the block reward, made up of both that new block of bitcoin introduced and fees paid by those conducting transactions.

Anyone can become a Bitcoin miner to try and earn these coins. However, Bitcoin mining has become increasingly specialized over the years and is nowadays mostly done by dedicated professionals with specialized hardware, cheap electricity and often big data centers.

To mine competitively today, you need to know what you’re doing, you must be willing to invest significant resources and time, and — last but not least — have access to cheap electricity.


What Is Bitcoin Mining Difficulty?

Bitcoin miners pick up transactions in the mempool and hash them. Their goal is to “guess” a hash that is lower than or equal to the network target. Bitcoin mining network difficulty is the measure of how hard it will be for miners to find a hash. Network difficulty is equal to the inverse of network target: network target = 1 / network difficulty. The lower the network target, the harder it is to find a valid block (because it is calculated as the inverse of network difficulty).

By design, the Bitcoin network seeks to maintain consistent block times of 10 minutes. The mining difficulty is programmatically adjusted every 2,016 blocks (approximately every two weeks) so that it’s as likely as possible that a miner will successfully add a block to the blockchain once every 10 minutes. The difficulty is adjusted based on how many miners (and, therefore, how much hash power) are active on the network — as more miners participate, mining becomes more difficult so that this 10 minute interval is maintained.


Bitcoin Miners

Bitcoin miners are the network participants that chronologically order transactions by including them in the Bitcoin blocks they find. The equipment bitcoin miners use to perform this task is known as bitcoin mining hardware, with individual devices also referred to as bitcoin miners (like the organizations that leverage them) or mining rigs.

These hardware devices are specialized computers designed and manufactured to most efficiently solve the computationally difficult problem that is the key to finding (mining) the next block of bitcoin.


Bitcoin Mining Hardware

Bitcoin mining hardware consists of devices specially designed to mine bitcoin most effectively. These computers “guess” the correct hash as quickly and efficiently as possible and are run by Application Specific Integrated Circuits or ASICs that are designed to operate for that one function. While the earliest Bitcoin mining was conducted by standard computer CPUs, mining operators were incentivized to achieve more hash power and did so partly through the creation of customized machines, first with graphics processing units (GPUs) and, later, with ASICs.

Read more about bitcoin mining hardware through our standalone guide here.


Bitcoin Mining Pools

In one sense, bitcoin mining is a competition to solve an algorithmic puzzle first, with the chances of success determined by the proportion of mining power contributed to the network. If you are able to contribute a large portion of the total hash power, you have a better chance of solving the puzzle first and receiving the connected bitcoin reward. If you are unable to contribute a large portion of the hash power, you are less likely to mine a block successfully.

To increase their chances of successfully mining blocks and collecting rewards, miners who are only able to contribute relatively small amounts of hash power to the network have banned together in groups called mining pools. These are decentralized groups organized and operated by third parties to coordinate hash power from miners around the world and then share any resulting bitcoin in proportion to the hashpower contributed to the pool. Mining pools also run full Bitcoin nodes on behalf of the individual miners.

Read more about mining pools through our standalone guide here.


Cloud Mining

Cloud mining allows you to mine bitcoin without having to invest in any hardware, giving you access to the hash power from someone else’s mining hardware via the cloud. Companies that offer cloud mining contracts allow customers to buy hash rate from the mining hardware the company is operating. Buyers typically need to pay upfront for the contract and an ongoing maintenance fee. In return, users generate revenue on the hash power they paid for — the higher the purchased hash rate, the more bitcoin you are likely to receive (as revenue). Buyers need to assess the likelihood that the revenue generated from the hash power is larger than the cost of buying and maintaining the contract.

In general, those who offer cloud mining services tend to charge purely based on the amount of hash power being accessed or on a monthly or yearly contract basis. Cloud mining models include leased hashing power, hosted mining and virtual host mining.

Generally, customers need only open an account with a cloud mining company and select the exact terms of their contract. However, this means that it can be difficult to verify that you are receiving exactly what you’ve paid for. There have been many scams and unfairly priced contracts in the industry, so buyers should do their own research before purchasing a contract.


How To Mine Bitcoin

You may be determined to mine bitcoin regardless of the many factors surrounding its profitability. As stated above, bitcoin mining is an integral practice to the network and there are few ways to participate in Bitcoin as directly as mining it yourself.

Here are some tips on what you’ll need to get started:


  1. A Bitcoin Wallet

As noted above, any bitcoin earned from mining will need to be sent somewhere. That’s where a bitcoin wallet comes in. Basically, if you want to be directly involved in Bitcoin, you need a wallet.


  1. Bitcoin Mining Hardware

Bitcoin mining has become an industry in itself, with a market of specialized devices made specifically to optimize for the highest hash rate at the lowest energy costs. While it’s technically possible to attempt mining on your home computer or other device, it isn’t possible to successfully mine this way and you’ll lose money on energy costs along the way.

Even with a handful of ASIC bitcoin mining rigs, an individual will need to connect with a mining pool to profitably mine bitcoin.


  1. Bitcoin Mining Software

Bitcoin mining software is the bridge between your mining hardware and the Bitcoin network. It would also be the means by which you connect your miner to a mining pool and get rewarded for your hash rate. Furthermore, it will guide any payments to your Bitcoin address.

Additional Information


Bitcoin Mining Software

While bitcoin mining hardware conducts the mining process, bitcoin mining software is also integral to the Bitcoin network and for miners. This is the bridge between the mining hardware’s efforts and the Bitcoin network at large.

This software can monitor the incoming and outgoing data from a miner, report statistics about the performance of the hardware and connect individual miners to a mining pool.


Bitcoin Wallets and Mining Software

Bitcoin wallets are integral to the use of bitcoin mining software and the bitcoin rewards that miners hope to collect. As this software connects miners to the Bitcoin network, it is also the conduit by which they receive their bitcoin and so this software must be connected with a bitcoin wallet.

Bitcoin mining software will pay out mining rewards to a miner’s Bitcoin address, which can be obtained by creating or downloading a bitcoin wallet.


The Best Bitcoin Mining Software

There are many bitcoin mining software products out there and the best fit for any given miner or mining operation will depend on their specific needs.  Popular options for individual miners include Hive OS, Minerstat, ethOS Mining OS, Simple Miner and Hashr8 OS.

Most large mining farms operate their own in-house solutions.


Is Bitcoin Mining Profitable?

Because bitcoin mining is essentially a competition, the question of bitcoin mining profitability is largely about achieving a competitive advantage. For many large operations, that advantage is achieved by running a relatively huge number of mining rigs at the lowest possible power costs. Those with the most up-to-date and powerful mining hardware also have an advantage, though it’s possible to be competitive with older equipment if your electricity costs are relatively low. Smaller scale mining operations can find success by optimizing for their power costs.

Read more about bitcoin mining profitability in our standalone guide.


Is Bitcoin Mining Centralized?

There is nothing inherent within Bitcoin that means mining should be a centralized process — anyone, anywhere with a device capable of connecting to the Bitcoin network and hashing mempool transactions can participate in bitcoin mining. But bitcoin mining has become such a lucrative industry and mining hardware has become so specialized that a relatively small number of operations contribute the bulk majority of the network’s hash power.

Economies of scale have led to the concentration of mining power among those who can operate the most efficient miners at the lowest cost of energy. As of this writing, most of the Bitcoin network’s mining hash power comes from China, though significant mining operations are located across the world.


How Much Electricity Does Bitcoin Mining Use?

As you have probably gathered by now, bitcoin mining is an energy-intensive process that, in a reductive sense, turns computing power into bitcoin (while verifying transactions on the world’s most robust blockchain in the process). One of the primary considerations for miners is the tradeoff between their energy costs and potential bitcoin rewards.

But it’s difficult to estimate exactly how much energy bitcoin mining around the world consumes at any given time. Bitcoin’s transparency allows anyone to see the amount of hash power being applied to the network, usually measured in the number of terahashes per second that the network is performing as part of the mining process. You can then estimate how much power the network is using to perform these hashes, based on the energy-to-hashrate efficiency of the mining hardware in use — but not all miners are operating with the same efficiency and an exact calculation is virtually impossible.

As of 2018, written testimony by a computer scientist from Princeton University, presented to the U.S. Senate, estimated that bitcoin mining accounts for slightly under 1 percent of the world’s energy consumption (more than the states of Ohio or New York consume) at 5 gigawatts. The University of Cambridge operates a live Bitcoin network energy estimator.


How to Defend Bitcoin Mining Energy Use?

For many, the amount of energy consumed by the Bitcoin network is surprising. This may derive from misunderstandings about how Bitcoin really works or what exactly that energy is pointed toward.

Bitcoin’s energy consumption is not merely for the sake of computers solving arbitrary math problems. It is a critical component of proof of work, the consensus mechanism that keeps bitcoin from being created out of thin air and solidifies Bitcoin’s transaction history. In some sense, Bitcoin’s energy consumption can be thought of as the world’s most direct and efficient conversion of raw power into value.

By creating such a direct line between energy use and value creation, Bitcoin has created a natural incentive for energy efficiency. Bitcoin miners are directly motivated to apply energy in efficient ways (thus saving on power costs and maximizing their bitcoin profits) and many leverage renewables to do so. Some estimates have found that as much as 74 percent of the Bitcoin mining network leverages renewable energy like hydro and solar power.

In many cases, Bitcoin mining contributes to the development of better energy infrastructure, leading to a reduction of carbon emissions. An example of this is Bitcoin mining units that are installed next to oil wells. In the process of pumping oil, these wells also produce excess gas. It is usually not enough gas to justify building a pipeline to get to market. So the oil wells vent some of it (into the air) and burn or flare the rest of it. Instead of burning this excess gas, oil wells can leverage bitcoin mining to turn it into value in a more environmentally- friendly manner.

In addition, there are companies that are setting up Bitcoin mining facilities next to electricity grids to act as stabilizers. If installed next to an electricity grid, a Bitcoin mining facility acts as an inverse battery. It enables stable demand pressure on the power grid and can curtail instantly during supply shocks. This makes electricity grids more efficient, which lowers future development costs, especially in the renewable energy sector (solves intermittency + congestion issues).

Bitcoin’s unique approach to value creation could incentivize a more sustainable approach to energy use around the world.


Is Bitcoin Mining Legal?

Bitcoin mining is legal in most countries. From a legal standpoint, many countries treat bitcoin as an asset or property, rather than a currency, and have established some regulatory frameworks with that status in mind. Most countries do not have formal laws established around bitcoin mining, making the practice legal by default.

However, bitcoin mining, as well as the general use of bitcoin, is formally illegal in a few countries. Some governments have banned the practice because it represents a threat to their national currencies.

This legal landscape is ever-evolving, so anyone interested in bitcoin mining should consult with legal counsel familiar with their specific jurisdiction and circumstances.

Read more about the legal considerations around bitcoin mining in our standalone guide.