Gravitational Potential Energy Calculator
Calculate gravitational potential energy using Newton's law U = -GMm/r and escape velocity. For orbital mechanics, astrophysics, and aerospace engineering.
Gravitational Potential Energy Calculator
Background.
Gravitational potential energy is the energy stored in the configuration of two or more masses interacting through gravity. Unlike the near-Earth approximation taught in introductory physics, which treats the gravitational field as uniform, the general Newtonian formulation recognizes that gravity weakens with the square of the separation distance. This distinction is not merely academic: it governs satellite orbital insertion, interplanetary trajectory design, the stability of binary star systems, and the energy budget required to lift payloads from Earth's surface to geostationary orbit. Every spacecraft engineer and celestial mechanician relies on the exact expression U = -GMm/r rather than the simplified mgh, because over astronomical distances the linear approximation accumulates errors of hundreds of percent.
The negative sign in the Newtonian potential energy formula reflects the bound nature of gravitationally attracted systems. As two masses separate, the potential energy increases from its most negative value at close range toward zero at infinite separation. This convention means that the total mechanical energy of a bound orbit is negative, while that of an unbound hyperbolic trajectory is positive. The zero point at infinity is natural because it makes the potential energy vanish when the interaction ceases. To place a satellite into orbit, one must supply enough kinetic energy to raise the total energy to the appropriate negative value for the desired orbital radius; to escape Earth's gravity entirely, the total energy must reach at least zero, which defines the escape velocity.
The concept traces directly to Isaac Newton's Principia Mathematica (1687), where the inverse-square law of gravitation was first stated. The potential energy formulation came later, developed by mathematicians including Joseph-Louis Lagrange and Pierre-Simon Laplace in the eighteenth century as part of the analytical mechanics framework. The modern constant of gravitation G was first measured accurately by Henry Cavendish in 1798 using a torsion balance, and the CODATA 2018 recommended value is 6.67430 x 10^-11 N*m^2/kg^2 with a relative standard uncertainty of 22 parts per million. This uncertainty in G is the largest among the fundamental constants, reflecting the intrinsic weakness of gravity compared to electromagnetic forces.
This calculator computes the exact gravitational potential energy between two point masses or spherically symmetric bodies separated by a distance r measured center-to-center. It also reports the escape velocity at that distance, derived from setting kinetic energy equal to the magnitude of potential energy. The near-Earth approximation U = mgh is included for comparison, but users should note that it is valid only when the altitude is a small fraction of the planetary radius. For a satellite in low Earth orbit at 300 kilometers altitude, the mgh formula overestimates the potential energy relative to the surface by approximately 4.5 percent because it neglects the diminishing gravitational pull with altitude.
The practical applications extend beyond aerospace. Geophysicists use gravitational potential differences to model magma chamber inflation and groundwater mass changes. Astronomers use the virial theorem, which relates the total kinetic energy of a stellar cluster to its gravitational potential energy, to estimate the cluster's mass without resolving individual stars. In cosmology, the gravitational potential well of dark matter halos determines where baryonic gas can accumulate to form galaxies. Even within engineering, the full potential energy expression is needed when computing the Lagrange points in the restricted three-body problem, where the gravitational potentials of two large bodies combine to create stable locations for space observatories such as the James Webb Space Telescope.
What is gravitational potential energy calculator?
Gravitational potential energy is the energy associated with the position of a mass within a gravitational field. In Newtonian mechanics, the gravitational potential energy between two point masses M and m separated by a distance r is defined as U = -GMm/r, where G is the gravitational constant. The negative sign indicates that the force is attractive and that the system is bound: positive work must be done to increase the separation to infinity. When the separation is large compared to the size of the bodies, the point-mass approximation is excellent; for extended bodies, the potential is obtained by integrating the point-mass formula over the mass distribution. Near the surface of a planet of radius R, the general formula reduces to U is approximately mgh for heights h much smaller than R, where g = GM/R^2. The SI unit is the joule. Gravitational potential energy is a scalar quantity that depends on the relative positions of the masses, not on their individual velocities. It is a conservative potential, meaning the work done by gravity in moving between two points is path-independent. In general relativity, the Newtonian potential energy is replaced by the binding energy associated with spacetime curvature, but for non-relativistic speeds and weak fields the Newtonian expression remains accurate to within experimental error.
How to use this calculator.
- Enter the mass of the larger gravitating body in kilograms, using standard values such as 5.972 x 10^24 kg for Earth.
- Enter the mass of the smaller object in kilograms.
- Enter the center-to-center separation distance in meters.
- Optionally enter the surface radius of the primary body in meters to receive the near-Earth approximation for comparison.
- Click calculate to obtain the gravitational potential energy in joules.
- Review the escape velocity displayed for the given distance.
- Compare the exact result with the near-Earth approximation if the distance is close to the planetary surface.
The formula.
The general formula for gravitational potential energy, U = -GMm/r, is obtained by integrating Newton's law of universal gravitation from a reference separation of infinity to the finite separation r. Newton's gravitational force law states that the magnitude of the attractive force between two point masses is F = GMm/r^2. The potential energy is defined as the negative work done by the conservative gravitational field in bringing the masses together from infinity: U(r) = -integral from infinity to r of F dr = -integral from infinity to r of (GMm/r'^2) dr'. Evaluating the integral yields U(r) = -GMm/r. The negative sign is conventional and corresponds to the choice U(infinity) = 0; this convention makes bound orbits have negative total energy and simplifies the expression for escape velocity.
The escape velocity is derived from energy conservation. To escape to infinity with zero residual speed, a body at distance r must have total mechanical energy E = K + U = 0. Setting (1/2)mv^2 - GMm/r = 0 and solving for v gives v_e = sqrt(2GM/r). This result is independent of the escaping mass, which is why a hydrogen atom and a rocket require the same speed to break free from Earth's gravity at a given altitude, though the rocket requires far more energy because kinetic energy is proportional to mass. The escape velocity from Earth's surface is approximately 11.2 kilometers per second; from low Earth orbit it is slightly lower, about 10.8 kilometers per second, because the body already has some altitude.
The near-Earth approximation U = mgh emerges from a Taylor expansion of the general formula. Writing r = R + h, where R is the planetary radius and h is the altitude, the exact potential energy difference relative to the surface is delta U = GMm[1/R - 1/(R+h)] = GMmh/[R(R+h)]. For h much less than R, the denominator approaches R^2, and since g = GM/R^2, the expression reduces to delta U is approximately mgh. The error in this approximation is of order h/R; at the summit of Mount Everest, h/R is approximately 1.4 x 10^-3, giving an error of roughly 0.14 percent. At geostationary orbit altitude, h is approximately 35,786 km and h/R is approximately 5.6, so the linear approximation fails completely and the full inverse-radius formula must be used.
A worked example.
Consider a 500-kilogram satellite orbiting Earth at a center-to-center distance of 7,000 kilometers, which corresponds to an altitude of roughly 630 kilometers above the surface. To find the gravitational potential energy, substitute the values into Newton's formula: U equals negative G times Earth's mass times the satellite's mass divided by the distance. Using G = 6.67430 x 10^-11 N*m^2/kg^2, Earth mass = 5.972 x 10^24 kg, and the given distance, the numerator becomes 1.992945 x 10^17. Dividing by 7.0 x 10^6 meters yields 2.847 x 10^10 joules, so the potential energy is negative 28.47 gigajoules. The escape velocity at this altitude is the square root of twice the product of G and Earth's mass divided by the distance, which evaluates to 10,672 meters per second. This means the satellite would need an additional kinetic energy of (1/2) x 500 x (10,672)^2, approximately 28.47 gigajoules, to break free from Earth's gravity, exactly matching the magnitude of its binding energy.
Frequently asked questions.
Why is gravitational potential energy negative?
What is escape velocity and why does it not depend on mass?
When should I use the general formula instead of U = mgh?
How was the gravitational constant G measured?
Can this calculator be used for black holes or neutron stars?
What is the difference between gravitational potential and gravitational potential energy?
Does the shape of the body matter?
What is the gravitational potential energy of the Earth-Moon system?
How does this relate to Einstein's general relativity?
Can I calculate the energy needed to lift a payload to orbit?
References& sources.
- [1]Newton, I. (1687). Philosophiae Naturalis Principia Mathematica. London.
- [2]Halliday, D., Resnick, R., and Walker, J. (2013). Fundamentals of Physics. 10th ed. Wiley. Ch. 13.
- [3]Young, H.D. and Freedman, R.A. (2019). University Physics with Modern Physics. 15th ed. Pearson. Ch. 13.
- [4]CODATA (2018). CODATA Recommended Values of the Fundamental Physical Constants. NIST.
- [5]BIPM (2019). The International System of Units (SI Brochure). 9th ed.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled