Potential energy is equal to 'mgh' where 'm' is the mass of the object, 'g' is the acceleration due to gravity and 'h' is the height. Potential energy is directly related to an object’s height and increases or decreases linearly as the height of the object increases or decreases.