Surface gravity from mass and radius
The acceleration of a falling object near a planet is not a free parameter. It follows from the planet's mass and from how far you are from its center. This page computes that acceleration from those two numbers. Enter the mass of a body and your distance from its center, and the result is the local gravitational acceleration in m/s². It lets you check the familiar 9.8 m/s² for the Earth, compare worlds, or see how gravity weakens with altitude. The output is the field strength of the central body alone, so it does not include centrifugal effects from rotation.
Gravitational acceleration at a distance from a mass
Newton's law of gravitation gives the force on a test mass m as G M m / r². Dividing by m leaves the acceleration g = G M / r², which does not depend on the test mass. The page uses G = 6.67430e-11 N·m²/kg², a measured constant with a small uncertainty, and it applies outside a body whose mass is distributed with spherical symmetry. In that case the body acts as if all its mass sat at its center. OpenStax College Physics presents the law in its universal gravitation chapter. Because r is squared, doubling the distance divides the acceleration by four.
Gravity at 100 meters from a trillion kilograms
The page starts with a central mass of one trillion kilograms (1e12 kg) and a distance of 100 m from its center. The calculation is 6.6743e-11 × 1e12 / 100² = 0.066743 / 10,000, which is 0.0066743 m/s². This is a rounding-friendly teaching case, similar in mass to a small asteroid or a large mountain concentrated into a sphere. At that acceleration a dropped object would fall about 3.3 mm in the first second, which shows how weak the pull of small bodies is. Standing 100 m from the center of such a body, you would have to move very slowly indeed to stay on the surface rather than drift away. The standard 9.8 m/s² on Earth is roughly 1,470 times larger.
Earth, Moon and the space station
For the Earth, use a mass of 5.972e24 kg and a mean radius of 6.371e6 m. The page gives about 9.82 m/s², close to the standard value of 9.80665 m/s². For the Moon, with 7.342e22 kg and a mean radius of 1.7374e6 m, it gives about 1.623 m/s², roughly one sixth of Earth's. The International Space Station orbits at about 408 km above the surface, a distance from the center of about 6.779e6 m. The calculation gives about 8.67 m/s², nearly 88 percent of surface gravity. The crew feels weightless because the station is in free fall, not because gravity has vanished.
Distance is measured from the center
The r input is the distance to the center of the body, not the altitude above the surface. At 400 km above the Earth you must add 6.371e6 m for the radius to get r. Entering only the altitude gives an absurdly large result. The formula also applies only outside the body. Inside a uniform sphere, gravity decreases linearly toward the center, and this page does not model that case. Because the model assumes spherical symmetry, flattened bodies and local density variations produce small differences that the calculator does not capture. Real surface gravity on Earth varies by about half a percent with latitude. The small spread in the quoted Earth radius, from about 6,357 km at the poles to about 6,378 km at the equator, accounts for part of that variation, and the equatorial bulge and the centrifugal effect of rotation account for the rest. For classroom problems, the mean radius is the usual choice.
Comparing planets
Mass alone does not set surface gravity, because radius matters as much. Jupiter has about 318 times the Earth's mass but its visible cloud tops lie about 11 times farther from the center, so the pull there is only about 2.5 times Earth's. A small dense body can have a stronger surface pull than a larger low-density one. Use this page to explore such comparisons by entering each mass and radius. Mars shows the effect clearly: its mass is about 10.7 percent of Earth's and its radius about 53 percent, so surface gravity comes out near 3.7 m/s², a little over a third of Earth's. The mean density, mass divided by volume, is a useful intermediate: a body with twice the density at the same radius has twice the surface gravity.
Relationship to orbital motion
The same acceleration governs circular orbits. A satellite at radius r stays in a circular path when its centripetal acceleration v² / r equals g at that radius, which gives the orbital speed sqrt(G M / r). The orbital velocity calculator on this site uses that result. So the acceleration from this page also tells you how quickly a satellite's speed must change direction to remain in orbit. At 408 km altitude that is about 8.67 m/s², and the orbital speed is about 7.67 km/s.
Only one spherical Newtonian mass is modeled
The model includes only the gravity of the one central mass, assumed spherical, in a Newtonian framework. It excludes the pull of other bodies such as the Sun and Moon, tidal effects, rotation and relativistic corrections. Near very compact objects, such as neutron stars or black holes, Newtonian gravity is inadequate. The constant G itself is measured, not exact, so results carry that uncertainty. The calculator is a scalar educational tool that requires finite outputs and is not a substitute for a geodetic or navigation model.
Mass of a planet from a measured g
The formula can be rearranged to find a mass when you know the acceleration and the radius: M = g r² / G. This is how the Earth was first weighed, once G was measured. With g = 9.80665 m/s² and r = 6.371e6 m, the product g r² is about 3.98e14, and dividing by 6.6743e-11 gives roughly 5.97e24 kg. The page runs the formula in the forward direction, so you can test a guessed mass by checking whether the resulting g matches the value you observed. Astronomers use the same logic with moons: the orbital period and distance of a moon reveal the planet's mass. The approach works well for large, nearly spherical bodies and less well for irregular asteroids, whose gravity varies strongly across the surface. Because r enters squared, an error of one percent in the radius becomes an error of about two percent in g or M.