Audited ·Last updated 27 Jul 2026·5 citations·Tier 1·0 uses

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

Gravitational potential energy (U)
-28,470,656,857.1429
Escape velocity at distance r
10,671.5804
Near-Earth approximation (U = mgh)
3,088,381,642.5477

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.

  1. Enter the mass of the larger gravitating body in kilograms, using standard values such as 5.972 x 10^24 kg for Earth.
  2. Enter the mass of the smaller object in kilograms.
  3. Enter the center-to-center separation distance in meters.
  4. Optionally enter the surface radius of the primary body in meters to receive the near-Earth approximation for comparison.
  5. Click calculate to obtain the gravitational potential energy in joules.
  6. Review the escape velocity displayed for the given distance.
  7. Compare the exact result with the near-Earth approximation if the distance is close to the planetary surface.

The formula.

U = −GMm ⁄ r

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.

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.

mass Satellite500
distance7,000,000
mass Earth5,972,000,000,000,000,000,000,000

Frequently asked questions.

Why is gravitational potential energy negative?
The negative sign arises from the conventional choice that potential energy is zero at infinite separation. Because gravity is attractive, work must be done against the field to pull the masses apart, increasing their potential energy from a negative value toward zero. A negative potential energy therefore signifies a bound system. If the potential were positive, like the Coulomb potential between opposite charges, the force would be repulsive. The sign convention is universal in celestial mechanics and ensures that the virial theorem and orbital energy equations take their standard forms.
What is escape velocity and why does it not depend on mass?
Escape velocity is the minimum speed required for an object to break free from a gravitational field without further propulsion. Setting total energy to zero gives v_e = sqrt(2GM/r), which contains the escaping mass m in both kinetic and potential energy terms that cancel algebraically. While the required speed is independent of mass, the required kinetic energy, (1/2)mv^2, is proportional to mass. A rocket must therefore carry far more fuel than a small probe to achieve the same escape speed, which is why mass efficiency dominates spacecraft design.
When should I use the general formula instead of U = mgh?
Use the general formula U = -GMm/r whenever the altitude is comparable to or larger than the radius of the gravitating body. The mgh approximation is accurate to within one percent for altitudes below roughly 60 kilometers on Earth. For satellite orbits, lunar trajectories, or calculations involving other planets, the general formula is mandatory. Even for high-altitude ballooning at 30 kilometers, the error is small but measurable, and precision engineering applications such as GPS satellite orbit propagation require the exact inverse-radius form.
How was the gravitational constant G measured?
Henry Cavendish first measured G in 1798 using a torsion balance apparatus in which small masses suspended on a thin fiber were deflected by the gravitational attraction of larger nearby masses. Modern measurements use atom interferometry, precision pendulums, and dynamic measurements of macroscopic masses. The CODATA 2018 recommended value is 6.67430 x 10^-11 N*m^2/kg^2 with a relative uncertainty of 2.2 x 10^-5. This large relative uncertainty compared to other constants reflects the extreme weakness of gravity relative to electromagnetic forces.
Can this calculator be used for black holes or neutron stars?
For black holes and neutron stars, Newtonian gravity is insufficient and general relativity must be used. Near a black hole, the Newtonian potential diverges to negative infinity as r approaches zero, whereas general relativity predicts a finite binding energy at the event horizon. The escape velocity formula v_e = sqrt(2GM/r) approaches the speed of light at the Schwarzschild radius r_s = 2GM/c^2, signaling the breakdown of the classical approximation. This calculator is accurate for weak-field regimes where orbital velocities are much less than the speed of light.
What is the difference between gravitational potential and gravitational potential energy?
Gravitational potential energy U is the total energy of a specific two-mass system. Gravitational potential, usually denoted Phi, is the potential energy per unit mass: Phi = U/m = -GM/r. Potential is a field property that describes the influence of the large mass M at every point in space, independent of any test mass. Engineers and geophysicists often work with potential because it allows them to add contributions from multiple sources linearly, then multiply by the test mass at the end.
Does the shape of the body matter?
For spherically symmetric mass distributions, Newton's shell theorem guarantees that the external gravitational field is identical to that of a point mass at the center. This is why the calculator treats planets and stars as points. For non-spherical bodies such as irregular asteroids or rapidly rotating neutron stars, the potential must be expanded in spherical harmonics. The point-mass approximation remains useful for order-of-magnitude estimates but can introduce errors of several percent for elongated bodies at close range, which mission planners must account for when navigating spacecraft near irregular bodies.
What is the gravitational potential energy of the Earth-Moon system?
Using Earth mass 5.972 x 10^24 kg, Moon mass 7.348 x 10^22 kg, and mean separation 3.844 x 10^8 m, the potential energy is U = -(6.67430 x 10^-11)(5.972 x 10^24)(7.348 x 10^22)/(3.844 x 10^8), approximately -7.62 x 10^28 J. This enormous negative value represents the total binding energy of the Earth-Moon system. The positive kinetic energy of the Moon's orbit is exactly half the magnitude of this potential energy, a direct consequence of the virial theorem for inverse-square gravitational forces.
How does this relate to Einstein's general relativity?
In general relativity, gravitational potential energy is not a uniquely defined local quantity because gravity is not a force but a manifestation of spacetime curvature. However, the Newtonian potential energy is recovered as the weak-field, low-velocity limit of the Einstein field equations. The effective potential in the Schwarzschild metric includes additional terms proportional to 1/r^2 and 1/r^3 that cause the precession of elliptical orbits and the bending of starlight. For engineering applications within the solar system, the Newtonian formula is accurate to better than one part per billion.
Can I calculate the energy needed to lift a payload to orbit?
The energy required is the difference in potential energy between the launch site and the orbital radius. For a 1000 kg satellite launched from Earth's surface to geostationary orbit at 42,164 km center distance, delta U = -GMm(1/r_orbit - 1/r_surface), approximately 5.31 x 10^10 J. However, this is only the potential energy change; the actual rocket energy required is several times larger due to atmospheric drag, gravity losses during powered ascent, and the kinetic energy of the orbital velocity. The calculator gives the theoretical minimum energy.

References& sources.

  1. [1]Newton, I. (1687). Philosophiae Naturalis Principia Mathematica. London.
  2. [2]Halliday, D., Resnick, R., and Walker, J. (2013). Fundamentals of Physics. 10th ed. Wiley. Ch. 13.
  3. [3]Young, H.D. and Freedman, R.A. (2019). University Physics with Modern Physics. 15th ed. Pearson. Ch. 13.
  4. [4]CODATA (2018). CODATA Recommended Values of the Fundamental Physical Constants. NIST.
  5. [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
Coming soon