Gravitational Potential Energy Calculator – U = −GMm/r
Use this free Gravitational Potential Energy Calculator for the true, large-distance formula U = −GMm/r — the version needed for satellites and spacecraft, where the simple mgh approximation no longer works.
Formula
Gravitational potential energy U = −GMm/r, with G = 6.674 × 10⁻¹¹ N·m²/kg² and r measured from the centre of the body (r = radius + altitude). The zero of energy is set at infinity, which is why U is always negative for a bound object — you must add energy to free it.
How to use
- Pick a central body preset or choose Custom and type its mass (scientific notation like 5.972e24 works).
- Enter the object's mass m and its altitude above the surface in kilometres.
- Click "Calculate Potential Energy" to get U in joules.
Worked example
A 1,000 kg satellite orbits 400 km above Earth, so r = 6,371 + 400 = 6,771 km = 6.771 × 10⁶ m.
U = −GMm/r = −(6.674 × 10⁻¹¹ × 5.972 × 10²⁴ × 1,000) / 6.771 × 10⁶ ≈ −5.89 × 10¹⁰ J.
To escape Earth's gravity completely, the satellite would need at least +5.89 × 10¹⁰ J of extra energy.
FAQ
Why is gravitational potential energy negative?
Because we define U = 0 at infinite distance. Gravity pulls objects together, so a bound object sits in an "energy well" below zero — energy must be supplied to lift it out.
When can I just use U = mgh instead?
Near a planet's surface, where h is tiny compared with the radius, mgh is an excellent approximation. For orbits thousands of kilometres up, use −GMm/r.
How does U relate to a satellite's total energy?
For a circular orbit the kinetic energy is +GMm/2r, so the total energy is −GMm/2r — exactly half the potential energy. See our Satellite Energy Calculator.