A gravitational force calculator finds the pull between two masses from Newton's law of gravitation. Enter the two masses and the distance between their centres. It gives the force in newtons and pounds-force, and the acceleration that each body gets from the other.
How to use the gravitational force calculator
- Choose US or metric units.
- Enter the mass of each body. For big numbers, use e-notation such as 5.972e24.
- Enter the distance between the centres.
- Press Calculate.
The law of gravitation
The calculator uses the formula F = G M m ÷ R², where M and m are the two masses, R is the distance between their centres and G is the gravitational constant. The force is always positive, since gravity only attracts. Wikipedia words the same law as a force that is inversely proportional to the square of the distance between the centres of mass [1]. Double the distance and the force falls to a quarter.
The constant G
NIST gives G as 6.67430(15) × 10⁻¹¹ m³·kg⁻¹·s⁻², the value from the 2022 CODATA adjustment [2]. Some texts round it to 6.674 × 10⁻¹¹, which differs in the fourth significant figure. This calculator uses 6.6743 × 10⁻¹¹, which agrees with the NIST value to the precision shown.
Centre to centre
The distance is measured between the centres of the two objects, not between their surfaces. For a person standing on the Earth, that is the radius of the Earth, not zero. Wikipedia explains that spherically symmetric bodies attract as if all their mass were at their centres, and that this does not hold in general for bodies that are not spherical [1]. For odd shapes, treat the answer as an approximation.
Earth and Moon
NASA's fact sheets give the Earth a mass of about 5.972 × 10²⁴ kg [3], the Moon about 7.35 × 10²² kg, and a mean Earth–Moon distance (semimajor axis) of 384,400 kilometres [4]. Type 5.972e24, 7.348e22 and 384400 kilometres in metric mode, and the calculator gives 1.9821 × 10²⁰ newtons. That is about 4.456 × 10¹⁹ pounds-force.
Earth and Sun
For the Earth and the Sun, NASA gives the Sun a mass of about 1.9884 × 10³⁰ kg [5] and the Earth an average distance of about 149.6 million kilometres [3]. With 5.972e24, 1.989e30 and 1.496e8 kilometres, the calculator returns 3.5424 × 10²² newtons. The formula needs metres; our US and metric boxes do that conversion for you, so enter kilometres or miles.
Acceleration of each body
Our tool also shows the acceleration each body gets from the pull, a = F ÷ m. This is Newton's second law applied to the force, and it is our own working. The lighter body accelerates more. In the Earth–Moon example the Moon is pulled at 2.6975 × 10⁻³ m/s² and the Earth at only 3.319 × 10⁻⁵ m/s², so the Earth hardly moves.
US units
In US mode, the masses are in pounds and the distance is in miles. We convert to kilograms with 0.45359237 and to metres with 1,609.344, and then apply the formula in SI units. The force is shown in newtons and in pounds-force, using 4.4482216152605 newtons per pound-force. Real astronomy is nearly always done in SI units, so metric mode is the natural choice for planets and stars.
E-notation
Planets and stars have masses far too large to type in full, so the boxes accept e-notation. The number 5.972e24 means 5.972 × 10²⁴. You can also type small masses, such as 10 for two 10 kg balls 1 metre apart, which attract each other with only about 6.7 × 10⁻⁹ newtons. That is far too small to notice, which is why gravity between everyday objects is not felt.
Where the formula does not apply
The formula is Newton's law, which is a very good approximation for planets, moons and everyday bodies. It is not meant for extremely strong fields near a black hole, where general relativity is needed. It also gives the force at one moment; as bodies move, the distance and the force change. The calculator does not follow orbits. Use it for the size of the force at a given separation.
Using the results
Use the force to compare pulls, for example the Earth on the Moon against the Sun on the Earth, and the acceleration to see which body moves more. Change one input at a time: doubling a mass doubles the force, and doubling the distance divides it by four. Keep the same units for both bodies. If a result looks wrong, check the exponent first, since a slip of one power of ten is the usual cause.
Your own weight as a gravitational force
Your weight is the gravitational pull of the Earth on you. As a worked example of our own, enter the Earth's mass 5.972e24 kilograms, a person of 70 kilograms and a distance of 6,371 kilometres from the centre, the Earth's mean radius [3]. The tool gives about 687.4 newtons, and an acceleration of the person of about 9.82 metres per second squared, close to NASA's mean surface gravity of 9.82 metres per second squared [3]. The pull on the Earth is the same size, but the planet's acceleration is vanishingly small. Use the radius of the planet as the distance, and add your height if you are far above the surface.
Common mistakes
- Measuring from the surface instead of the centre. Use the centre-to-centre distance.
- Typing the distance in metres in a kilometre box. The box is in kilometres or miles.
- Mixing pounds and kilograms. Both masses use the same unit.
- Dropping the exponent. Type 5.972e24, not 5.972.
What next
Use this often? Add Gravitationa to your Home screen.
Frequently asked questions
What is a gravitational force calculator?
A tool that finds the attraction between two masses from the formula F = G M m divided by the square of the distance between their centres.
What value of G does it use?
6.6743 × 10⁻¹¹ N·m²/kg², the 2022 CODATA value rounded.
Is the distance measured to the surface?
No. It is measured between the centres of the two bodies.
What happens when the distance doubles?
The force falls to one quarter, because it depends on the inverse square of the distance.
Can I type very large masses?
Yes. Use e-notation such as 5.972e24 for the mass of the Earth.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.