<p>As you indicated in your comment, the distribution does matter and you can't average over a long period. So you would have to know:</p>

<ul>
<li>The starting difficulty and which height it's provided for.</li>
<li>The time for each subsequent block that falls on a height divisible by 2016</li>
<li>The current height or target height at which you want to calculate the new difficulty.</li>
</ul>

<p>Also note that difficulty adjustments every 2016 blocks are capped, so the new difficulty can be 4x higher or lower than the previous.</p>

CC BY-SA 3.0
2014-07-05T15:38:23.630Z
2014-07-05T15:38:23.630Z
Matthieu
<p>You should know the current difficulty to adjust the next value.
It can not be found only by number of blocks for past 3 monthes</p>

CC BY-SA 3.0
2014-07-03T19:32:31.183Z
ok - sure - I will edit my question. Of course you need to know the starting difficulty - but then the question is still open. My latest thought is: the answer is no. If the difficulty increases it increases more if the blocks are distributed evenly - thus the distribution does matter.
user599464
CC BY-SA 3.0
2014-07-03T09:10:04.287Z
2014-07-03T09:10:04.287Z
amaclin
<p>The background of this question is wether the distribution of the block generation does matter? Lets say we have a period of 12 weeks. If the number of blocks created in this time is 6*2016 then the difficulty should not change. If the number of blocks is (6*2016)*1,1 (10% more) the difficulty what have risen 6 times by 10%. This both statements should be true if the generation of the blocks is (more or less) equally distributed over the time.</p>

<p>I wonder now if this is true for different distributions.</p>

<p>I know there are this limits in difficulty adjustment (4 and 1/4) but if they are not reached it should be possible?</p>

<difficulty>
Is it possible to calculate the difficulty purely by the number of blocks generated in e.g. 3 month and the staring difficulty?
user599464
# Is it possible to calculate the difficulty purely by the number of blocks generated in e.g. 3 month and the staring difficulty?

(Asked by: username_0 on 2014-07-03)

The background of this question is wether the distribution of the block generation does matter? Lets say we have a period of 12 weeks. If the number of blocks created in this time is 6\*2016 then the difficulty should not change. If the number of blocks is (6\*2016)\*1,1 (10% more) the difficulty what have risen 6 times by 10%. This both statements should be true if the generation of the blocks is (more or less) equally distributed over the time.

I wonder now if this is true for different distributions.

I know there are this limits in difficulty adjustment (4 and 1/4) but if they are not reached it should be possible?

**Tags:** difficulty


---

## 2 answers

### Answer by username_1 on 2014-07-05. Score: 2 | Accepted answer

As you indicated in your comment, the distribution does matter and you can't average over a long period. So you would have to know:

* The starting difficulty and which height it's provided for.
* The time for each subsequent block that falls on a height divisible by 2016
* The current height or target height at which you want to calculate the new difficulty.

Also note that difficulty adjustments every 2016 blocks are capped, so the new difficulty can be 4x higher or lower than the previous.


---

### Answer by username_2 on 2014-07-03. Score: 2

You should know the current difficulty to adjust the next value.
It can not be found only by number of blocks for past 3 monthes

> **Comments:**
> **username_0**: ok - sure - I will edit my question. Of course you need to know the starting difficulty - but then the question is still open. My latest thought is: the answer is no. If the difficulty increases it increases more if the blocks are distributed evenly - thus the distribution does matter.  

---

