2 min to read.
Hashrate
The number of hash calculations per second that a miner or a whole proof-of-work network performs.
What is Hashrate?
Hashrate is the amount of computing power devoted to mining on a proof-of-work blockchain, measured as the number of hash calculations performed per second. It can describe a single machine, a mining pool or the entire network. A higher network hashrate means that more work protects the chain.
How it works
In proof of work, miners repeatedly hash a block header with different values until the result falls below a target set by the network. Each attempt is one hash. The only way to find a valid block is to try a huge number of attempts, so a miner's chance of finding the next block is proportional to its share of the total hashrate.
Hashrate is expressed in hashes per second (H/s) with the usual prefixes: kilo, mega, giga, tera, peta and exa. Bitcoin's network hashrate is quoted in exahashes per second (EH/s); one exahash is 10^18 hashes.
The network hashrate is not measured directly. It is estimated from the current difficulty and how quickly blocks are being found, so published figures fluctuate.
Hashrate and difficulty
If hashrate rises, blocks would be found faster. Bitcoin compensates by adjusting the mining difficulty every 2,016 blocks, about every two weeks, so that blocks keep arriving roughly every ten minutes on average. When miners switch off, the difficulty falls again.
Example
A miner controlling 1% of the network hashrate can expect to find, on average, about 1 in every 100 blocks. Since this is a matter of probability, most miners join pools that combine hashrate and share rewards more evenly.
Why it matters
To rewrite recent history, an attacker needs more hashrate than the honest part of the network, which is the basis of a 51% attack. The higher the total hashrate, the more hardware and electricity such an attack requires.
Common misunderstandings
More hashrate does not make the network process transactions faster; the difficulty adjustment keeps block times stable. Hashrate is also not the same as energy use, since newer machines produce more hashes per unit of electricity.