Any matter lifted from the surface of the earth has a potential energy. This gravitational potential energy is given by the formula PE=mgh, and the potential energy can be altered by changing its height. The electrical potential energy also can be changed by changing distance between two charges.