<pre><code>hashes = shares * share_difficulty * 2**48 / 65535
</code></pre>

<p>thus:</p>

<pre><code>megahash_per_second = shares_per_second * share_difficulty * 4295.032833
</code></pre>

CC BY-SA 3.0
2013-09-18T23:24:45.303Z
Conceptually: Compute the expected number of hashes required to find each share that is actually found and sum them. Divide by the amount of time to get the hash rate.
David Schwartz
CC BY-SA 3.0
2013-09-18T23:06:52.930Z
2013-09-18T23:06:52.930Z
Pieter Wuille
<p>Trying to generate useful stats about client activity in a pool. If a quantity of submitted (timestamped) shares is known, and the difficulty of each share is known, how can the client's aggregate hashrate be determined?</p>

<mining-pools><difficulty><mining-pool-shares>
Can a miner's hashrate be derived from shares submitted at a given difficulty?
Ryan
# Can a miner's hashrate be derived from shares submitted at a given difficulty?

(Asked by: username_0 on 2013-09-18)

Trying to generate useful stats about client activity in a pool. If a quantity of submitted (timestamped) shares is known, and the difficulty of each share is known, how can the client's aggregate hashrate be determined?

**Tags:** mining-pools, difficulty, mining-pool-shares


---

## 1 answers

### Answer by username_1 on 2013-09-18. Score: 2

hashes = shares * share_difficulty * 2**48 / 65535

thus:
megahash_per_second = shares_per_second * share_difficulty * 4295.032833

> **Comments:**
> **username_2**: Conceptually: Compute the expected number of hashes required to find each share that is actually found and sum them. Divide by the amount of time to get the hash rate.  

---

