What does a Bitcoin miner actually do?
Miners collect pending transactions, assemble them into a candidate block, and try to find a valid proof of work for it. The proof is a hash of the 80-byte block header that falls below a threshold called the target. The hash function cannot be shortcut, so the only way to find a qualifying hash is to try many inputs.
The header contains a field called the nonce that the miner changes on every attempt, along with other fields that can also be varied. Mining hardware iterates through values at enormous speed, hashing each one and checking whether it is below the target. When one passes, the miner broadcasts the block, other nodes verify it quickly, and it joins the chain. Verification is cheap and finding the solution is expensive, which is what makes the work meaningful.
What does the miner earn?
The first transaction in a block is the coinbase transaction, created by the miner, which collects the block reward. The reward has two parts: the block subsidy of newly created bitcoin and the fees paid by every transaction included in the block. The Bitcoin developer documentation notes that coinbase outputs cannot be spent for at least 100 blocks, so a miner waits for the block to be buried before using the income.
The subsidy halves every 210,000 blocks. According to the Bitcoin Wiki, it fell to 3.125 BTC per block at block 840,000, reached on 20 April 2024. Halving continues until the total supply approaches 21 million, so the subsidy shrinks over time and fees become a larger share. See the halving countdown for the next event and the glossary entries on halving and block reward. For how fees are set, read our guide on how Bitcoin transaction fees work.
How does difficulty keep blocks on schedule?
If more hashing power joins the network, blocks would be found faster, and if power leaves they would slow down. Bitcoin corrects this by changing the target. Every 2,016 blocks, nodes use the timestamps in block headers to measure how long the last 2,016 blocks took, compared with an ideal of 1,209,600 seconds, which is two weeks. If blocks came too quickly, the target is lowered so that valid hashes are rarer, and if they came too slowly it is raised. Two weeks divided by 2,016 blocks is ten minutes per block, which is the intended pace.
The developer guide says a single adjustment can raise difficulty by as much as 300 percent or lower it by as much as 75 percent. The difficulty adjustment tool shows how far into the current period the network is and the estimated change, and the glossary covers difficulty adjustment and hash rate.
How do mining pools fit in?
A single machine has a tiny chance of finding a block in any one attempt, so income would arrive rarely and unpredictably. Pools combine many miners. The pool sets an easier target for "shares", which prove each miner is doing work, while only hashes that meet the real network target become blocks. The Bitcoin developer documentation describes this: the pool sets a threshold far easier than the network's, and the block reward and fees from a pool-mined block are paid to the pool, which divides them among members according to its rules. Pools charge a fee and use different payout schemes, so compare them before you commit hardware to one.
How is mining income calculated?
Expected income depends on your share of the network's total hashing, how many blocks are found each day, and what each block pays. A standard expected-value formula, also used by our mining calculator, is: coins per day = hashrate in hashes per second times 86,400 seconds times block reward, divided by difficulty times 2 to the power 32.
Here is an illustration with made-up inputs, not current network values. Take a machine at 100 TH/s, which is 10 to the power 14 hashes per second, a difficulty of 10 to the power 14, and a reward of 3.125 BTC. The numerator is 10 to the power 14 times 86,400 times 3.125, about 2.7 times 10 to the power 19. The denominator is 10 to the power 14 times 2 to the power 32, about 4.3 times 10 to the power 23. The result is about 0.0000629 BTC per day. Change the difficulty and the answer scales in inverse proportion, which is why difficulty rises squeeze the income of every machine at once.
That figure is before fees, pool charges and costs. The calculator lets you enter the current numbers and your own costs, but remember it is an average over many blocks; actual results vary, especially for small miners.
What costs and risks should I include?
Income is only half of the calculation. Include these before you decide whether mining makes sense for you.
- Electricity. Power draw multiplied by your price per kilowatt-hour is usually the largest ongoing cost, and rates differ widely by location.
- Hardware. Specialised machines (ASICs) cost money up front, lose value as newer models arrive, and run hot and loud, so cooling and noise matter at home.
- Pool and network fees. Pool fees reduce income, and uptime matters because a machine that is off earns nothing.
- Difficulty and reward changes. Difficulty tends to change every two weeks and the subsidy halves roughly every four years, so income that works now can disappear later.
- Price risk. Income is in BTC while many costs are in your local currency, so a price move changes profit without any change to your hardware. We do not forecast price.
- Tax and regulation. Rules vary by country. Check yours before you buy.
Is mining still worth it for individuals?
That is a calculation, not a verdict. It depends on your electricity price, the hardware you can get, the current difficulty and the BTC price when you sell. Run your own numbers in the calculator using conservative inputs, include every cost, and test what happens if difficulty rises or the price falls. If the sums only work in the best case, they do not work. Many people instead choose to buy bitcoin directly. This guide is general information and not financial advice.