Editing of Bulbapedia has been temporarily disabled for non-staff members. See the this thread for more information.

Hidden Power calculation

From Bulbapedia, the community-driven Pokémon encyclopedia.

Jump to: navigation, search

Hidden Power is a Normal-type move. However, the real type of Hidden Power is determined by a Pokémon's IVs and may be one of 16 types, excluding Normal- and ???-types. Its power varies from 30 to 70 and is also determined by the user's IVs as well.

Contents

Type

Let us consider an example Pokémon, like Pikachu with this set of IVs:

Image:025.png Hit Points Attack Defense Speed Sp.Attack Sp.Defense
30 31 31 31 30 31

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

Image:HPcalc1.png

HPtype=Floor[(a+2*b+4*c+8*d+16*e+32*f)*15/63]

where a,b,c,d,e,f are calculated in this way:

  • a=1 if the Individual Value of HP is odd. If not, a=0
  • b=1 if the Individual Value of Attack is odd. If not, b=0
  • c=1 if the Individual Value of Defense is odd. If not, c=0
  • d=1 if the Individual Value of Speed is odd. If not, d=0
  • e=1 if the Individual Value of Special Attack is odd. If not, e=0
  • f=1 if the Individual Value of Special Defense is odd. If not, f=0

Which simply means that every element of the sum in the brace is the remainder of division of corresponding IV and 2, multiplied by appropriate power of 2 (20 in case of a and 25 in case of f). The sum may range from 0 (when all IVs are even) to 63 (when all IVs are odd), inclusively. 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 binary system, which then needs to be reverted to decimal system:

fedcba(2) = 32f+16e+8d+4c+2b+a (10)

The summed value is then multiplied by 15 and divided by 63, to be sure that the number representing Hidden Power Type will range form 0 to 15, inclusively (16 values in total). The calculated number is then rounded down (floor[]), which simply means that only integral part of the calculated number is considered.

The resulting number will correspond to a type; utilize the table 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 

In our example, we get:

Image:025.png Hit Points Attack Defense Speed Sp.Attack Sp.Defense
30
0
31
1
31
1
31
1
30
0
31
1

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 Grass-type Hidden Power.

Damage

Damage of the Hidden Power is calculated in a very same manner like its type, using the following formula:

Image:HPcalc2.png

HPPower = Floor[((u+2*v+4*w+8*x+16*y+32*z)*40/63)+30]

  • u=1 if the Individual Value of HP divided by 4 has a remainder of 2 or 3. If not, u=0.
  • v=1 if the Individual Value of Attack divided by 4 has a remainder of 2 or 3. If not, v=0.
  • w=1 if the Individual Value of Defense divided by 4 has a remainder of 2 or 3. If not, w=0.
  • x=1 if the Individual Value of Speed divided by 4 has a remainder of 2 or 3. If not, x=0.
  • y=1 if the Individual Value of Special Attack divided by 4 has a remainder of 2 or 3. If not, y=0.
  • z=1 if the Individual Value of Special Defense divided by 4 has a remainder of 2 or 3. If not, z=0.

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:

Image:025.png Hit Points Attack Defense Speed Sp.Attack Sp.Defense
30
1
31
1
31
1
31
1
30
1
31
1

HP Type = 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

Image:025.png Hit Points Attack Defense Speed Sp.Attack Sp.Defense
30 31 31 31 30 31
Hidden Power: Type:
Grass
Power:
70

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. But let us consider two Pokémon with one different IV:

Image:Ani025MS.png Hit Points Attack Defense Speed Sp.Attack Sp.Defense
30 31 31 31 30 31

and

Image:Ani025MS.png Hit Points Attack Defense Speed Sp.Attack Sp.Defense
26 31 31 31 30 31

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).

In fact, there are only four possibilities of IV:

1 IV that is not even and does not give the remainder of 2 or 3 while dividing by 4: 1, 5, 9, 13, 17, 21, 25, 29
2 IV that is even and gives the remainder of 2 or 3 while dividing by 4: 2, 6, 10, 14, 18, 22, 26, 30
3 IV that is not even and gives the remainder of 2 or 3 while dividing by 4: 3, 7, 11, 15, 19, 23, 27, 31
4 IV that is even and does not give the remainder of 2 or 3 while dividing by 4: 0, 4, 8, 12, 16, 20, 24, 28

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=212=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 number (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, as one might have thought, 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.

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%
4096 100%
Percentage distribution of Hidden Power's powers
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
23 x 128 3.125%
32, 34, 37, 39, 41,
44, 46, 48, 51, 53,
55, 58, 60, 62, 65
67, 69, 70
18 x 64 1.5625%
4096 100%

Trivia

  • Although Hidden Power is listed as a Normal-type move, somewhat ironically it is impossible to get a Normal-type Hidden Power. However, the reasoning behind this is due to the statistical impossibility of it.

External links

Many Pokémon related sites prepared web-based calculators, which allows to compute Hidden Power of a Pokémon with given IVs:

Personal tools