# What Is Bitcoin Mining? How to Get Started

> **Definition**
>
> Bitcoin mining is a network-wide competition to generate 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.

## What Is Bitcoin Mining?

Bitcoin is a [digital currency](https://www.investopedia.com/terms/d/digital-currency.asp) that uses a process called mining to secure its network and validate transactions. Bitcoin mining is a network-wide competition to generate 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.

This reward process continues until [all 21 million Bitcoins are circulating](https://www.investopedia.com/tech/what-happens-bitcoin-after-21-million-mined/). Once that number is reached, the mining process is expected to cease, and Bitcoin miners will be rewarded through fees for validating Bitcoin transactions. However, Bitcoin will still be readily available through [leading crypto exchanges](https://www.investopedia.com/best-crypto-exchanges-5071855).  

### 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 computers specifically designed for mining and grouping together to speed up operations.
*   Bitcoin mining has generated controversy because it is not considered environmentally friendly.
*   Those eager to hold Bitcoin may find buying it through a [crypto exchange](https://www.investopedia.com/best-crypto-exchanges-5071855) easier and cost-effective than trying to mine it.

  

![Illustration about Bitcoin mining featuring a bitcoin logo embedded in a rock being extracted with a pickaxe accompanied by an explanatory text](https://www.investopedia.com/thmb/2oLgDJLuJ7KHaH82Yz9QSggjfoY=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/bitcoin-mining-final-dfdc034510b04a9b83c5ce84a338bf9c.png)

*— investopedia / Ellen Lindner*

## How Does Bitcoin Mining Work?

Here's a simplified example of the mining 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 on 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.

> **Important**
>
> On Dec. 5, 2024, Bitcoin broke through the $100,000 price level for the first time, causing many to wonder what comes next for the asset.

### The Hash

At the heart of Bitcoin mining is [the hash](https://www.investopedia.com/terms/h/hash.asp). 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 under a 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.

For example, here's a hash for 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. This is where the term "[blockchain](https://www.investopedia.com/terms/b/blockchain.asp)" came from.  

### Target Hash

The [target hash](https://www.investopedia.com/terms/t/target-hash.asp), used to determine mining difficulty, is the number miners are trying to solve for. This number is a hash generated by the network.

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. Once the nonce reaches about 4.5 billion, it rolls over like an odometer, using another counter called the extra nonce from another field.

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](https://www.investopedia.com/news/how-bitcoin-works/) 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.

> **Fast Fact**
>
> The Bitcoin network mining rate fluctuates, but it averaged around 1 ZettaHash per second in September 2025—that's one followed by 21 zeros. A block takes roughly 10 minutes to mine.

### Proof-of-Work

[The mining process](https://www.investopedia.com/tech/how-does-bitcoin-mining-work/) is what you may have heard called [proof-of-work (PoW)](https://www.investopedia.com/terms/p/proof-work.asp)—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 previous block's hash, 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 completely changes, and 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 considered 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 person or group attempting to make the change must own a majority of the nodes to [control the network](https://www.investopedia.com/terms/1/51-attack.asp).  

### Rewards

The reward for successfully validating a block is Bitcoin. In 2009, you'd receive 50 bitcoins for mining a block. But the block [reward is halved](https://www.investopedia.com/bitcoin-halving-4843769) every 210,000 blocks (roughly every four years). Starting in 2012, the reward declined to 25, then 12.5 in 2016, then 6.25 in 2020. At Bitcoin's last halving event in April 2024, the reward changed to 3.125. The next halving event is not expected until 2028, halving the amount to 1.52 BTC.

> **Fast Fact**
>
> The first block of the Bitcoin blockchain is called the Genesis block. It holds the first 50 bitcoins ever rewarded.

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](https://www.investopedia.com/tech/what-happens-bitcoin-after-21-million-mined/)), 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 blockchain network going. The idea is that competition for these fees will cause them to remain low after halving events are finished.

![A chart showing the decrease in Bitcoin rewards for mining a block halving every four years from 2009 to 2020 with accompanying data](https://www.investopedia.com/thmb/GkzevjTqaLJ_KIhOXm4Lxv_iKHg=/660x0/filters:no_upscale():max_bytes(150000):strip_icc()/BlockReward-5c0ad88946e0fb0001af7198.png)

**

### 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 blockchain 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 on September 24, 2025, was 142.34 trillion. That is, the chances of a computer producing a hash below the target are 1 in 142.34 trillion. To put that in perspective, you are about 487,128 times more likely to win the Powerball Grand Prize with a single lottery ticket than you are to generate 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 by 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. The process (network-wide) consumes as much electricity as certain countries. It's also important to [consider the costs](https://www.investopedia.com/tech/whats-environmental-impact-cryptocurrency/) of cooling the area your mining systems are in. They produce a lot of heat; the more units you have, the more cooling will be required. Air conditioning costs further increase the electricity bill.
*   **Mining systems**: Contrary to the popular narrative, desktop computers and regular gaming systems can be used to mine by joining a mining pool. However, 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](https://www.investopedia.com/terms/a/asic.asp), 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 $12,000 per rig. The faster a machine mines, the more it will cost.
*   **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](https://www.investopedia.com/articles/forex/051115/bitcoin-mining-still-profitable.asp) from your venture. Considering the fluctuating—and often rising—Bitcoin price, 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 timeframe to break even, after purchasing [equipment to participate](https://www.investopedia.com/tech/usb-bitcoin-mining/) in the lottery that Bitcoin has become.

> **Important**
>
> FoundyUSA, AntPool, and ViaBTC are three popular mining pools that hold more than 65% 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, the custom manufacturing of mining Bitcoin machines acted to centralize the network. Because Bitcoin mining is essentially sequential guesswork, arriving at the right answer before another miner has almost everything to do with how fast your devices 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 the solution on the blockchain network as the algorithm's difficulty level increased with time.  

### GPU Mining

Over time, miners realized that [graphics processing units](https://www.investopedia.com/terms/g/graphics-processing-unit-gpu.asp) (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 had to limit their mining because the increase in demand for GPUs made their prices skyrocket and decreased availability for other types of users.  

### ASIC Mining

Many miners now use custom mining machines, referred to as Application-Specific Integrated Circuit (ASIC). [ASIC miners](https://www.investopedia.com/terms/a/asic.asp) 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. But even with the newest unit at your disposal, one is rarely enough to compete with mining pools and large Bitcoin mining operations.

These mining operations are like large data centers full of mining-specific computers. The amount of computations they can perform is staggering, which can result in hundreds of trillions per second.

## Issues With Bitcoin Mining

There are many concerns surrounding Bitcoin mining. The most obvious is the astronomical odds of being the one to solve the equation, which have currently been calculated at one in 142 trillion; this number constantly fluctuates over time. In addition, scaling difficulty levels and the massive network of miners present hardships; 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. Bitcoin mining requires a lot of energy to keep the operation running, which can make the process of mining the digital currency futile if it does not generate a certain degree of success for the miner.

### 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 no consensus on how to do it.

Bitcoin has been adjusted by [introducing upgrades](https://www.investopedia.com/bitcoin-taproot-upgrade-5210039) and accepting input from layers that do much of the work off-chain, but it still has issues with [scalability](https://www.investopedia.com/news/lightning-network-what-it-and-can-it-solve-bitcoins-scaling-problem/). 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

Not surprisingly, in an age where all endeavors should have their environmental impacts evaluated and adjusted, [Bitcoin mining's astronomical energy costs](https://www.investopedia.com/tech/whats-environmental-impact-cryptocurrency/) have drawn attention and criticism. Bitcoin's competitive proof-of-work mechanism is what causes it to use so much energy. According to some estimates, the blockchain's mining process consumes as much electricity as some small countries.

> **Fast Fact**
>
> Ethereum's validation mechanism, proof-of-stake, uses a minuscule amount of energy compared to Bitcoin's proof-of-work.

For most of Bitcoin's short history, its mining process has remained energy-intensive. 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. But crackdowns in China forced miners to move their operations elsewhere.  

Bitcoin Mining Electricity Consumption

According to research by the University of Cambridge in 2021, most Bitcoin mining operations are now centered in the United States. Of the nearly 38% of global Bitcoin mining activity conducted in the U.S., more than 62% is concentrated in four states: Georgia (30.76%), Texas (11.22%), Kentucky (10.93%), and New York (9.77%). This means that four states make up more than 23% of the world's Bitcoin mining energy use and, theoretically, its hashing power.

Hashing power is how fast a computer, miner, or network can generate solutions (hashes) to the cryptographic problem. For instance, as of September 2025, the Bitcoin network had an average hashrate of more than one ZettaHash (sextillion) per second. That's one followed by 21 zeros—hashes per second.

## Avoiding Bitcoin Mining Scams

As with anything that involves money, Bitcoin and Bitcoin mining attract a lot of bad-faith actors. If you decide to begin mining, you must be vigilant for mining scams before investing significant capital in picking the software, tools, or networks.

Here are some of the more common scams:

*   **Cloud Mining Platforms**: These are websites that claim to rent mining power to customers. Not all of these services are scams, but make sure you read reviews, talk to others, and conduct your due diligence before choosing one.
*   **Fake Wallets**: Cryptocurrency wallets store your private keys. However, thieves can create fake wallets in an attempt to steal your keys. Make sure you use a reputable [Bitcoin wallet](https://www.investopedia.com/the-best-bitcoin-wallets-11688646) provider.
*   **Fake exchanges**: Many instances exist of people being contacted by fake exchanges via email and social media, where they are pressured or tricked into depositing funds.

There are other types of frauds and scams, but the best way to prevent falling victim is to never give your keys, seed phrases, or passwords to anyone. Additionally, don't put your trust in a person you've never met or a service that doesn't have a well-established reputation.

## Investing in Bitcoin Mining Stocks

If you're interested in mining but don't want to become personally involved in the process or take on the risks, you may want to consider investing in companies that mine Bitcoin. Some publicly traded businesses that own or are affiliated with Bitcoin mining are Hut 8 (NASDAQ: HUT), MARA Holdings (NASDAQ: MARA), and Clean Spark (NASDAQ: CLSK), but there are many others to choose from.

Keep in mind that stocks of these companies tend to be as or more [volatile](https://www.investopedia.com/terms/v/volatility.asp) than Bitcoin itself.  

## What Does Bitcoin Mining Actually Do?

Bitcoin mining is the first step in validating transactions, adding new blocks to the Bitcoin blockchain, and rewarding the miner who found the solution to the mining problem.  

## How Long Does It Take to Mine 1 Bitcoin?

The reward for mining one block is 3.125 bitcoins. It takes the network about 10 minutes to mine one block, so it takes about 10 minutes to mine 3.125 bitcoins.

## Is Bitcoin Mining Illegal?

In most places, mining is legal. However, some countries and jurisdictions restrict the practice, so make sure you check to see if it is legal in your area before beginning.

## 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 awarded 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 now dominated by large mining companies that run mining pools spread across geographical scales, increasing the level of competition in Bitcoin mining for all.  

_The comments, opinions, and analyses expressed on Investopedia are for informational purposes online. Read our [warranty and liability disclaimer](https://www.investopedia.com/legal-4768893#toc-warranty-and-liability-disclaimer) for more info._

> **Article Sources**
>
> 1.  Blockchain. "[Bitcoin Block 786,729](https://www.blockchain.com/explorer/blocks/btc/786729)."
>     
> 2.  CoinWarz. "[Bitcoin Hashrate](https://www.coinwarz.com/mining/bitcoin/hashrate-chart)."
>     
> 3.  Coinbase. "[What is Bitcoin Block Time](https://www.coinbase.com/learn/crypto-basics/bitcoin-block-reward-block-size-block-time-whats-the-difference)."
>     
> 4.  CoinWars. "[Bitcoin Halving Countdown](https://www.coinwarz.com/bitcoin-halving)."
>     
> 5.  CoinWarz. "[Bitcoin Difficulty](https://www.coinwarz.com/mining/bitcoin/difficulty-chart)."
>     
> 6.  Powerball. "[Home](http://www.powerball.com/games/home)."
>     
> 7.  Cambridge University. "[Cambridge Bitcoin Electricity Consumption Index](https://ccaf.io/cbeci/index/comparisons)."
>     
> 8.  MiningPoolStats. "[Bitcoin](https://miningpoolstats.stream/bitcoin)."
>     
> 9.  CoinWarz. "[Bitcoin](https://www.coinwarz.com/mining/bitcoin/difficulty-chart)."
>     
> 10.  Blockchain. "[Transaction Rate per Second](https://www.blockchain.com/charts/transactions-per-second)."
>      
> 11.  Visa. "[Visa Fact Sheet](https://www.visa.co.uk/dam/VCOM/download/corporate/media/visanet-technology/aboutvisafactsheet.pdf)."
>      
> 12.  University of Cambridge. "[Bitcoin Mining Map, United States](https://ccaf.io/cbnsi/cbeci/mining_map)."
>      
> 13.  University of Cambridge. "[Bitcoin Mining Map, Global](https://ccaf.io/cbnsi/cbeci/mining_map)."
>      
> 14.  CoinWars. "[Bitcoin Hashrate](https://www.coinwarz.com/mining/bitcoin/hashrate-chart)."
>      
> 15.  Hut 8. "[Investor Relations](https://hut8.com/investors/)."
>      
> 16.  Clean Spark. "[Investor Relations](https://investors.cleanspark.com/overview/default.aspx)."
>      
> 17.  Marathon Digital Holdings. "[Investor Relations](https://ir.mara.com/)."