Potential energy that depends on height is called gravitational potential energy. If an object is in a vertical position, then gravity is acting on it as a downward pull. Although the amount of gravitational potential energy an object has depends on the height, the object's mass is another influencing factor.
Potential energy is stored energy that objects have due to their position. Height and gravitational potential energy have a direct relationship. This means that if there is an increase or decrease of "x" in one, then there is an increase or decrease of "x" in the other, respectively. For example, if the height is tripled, then the potential gravitational energy is also tripled.
Gravitational potential energy is one of two types of potential energy. The other form is elastic potential energy. Objects that can be stretched have elastic potential energy.