# How is the color of the Hit Point bar calculated?

I have Silver and Gold (2nd gen) in mind, but I guess the logic is the same for the whole series. I would like to know how the Hit Point color bar is calculated.

(source: digitaltrends.com)

I guess it would be something like:

• Green: from full to half
• Orange: from half to 10%
• Red: from 10% to 0

According to Smogon,

The colour of the HP bar is determined as follows: it is green if the pokemon's health is > 50%, yellow if the pokemon's health is <= 50% but > 20%, and red if the pokemon's health is <= 20%.

Green > 50% and yellow > 20%

Therefore, at 50%, the bar is yellow, and at 20%, it is red.

• Don't rely on Smogon for everything. They try their best to replicate actual Pokemon data, but sometimes errors pop up here and there every now and again. (Knowledge learned from a user on Bulbapedia, thanks to him for teaching me this) Commented Apr 22, 2022 at 19:25

HP is depicted as a long, horizontal bar that changes color according to how much HP the Pokémon has left along with numerical values showing the current and total HP. When a Pokémon's HP is full or above 50%, the bar will appear green. Below 50% but above 20% will cause the bar to appear yellow, while below 20% with the exception of 0% will cause it to appear red.

So

• Green: from full to half (> 50%)
• Yellow: from half (50%) or equals to 20%
• Red: from 20% or equals to 0

source: Pokemon Wikia

• What about at 50% and 20%? Commented Apr 25, 2018 at 20:03
• @scenia post edited Commented Jan 3, 2022 at 10:54

From Bulbapedia:

From Generation II [GSC] onwards, if a Pokémon has more than half of its max HP, its HP bar remains green. If the Pokémon has between one-fifth and half of its HP, the bar will turn yellow (in Generation II, a Pokémon revived to exactly half of their HP will have a green HP bar). If a Pokémon has less than one-fifth of its HP remaining, the bar will turn red...

In RGBY, the color of the HP bar is instead calculated using the width of its fill:

In Generation I, if the HP bar's fill was 27 pixels or wider (out of a total end-to-end length of 48 pixels), it would be colored green; if it was between 10 and 26 pixels, it would be colored yellow; and if it was less than 10 pixels wide, it would be colored red. This means the HP bar turns yellow noticeably earlier than in the later games, or at about 56% of the Pokémon's maximum HP.