When work is done in raising the height of an object, energy is transferred as a gain in the gravitationalpotential energy of the object. The gravitationalpotential energy Ep of an object of mass m at a height h is given by the relationship: Ep= mgh.