An object can store energy as the result of its position relative to other objects, stresses within itself, its electric charge, or other factors. Potential energy is associated with forces that act on a body in a way that the total work done by these forces depends only on the initial and final positions of the body in space. These forces, which are called conservative forces, can be represented at every point in space by vectors expressed as gradients of a certain scalar function called potential.
To determine the gravitational potential energy of an object, a zero height position must first be arbitrarily assigned. Typically, the ground is considered to be a position of zero height. But this is merely an arbitrarily assigned position that most people agree upon. Since many of our labs are done on tabletops, it is often customary to assign the tabletop to be the zero height position. Again this is merely arbitrary. If the tabletop is the zero position, then the potential energy of an object is based upon its height relative to the tabletop.