Pool a výplaty

Vardiff: how a pool sets share difficulty and why the hashrate chart fluctuates

Author: Updated 7 min read

Vardiff – PC Praha

Vardiff (variable difficulty) is the automatic setting of share difficulty, which the pool continuously adjusts to the performance of each miner. The aim is for every machine – from a small Bitaxe to an 860TH/s hydro miner – to submit shares at a roughly steady rhythm, typically once every few seconds. In the long run, share difficulty has no effect on your payout; it only changes how “smooth” the hashrate chart looks and how much traffic flows between the miner and the pool.

Summary

  • A share with difficulty D represents, on average, D × 232 hashes (for SHA-256).
  • The pool raises or lowers D until the time between shares settles around the target (usually 5–15 s, up to 60 s on some pools).
  • Higher D = fewer shares and less traffic, but a “jumpier” short-term hashrate chart; long-term earnings stay the same.
  • Some pools let you set a fixed difficulty in the password field (d=…); for most users, vardiff is all they need.
  • After a restart or when a machine connects, vardiff takes a few minutes to “settle” – a brief dip in the chart is normal.
Explanation:

Simple: vardiff is like counting money in banknotes instead of coins

Imagine the pool is a cashier counting how much work each machine has done. A small miner brings in “small change”, but a big machine would swamp the cashier with it – thousands of coins a minute. So the pool tells the big machine: “Bring me large notes instead.” The value stays the same; it is just counted in bigger pieces. That is exactly what vardiff does: it gives bigger machines a higher share difficulty (a “bigger banknote”, if you like) so that a sensible number of shares arrive.

  • It does not change your payout. One harder share earns you as much as several easier ones. What matters is the machine’s performance, not the share difficulty.
  • The hashrate chart on the pool fluctuates. When only a few shares arrive per minute, a ten-minute chart can easily jump by ±10–15%. The 24-hour average is more reliable.
  • After switching a machine on, it takes a while for the figure to settle. For the first few minutes the pool may show less than the machine is actually doing – that is not a fault.
  • You do not need to set anything. Manual difficulty mainly makes sense for hashrate rental or large farms.

Example as of 28 November 2026: our Antminer S21 XP (270 TH/s) would send a share roughly every second at a low difficulty of 65,536. The pool therefore sets its difficulty to around 300,000–900,000, so that a share arrives once every 5–15 seconds.

You will find the details, with figures and tables, in the technical explanation.

Share difficulty and time between shares

The pool gives the miner a target that is much easier than the network target. Share difficulty D expresses how many times harder the target is than “diff 1” (target 0x00000000FFFF…). For SHA-256, according to the Bitcoin Wiki:

average number of hashes per share = D × 232 and therefore time between shares = D × 232 ÷ hashrate.

Every share that meets the pool target is proof of work; occasionally a share also meets the network difficulty, and then it is a found block (see Share, reject and stale and Mining difficulty).

Our calculation: time between shares on our machines

Machine Hashrate D = 65,536 D = 262,144 D = 1,048,576 D for 5 s D for 15 s
Antminer S21 151 TH/s 1.9 s 7.5 s 29.8 s ≈ 176,000 ≈ 527,000
Antminer S21++ 235 TH/s 1.2 s 4.8 s 19.2 s ≈ 274,000 ≈ 821,000
Antminer S21 XP 270 TH/s 1.0 s 4.2 s 16.7 s ≈ 314,000 ≈ 943,000
Antminer S21+ Hyd 395 TH/s 0.7 s 2.9 s 11.4 s ≈ 460,000 ≈ 1.38 m
Antminer S21e XP Hyd 3U 860 TH/s 0.3 s 1.3 s 5.2 s ≈ 1.0 m ≈ 3.0 m

Calculation: D × 232 ÷ nominal hashrate. Actual hashrate may differ by a few per cent depending on firmware, temperature and operating mode.

How vardiff works

The pool monitors how many shares arrive from a given connection and adjusts D at regular intervals. Typical parameters from open-source implementations:

Implementation / pool Target time between shares Retarget Note
node-stratum-pool, Miningcore 15 s every 90 s ±30% tolerance; Miningcore limits the size of a single step
ckpool not stated “fast” vardiff default startdiff 10,000, mindiff 1
Braiins Pool approx. 5 s (Academy); the blog states 2–3 s automatic password is “legacy”; optional minimum difficulty in the interface
Kryptex Pool approx. 60 s automatic fixed difficulty via d=

In Stratum V1, the pool sends the new value with the mining.set_difficulty message, and the miner should apply it from the next job. The miner can request a value with the mining.suggest_difficulty message, but the pool does not have to comply. In Stratum V2, the miner reports its nominal hashrate when opening a channel, and the pool sets the target with the SetTarget message; the specification does not define a recommended share frequency. More in the article Stratum and Stratum V2.

Why the hashrate chart on the pool fluctuates

Shares arrive randomly (a Poisson process). The pool estimates hashrate as the sum of D × 232 over a window ÷ the window length, and the relative error of the estimate is roughly 1 ÷ √N, where N is the number of shares in the window.

Chart window Share every 5 s Share every 15 s
10 minutes N = 120, ±9.1% N = 40, ±15.8%
1 hour N = 720, ±3.7% N = 240, ±6.5%
24 hours N = 17,280, ±0.8% N = 5,760, ±1.3%

The values are one standard deviation – roughly a third of measurements will land even further from reality. That is why pools and monitoring tools often work with averages over one to 24 hours. If a machine “shows 15% less” on the pool over the last 10 minutes, that does not yet mean a fault; compare the hashrate reported by the miner itself with the daily average.

Difficulty too low vs. too high

  • D too low: hundreds of shares a minute, unnecessary traffic and load on the pool server. That is why every pool has a minimum, and NiceHash requires a high minimum for SHA-256 (500,000 according to its page for pool operators; values change).
  • D too high: few shares, erratic charts and false “machine offline” alerts. A weak device (e.g. a home solo miner) may not find a single share in a minute.
  • Stale shares: the proportion of work wasted due to delays and job changes depends on latency and how often new jobs are issued, not on D. A higher D only makes the reject percentage “jumpier”, because each lost share is a bigger chunk of work.
  • “Low difficulty” rejects may appear shortly after a change in D if the miner still submits a share based on the old value. If there are persistently many of them, look for the cause in your settings or firmware.

Manual (fixed) difficulty

Some pools let you enter the difficulty in the password field, e.g. x,d=524288 or d=1024 (Litecoinpool, Kryptex, ViaBTC). The pool may round the value or ignore it if it is outside its range. Braiins Pool does not use the password and only offers an optional minimum difficulty. You can calculate the value for your chosen time between shares as D = hashrate × time ÷ 232.

Note: for other algorithms, “diff 1” is defined differently. For Scrypt, for example, according to Kryptex documentation diff 1 corresponds to just 216 hashes, so D values for Bitcoin and Litecoin cannot be compared directly. For the Antminer L9 (16 GH/s), a share every 15 s would correspond to a D of roughly 3.7 million.

Read next

Sources: Bitcoin Wiki – Difficulty, Bitcoin Wiki – Stratum mining protocol, Stratum V2 – Mining Protocol, Miningcore – configuration, ckpool wiki, Braiins Academy, Kryptex – vardiff vs. static diff, NiceHash – pool operators. Calculations for our machines as of 28 November 2026.

Frequently asked questions

What is vardiff?
Variable share difficulty. The pool sets it automatically according to the miner’s performance so that shares arrive at a steady rhythm, typically once every 5–15 seconds.
Does share difficulty affect the payout?
Not in the long run. A share with higher difficulty carries more weight, so fewer harder shares represent the same amount of work. Only the fluctuation of short-term statistics changes.
Why does the pool show a different hashrate from the miner?
The pool only estimates hashrate from the number of shares. With 40 shares in 10 minutes, the estimation error is around ±16%; over 24 hours it falls to roughly ±1%. So compare the daily average.
How do I set a fixed difficulty?
Some pools let you enter it in the password field, e.g. d=524288. Calculate the value as hashrate × desired time ÷ 2^32 (for SHA-256). Braiins Pool does not use the password and offers a minimum difficulty in its interface.

This text was prepared with the help of AI. Facts, figures and procedures were checked by Yegor.

More articles in Mining wiki