Question: how to calculate the potential energy?
Answer: The formula for potential energy depends on the force acting on the two objects. For the gravitational force the formula is P.E. = mgh, where m is the mass in kilograms, g is the acceleration due to gravity (9.8 m / s2 at the surface of the earth) and h is the height in meters.