Sunday 6 December 2026

How Bitcoin Mining Works, From Hash Rate to the Halving

Miners are not solving equations. They are guessing, trillions of times a second, and the first to hit a rare number gets to add the next block. Here is the full picture, from SHA-256 and difficulty to pools, fees and the halving.

IntermediateLast reviewed
A long row of server racks with green status lights in a dim data center

Key takeaways

  • Bitcoin mining is a guessing race: machines hash a block header over and over, changing one number, until the result falls below a target set by the network.
  • The network adjusts that target every 2,016 blocks, about two weeks, so blocks keep arriving roughly every 10 minutes however much computing power joins.
  • Miners earn a fixed subsidy, currently 3.125 BTC per block, plus transaction fees. The subsidy halves every 210,000 blocks.
  • The next halving is due at block 1,050,000, expected around spring 2028, when the subsidy drops to 1.5625 BTC.

How bitcoin mining works is one of the most misunderstood parts of crypto. Miners are often described as “solving complex math problems.” They are not. They are running the same simple calculation over and over, with a tiny change each time, hoping to stumble on a rare result. That brute-force effort is what makes bitcoin’s history expensive to rewrite, and it is how new coins enter circulation.

This guide explains the mechanics, the economics and what happens at the halving. If blocks, hashes and nodes are new to you, read How Blockchains Work first.

What miners actually do

A miner collects valid transactions from its mempool, usually prioritizing those that pay the highest fee per byte, and assembles a candidate block. It then builds the block header, which includes the hash of the previous block, a summary of all transactions (the Merkle root), a timestamp, the current difficulty target and a 32-bit number called the nonce.

The miner runs the header through the SHA-256 hash function twice. The output is a 256-bit number that looks completely random. If that number is below the network’s target, the block is valid. If not, the miner changes the nonce and tries again. When the nonce runs out, it tweaks other fields, such as a value in the first transaction, and keeps going.

Pick transactionshighest fees first Build header+ nonce Hash itSHA-256 twice Belowtarget? No: change the nonce and try again (trillions of times a second) Yes: broadcast blockearn subsidy + fees
The mining loop. Finding a valid hash takes enormous trial and error, but anyone can check it with a single calculation.

The key property is asymmetry. Finding a valid hash takes an enormous number of attempts, but checking one takes a single hash. Every node can verify a miner’s work instantly, which is why nobody has to trust miners.

Hash rate and difficulty

Hash rate measures how many guesses the whole network makes per second. Bitcoin’s hash rate is currently around 1.09 zettahashes per second, or roughly 1,090 quintillion hashes every second, based on a one-month average from mempool.space.

Difficulty is the number that sets how hard the target is to hit. Every 2,016 blocks the protocol compares how long those blocks actually took with the intended two weeks and adjusts the target. If blocks came too fast because more miners joined, the target gets harder. If they came too slowly, it gets easier. The current difficulty is about 140.6 trillion, and mempool.space estimates the next adjustment will raise it by around 7%.

This self-correcting loop is why bitcoin’s issuance schedule is so predictable. Adding more machines does not mint coins faster. It just makes every machine’s share smaller.

Where the rewards come from

The miner who finds a valid block writes a special first transaction, called the coinbase transaction, paying itself two things:

  • The block subsidy: newly created bitcoin, currently 3.125 BTC per block.
  • Transaction fees: the sum of fees paid by every transaction in the block. When the network is busy, fees rise because users compete for limited block space.

The coinbase reward cannot be spent until 100 more blocks have been added, a safety rule in case the block ends up on an abandoned branch of the chain.

The halving

Every 210,000 blocks, roughly every four years, the subsidy is cut in half. This is how bitcoin’s total supply converges on 21 million coins.

HalvingBlock heightSubsidy after
2012210,00025 BTC
2016420,00012.5 BTC
2020630,0006.25 BTC
April 2024840,0003.125 BTC
Expected around spring 20281,050,0001.5625 BTC

The chain is at block 973,440 at the time of writing, so about 76,500 blocks remain until the next halving. At ten minutes per block that is roughly 530 days, which points to the spring of 2028. Exact timing depends on how fast blocks arrive.

Each halving squeezes miner revenue unless the bitcoin price or fees make up the difference. Over the long run, as the subsidy shrinks toward zero around the year 2140, fees are meant to become miners’ main income. Whether fees will be enough to keep the network secure is one of bitcoin’s genuine open debates.

Pools, machines and electricity

Mining pools

With so much competition, a single small miner might wait years to find a block. Pools combine many miners’ hash power and share rewards in proportion to the work each contributes, giving members smaller but steady payouts. A handful of large pools find most blocks today. The pool coordinator chooses which transactions go into blocks, which raises reasonable concerns about centralization, though individual miners can switch pools quickly.

ASICs

Mining is done on ASICs, application-specific chips built to do nothing but compute SHA-256 as efficiently as possible. Ordinary computers and graphics cards are no longer competitive for bitcoin. The key measure of a machine is efficiency, joules of energy used per terahash. Newer machines are more efficient, which is why miners constantly upgrade.

Electricity

Electricity is a miner’s main ongoing cost, so mining gravitates to places with cheap power, including stranded or surplus energy that would otherwise go unused. Bitcoin’s energy use is a frequent point of criticism. The Cambridge Bitcoin Electricity Consumption Index tracks estimates if you want the current numbers.

Mining economics in one formula

Miners care about hashprice: how much revenue one unit of hash rate earns per day. It goes up with the bitcoin price and fees, and down with difficulty and each halving. When hashprice falls below a miner’s costs, older and less efficient machines are switched off, the hash rate drops, difficulty eases and the remaining miners earn more. That feedback loop keeps the system balanced over time.

Why mining matters for security

To rewrite recent history, an attacker would need to out-mine the rest of the network, the so-called 51% attack. With roughly a zettahash of honest hash rate, that would mean acquiring and powering an enormous fleet of specialized machines. The cost of attacking is what protects every transaction recorded in the chain.

Bitcoin’s design choice, proof of work, is not the only option. Many newer networks use proof of stake instead. Our upcoming guide compares the two in depth.

Sources: Bitcoin whitepaper, mempool.space mining dashboard, Bitcoin developer guide: mining, Cambridge Bitcoin Electricity Consumption Index

Not financial advice. This article is for information only. Crypto assets are volatile; do your own research before making any investment decision.

Guides Desk

Writes plain-English explainers, how-to guides and analysis for readers who want the bigger picture.

Researched and drafted with AI assistance and reviewed by our editors. How we work

All stories from the Guides Desk →

Follow us on Facebook

The day’s top crypto stories and a new plain-English guide every day, straight in your feed.

Follow Crypto Coin Week

The week in crypto, in your inbox

One email a week with the stories that moved the market. No spam, unsubscribe anytime.

We’ll email you a link to confirm your subscription. Unsubscribe anytime with one click. Privacy policy