Gravitational Potential Energy Calculator

Find the energy of a pair of masses separated by a given distance.

Physics and EnergyUpdated 2026-11-172 min read
Gravitational Potential Energy Calculator
Earth is about 5.972 times ten to the twenty fourth kilograms.
Potential energy
...
Separation in metres...

What it does

Gravitational potential energy describes the energy stored in the arrangement of two masses. Under the usual convention it is negative and approaches zero as the masses are pulled infinitely far apart, which means work must be done to separate a bound pair.

This calculator evaluates minus G times the product of the masses divided by their separation, using the CODATA gravitational constant. It reports the energy in joules and echoes the separation in metres.

The default pair is the Earth and a 1,000 kg mass at the planet's surface, about 6.371 million metres from the centre. The energy is roughly minus 6.2563 times ten to the ten joules.

The formula treats the bodies as points or spheres and measures distance between centres. For an object near a planet the difference in potential energy between two heights is what produces the familiar mgh approximation used close to the surface.

The value becomes more negative as the masses move closer and tends to zero at infinite separation. This tool reports the absolute potential energy for one configuration, not a difference between two heights.

How to use

  1. Choose metric for metres or imperial for feet.
  2. Enter the first mass in kilograms.
  3. Enter the second mass in kilograms.
  4. Enter the separation between the centres of the two masses.
  5. Press calculate and read the potential energy in joules.
  6. Check the separation in metres if you entered feet.

Formula

U = −G × M × m / r, with G = 6.67430 × 10⁻¹¹ m³ kg⁻¹ s⁻².
M, m
The two masses in kilograms.
r
Distance between centres in metres after conversion.
G
Newtonian constant of gravitation.
U
Gravitational potential energy in joules.

The negative sign follows the standard convention that potential energy is zero at infinite separation. One foot is exactly 0.3048 m, and masses are entered in kilograms in both systems. All three inputs must be above zero.

Worked example

Example: Earth and a 1,000 kg mass at the surface

Metric defaults using Earth's mass and radius.

  1. Use Earth's mass of 5.972e24 kg and the object's 1,000 kg.
  2. Multiply the masses by G: about 3.9865e14.
  3. Divide by the separation 6.371e6 m to get 6.2563e10.
  4. Apply the negative sign for a bound pair: minus 6.2563e10 J.
  5. The tool shows -6.2563e10 J and 6371000 m.

Reference table

Potential energy of a 1,000 kg mass near Earth
Separation from centrePotential energy
6.371e6 m-6.2563e10 J
1e7 m-3.9859e10 J
2e7 m-1.9930e10 J
Infinity0 J

Limits

  • Assumes point masses or spherically symmetric bodies.
  • Uses the Newtonian potential, not a general relativity correction.
  • Ignores all other bodies and fields.
  • Reports absolute potential energy, not a change between two heights.

Common mistakes

  • Using altitude above the surface instead of distance from the centre.
  • Dropping the negative sign when describing a bound system.
  • Mixing feet and metres between inputs.
  • Expecting the energy to grow more positive as objects approach.
  • Using weight in newtons where mass in kilograms belongs.

Try it yourself

Quick checks. Answers sit tucked under each question.

Imperial: Earth and 1,000 kg at 20902230.971 ft?

-6.2563e10 J, separation 6371000 m.

Earth and 1,000 kg at 10,000,000 m?

-3.9859e10 J, separation 10000000 m.

Questions

Why is gravitational potential energy negative?

Because zero is defined at infinite separation, so a bound pair has less energy than the separated masses.

What is distance measured from?

The centres of the two masses, not their surfaces.

How is this related to mgh?

Near a planet's surface, the difference in this potential between two nearby heights reduces to mass times g times height.

Can I use feet?

Yes. Choose imperial and the tool converts the separation to metres.

What happens at infinite separation?

The potential energy tends to zero.

Does the sign change for repulsion?

Gravity is always attractive, so the potential remains negative for positive masses.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.