What Is Bitcoin Mining? How It Works and What It Takes to Make It Pay
Despite the cryptocurrency’s wildly volatile price and the increasing environmental concerns, Bitcoin mining is booming in North America. The state of Texas, in particular, has begun to emerge as an epicenter since China banned the industry in 2021, sparking an exodus of miners from the country. The ban, which reportedly reduced China’s control of Bitcoin mining from about two-thirds of the global industry in April 2021 to zero in July 2021, has created a new opportunity for North American companies, particularly those in the energy industry, to become more familiar with Bitcoin mining and incorporate it into their business models.
For those unfamiliar with Bitcoin’s inner workings, “mining” is how transactions are validated for a blockchain. It’s essentially a cryptographic competition to add blocks, or records, to the cryptocurrency’s ever-expanding blockchain network. In exchange for this service, winning miners are paid in Bitcoin (BTC), which reached a record price of more than $68,000 in November 2021.
In the wake of the Chinese ban, companies based in North America, which include Riot Blockchain and Marathon Digital Holdings, are raising record amounts of capital as they ramp up production and expand their industrial-scale operations. At the same time, Chinese companies have joined what’s been termed the Great Mining Migration to North America, investing in US facilities and constructing their own massive warehouses equipped with thousands of small computers designed specifically to mine a number of cryptocurrencies, the most popular of which is Bitcoin.
What I’ve learned from my experience conducting feasibility studies for Canada-based clients exploring this booming business is that new entrants, specifically energy companies, are also moving into the sector in a material way through joint ventures and other partnerships. The cost of power is one of the most significant factors in cryptocurrency mining. That means companies with access to reliable, low-cost electricity—particularly from renewable sources—have an opportunity to play a central role as the industry evolves in North America.
In this article, I offer insights into the fundamentals of Bitcoin mining, and show how to calculate the costs and the rewards, which can be immense. I also address the challenges of the industry, including questions around energy usage and risks, like the ever-evolving crypto regulatory environment.
Bitcoin Is Booming
Bitcoin has inspired thousands of cryptocurrencies since it launched in 2009, but in terms of value, it still stands alone. Despite the volatility of its price, its monetary policy builds in a measure of stability by limiting mining to 21 million Bitcoins across a predefined schedule. Although there are almost 19 million now in circulation, the reward for mining is periodically cut in half so that it will take until 2140 to exhaust production of Bitcoin.
While other crypto networks also manage supply, none have been able to replicate Bitcoin’s popularity. As investors embraced the asset class, Bitcoin’s futures and exchange-traded funds became the first to be introduced in regulated US and European markets. It soon appeared on the balance sheets of companies like Tesla and Overstock. This demand helped push Bitcoin’s market cap past $1 trillion in November 2021. By way of contrast, the second-most-popular cryptocurrency, Ethereum, reached only about half that value.
Bitcoin also stands out because of the industrial-scale crypto mining operations, or farms, it has spawned. The largest crypto facilities with the most advanced technology are focused primarily or exclusively on Bitcoin, like the Genesis Mining farm, which consumes more electricity than any other company in Iceland. One of the biggest farms in North America is Riot Blockchain’s Texas facility, which occupies three large warehouses on 100 acres of land containing 60,000 mining computers focused only on Bitcoin.
How to Mine Bitcoin: The Basics
At the root of every cryptocurrency is a blockchain, which is essentially an electronic ledger sustaining a continuously growing list of records. The blocks in the chain are basically files where data such as Bitcoin transactions are recorded, including which miner successfully created that particular block. Each block also includes a hash, a unique 64-digit hexadecimal value identifying it and its contents, as well as the hash of the previous block in the chain.
In order to win a block in most cryptocurrencies, Bitcoin included, a miner has to be the first to guess a hash value equal to or lower than the one that Bitcoin generates for the transaction. As more miners compete, and more computing power is deployed, each miner’s chance of coming in first is reduced—the current odds are one in the tens of trillions—helping ensure a pace for creating new blocks that is currently about one every 10 minutes.
This competition among miners also collectively secures the blockchain by allowing transactions and data to flow in what is known as a trustless manner, meaning that an intermediary like a bank isn’t required to ensure that a Bitcoin can’t be spent twice. Instead, the difficulty of solving for the right hash and the financial reward for success create a secure consensus mechanism by making it too cost-ineffective for malicious users to hack.
The consensus mechanism used by Bitcoin is known as proof of work, or PoW. Because this algorithm ultimately relies on the collective power of thousands of computers, it’s a particularly robust way to maintain a secure and decentralized network. Still, it has drawbacks. Most significantly, it’s exceptionally energy-intensive. As more computer power is used for crypto mining, the amount of electricity required to both earn cryptocurrency and maintain the network rises.
Some other cryptocurrencies, like Ethereum, have switched or are planning to switch to a different algorithm called proof of stake, or PoS. PoS doesn’t require the same extensive, decentralized network of miners to support its operations and is thus far less energy-intensive. While it’s not as secure, its lesser energy demands may make it easier and more cost-effective for those blockchains to support a next generation of crypto applications like smart contracts, non-fungible tokens, and decentralized finance. Bitcoin, however, has not announced any plans to transition to PoS.
Finally, as a part of Bitcoin’s supply management system, the reward for mining a block is set to be cut in half, from 6.25 BTC per block mined after the most recent halving in May 2020 to 3.125 BTC in 2024. The current bullishness around mining, even in the face of that planned drop, says a lot about the profitability of the industry and the expectation that the original cryptocurrency will keep appreciating. It also reflects the fact that the so-called hashrate, which measures the total number of hash guesses being computed at a given time in the network, plummeted when Chinese operators were forced to shutter in 2021. This created a huge opportunity for new miners. In December 2021, the hashrate was about 175 quintillion hashes—or 175 exahashes—per second (EH/s).
Bitcoin Mining Setup
The resources required for mining Bitcoin include:
- At least one specialized computer (called an Application-specific Integrated Circuit or ASIC miner), which is specifically designed to compete for and support a particular cryptocurrency.
- A reliable and inexpensive energy supply.
- A dependable internet connection.
- A cooling infrastructure (whether you’re mining at home or on a Bitcoin farm).
- A computer, software, and the technical skill to establish and monitor operations.
A home mining operation might consist of just a computer and a handful of ASIC miners.
Solo hobbyists were largely responsible for Bitcoin’s initial popularity, but they’re now more likely to join a virtual mining collective like Slush Pool or AntPool in order to increase their odds of success.
Today’s industry is more accurately represented by an industrial-scale mining farm containing thousands of ASIC miners housed in a warehouse or even a series of warehouses.
Whether you’re setting up at home or in a warehouse, the mining framework will be similar, regardless of scale.
You’ll first need to acquire an ASIC miner optimized for Bitcoin, such as one produced by Bitmain or Whatsminer. New ASICs start at about $11,000, though older models can be purchased secondhand for less. All else being equal, newer versions generate more terahashes per second, or TH/s—so the goal is to look for the newest and therefore most efficient ASIC you can afford.
The next priority is power, which is needed both to run and to cool the ASICs. Given the relatively low overhead and variance in equipment costs, the price of electricity becomes the most significant factor in calculating your bottom line. The University of Cambridge’s Centre for Alternative Finance produces a global map that shows how the industry searched for cheap power after mining was banished from China, and how countries like the US, Canada, and Russia saw significant increases in hashrates.
Then, of course, you will need to account for the cost to house and maintain your operation, keep it cool, connect it to a fast, reliable internet provider, and staff it if you don’t plan to manage it yourself.
In terms of revenue, Bitcoin miners can expect to earn the block reward and a transaction fee (the fee with which the network reimburses successful miners and incentivizes them to continue confirming transactions) if and when they win a block. Transaction fees can vary based on network conditions and how much the transactor is willing to pay for expedited processing, but by the end of 2021, the fees averaged about 0.125 BTC according to my analysis, or about 2% of the block reward.
Bitcoin Mining Economics
To illustrate the financial considerations involved in Bitcoin mining with a hypothetical example, let’s look at the estimated costs and revenue for mining one Bitcoin with one ASIC miner.
These tables represent typical Bitcoin mining costs and revenue based on values from December 2021.
The model, then, looks like this:
Hashes required to mine one Bitcoin:
= Network hash rate * Seconds per day / Bitcoin mined per day (including fee)
= 175 EH/s * 86,400 seconds / 918 BTC = ~16,471 EH / BTC
Time taken for an ASIC miner to mine one Bitcoin:
= ~16,471 EH * 10^6 / (100 TH/s * 60 seconds * 60 minutes * 24 hours * 365 days) = ~5.22 years
Capital expenses (Capex):
- Bitcoin mined per ASIC lifetime = 2.5 years / ~5.22 years = ~0.48 BTC
- Effective price per Bitcoin = Price of ASIC miner / Bitcoins mined in its lifetime
= $10,858 / ~0.48 BTC = ~$22,684
Operational expenses (Opex):
- Electricity cost per Bitcoin = Time required to mine one Bitcoin * Energy consumption * Cost = ~5.22 years * 365 days * 24 hours * 3,400 * $0.05 / 1,000 = ~$7,778
- Cooling and other overheads per Bitcoin = 20% of electricity cost = ~$1,556
Total cost of production per Bitcoin: = Capex + electricity + other Opex per Bitcoin
= ~$22,684 + ~$7,778 + ~$1,556
Note: Totals have been rounded. Figures are approximate.
Thus, in our hypothetical operation, we produced one Bitcoin with one ASIC miner at a cost of roughly $32,000 over the course of five years.
What this model also demonstrates is the importance of scale in order to earn back the initial investment quickly. Breaking even promptly requires multiple machines, and anyone considering investing should evaluate partnerships with existing players who already account for some of the hashrate in the network. If the miner is able to contribute its hashing power to a mining pool, these economics translate to a break-even period on the initial ASIC cost of roughly 16-18 months, after which the miner can reap profits for the remainder of the ASIC’s life.
Bitcoin Mining Risks
No new venture is risk-free, of course. Since miners are paid in Bitcoin, the price volatility is a major revenue risk. The operating risks include factors like potential problems with internet connectivity, overheating ASICs, and system hacks—though given the size and security of the Bitcoin network, hacking risk remains low.
Top of mind should be the availability and reliability of electricity. Because power is so central to this operating model, miners need to look very closely at the redundancy of their supply. While Texas has emerged as a center for the industry, there are significant questions about the vulnerability of its power grid that potential investors should consider.
The regulatory environment also poses a potential risk, as miners in China and other countries have been learning. Even countries that were previously welcoming to miners, such as Kazakhstan and Iceland, have begun to curtail new and existing mining operations in order to manage demand on their energy grids. A number of US state governments like Texas’ have embraced Bitcoin mining, with some going so far as to offer incentives to producers. But the US federal government is paying closer attention to the industry now, with new tax reporting requirements set to begin in 2023 and heightened scrutiny from the Federal Reserve into crypto’s risks to consumers, banks, and the overall financial system.
Because crypto regulations in both the US and around the world are still very fluid, miners need to remain vigilant and watch for changes that could undermine their bottom lines.
Bitcoin mining’s energy demands result in another concern: the environmental impact of mining, which carries both ethical and reputational risks. The crypto industry has been subject to withering criticism for its carbon footprint. The New York Times recently equated the total power consumed by Bitcoin annually to what’s used by Finland in one year. The fact is that even the most efficient Bitcoin mining operation takes roughly 155,000 kWh to mine one Bitcoin. By way of comparison, the average US household consumes about 900 kWh per month.
Climate is not a niche issue any more. According to a recent Deloitte report, reducing carbon emissions is now essentially a universal priority, and brands are responding. In May 2021, Tesla, which had been a major investor in Bitcoin, announced it would suspend purchases using Bitcoin due to environmental concerns. The company has since said it would resume accepting Bitcoin once it could confirm that at least 50% of Bitcoin mining operations used renewable sources.
The crypto industry has begun to respond as well. Many of the larger producers are committing to transitioning to renewable energy, either through direct purchases or by acquiring carbon credits. Companies such as Great American Mining and Crusoe Energy have also developed ways for mining farms to utilize power that would otherwise be wasted, like flared natural gas at oil fields, excess solar or wind power that can’t be stored, or hydropower generated by overflows from dams. This strategy is only effective, of course, as long as crypto mining doesn’t increase demand in the process.
Bitcoin Mining: A New Opportunity
While Bitcoin mining economics at scale are very attractive, producers must recognize their regulatory and environmental context. For new entrants like power companies, incorporating Bitcoin mining into existing operations to better manage their own energy output offers a unique opportunity to leverage public opinion in addition to excess resources.
The University of Cambridge found that around 40% of PoW mining is already powered by renewable energy, but the pressure is on to significantly increase this figure. Companies with environmentally conscious energy solutions can play an important role in doing so while also reaping significant rewards.
Further Reading on the Toptal Finance Blog:
Understanding the basics
What is Bitcoin mining in simple terms?
Bitcoin mining is a competition to add blocks, or secure financial records, to the blockchain ledger. Miners do this by racing to guess a 64-digit hexadecimal code in exchange for a hefty Bitcoin reward.
Is Bitcoin mining profitable?
Bitcoin mining can be very profitable, but it can take a long time for a solo miner to reap significant rewards. It’s most cost-effective to mine at scale or, barring that, to join a mining pool in order to compete more effectively against large industrial mining operations.
How does Bitcoin make money for investors?
Bitcoin can be very valuable. While its price has varied significantly, one Bitcoin can trade for tens of thousands of dollars. Bitcoin investors make money by buying or mining Bitcoin and then selling it for a profit.
Located in Hyderabad, Telangana, India
Member since June 4, 2018
About the author
Dhruv is a veteran finance expert who has worked on fundraising and consulting projects worth more than $1 billion. His work focuses on cryptocurrency, energy, tech, food, and life science projects around the globe.