To calculate the gravitational potential energy of an object use the formula E = m*g*h, Where m is the object's mass, g is the acceleration due to gravity, and h is the height.