How to use the gravitational force calculator
- Choose the force between two masses, or gravity at a planet, moon or star.
- For two masses, choose what to solve for, enter the others, and pick units from grams to Sun masses and from centimeters to miles. Big numbers can be typed as 5.9722e24.
- For a body, pick Earth, the Moon, Mars, Jupiter or the Sun, or enter a mass and radius, then a height above the surface and, if you like, your own mass.
- Read the force or the gravity, with the weight, the acceleration of each mass, the potential energy, the speed and time for a circular orbit, the escape velocity, the steps and a table.
Newton’s law of universal gravitation
Isaac Newton published the law in his Principia on 5 July 1687: every point mass attracts every other point mass with a force along the line between them, proportional to both masses and inversely proportional to the square of the distance, F = G × m₁ × m₂ ÷ r². Spherically symmetric bodies such as planets attract as if all their mass were at their centers, which is why r is measured between centers. The gravitational constant is G = 6.67430 × 10⁻¹¹ m³·kg⁻¹·s⁻², with a relative uncertainty of 2.2 × 10⁻⁵; it is hard to measure precisely because gravity is so weak compared with the other forces at laboratory scale. Einstein’s general relativity later superseded Newton’s law, but Newton’s version is still an excellent approximation in most applications; relativity is needed only for extreme accuracy or very strong fields, such as Mercury’s orbit close to the Sun.
Worked examples
Earth, with a mass of 5.9722 × 10²⁴ kg and a mean radius of 6,371 km, pulls on a 70 kg person at its surface with 687.42 N, which is that person’s weight. Two 70 kg people standing 1 m apart attract each other with only 3.2704 × 10⁻⁷ N. Earth and the Moon, 384,399 km apart on average, pull on each other with 1.9816 × 10²⁰ N, and the Sun pulls on Earth, 149,600,000 km away, with 3.5416 × 10²² N. Each pair feels equal and opposite forces, but the lighter body accelerates far more: the Moon is pulled toward Earth at 0.0026976 m/s², while Earth moves toward the Moon at only 3.3181 × 10⁻⁵ m/s².
Gravity on other worlds
Surface gravity is g = GM ÷ R², so it depends on both a body’s mass and its size. The table uses each body’s mass and mean radius (the Sun’s equatorial radius). A person with a mass of 70 kg would weigh the same as 11.578 kg does on Earth while standing on the Moon, and 26.573 kg on Mars.
| Body | Gravity | Escape velocity |
|---|---|---|
| Earth | 9.8203 m/s² | 11.186 km/s |
| Moon | 1.6243 m/s² | 2.3757 km/s |
| Mars | 3.728 m/s² | 5.0271 km/s |
| Jupiter | 25.939 m/s² | 60.212 km/s |
| Sun | 274.37 m/s² | 617.77 km/s |
Measured gravity differs a little from these values because planets spin and are not perfect spheres. Earth’s own surface gravity varies by about 0.7%, from 9.7639 m/s² on the Nevado Huascarán mountain in Peru to 9.8337 m/s² at the surface of the Arctic Ocean. The standard value used to convert mass to weight, 9.80665 m/s², was fixed by the General Conference on Weights and Measures in 1901.
Gravity, weight and Earth’s spin
The gravity that a scale feels on Earth is the combined effect of gravitation and the centrifugal force from Earth’s rotation. The calculator gives the pure gravitational pull of a round, non-rotating body, 9.8203 m/s² at Earth’s mean radius, which sits between the values measured at the Equator and at the poles. Rotation counteracts gravity by up to 0.3% at the Equator, and the equatorial bulge puts the Equator farther from the center, so sea-level gravity rises from about 9.780 m/s² at the Equator to about 9.832 m/s² at the poles, and an object weighs approximately 0.5% more at the poles than at the Equator. Weight is a force, mass times gravity, measured in newtons or pounds-force; mass, in kilograms or pounds, stays the same wherever you take it.
Height, orbits and escape velocity
Gravity weakens with the square of the distance from the center. Climbing 9,000 m lowers it from 9.8203 m/s² to 9.7926 m/s², about 0.28% less. At 400 km, a typical orbit of the International Space Station, gravity is still 8.6943 m/s², nearly 90% of its strength at the surface; astronauts there are weightless because they are in free fall, circling Earth at 7.6726 km/s and completing an orbit in 1 h 32 min. The escape velocity, √(2GM ÷ r), is the speed needed to coast away from a body for good: 11.186 km/s (40,270 km/h) from Earth’s surface, ignoring the air. It is more accurately a speed than a velocity, because it does not depend on the direction of travel.
Inside a planet: the shell theorem
The formula with r measured from the center holds outside a round body. Newton’s shell theorem explains why, and what changes below the surface. At a distance r₀ from the center, the mass closer to the center than r₀ pulls as if it were all concentrated at the center, while the mass farther out than r₀ exerts no net force at all. Inside a hollow shell of uniform thickness and density, there is no net gravitational acceleration anywhere. So below the surface of a planet only the part of its mass beneath you counts, and the simple inverse-square formula no longer applies; that is why the calculator asks for a height above the surface rather than a depth.
History
Newton’s law joined the gravity that makes things fall on Earth with the motions of the Moon and planets, a step known as the first great unification. When Newton presented the first book of the still unpublished Principia to the Royal Society in April 1686, Robert Hooke claimed that Newton had taken the inverse-square law from him, an accusation now judged frivolous. G itself was not measured until 1797–1798, when Henry Cavendish used a torsion balance with lead spheres in the first experiment to measure the force of gravity between masses in a laboratory and to give an accurate value for the gravitational constant.
Cavendish’s result also gave the mass of Earth to within 1% of the modern value, after the Schiehallion experiment of the 1770s had come out about 20% too low. Astronomers, however, rarely need G and a mass separately. The product GM, called the standard gravitational parameter, is known more accurately than either G or M, because orbits can be measured with great precision; for Earth, radar and laser ranging to satellites brought its relative uncertainty to about 2 × 10⁻⁹, or 1 in 500 million, by 1992. The uncertainty in Earth’s mass, 5.9722 × 10²⁴ kg, comes entirely from G, which is notoriously difficult to measure. Ratios are known better still: Earth is 81.3005678 times as massive as the Moon.
Your values stay on your device
Everything is worked out in your browser. Nothing you type is sent anywhere or stored. For the electric force between charges, which follows the same inverse-square law, see the Coulomb’s law calculator.
Frequently asked questions
What is the formula for gravitational force?
Newton’s law of universal gravitation: F = G × m₁ × m₂ ÷ r², with G = 6.6743 × 10⁻¹¹ N·m²/kg², the two masses in kilograms and r the distance between their centers in meters. Earth pulls on a 70 kg person at its surface with 687.42 N.
Why is gravity between everyday objects so small?
Because G is tiny. Two 70 kg people 1 m apart attract each other with only 3.2704 × 10⁻⁷ N, the weight of 3.3349 × 10⁻⁸ kg on Earth.
How strong is gravity on the Moon and Mars?
Calculated from their mass and mean radius, surface gravity is 1.6243 m/s² on the Moon and 3.728 m/s² on Mars, so a 70 kg person weighs as much as 11.578 kg or 26.573 kg would on Earth.
What is escape velocity?
The speed needed at a given height to coast away from a body for good, ignoring air: √(2GM ÷ r). From Earth’s surface it is 11.186 km/s (40,270 km/h).
Does gravity get weaker with height?
Yes, with the square of the distance from the center. At 9,000 m it is about 0.28% weaker than at sea level, and at 400 km, a typical orbit of the International Space Station, it is still 8.6943 m/s²: astronauts are weightless because they are in free fall, not because gravity is gone.
Is anything I type sent anywhere?
No. Everything is worked out in your browser, and nothing you type is sent anywhere or stored.