To move from a distancesay, near to the Earth's surface to a distancewe need to put in an amount of energy per unit mass for the object being moved of
since
the acceleration due due gravity is given by the force of gravity on a 1 Kg mass at the Earth's surface.
The increase in Gravitational Potential is thenand the increase in gravitational potential energy for a massis