The potential energy in a uniformed gravitational field is $mg \cdot \Delta h$. This assumes of course that $g$ doesn't change and only gives the difference in potential energy for $\Delta h$.
How can I calculate my total potential energy, let's say relative to the Earth's center of mass. In other words, are there any expression for $\int_0^h mgh$, where $h$ is a placeholder for every height value and $g$ is a placeholder for the local gravitational acceleration for $h$?