Network and blocks

What is mining difficulty?

Difficulty is a number that sets how hard it is to find a valid block hash.

Bitcoin today 134.82 T Current Bitcoin network difficultyUpdated 6 minutes ago See the history
Lowest value on Bitcoin
1
Expected hashes per block
Difficulty × 2^32
Stored in the block as
Bits, a 4-byte target
Changes on Bitcoin
Every 2,016 blocks
Unit
None; it is a ratio

What it means in practice

The network lowers the hash target as difficulty rises, so it sets how many attempts a winning hash takes on average. On Bitcoin the expected number of hashes per block is difficulty times 2^32. Difficulty is reset every 2,016 blocks so that blocks keep arriving about every ten minutes however much hashrate joins or leaves.

A ratio between two targets

A block hash is read as one very large number. It wins if it is at or below the target. Difficulty says how many times smaller the present target is than the easiest one the network allows. Difficulty 1 is that easiest target; difficulty 140T is a target 140 trillion times smaller.

The block header does not store difficulty at all. It stores the target, squeezed into four bytes called bits. Software divides one target by the other to show the number people quote.

The four difficulties on a miner’s screen

A pool page can list several at once. Network difficulty is the one that makes a block. Share difficulty is the much lower bar the pool sets for your machine. The difficulty of one share is how good that particular hash was. Best share is the best your machine has ever found.

They all use the same scale, so they can be compared. If your best share is above network difficulty at the time, you have found a block.

How good a best share to expect

On average a machine needs d × 2^32 hashes to find one share of difficulty d. Turn that around and you get the best share a day normally brings.

Example figures: 200 TH/s for a day is 1.728 × 10^19 hashes. Divide by 4,294,967,296 and the result is about 4.02 billion, so a typical daily best is a few billion, written 4.02G. Against a network difficulty of 140T that is roughly 1 in 34,800, which is also the chance of a block that day.

Other chains move at other speeds

Litecoin also counts 2,016 blocks, but its blocks take 2.5 minutes, so it adjusts about every three and a half days. Dogecoin, Bitcoin Cash and Kaspa adjust with each block. A coin that adjusts every block reacts within hours when miners arrive or leave.

Two coins on one algorithm therefore compete smoothly: when one becomes richer, machines move, its difficulty climbs and the gap closes.

For a machine that stays on Bitcoin the effect is gentler. The figure holds still for about two weeks, then steps, and the income of every TH/s in the world steps with it at the same block.

Worked example

At a difficulty of 140T, the expected work per block is 140 × 10^12 × 4,294,967,296 ≈ 6.01 × 10^23 hashes. The whole network shares that work, and a block arrives about every ten minutes.

Example figures, not live data.

Common mistakes

  • Thinking a higher difficulty makes a machine use more power; its draw stays the same and only the odds per hash change.
  • Mixing the network’s difficulty with the share difficulty shown next to a worker.
  • Comparing difficulty between algorithms, where one hash is not the same amount of work.

Common questions

Why is difficulty written with a T?

T stands for trillion. 140T is 140 trillion, a plain number without a unit.

Can difficulty go down?

Yes. When blocks come slower than planned, the next adjustment lowers it and each running machine mines more coins per hash.

Is there a highest difficulty?

In practice no. The target could shrink until almost no hash qualifies, far beyond anything mining has approached.

Work out what a machine earns you

Pick a miner, enter the electricity price you pay and read the income per day.

Open the calculator

What the top Bitcoin miners earn today

Income per day for one machine, before electricity.

Top earner In stock
Bitmain Hydro

Antminer S23 Hyd 3U 1,160 TH/s

$32.66 income per day

Hashrate, Power
1,160 TH/s11,020 W
Price
$25,739
Coming soon
MicroBT Hydro

WhatsMiner M79S 930 TH/s

$26.18 income per day

Hashrate, Power
930 TH/s14,000 W
Price
Price on request
In stock
Bitdeer Hydro

SEALMINER A4 Ultra Hydro 886 TH/s

$24.94 income per day

Hashrate, Power
886 TH/s8,373 W
Price
$19,800
Coming soon
MicroBT Hydro

WhatsMiner M79 870 TH/s

$24.49 income per day

Hashrate, Power
870 TH/s14,000 W
Price
Price on request

Updated 6 minutes ago Not financial adviceHow we calculate