Hidden Power (move)/Calculation: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(→‎Damage: White text for readability.)
m (→‎Damage: This is the formula for Hidden Power's power. Damage is calculated using the standard damage formula.)
 
(35 intermediate revisions by 17 users not shown)
Line 1: Line 1:
{{main|Hidden Power (move)}}
{{main|Hidden Power (move)}}
In the Pokémon games, {{m|Hidden Power}} is a {{type|Normal}} move when the type is displayed, such as in battle and on status screens. However, the actual type of Hidden Power is determined by the Pokémon's [[individual values]], and through calculation, can be set as one of other natural types. In Generations II to V, Hidden Power's base power is also determined by the Pokémon's individual values; in Generation II it ranges from 31 to 70, while in Generation III to V it ranges from 30 to 70. In Generation VI, Hidden Power's base power is always 60.
In the Pokémon games, {{m|Hidden Power}} is a {{type|Normal}} move when the type is displayed, such as in battle and on status screens. However, the actual type of Hidden Power is determined by the Pokémon's [[individual values]], and through calculation, can be set as one of other natural types. In Generations II to V, Hidden Power's base power is also determined by the Pokémon's individual values; in Generation II, it ranges from 31 to 70, while in Generation III to V, it ranges from 30 to 70. From Generation VI onward, Hidden Power's base power is always 60.


The type of Hidden Power can be checked in certain locations in the games by talking to certain NPCs. These NPCs will refuse to tell the player the Hidden Power type of a Pokémon unless it can learn the move via [[level]] up or [[TM]] (even if it knows Hidden Power at the time).<!--they will not tell the Hidden Power type of a Smeargle that knows Hidden Power-->
The type of Hidden Power can be checked in certain locations in the games by talking to certain NPCs. These NPCs will refuse to tell the player the Hidden Power type of a Pokémon unless it can learn the move via [[level]] up or [[TM]] (even if it knows Hidden Power at the time).<!--they will not tell the Hidden Power type of a Smeargle that knows Hidden Power-->
Line 7: Line 7:
*In {{game|Black and White|s}}, in [[Mistralton City]]'s [[Pokémon Center]]
*In {{game|Black and White|s}}, in [[Mistralton City]]'s [[Pokémon Center]]
*In {{game|Black and White|s 2|Pokémon Black 2 and White 2}}, the [[Pokémon World Tournament|PWT]]
*In {{game|Black and White|s 2|Pokémon Black 2 and White 2}}, the [[Pokémon World Tournament|PWT]]
*In [[Pokémon X and Y]], in the house to the right of the Boutique in [[Anistar City]]
*In [[Pokémon X and Y]], in the house to the right of the Boutique in [[Anistar City]]
*In [[Pokémon Omega Ruby and Alpha Sapphire]], in the third northern house from the east in [[Fortree City]]
*In [[Pokémon Omega Ruby and Alpha Sapphire]], in the second northern house from the west in [[Fortree City]]
*In [[Pokémon Sun and Moon|Pokémon Sun, Moon]], {{pkmn|Ultra Sun and Ultra Moon}} in the [[Pokémon Nursery]] on [[Paniola Ranch]]


There is no in-game way to determine Hidden Power's [[power]] directly in games where it is not fixed.
There is no in-game way to determine Hidden Power's [[power]] directly in games where it is not fixed.
Line 14: Line 15:
==Generation II==
==Generation II==
===Type===
===Type===
Consider an example Pokémon, like Pikachu with this set of IVs:
Consider an example Pokémon, like Shellder with this set of IVs:


{{Hidden Power calculation/II|14|15|15|15|14}}
{{Hidden Power calculation/II|12|10|10|13|8|090}}


The type is determined by taking the two {{wp|least significant bit}}s of the Attack and Defense IVs, then {{wp|Concatenation|concatenating}} these two values in that order.
The type is determined by taking the two {{wp|least significant bit}}s of the Attack and Defense IVs, then {{wp|Concatenation|concatenating}} these two values in that order.


Mathematically, this is the equivalent of:
Mathematically, this is the equivalent of <math>HP_{type} = 4 \times a \bmod 4 + b \bmod 4</math>, where ''a'' represents the Attack IV and ''b'' represents the Defense IV.
:[[File:HPtypeII.png]]
 
Where ''a'' represents the Attack IV and ''b'' represents the Defense IV.


The resulting number will correspond to a type as marked below.
The resulting number will correspond to a type as marked below.


{| class="roundy" style="background: #{{platinum color}}; border: 3px solid #{{platinum color light}}; text-align:center; {{roundy|10px}}"
{| class="roundy" style="text-align: center; color: #FFF; background: #{{bulba color}}; border: 3px solid #{{bulba color light}};"
! style="background: #{{platinum color light}}; {{roundytl|10px}}" | Number
! style="color: #000; background: #{{bulba color light}}; {{roundytl|5px}}" | Number
! style="background: #{{platinum color light}}; {{roundytr|10px}}" | Type
! style="color: #000; background: #{{bulba color light}}; {{roundytr|5px}}" | Type
|-style="background-color: #{{Fighting color}}; color:#FFFFFF" align="center"
|- style="background: #{{Fighting color}}"
| 0
| 0
| {{typecolor|Fighting}}
| {{typecolor|Fighting}}
|-style="background-color: #{{Flying color}}; color:#FFFFFF" align="center"
|- style="background: #{{Flying color}}"
| 1
| 1
| {{typecolor|Flying}}
| {{typecolor|Flying}}
|-style="background-color: #{{poison color}}; color:#FFFFFF"
|- style="background: #{{poison color}}"
| 2
| 2
| {{typecolor|Poison}}
| {{typecolor|Poison}}
|-style="background-color: #{{Ground color}}; color:#FFFFFF"
|- style="background: #{{Ground color}}"
| 3
| 3
| {{typecolor|Ground}}
| {{typecolor|Ground}}
|-style="background-color: #{{Rock color}}; color:#FFFFFF"
|- style="background: #{{Rock color}}"
| 4
| 4
| {{typecolor|Rock}}
| {{typecolor|Rock}}
|-style="background-color: #{{Bug color}}; color:#FFFFFF"
|- style="background: #{{Bug color}}"
| 5
| 5
| {{typecolor|Bug}}
| {{typecolor|Bug}}
|-style="background-color: #{{Ghost color}}; color:#FFFFFF"
|- style="background: #{{Ghost color}}"
| 6
| 6
| {{typecolor|Ghost}}
| {{typecolor|Ghost}}
|-style="background-color: #{{Steel color}}; color:#FFFFFF"
|- style="background: #{{Steel color}}"
| 7
| 7
| {{typecolor|Steel}}
| {{typecolor|Steel}}
|-style="background-color: #{{Fire color}}; color:#FFFFFF"
|- style="background: #{{Fire color}}"
| 8
| 8
| {{typecolor|Fire}}
| {{typecolor|Fire}}
|-style="background-color: #{{Water color}}; color:#FFFFFF"
|- style="background: #{{Water color}}"
| 9
| 9
| {{typecolor|Water}}
| {{typecolor|Water}}
|-style="background-color: #{{Grass color}}; color:#FFFFFF"
|- style="background: #{{Grass color}}"
| 10
| 10
| {{typecolor|Grass}}
| {{typecolor|Grass}}
|-style="background-color: #{{Electric color}}; color:#FFFFFF"
|- style="background: #{{Electric color}}"
| 11
| 11
| {{typecolor|Electric}}
| {{typecolor|Electric}}
|-style="background-color: #{{Psychic color}}; color:#FFFFFF"
|- style="background: #{{Psychic color}}"
| 12
| 12
| {{typecolor|Psychic}}
| {{typecolor|Psychic}}
|-style="background-color: #{{Ice color}}; color:#FFFFFF"
|- style="background: #{{Ice color}}"
| 13
| 13
| {{typecolor|Ice}}
| {{typecolor|Ice}}
|-style="background-color: #{{Dragon color}}; color:#FFFFFF"
|- style="background: #{{Dragon color}}"
| 14
| 14
| {{typecolor|Dragon}}
| {{typecolor|Dragon}}
|-style="background-color: #{{Dark color}}; color:#FFFFFF" align="center; color:#FFFFFF"
|-
| 15
| style="background: #{{Dark color}}; {{roundybl|5px}}" | 15
| {{typecolor|Dark}}
| style="background: #{{Dark color}}; {{roundybr|5px}}" | {{typecolor|Dark}}
|}
|}


In our example, we get:
This example results in:


HPtype=4*('''15 mod 4''')+('''15 mod 4''')='''4*3'''+3='''12+3'''='''15''', which means that our Pikachu has a {{type|Dark}} {{m|Hidden Power}}.
<math>
\begin{align}
HP_{type} & = 4 \times 10 \bmod 4 + 10 \bmod 4 \\
& = 4 \times 2 + 2 \\
& = 8 + 2 \\
& = 10
\end{align}
</math>


===Damage===
Since this value is equal to 10, per the table above, this means that the Shellder has a {{type|Grass}} {{m|Hidden Power}}.
The damage of the Hidden Power is calculated using the following formula:


:[[File:HPPowerII.png]]
===Power===
The [[power]] of the Hidden Power is calculated using the following formula:
 
<math display="block">HP_{power} = \bigg\lfloor \frac{5 \times (v + 2w + 4x + 8y) + Z}{2} + 31\bigg\rfloor</math>


* The variables ''v'' through ''y'' (the "damage bits") represent the {{wp|most significant bit}} of each IV. If a variable is less than eight, this bit is 0; otherwise, it is 1.
* The variables ''v'' through ''y'' (the "damage bits") represent the {{wp|most significant bit}} of each IV. If a variable is less than eight, this bit is 0; otherwise, it is 1.
Line 98: Line 105:
Hidden Power's base power is therefore a number ranging from 31 to 70, inclusively.  
Hidden Power's base power is therefore a number ranging from 31 to 70, inclusively.  


In our example, we get:
The result of this example is:


{{Hidden Power calculation/II|14<br>''N/A''|15<br>''1''|15<br>''1''|15<br>''1''|14<br>''1''}}
{{Hidden Power calculation/II|12<br>''N/A''|10<br>''1''|10<br>''1''|13<br>''1''|8<br>''1''|090}}


HP Power = Floor[(5*(1 + '''2*1''' + '''4*1''' + '''8*1''') + 2)/2+31] = Floor[(5*('''1 + 2 + 4 + 8''') + 2)/2+31] = Floor[('''5*15''' + 2)/2+31] = Floor[('''75 + 2''')/2+31] = Floor['''77/2'''+31] = Floor['''36.5+31'''] = '''Floor[69.5]''' = '''69''', which means that our Pikachu's Hidden Power's power is '''69'''
<math>
\begin{align}
HP_{power} & = \bigg\lfloor \frac{5 \times (1 + 2 \cdot 1 + 4 \cdot 1 + 8 \cdot 1) + 0}{2}\bigg\rfloor + 31 \\
& = \bigg\lfloor \frac{5 \times (1 + 2 + 4 + 8)}{2}\bigg\rfloor + 31 \\
& = \bigg\lfloor \frac{5 \times 15}{2}\bigg\rfloor + 31 \\
& = \bigg\lfloor \frac{75}{2}\bigg\rfloor + 31 \\
& = \lfloor 37.5 \rfloor + 31 \\
& = 37 + 31 \\
& = 68
\end{align}
</math>


{{Hidden Power calculation/II|14|15|15|15|14}}
Which means that the Shellder's Hidden Power's power is '''68'''.
{| class="roundy" width="650px" style="border: 2px solid #{{Dark color light}}"  
 
|- style="text-align:center"  
{{Hidden Power calculation/II|12|10|10|13|8|090}}
| bgcolor="#{{Dark color}}" style="width: 33%; {{roundyleft|10px}}" |[[Hidden Power (move)|<span style=color:#fff>Hidden Power:</span>]]
{| class="roundy" style="width: 650px; border: 2px solid #{{Grass color light}}"  
| bgcolor="#{{Dark color}}" style="width: 33%" | <span style=color:#fff>Type:</span><br>'''[[Dark_(type)|<span style=color:#fff>Dark</span>]]'''
|- style="text-align: center; color: #FFF"
| bgcolor="#{{Dark color}}" style="width: 33%; {{roundyright|10px}}" | <span style=color:#fff>Power:</span><br>'''<span style=color:#fff>69</span>'''
| style="width: 33%; background: #{{Grass color}}; {{roundyleft|10px}}" | {{mcolor|Hidden Power|FFF}}:
| style="background: #{{Grass color}}" | Type:<br>'''{{tcolor|Grass|FFF}}'''
| style="background: #{{Grass color}}; {{roundyright|10px}}" | Power:<br>'''68'''
|}
|}


==Generation III to VI==
=== Remarks ===
* Because {{Shiny|Shininess}} is also determined by IVs, Shiny Pokémon can only have a Grass-type or Dragon-type Hidden Power with a power of 49 or 69.
* Because gender is also determined by the Attack IV, female Pokémon of {{cat|Pokémon with a gender ratio of seven males to one female|species with a seven male to one female ratio}} can only have a physical Hidden Power.
 
==Generation III onward==
===Type===
===Type===
Consider an example Pokémon, like Pikachu with this set of IVs:
Consider an Unown with this set of IVs:


{{Hidden Power calculation/IV|30|31|31|31|30|31}}
{{Hidden Power calculation/IV|25|2|12|17|5|8|0201MS.png{{!}}75px}}


Hidden Power's type of a Pokémon with given IVs is represented by a number, calculated with this formula:
Hidden Power's type of a Pokémon with given IVs is represented by a number, calculated with this formula:
:[[File:HPcalc1.png]]
<math display="block">HP_{type} = \left\lfloor \frac{(a + 2b + 4c + 8d + 16e + 32f) \times 15}{63}\right\rfloor</math>
 
<!--'''HP<sub>type</sub>'''=<font color="#CC0000">'''Floor'''<big><big>[</big></big></font><font color="#0000FF"><big>'''('''</big></font>a+2*b+4*c+8*d+16*e+32*f<font color="#0000FF"><big>''')'''</big></font>*15/63<font color="#CC0000"><big><big>]</big></big></font> -->


where ''a'', ''b'', ''c'', ''d'', ''e'', ''f'' (the "type bits") are the {{wp|least significant bit}} of their respective IV's. If a number is odd, its least significant bit is 1, and it is 0 otherwise.
where ''a'', ''b'', ''c'', ''d'', ''e'', ''f'' (the "type bits") are the {{wp|least significant bit}} of their respective IVs. If a number is odd, its least significant bit is 1; otherwise (if the number is even), it is 0.


* ''a'' depends on the HP IV.
* ''a'' depends on the HP IV.
* ''b'' and ''c'' depend on the Attack and Defense IV's respectively.
* ''b'' and ''c'' depend on the Attack and Defense IVs respectively.
* ''d'' depends on the Speed IV.
* ''d'' depends on the Speed IV.
* ''e'' and ''f'' depend on the Special Attack and Special Defense IV's respectively.
* ''e'' and ''f'' depend on the Special Attack and Special Defense IVs respectively.


This simply means that every element of the sum in the brace is the {{wp|remainder}} of division of corresponding IV and 2, multiplied by appropriate power of 2 (2<sup>0</sup> in case of ''a'' and 2<sup>5</sup> in case of ''f''). The sum may range from 0 (when all IVs are even) to 63 (when all IVs are odd), inclusive. It is worth mentioning that the computed sum may be easily calculated by putting its variables ''a,b,c,d,e,f'' together in reverse order and interpreting this as a number in the [[wp:Binary numeral system|binary system]], which then needs to be reverted to [[wp:Decimal|decimal system]]:
The sum inside the formula may range from 0 (when all IVs are even) to 63 (when all IVs are odd), inclusive. This sum is equivalent to constructing the {{wp|binary number}} (''fedcba'')<sub>2</sub>.


''fedcba<sub>(2)</sub>'' = 32''f''+16''e''+8''d''+4''c''+2''b''+''a'' <sub>(10)</sub>
The sum is then multiplied by 15 and divided by 63. This ensures that the number representing the type ranges from 0 to 15, inclusive. The [[wp:Floor function|floor]] of this value is taken, meaning that if the result is not an {{wp|integer}}, it will be rounded down to the nearest integer less than it.
 
The summed value is then multiplied by 15 and divided by 63, to be sure that the number representing Hidden Power Type will range from 0 to 15, inclusively (16 values in total). The calculated number is then [[wp:Floor function|rounded down (''floor[]'')]], which simply means that only integral part of the calculated number is considered.


The resulting number will correspond to a type as marked below.
The resulting number will correspond to a type as marked below.


{| class="roundy" style="background: #{{platinum color}}; border: 3px solid #{{platinum color light}}; text-align:center; {{roundy|10px}}"
{| class="roundy" style="text-align: center; color: #FFF; background: #{{bulba color}}; border: 3px solid #{{bulba color light}}; {{roundy|10px}}"
! style="background: #{{platinum color light}}; {{roundytl|10px}}" | Number
! style="color: #000; background: #{{bulba color light}}; {{roundytl|5px}}" | Number
! style="background: #{{platinum color light}}; {{roundytr|10px}}" | Type
! style="color: #000; background: #{{bulba color light}}; {{roundytr|5px}}" | Type
|-style="background-color: #{{Fighting color}}; color:#FFFFFF" align="center"
|- style="background: #{{Fighting color}}"
| 0
| 0
| {{typecolor|Fighting}}
| {{typecolor|Fighting}}
|-style="background-color: #{{Flying color}}; color:#FFFFFF" align="center"
|- style="background: #{{Flying color}}"
| 1
| 1
| {{typecolor|Flying}}
| {{typecolor|Flying}}
|-style="background-color: #{{poison color}}; color:#FFFFFF"
|- style="background: #{{poison color}}"
| 2
| 2
| {{typecolor|Poison}}
| {{typecolor|Poison}}
|-style="background-color: #{{Ground color}}; color:#FFFFFF"
|- style="background: #{{Ground color}}"
| 3
| 3
| {{typecolor|Ground}}
| {{typecolor|Ground}}
|-style="background-color: #{{Rock color}}; color:#FFFFFF"
|- style="background: #{{Rock color}}"
| 4
| 4
| {{typecolor|Rock}}
| {{typecolor|Rock}}
|-style="background-color: #{{Bug color}}; color:#FFFFFF"
|- style="background: #{{Bug color}}"
| 5
| 5
| {{typecolor|Bug}}
| {{typecolor|Bug}}
|-style="background-color: #{{Ghost color}}; color:#FFFFFF"
|- style="background: #{{Ghost color}}"
| 6
| 6
| {{typecolor|Ghost}}
| {{typecolor|Ghost}}
|-style="background-color: #{{Steel color}}; color:#FFFFFF"
|- style="background: #{{Steel color}}"
| 7
| 7
| {{typecolor|Steel}}
| {{typecolor|Steel}}
|-style="background-color: #{{Fire color}}; color:#FFFFFF"
|- style="background: #{{Fire color}}"
| 8
| 8
| {{typecolor|Fire}}
| {{typecolor|Fire}}
|-style="background-color: #{{Water color}}; color:#FFFFFF"
|- style="background: #{{Water color}}"
| 9
| 9
| {{typecolor|Water}}
| {{typecolor|Water}}
|-style="background-color: #{{Grass color}}; color:#FFFFFF"
|- style="background: #{{Grass color}}"
| 10
| 10
| {{typecolor|Grass}}
| {{typecolor|Grass}}
|-style="background-color: #{{Electric color}}; color:#FFFFFF"
|- style="background: #{{Electric color}}"
| 11
| 11
| {{typecolor|Electric}}
| {{typecolor|Electric}}
|-style="background-color: #{{Psychic color}}; color:#FFFFFF"
|- style="background: #{{Psychic color}}"
| 12
| 12
| {{typecolor|Psychic}}
| {{typecolor|Psychic}}
|-style="background-color: #{{Ice color}}; color:#FFFFFF"
|- style="background: #{{Ice color}}"
| 13
| 13
| {{typecolor|Ice}}
| {{typecolor|Ice}}
|-style="background-color: #{{Dragon color}}; color:#FFFFFF"
|- style="background: #{{Dragon color}}"
| 14
| 14
| {{typecolor|Dragon}}
| {{typecolor|Dragon}}
|-style="background-color: #{{Dark color}}; color:#FFFFFF" align="center; color:#FFFFFF"
|-
| 15
| style="background: #{{Dark color}}; {{roundybl|5px}}" | 15
| {{typecolor|Dark}}
| style="background: #{{Dark color}}; {{roundybr|5px}}" | {{typecolor|Dark}}
|}
|}


In our example, we get:
The result of this example is:


{{Hidden Power calculation/IV|30<br>''0''|31<br>''1''|31<br>''1''|31<br>''1''|30<br>''0''|31<br>''1''}}
{{Hidden Power calculation/IV|25<br>''1''|2<br>''0''|12<br>''0''|17<br>''1''|5<br>''1''|8<br>''0''|0201MS.png{{!}}75px}}


HP Type = Floor[('''0 + 2 + 4 + 8 + 0 + 32''')*15/63] = Floor['''46*15/63'''] = '''Floor[10.952]''' = '''10''', which means that our Pikachu has a {{type|Grass}} {{m|Hidden Power}}.
<math>
\begin{align}
HP_{type} & = \left\lfloor \frac{(1 \cdot 1 + 2 \cdot 0 + 4 \cdot 0 + 8 \cdot 1 + 16 \cdot 1 + 32 \cdot 0) \times 15}{63}\right\rfloor \\
& = \left\lfloor \frac{(1 + 0 + 0 + 8 + 16 + 0) \times 15}{63}\right\rfloor \\
& = \left\lfloor \frac{25 \times 15}{63}\right\rfloor \\
& = \left\lfloor \frac{375}{63}\right\rfloor & \bigg(\frac{690}{63} \approx 5.952\bigg)\\
& = 5
\end{align}
</math>


===Damage===
Which means that this Unown has a {{type|Bug}} {{m|Hidden Power}}.
Damage of the Hidden Power is calculated in a manner very similar to that of its type, using the following formula:
:[[File:HPcalc2.png]]


<!-- '''HP<sub>Power</sub>''' = <font color="#CC0000">'''Floor'''<big><big>[</big></big></font><font color="#0000FF"><big>'''('''</big></font><font color="#009900">'''('''</font>u+2*v+4*w+8*x+16*y+32*z<font color="#009900">''')'''</font>*40/63<font color="#0000FF"><big>''')'''</big></font>+30<font color="#CC0000"><big><big>]</big></big></font> -->
===Power===
<!-- If we have the picture, why do we need the text? -->
The power of the Hidden Power is calculated in a manner very similar to that of its type, using the following formula:
<math display="block">HP_{power} = \left\lfloor \frac{(u + 2v + 4w + 8x + 16y + 32z) \times 40}{63}\right\rfloor + 30</math>


* The variables ''u'' through ''z'' (the "damage bits") represent the second least significant bit of each IV. If a variable has a remainder of 2 or 3 when divided by 4, this bit is 1. Otherwise, the bit is 0.
* The variables ''u'' through ''z'' (the "power bits") represent the second least significant bit of each IV. If a variable has a remainder of 2 or 3 when divided by 4, this bit is 1; otherwise, the bit is 0.
:* ''u'' depends on the HP stat.
:* ''u'' depends on the HP stat.
:* ''v'' and ''w'' depend on the Attack and Defense stats respectively.
:* ''v'' and ''w'' depend on the Attack and Defense stats respectively.
Line 212: Line 238:
Like before, the sum may range from 0 to 63, inclusively. The calculated number is then multiplied by 40 and divided by 63 to make sure that the fraction will not exceed 40. Then, the number is increased by 30 and rounded down, making Hidden Power's power a number ranging from 30 to 70, inclusively.  
Like before, the sum may range from 0 to 63, inclusively. The calculated number is then multiplied by 40 and divided by 63 to make sure that the fraction will not exceed 40. Then, the number is increased by 30 and rounded down, making Hidden Power's power a number ranging from 30 to 70, inclusively.  


In our example, we get:
The result of this example is:


{{Hidden Power calculation/IV|30<br>''1''|31<br>''1''|31<br>''1''|31<br>''1''|30<br>''1''|31<br>''1''}}
{{Hidden Power calculation/IV|25<br>''0''|2<br>''1''|12<br>''0''|17<br>''0''|5<br>''0''|8<br>''0''|0201MS.png{{!}}75px}}


HP Power = Floor[((1 + 2 + 4 + 8 + 16 + 32)*40/63)+30] = Floor [(63*40/63)+30] = Floor[70] = '''70''', which means that our Pikachu's Hidden Power's power is '''70'''
<math>
\begin{align}
HP_{power} &= \left\lfloor \frac{(1 \cdot 0 + 2 \cdot 1 + 4 \cdot 0 + 8 \cdot 0 + 16 \cdot 0 + 32 \cdot 0) \times 40}{63}\right\rfloor + 30 \\
&= \left\lfloor \frac{(0 + 2 + 0 + 0 + 0 + 0) \times 40}{63}\right\rfloor + 30 \\
&= \left\lfloor \frac{2 \times 40}{63}\right\rfloor + 30 \\
&= \left\lfloor \frac{80}{63}\right\rfloor + 30 \\
&= \lfloor 1 \rfloor + 30 \\
&= 1 + 30 \\
&= 31 \\
\end{align}
</math>


{{Hidden Power calculation/IV|30|31|31|31|30|31}}{{-}}
Which means that this Unown's Hidden Power's power is '''31'''.
{| class="roundy" width="650px" style="border: 2px solid #{{Grass color light}}"  
 
|- style="text-align:center"  
{{Hidden Power calculation/IV|25|2|12|17|5|8|0201MS.png{{!}}75px}}<br>
| bgcolor="#{{Grass color}}" style="width: 33%; {{roundyleft|10px}}" |[[Hidden Power (move)|<span style=color:#000>Hidden Power:</span>]]
{| class="roundy" style="width: 650px; border: 2px solid #{{Bug color light}}"  
| bgcolor="#{{Grass color}}" style="width: 33%" | <span style=color:#000>Type:</span><br>'''[[Grass_(type)|<span style=color:#000>Grass</span>]]'''
|- style="text-align: center"
| bgcolor="#{{Grass color}}" style="width: 33%; {{roundyright|10px}}" | <span style=color:#000>Power:</span><br>'''<span style=color:#000>70</span>'''
| style="width: 33%; background: #{{Bug color}}; {{roundyleft|10px}}" | {{mcolor|Hidden Power|000}}:
| style="background: #{{Bug color}}" | Type:<br>'''{{tcolor|Bug|000}}'''
| style="background: #{{Bug color}}; {{roundyright|10px}}" | Power:<br>'''31'''
|}
|}


===Number of possible Hidden Powers===
===Number of possible Hidden Powers===
As there are 6 IVs, ranging from 0 to 31 (32 in total), the number of different possible Hidden Powers should be 32<sup>6</sup>=2<sup>30</sup>, which is more than one billion possibilities. But let us consider two Pokémon with one different IV:
As there are 6 IVs, ranging from 0 to 31 (32 in total), the number of different possible Hidden Powers should be 32<sup>6</sup>=2<sup>30</sup>, which is more than one billion possibilities. For two Unown with one different IV:


{{Hidden Power calculation/IV|'''30'''|31|31|31|30|31|Ani025MS.png}}
{{Hidden Power calculation/IV|'''30'''|31|31|31|30|31|0201MS.png{{!}}75px}}


and
and


{{Hidden Power calculation/IV|'''26'''|31|31|31|30|31|Ani025MS.png}}
{{Hidden Power calculation/IV|'''26'''|31|31|31|30|31|0201MS.png{{!}}75px}}


As we see, both 26 and 30 are divisible by 2 and give the remainder of 2 when divided by 4. So, in both cases the algorithms will interpret the IVs of those Pokémon in the same way, returning Grass-type Hidden Power with 70 power. It means that for the mentioned algorithms an IV of 30 is treated in the same way like IVs of 2,6,10,14,18,22 and 26 (8 in total).  
Both 26 and 30 are divisible by 2 and give the remainder of 2 when divided by 4. In both cases, the algorithms will interpret the IVs of those Pokémon in the same way, returning Grass-type Hidden Power with 70 power. It means that for the mentioned algorithms an IV of 30 is treated in the same way like IVs of 2,6,10,14,18,22 and 26 (8 in total).  


In fact, there are only four essentially different types of IV when calculating Hidden Power:
In fact, there are only four essentially different types of IV when calculating Hidden Power:


{|border="0" style="border-collapse: collapse; " cellspacing="1" cellpadding="3"  
{|border="0" style="border-collapse: collapse;" cellspacing="1" cellpadding="3"  
|-
|-
|1.
|1.
|IV that gives a remainder of 0 when divided by 4 - has damage bit 0 and type bit 0:
|IV that gives a remainder of 0 when divided by 4—has damage bit 0 and type bit 0:
|0, 4, 8, 12, 16, 20, 24, 28
|0, 4, 8, 12, 16, 20, 24, 28
|-
|-
|2.
|2.
|IV that gives a remainder of 1 when divided by 4 - has damage bit 0 and type bit 1:
|IV that gives a remainder of 1 when divided by 4—has damage bit 0 and type bit 1:
|1, 5, 9, 13, 17, 21, 25, 29
|1, 5, 9, 13, 17, 21, 25, 29
|-
|-
|3.
|3.
|IV that gives a remainder of 2 when divided by 4 - has damage bit 1 and type bit 0:
|IV that gives a remainder of 2 when divided by 4—has damage bit 1 and type bit 0:
|2, 6, 10, 14, 18, 22, 26, 30
|2, 6, 10, 14, 18, 22, 26, 30
|-
|-
|4.
|4.
|IV that gives a remainder of 3 when divided by 4 - has damage bit 1 and type bit 1:
|IV that gives a remainder of 3 when divided by 4—has damage bit 1 and type bit 1:
|3, 7, 11, 15, 19, 23, 27, 31
|3, 7, 11, 15, 19, 23, 27, 31
|}
|}
Line 260: Line 298:
In other words: only four IVs that give different remainders when divided by four would cover all possible Hidden Power types and powers.
In other words: only four IVs that give different remainders when divided by four would cover all possible Hidden Power types and powers.


If so, the number of possible Hidden Powers should be 4<sup>6</sup>=2<sup>12</sup>=64*64=4096. This number, however is again far too large, as the real number of possible variations of Hidden power is simply 16*41=656, as Hidden Power exists in 16 types and has 41 different powers. The significant difference between 656 and 4096 is explained by the function ''floor[]'', which reduces theoretically different numbers (for example 10.952 and 10.476) to the same integer, or whole number (in this case 10).
If so, the number of possible Hidden Powers should be 4<sup>6</sup> = 4096. This number is again far too large, as the real number of possible variations of Hidden Power is simply 16 × 41=656, as Hidden Power exists in 16 types and has 41 different powers. The significant difference between 656 and 4096 is explained by the fact that the floor function results in distinct values (e.g. 10.952 and 10.476) being mapped to the same integer result (in this case 10).


===Percentage distribution of different variations of Hidden Power===
===Percentage distribution of different variations of Hidden Power===
Due to the fact that both Hidden Power's type and its power are the products of rounding down, chances of getting a Pokémon with certain Hidden Power are not equal, as one might have thought, and are different for every Hidden Power's type and damage value.  
Due to the fact that both Hidden Power's type and its power are the products of rounding down, chances of getting a Pokémon with certain Hidden Power are not equal, and are different for every Hidden Power's type and damage value.  


As it was stated before, the number of theoretically different Hidden Powers is 4096, which is the result of multiplying theoretical values of possible types (64) and powers (also 64). It means that every of 64 "types" comes into 64 "powers". After rounding down, however, the number of 64 "types" is reduced to 16 and the number of 64 "powers" to 41.   
As previously stated, the number of theoretically different Hidden Powers is 4096, which is the result of multiplying theoretical values of possible types (64) and powers (also 64). It means that every of 64 "types" comes into 64 "powers". After rounding down, the number of 64 "types" is reduced to 16 and the number of 64 "powers" to 41.   


{| style="margin:auto" cellspacing="40"  
<div style="display: flex; justify-content: center; gap: 5px">
|- style="vertical-align:top"
<div>
|
{| class="roundy" style="flex: 0; text-align: center; color: #FFF; background: #{{bulba color}}; border: 3px solid #{{bulba color light}};"
{| style="background: #{{normal color}}; border: 3px solid #{{normal color dark}}; {{roundy|10px}}"
|+ style="color: #000" | '''Percentage distribution of Hidden Power's type'''
|+ '''Percentage distribution of Hidden Power's type'''
|-
! style="text-align: center" style="background:#{{normal color light}}; {{roundytl}}" | Number
! style="color: #000; background: #{{bulba color light}}; {{roundytl|5px}}" | Number
! style="text-align: center" style="background:#{{normal color light}}" | Type
! style="color: #000; background: #{{bulba color light}}" | Type
! style="text-align: center" style="background:#{{normal color light}}" | Qty
! style="color: #000; background: #{{bulba color light}}" | Qty
! style="text-align: center" style="background:#{{normal color light}}; {{roundytr}}" | %
! style="color: #000; background: #{{bulba color light}}; {{roundytr|5px}}" | %
|-style="background-color: #{{fighting color}}"  
|- style="background: #{{Fighting color}}"
| '''<span style=color:#fff>0</span>'''
| 0
| '''[[Fighting (type)|<span style=color:#fff>Fighting</span>]]'''
| Fighting
| '''<span style=color:#fff>320</span>'''
| 320
| '''<span style=color:#fff>7.8125%</span>'''
| 7.8125%
|-style="background-color: #{{Flying color}}"  
|- style="background: #{{Flying color}}"
| 1
| 1
| Flying
| Flying
| 256
| 256
| 6.25%
| 6.25%
|-style="background-color: #{{poison color}}"  
|- style="background: #{{poison color}}"
| 2
| 2
| Poison
| Poison
| 256
| 256
| 6.25%
| 6.25%
|-style="background-color: #{{Ground color}}"  
|- style="background: #{{Ground color}}"
| 3
| 3
| Ground
| Ground
| 256
| 256
| 6.25%
| 6.25%
|-style="background-color: #{{Rock color}}"  
|- style="background: #{{Rock color}}"
| 4
| 4
| Rock
| Rock
| 256
| 256
| 6.25%
| 6.25%
|-style="background-color: #{{Bug color}}"  
|- style="background: #{{Bug color}}"
| '''5'''
| 5
| '''Bug'''
| Bug
| '''320'''
| 320
| '''7.8125%'''
| 7.8125%
|-style="background-color: #{{Ghost color}}"  
|- style="background: #{{Ghost color}}"
| 6
| 6
| Ghost
| Ghost
| 256
| 256
| 6.25%
| 6.25%
|-style="background-color: #{{Steel color}}"  
|- style="background: #{{Steel color}}"
| 7
| 7
| Steel
| Steel
| 256
| 256
| 6.25%
| 6.25%
|-style="background-color: #{{Fire color}}"  
|- style="background: #{{Fire color}}"
| 8
| 8
| Fire
| Fire
| 256
| 256
| 6.25%
| 6.25%
|-style="background-color: #{{Water color}}"  
|- style="background: #{{Water color}}"
| 9
| 9
| Water
| Water
| 256
| 256
| 6.25%
| 6.25%
|-style="background-color: #{{Grass color}}"  
|- style="background: #{{Grass color}}"
| '''10'''
| 10
| '''Grass'''
| Grass
| '''320'''
| 320
| '''7.8125%'''
| 7.8125%
|-style="background-color: #{{Electric color}}"  
|- style="background: #{{Electric color}}"
| 11
| 11
| Electric
| Electric
| 256
| 256
| 6.25%
| 6.25%
|-style="background-color: #{{Psychic color}}"  
|- style="background: #{{Psychic color}}"
| 12
| 12
| Psychic
| Psychic
| 256
| 256
| 6.25%
| 6.25%
|-style="background-color: #{{Ice color}}"  
|- style="background: #{{Ice color}}"
| 13
| 13
| Ice
| Ice
| 256
| 256
| 6.25%
| 6.25%
|-style="background-color: #{{Dragon color}}"  
|- style="background: #{{Dragon color}}"
| 14
| 14
| Dragon
| Dragon
| 256
| 256
| 6.25%
| 6.25%
|-style="background-color: #{{Dark color}}"
| 15
| Dark
| 64
| 1.5625%
|-
|-
|
| style="background: #{{Dark color}}; {{roundybl|5px}}" | 15
|
| style="background: #{{Dark color}}" | Dark
| 4096
| style="background: #{{Dark color}}" | 64
| 100%
| style="background: #{{Dark color}}; {{roundybr|5px}}" | 1.5625%
|}
|
{| style="background: #{{normal color}}; border: 3px solid #{{normal color dark}}; {{roundy|10px}}"
|+ '''Percentage distribution of Hidden Power's powers (prior to Generation VI)'''
! style="text-align: center" style="background:#{{normal color light}}; {{roundytl|5px}}" | Powers
! style="text-align: center" style="background:#{{normal color light}}" | Qty
! style="text-align: center" style="background:#{{normal color light}}; {{roundytr|5px}}" | %
|- style="background: #fff"
| 30, 31, 33, 35, 36, 38,<br>40, 42, 43, 45, 47, 49,<br>50, 52, 54, 56, 57, 59,<br>61, 63, 64, 66, 68
| 23 × 128
| 3.125%
|- style="background: #fff"
| 32, 34, 37, 39, 41, 44,<br>46, 48, 51, 53, 55, 58,<br>60, 62, 65, 67, 69, 70
| 18 × 64
| 1.5625%
|- style="background: #fff"
|
| 4096
| 100%
|}
|}
</div>
<div>
{| class="roundtable" style="flex: 0; background: #{{bulba color}}; border: 3px solid #{{bulba color light}};"
|+ '''Percentage distribution of Hidden Power's powers<br>(prior to Generation VI)'''
|-
! style="background: #{{bulba color light}}; width: 10em" | Powers
! style="background: #{{bulba color light}}" | Qty
! style="background: #{{bulba color light}}" | %
|-
| 30, 31, 33, 35, 36, 38, 40, 42, 43, 45, 47, 49, 50, 52, 54, 56, 57, 59, 61, 63, 64, 66, 68
| 128 each<br>(×23 distinct values)
| 3.125% each<br>(×23 distinct values)
|-
| 32, 34, 37, 39, 41, 44, 46, 48, 51, 53, 55, 58, 60, 62, 65, 67, 69, 70
| 64 each<br>(×18 distinct values)
| 1.5625% each<br>(×18 distinct values)
|}
|}
</div>
</div>


==External links==
==External links==
Many Pokémon related sites prepared web-based calculators, which allows to compute Hidden Power of a Pokémon with given IVs:
Many Pokémon related sites host web-based calculators that can compute the Hidden Power of a Pokémon with given IVs:
 
* [http://www.psypokes.com/gsc/dvguide.php Psypoke's Hidden Power calculator (Generation II)]
* [http://www.psypokes.com/gsc/dvguide.php Psypoke's Hidden Power calculator (Generation II)]
* [http://www.psypokes.com/dex/hp.php Psypoke's Hidden Power calculator (Generation III and on)]
* [http://www.psypokes.com/dex/hp.php Psypoke's Hidden Power calculator (Generation III and on)]
Line 394: Line 428:


[[de:Kraftreserve/Berechnung]]
[[de:Kraftreserve/Berechnung]]
[[es:Cálculo del poder oculto]]
[[it:Introforza/Determinazione e calcolo]]
[[ja:めざめるパワー計算法]]
[[ja:めざめるパワー計算法]]
[[zh:催醒计算]]
[[zh:觉醒力量(招式)/计算]]

Latest revision as of 04:19, 26 March 2024

Main article: Hidden Power (move)

In the Pokémon games, Hidden Power is a Normal-type move when the type is displayed, such as in battle and on status screens. However, the actual type of Hidden Power is determined by the Pokémon's individual values, and through calculation, can be set as one of other natural types. In Generations II to V, Hidden Power's base power is also determined by the Pokémon's individual values; in Generation II, it ranges from 31 to 70, while in Generation III to V, it ranges from 30 to 70. From Generation VI onward, Hidden Power's base power is always 60.

The type of Hidden Power can be checked in certain locations in the games by talking to certain NPCs. These NPCs will refuse to tell the player the Hidden Power type of a Pokémon unless it can learn the move via level up or TM (even if it knows Hidden Power at the time).

There is no in-game way to determine Hidden Power's power directly in games where it is not fixed.

Generation II

Type

Consider an example Pokémon, like Shellder with this set of IVs:

Spr 2c 090.png Hit Points Attack Defense Speed Special
12 10 10 13 8

The type is determined by taking the two least significant bits of the Attack and Defense IVs, then concatenating these two values in that order.

Mathematically, this is the equivalent of , where a represents the Attack IV and b represents the Defense IV.

The resulting number will correspond to a type as marked below.

Number Type
0  Fighting 
1  Flying 
2  Poison 
3  Ground 
4  Rock 
5  Bug 
6  Ghost 
7  Steel 
8  Fire 
9  Water 
10  Grass 
11  Electric 
12  Psychic 
13  Ice 
14  Dragon 
15  Dark 

This example results in:

Since this value is equal to 10, per the table above, this means that the Shellder has a Grass-type Hidden Power.

Power

The power of the Hidden Power is calculated using the following formula:

  • The variables v through y (the "damage bits") represent the most significant bit of each IV. If a variable is less than eight, this bit is 0; otherwise, it is 1.
  • v depends on the Special IV.
  • w depends on the Speed IV.
  • x depends on the Defense IV.
  • y depends on the Attack IV.
  • Z is equal to the Special IV mod 4 (its remainder when divided by 4).

Hidden Power's base power is therefore a number ranging from 31 to 70, inclusively.

The result of this example is:

Spr 2c 090.png Hit Points Attack Defense Speed Special
12
N/A
10
1
10
1
13
1
8
1

Which means that the Shellder's Hidden Power's power is 68.

Spr 2c 090.png Hit Points Attack Defense Speed Special
12 10 10 13 8
Hidden Power: Type:
Grass
Power:
68

Remarks

  • Because Shininess is also determined by IVs, Shiny Pokémon can only have a Grass-type or Dragon-type Hidden Power with a power of 49 or 69.
  • Because gender is also determined by the Attack IV, female Pokémon of species with a seven male to one female ratio can only have a physical Hidden Power.

Generation III onward

Type

Consider an Unown with this set of IVs:

0201MS.png Hit Points Attack Defense Speed Sp. Attack Sp. Defense
25 2 12 17 5 8

Hidden Power's type of a Pokémon with given IVs is represented by a number, calculated with this formula:

where a, b, c, d, e, f (the "type bits") are the least significant bit of their respective IVs. If a number is odd, its least significant bit is 1; otherwise (if the number is even), it is 0.

  • a depends on the HP IV.
  • b and c depend on the Attack and Defense IVs respectively.
  • d depends on the Speed IV.
  • e and f depend on the Special Attack and Special Defense IVs respectively.

The sum inside the formula may range from 0 (when all IVs are even) to 63 (when all IVs are odd), inclusive. This sum is equivalent to constructing the binary number (fedcba)2.

The sum is then multiplied by 15 and divided by 63. This ensures that the number representing the type ranges from 0 to 15, inclusive. The floor of this value is taken, meaning that if the result is not an integer, it will be rounded down to the nearest integer less than it.

The resulting number will correspond to a type as marked below.

Number Type
0  Fighting 
1  Flying 
2  Poison 
3  Ground 
4  Rock 
5  Bug 
6  Ghost 
7  Steel 
8  Fire 
9  Water 
10  Grass 
11  Electric 
12  Psychic 
13  Ice 
14  Dragon 
15  Dark 

The result of this example is:

0201MS.png Hit Points Attack Defense Speed Sp. Attack Sp. Defense
25
1
2
0
12
0
17
1
5
1
8
0

Which means that this Unown has a Bug-type Hidden Power.

Power

The power of the Hidden Power is calculated in a manner very similar to that of its type, using the following formula:

  • The variables u through z (the "power bits") represent the second least significant bit of each IV. If a variable has a remainder of 2 or 3 when divided by 4, this bit is 1; otherwise, the bit is 0.
  • u depends on the HP stat.
  • v and w depend on the Attack and Defense stats respectively.
  • x depends on the Speed stat.
  • y and z depend on the Special Attack and Special Defense stats respectively.

Like before, the sum may range from 0 to 63, inclusively. The calculated number is then multiplied by 40 and divided by 63 to make sure that the fraction will not exceed 40. Then, the number is increased by 30 and rounded down, making Hidden Power's power a number ranging from 30 to 70, inclusively.

The result of this example is:

0201MS.png Hit Points Attack Defense Speed Sp. Attack Sp. Defense
25
0
2
1
12
0
17
0
5
0
8
0

Which means that this Unown's Hidden Power's power is 31.

0201MS.png Hit Points Attack Defense Speed Sp. Attack Sp. Defense
25 2 12 17 5 8


Hidden Power: Type:
Bug
Power:
31

Number of possible Hidden Powers

As there are 6 IVs, ranging from 0 to 31 (32 in total), the number of different possible Hidden Powers should be 326=230, which is more than one billion possibilities. For two Unown with one different IV:

0201MS.png Hit Points Attack Defense Speed Sp. Attack Sp. Defense
30 31 31 31 30 31

and

0201MS.png Hit Points Attack Defense Speed Sp. Attack Sp. Defense
26 31 31 31 30 31

Both 26 and 30 are divisible by 2 and give the remainder of 2 when divided by 4. In both cases, the algorithms will interpret the IVs of those Pokémon in the same way, returning Grass-type Hidden Power with 70 power. It means that for the mentioned algorithms an IV of 30 is treated in the same way like IVs of 2,6,10,14,18,22 and 26 (8 in total).

In fact, there are only four essentially different types of IV when calculating Hidden Power:

1. IV that gives a remainder of 0 when divided by 4—has damage bit 0 and type bit 0: 0, 4, 8, 12, 16, 20, 24, 28
2. IV that gives a remainder of 1 when divided by 4—has damage bit 0 and type bit 1: 1, 5, 9, 13, 17, 21, 25, 29
3. IV that gives a remainder of 2 when divided by 4—has damage bit 1 and type bit 0: 2, 6, 10, 14, 18, 22, 26, 30
4. IV that gives a remainder of 3 when divided by 4—has damage bit 1 and type bit 1: 3, 7, 11, 15, 19, 23, 27, 31

In other words: only four IVs that give different remainders when divided by four would cover all possible Hidden Power types and powers.

If so, the number of possible Hidden Powers should be 46 = 4096. This number is again far too large, as the real number of possible variations of Hidden Power is simply 16 × 41=656, as Hidden Power exists in 16 types and has 41 different powers. The significant difference between 656 and 4096 is explained by the fact that the floor function results in distinct values (e.g. 10.952 and 10.476) being mapped to the same integer result (in this case 10).

Percentage distribution of different variations of Hidden Power

Due to the fact that both Hidden Power's type and its power are the products of rounding down, chances of getting a Pokémon with certain Hidden Power are not equal, and are different for every Hidden Power's type and damage value.

As previously stated, the number of theoretically different Hidden Powers is 4096, which is the result of multiplying theoretical values of possible types (64) and powers (also 64). It means that every of 64 "types" comes into 64 "powers". After rounding down, the number of 64 "types" is reduced to 16 and the number of 64 "powers" to 41.

Percentage distribution of Hidden Power's type
Number Type Qty %
0 Fighting 320 7.8125%
1 Flying 256 6.25%
2 Poison 256 6.25%
3 Ground 256 6.25%
4 Rock 256 6.25%
5 Bug 320 7.8125%
6 Ghost 256 6.25%
7 Steel 256 6.25%
8 Fire 256 6.25%
9 Water 256 6.25%
10 Grass 320 7.8125%
11 Electric 256 6.25%
12 Psychic 256 6.25%
13 Ice 256 6.25%
14 Dragon 256 6.25%
15 Dark 64 1.5625%
Percentage distribution of Hidden Power's powers
(prior to Generation VI)
Powers Qty %
30, 31, 33, 35, 36, 38, 40, 42, 43, 45, 47, 49, 50, 52, 54, 56, 57, 59, 61, 63, 64, 66, 68 128 each
(×23 distinct values)
3.125% each
(×23 distinct values)
32, 34, 37, 39, 41, 44, 46, 48, 51, 53, 55, 58, 60, 62, 65, 67, 69, 70 64 each
(×18 distinct values)
1.5625% each
(×18 distinct values)

External links

Many Pokémon related sites host web-based calculators that can compute the Hidden Power of a Pokémon with given IVs:

Project Games logo.png This game mechanic article is part of Project Games, a Bulbapedia project that aims to write comprehensive articles on the Pokémon games.