Safety Guides

How Does Bitcoin Mining Work?

Bitcoin mining is often described as computers solving complex maths problems. That is not quite wrong, but it hides what is really going on. Miners are competing to write the next page of a shared ledger, and the competition is designed to be expensive on purpose, because that cost is what protects the ledger from being rewritten. This guide follows one block from start to finish, explains the parts people usually skip, and shows why mining bitcoin at home is no longer a realistic way to earn for most people.

Quick answer

Bitcoin miners collect waiting transactions into a candidate block and then repeatedly hash its header, changing a small number each time, until the result falls below a target set by the network. The first miner to find a valid result broadcasts the block, other nodes check it, and the winner receives the block subsidy, currently 3.125 BTC, plus the transaction fees in that block. The network adjusts the difficulty every 2,016 blocks so that, on average, one block is found about every ten minutes.

What problem mining solves

A public ledger that anyone can write to needs a way to decide which version is the real one. If two people broadcast conflicting payments, the network must pick one, and nobody should be able to change that choice later. Bitcoin solves this by making the right to add a block expensive. Writing a block costs real electricity and hardware time. Rewriting old blocks would cost all of that again, plus enough extra to overtake the honest network. That is the whole point of proof of work: it turns history into something you would have to outspend the world to change.

Step 1: transactions wait in the mempool

When you send bitcoin, your wallet broadcasts a signed transaction to the network. Nodes check that it is valid and keep it in their memory pool, usually called the mempool, until a miner includes it in a block. Miners prefer transactions that pay a higher fee per unit of block space, which is why a low-fee payment can wait for hours when the network is busy. If that has happened to you, see crypto withdrawal stuck because the fee was too low.

Step 2: the miner builds a candidate block

A miner, or more often a mining pool, picks transactions from the mempool and assembles a candidate block. The first transaction in the block is special: it is the coinbase transaction, where the miner pays themselves the block subsidy and the total fees. The block also has a header, a small summary that includes a reference to the previous block, a fingerprint of all the transactions, a timestamp, the current target and a field called the nonce. The way each header points to the one before it is what makes the chain; it is explained in more detail in what a blockchain is.

Step 3: hashing, over and over

The miner runs the block header through the SHA-256 function twice. The output, called a hash, looks like a random 64-character number. The rule is simple: the hash must be lower than the target. There is no shortcut to finding such a hash; the only way is to change the nonce or other small details and try again.

Modern mining machines try trillions of hashes per second. Across the whole network, the number of attempts per second is so large that it is measured in exahashes, that is, billions of billions. Almost every attempt fails. Mining is basically a lottery where each hash is a ticket, and buying more tickets means spending more electricity.

Step 4: a valid block is found and checked

When a miner finally finds a hash below the target, they broadcast the block. Every full node checks it independently: is the proof of work valid, are all transactions properly signed, is nothing spent twice, and is the miner claiming no more than the allowed subsidy plus fees. If anything is wrong, nodes reject the block and the miner's effort was wasted. This is an important detail: miners do not decide the rules. They only compete to apply them first.

Step 5: confirmations and the miner's reward

Once a block is accepted, its transactions have one confirmation. Each later block adds another. The deeper a transaction is buried, the more work an attacker would need to undo it, which is why exchanges wait for several confirmations before crediting a deposit. Our guide on what a blockchain confirmation is covers that in detail.

The miner's own reward has a waiting period too. Coins created in a coinbase transaction cannot be spent until 100 more blocks have been added, which protects the network if the block is later orphaned by a competing chain.

Difficulty adjustment: how Bitcoin keeps its rhythm

If more miners join, blocks would arrive faster than every ten minutes. If miners leave, blocks would slow down. Bitcoin handles this automatically. Every 2,016 blocks, about every two weeks, every node compares how long those blocks actually took with the two weeks they should have taken, and moves the target up or down. More mining power means a harder target; less mining power means an easier one.

This is why adding machines to the network does not create bitcoin faster. It only raises the difficulty for everyone. The total issuance follows the halving schedule regardless, as explained in Bitcoin halving explained.

Why miners join pools

A single machine competing against the whole network might wait years before finding a block. Mining pools solve that by combining thousands of machines. Members submit easier proofs, called shares, to show they are working, and the pool splits each block reward in proportion to the work contributed, minus a fee. Income becomes small and regular instead of rare and huge. The downside is concentration: a few large pools build a big share of all blocks, which is a long-running topic of debate in the Bitcoin community.

From CPUs to ASICs: why home mining stopped paying

In 2009, Satoshi and Hal Finney mined on ordinary computers. Within a few years, miners moved to graphics cards, then to specialised chips called ASICs that do nothing except SHA-256 hashing. Today, an ordinary laptop or phone has no realistic chance of earning meaningful bitcoin by mining. Profitable mining depends on very cheap electricity, efficient machines, cooling and scale. After each halving, the margin gets thinner.

Some people still run small home miners as a hobby or to heat a room, and that is a fine reason. Just do the electricity maths before expecting a profit.

Mining apps and cloud mining: a quick filter

Because mining sounds like free money, it is one of the most abused words in crypto marketing. Phone apps that claim to mine bitcoin in the background usually do not mine anything; at best they pay small rewards from advertising, at worst they collect deposits. Cloud-mining offers that promise a fixed daily return are a frequent cover for Ponzi schemes.

  • Real mining cannot promise a fixed daily return, because rewards depend on difficulty, price and fees.
  • A phone cannot mine bitcoin profitably. If an app says it does, ask what it is really paying you for.
  • Be very suspicious of any service that asks for a deposit or ‘activation fee’ before you can withdraw.
  • Upgrade plans with higher ‘hash power’ for a fee follow the same pattern as task scams; see task scam crypto withdrawal fee.

Does mining harm the environment?

Bitcoin mining uses a lot of electricity, and the debate around it is real. Critics point to total energy use and to mining powered by fossil fuels. Supporters point to the growing share of renewable and stranded energy, such as flared gas, and argue that energy use is the price of security without a central operator. Estimates of the renewable share vary widely depending on the method. If this matters to you, look at recent independent research rather than figures from either side's marketing.

Proof of work versus proof of stake

Not every cryptocurrency uses mining. Ethereum switched from proof of work to proof of stake in 2022, and many newer networks use staking from the start. In proof of stake, validators lock up coins as collateral instead of spending electricity, and they risk losing part of it if they cheat. Each approach has trade-offs in energy, decentralisation and security assumptions. Bitcoin, Litecoin and Dogecoin still use proof of work. For a broader view of the coins that went in other directions, see what altcoins are.

How you can earn bitcoin without mining

If what you really want is a small amount of bitcoin to learn with, mining is the slowest route for most people. Faucets, PTC sites and offerwalls pay tiny rewards for time and attention, and they do not need special hardware. Our guide on free Bitcoin for beginners without investment explains the realistic options and their limits.

Sources checked on December 1, 2026

Protocol rules such as the target, difficulty interval and coinbase maturity are documented in the Bitcoin whitepaper and developer documentation.

Scam-aware reminder

Be careful with websites that promise unrealistic rewards, ask for deposits before withdrawal, or require suspicious wallet connections. Small reward sites should never need your seed phrase.

FAQ

What does a Bitcoin miner actually do?

It bundles waiting transactions into a block and hashes the block header repeatedly until it finds a result below the network's target, then broadcasts the block.

How long does it take to mine a Bitcoin block?

About ten minutes on average across the whole network. The difficulty adjusts every 2,016 blocks to keep that pace.

How much does a miner earn per block?

The block subsidy, 3.125 BTC since April 2024, plus all transaction fees in the block.

Can I mine Bitcoin on my phone or laptop?

Technically you can run mining software, but against modern ASIC machines your chance of earning anything meaningful is close to zero.

What is a mining pool?

A group of miners that combine their hashing power and share block rewards according to the work each one contributes.

Is cloud mining safe?

Many cloud-mining offers are scams. Be especially wary of fixed daily returns, deposit requirements before withdrawal and paid upgrade plans.

Advertisement