Difficulty is an exact number that every node can compute from the block header. Hashrate is not: nobody can read it off the chain, so every published figure is an estimate inferred from how fast blocks arrived and how hard they were to find. Knowing which of the two you are looking at, and over what window, prevents most misreadings.
Two different kinds of number
Difficulty is a property of the chain. Each block header stores the threshold the block hash had to beat, in a compact field called nBits. Convert that threshold into a ratio against the easiest allowed one and you have difficulty. Two honest nodes always get the same answer, and the node call getdifficulty returns it for the current tip.
Hashrate is a rate of events nobody records. A miner’s attempts that fail leave no trace on the chain; only the winning header is published. The network total has to be deduced from the winners.
| Difficulty | Hashrate | |
|---|---|---|
| Where it comes from | Block header field, set by the retarget rule | Inferred from difficulty and block timing |
| Exact or estimated | Exact | Estimated |
| How often it changes | Every 2,016 blocks | Every estimate window, continuously |
| Same everywhere | Yes, on every node | No, depends on window and method |
How a hashrate estimate is built
The method is a unit conversion. A block at difficulty D takes about D x 2^32 hash attempts to find on average, a figure that follows from how difficulty is defined relative to the easiest target. If a stretch of blocks arrived in a known number of seconds, the implied rate is the work divided by the time.
Estimated hashrate = (sum of difficulty over the blocks) x 2^32 / (elapsed seconds across the window)
Bitcoin Core’s getnetworkhashps does this for a chosen number of recent blocks. Its documentation describes the result as an estimate, and it lets the caller pick the window, with a default of the latest 120 blocks and an option to span everything since the last difficulty change.
The figure on a block explorer, a data desk or an exchange dashboard is some variant of this calculation, with a window chosen by its publisher.
A worked example with illustrative inputs
The inputs here are made up to keep the arithmetic readable.
- Suppose difficulty is 100 trillion, written 1 x 10^14.
- Expected attempts per block: 1 x 10^14 x 4.295 x 10^9, about 4.3 x 10^23.
- If blocks arrive exactly every 600 seconds, the rate is 4.3 x 10^23 / 600, about 7.2 x 10^20 hashes per second.
- That is roughly 716 exahashes per second (one exahash is 10^18).
Now suppose the last 144 blocks took 22 hours instead of 24. The blocks came about 8.3 percent faster than planned, so the same formula yields an estimate about 9.1 percent higher, around 781 EH/s. The difficulty has not moved; only the observed timing has.
Why short windows are noisy
Block discovery is a random process with no memory. The gap to the next block is unpredictable even when the hashrate is perfectly steady, and the spread is large. This is statistics rather than a flaw in anyone’s method.
For a sum of n independent block intervals, the relative spread of the elapsed time is about one divided by the square root of n. That gives a rough one-standard-deviation noise level for the hashrate that is inferred from n blocks, assuming the true rate did not change:
| Blocks in window | Roughly equals | Noise level (about) |
|---|---|---|
| 6 | 1 hour | 41 percent |
| 36 | 6 hours | 17 percent |
| 144 | 1 day | 8 percent |
| 1,008 | 1 week | 3 percent |
| 2,016 | 1 retarget period | 2 percent |
A one-hour estimate that jumps by a third is therefore unremarkable. A daily estimate moving by a few percent usually says as much about luck as about machines. Nothing in the table is a measurement of the network; it is a property of the arithmetic and the random arrivals.
Real hashrate also changes while you measure. Machines are added, switched off, or moved between locations, so a long window blends different states of the network and a short one is noisy. There is no window that is both quick and quiet.
The weak spot: timestamps
The elapsed time in the denominator comes from block timestamps, which miners set themselves. The rules only require a timestamp later than the median of the previous eleven blocks and no more than two hours ahead of the clock a node sees. A block can carry a time earlier or later than when it really arrived, and blocks can even appear slightly out of order by their stamps.
Across a window of hundreds of blocks the errors cancel out. Across a handful they do not. This is one more reason to distrust an estimate built from a few blocks, and it is the same limitation the retarget rule itself lives with. The mechanics are covered in how difficulty retargeting works.
How the two series relate
Within one retarget period difficulty is a flat line. Hashrate estimates wiggle around it. Over many periods the two tend to travel together because the retarget rule steers block timing back to ten minutes, which makes difficulty track the level of hashrate with a delay of up to a period.
Three consequences follow.
- Difficulty lags. It describes the fortnight that has just ended, so a sudden change in hashrate appears in block timing first and in difficulty at the next boundary.
- Divergence is normal. A rising difficulty with a falling hashrate estimate can simply mean the estimate window caught a slow stretch.
- Neither is a verdict. Both reflect hardware, power contracts and operating decisions made well before the period. Read them as descriptions of the network, not signals about anything outside it.
Cross-checks you can run yourself
Two quick checks need nothing but a block list. The first is the average interval over a retarget period. If a period took exactly 14 days, the average gap was 600 seconds and the estimate over that period equals difficulty x 2^32 / 600, so the estimate and difficulty line up perfectly.
Any period that ran faster or slower than 14 days leaves a gap between them equal to that same percentage, which is how the retarget rule reads it.
The second check is the spread of single gaps. If you list a few hundred consecutive block gaps, many will be under two minutes and a few over thirty. That wide scatter is normal for a random process with a ten-minute mean, and it is the reason a chart of block times looks messy even when the network is healthy.
A node operator can pull both numbers from one call. The getmininginfo reply bundles the current difficulty and a network hashrate estimate, which makes it easy to see the two side by side from the same source and the same moment. Comparing figures from the same call removes one source of apparent disagreement.
Reading the figures on our network hub
The network hub carries the difficulty and hashrate data. A short checklist keeps the reading honest.
- Find the source label and fetch time on each figure. A number is only as fresh as its last fetch, and when the data is unavailable the box simply does not appear.
- Ask what window the hashrate figure averages. A smoothed multi-day value and a spot value of the latest blocks are not comparable, and the two will differ by roughly the noise levels in the table above.
- Compare like with like. Do not set a spot estimate against a weekly average from a different publisher and read the gap as a change in the network.
- Treat difficulty as the anchor and hashrate as the wobbly companion. If the two seem to disagree, the estimate is the less certain one.
The figure above is an estimate. It carries the noise described in this guide, and it is a description of recent blocks, not a measurement of every machine and not a statement about the future. How the desk sources, caches and labels data is set out on the methodology page.
An example of reading a chart
Imagine a chart where the hashrate line drops 12 percent on a single day and recovers two days later, while difficulty stays flat. Walk through the questions in order.
How many blocks fed the point? If it was a one-day window, 12 percent is about one and a half standard deviations of pure noise, so a random slow stretch is a plausible explanation.
Did the neighboring points show the same dip? A real change in machines would persist across overlapping windows, while a luck-driven dip fades as the window moves on. Finally, did the next difficulty adjustment move in the same direction? A move of a few percent would be consistent with the dip but would not prove it.
The habit worth keeping is to name the window, name the method and name the noise before attaching a story to a line on a chart.
Units and common slips
Hashrate is quoted in hashes per second with metric prefixes. A terahash per second is 10^12, a petahash 10^15, an exahash 10^18 and a zettahash 10^21. Mixing them up is the most common error, since a thousand-fold difference looks like a typo. Difficulty has no unit; it is a pure ratio. When a source gives difficulty in the trillions, compare it on the same scale before drawing a conclusion.
A few other slips recur:
- Reading a percentage change in difficulty as a percentage change in hashrate. They are related over time, not equal in any one period.
- Treating the hashrate estimate as the number of machines. It says nothing about count, efficiency or location.
- Assuming a record in one series must coincide with a record in the other. The two are measured differently and at different times.
- Quoting a one-day estimate as if it had the precision of difficulty.
If you want the economics that sit behind these numbers, mining economics and hashprice shows how they feed revenue per unit of work. This guide is educational, not financial advice, and none of its figures describe the current state of the network.
Frequently asked questions
Is Bitcoin hashrate measured or estimated?
Why does the hashrate estimate jump around day to day?
Is difficulty also an estimate?
Why can difficulty and hashrate seem to disagree?
Sources
- RPC getnetworkhashps · Bitcoin developer documentation
- RPC getdifficulty · Bitcoin developer documentation
- RPC getmininginfo · Bitcoin developer documentation
Educational data only. Not financial, investment or tax advice; no licence is claimed. Bitcoin Prime publishes no forecasts, targets or trading signals.