What it is and when to use it
The acceleration due to gravity, written g, is how quickly an object speeds up when only gravity acts on it. On Earth's surface it is about 9.8 metres per second squared, but the value depends on the mass of the planet, its radius, and how far above the surface you are. This calculator finds g for any spherical body from those inputs and also gives the circular orbital speed at the same distance.
Use it for physics coursework, for comparing surface gravity on the Moon or Mars with Earth, for estimating how much weaker gravity is at orbital altitude, or as a quick sanity check on planetary data. Leave the mass and radius blank to use Earth, or enter another body's values. The height field lets you see how gravity weakens as you move away from the surface.
The formula and how it works
The calculator uses Newton's law of universal gravitation for a spherical body:
- g = G x M / r2
- G is the gravitational constant, 6.674 x 10-11 N m2 kg-2.
- M is the mass of the body in kilograms.
- r is the distance from the centre of the body in metres, equal to the radius plus the height above the surface.
- v = sqrt(G x M / r) is the speed of a circular orbit at that distance.
The ratio to Earth standard divides g by 9.80665 m/s squared. The model ignores rotation, atmosphere and departures from a perfect sphere.
Worked example
Use Earth with M = 5.972 x 1024 kg and radius 6371 km, at a height of 400 km. The distance from the centre is r = 6371 + 400 = 6771 km = 6.771 x 106 m. Then G x M = 6.674 x 10-11 x 5.972 x 1024 = 3.9857 x 1014.
Dividing by r squared, which is 4.5848 x 1013, gives g = 8.694 m/s squared, or 0.887 times Earth's standard value. The circular orbital speed is the square root of 3.9857 x 1014 / 6.771 x 106, about 7672 m/s or 7.672 km/s. At the surface (height 0) the same inputs give 9.820 m/s squared and 7.910 km/s.
Common mistakes and how to interpret the result
- Entering the radius in metres: the field expects kilometres, so 6371 not 6371000.
- Measuring height from the centre: the height field is above the surface, and the calculator adds the radius for you.
- Confusing weightlessness with zero gravity: gravity in low Earth orbit is still close to its surface value.
- Expecting the surface answer to match measured values exactly: rotation and Earth's shape change real gravity by a few tenths of a percent with latitude.