The formula for potential energy depends on the type of energy that is stored. For gravitational potential energy, the formula is:
PE = mgh
where PE is potential energy, m is the mass of the object in kilograms, g is the gravitational field strength, and h is the height of the object in meters.
It is important to note that all energy has the same units, which are kg m^2/s^2, and is measured using the unit Joule (J) .