Gravitational Force Calculator

Find the gravitational force between two masses, the acceleration each one feels, or the surface gravity, weight and escape speed of a planet.

🌍 Gravitational Force Calculator
Mass of body 1 (m₁)
Mass of body 2 (m₂)
Separation between centres (r)
Body
Mass of the body (M)
Radius of the body (R)
Test mass for weight
kg
Gravitational force
—
Acceleration of body 1
—
Acceleration of body 2
—
Field of body 1 at this distance
—
Force if the distance doubles
—
Weight on Earth of this mass
—

Surface gravity (g)
—
Compared with Earth
—
Weight of the test mass
—
Feels like this mass on Earth
—
Escape speed
—
Escape speed (km/s)
—
Mean density
—

🌍 What is the Gravitational Force?

Gravitational force is the attraction between any two objects that have mass. Newton's law of universal gravitation says that every particle pulls on every other particle with a force that is proportional to the product of their masses and inversely proportional to the square of the distance between them. The pull is always attractive, it acts along the line joining the two bodies, and it never switches off, although it becomes extremely weak at large distances. This calculator applies the law F = G m₁ m₂ / r² with the CODATA 2018 value of the gravitational constant, G = 6.67430 × 10−11 N m² kg−2.

The calculator has two modes. The first finds the force between two masses at a chosen separation, then shows the acceleration each body experiences, the gravitational field strength of body 1 at that distance, and what happens to the force when the separation doubles. The second mode starts from a planet, moon or star: give its mass and radius and you get the surface gravity g = G M / R², the weight of any test mass standing on it, the escape speed and the mean density. Students use it to check homework on orbits and weight, teachers use it to show the inverse square law, and writers and hobbyists use it to compare how heavy a person would feel on the Moon or Mars.

Two points cause most mistakes. First, r is the distance between the centres of the two bodies. For a person on the ground, that is the radius of the Earth, not the height above the surface. Second, the two bodies feel exactly equal and opposite forces, even when one is enormously heavier. The Earth pulls a 70 kg person with 687 N, and the person pulls the Earth with the same 687 N. The difference is the acceleration, which is force divided by mass: about 9.82 m/s² for the person and about 10−22 m/s² for the Earth.

The law is exact for point masses and for uniform spheres, and it is a very good approximation for planets and stars treated from outside. It is a Newtonian result, so it is not the right tool for black holes or for precision work such as the orbit of Mercury, where general relativity is needed. For the speed needed to leave a planet in full detail, see the escape velocity calculator, and for circular orbits use the orbital period and velocity calculator.

📐 Formula

F  =  G × m₁ × m₂ ÷ r²
g  =  G × M ÷ R²
F = gravitational force (N), the same magnitude on both bodies. G = 6.67430 × 10−11 N m² kg−2 (CODATA 2018). m₁, m₂ = the two masses (kg). r = distance between the centres (m)
Acceleration of each body: a₁ = F / m₁ = G m₂ / r² and a₂ = F / m₂ = G m₁ / r². Field strength of body 1: g = G m₁ / r² (N/kg, the same as m/s²)
Surface gravity: g = G M / R², where M is the mass of the body and R its radius. Weight: W = m g for a test mass m
Escape speed: v = √(2 G M / R) = √(2 g R). Mean density: ρ = M / ( 4/3 π R³ )
Doubling the distance: F(2r) = F(r) / 4, and in general F is proportional to 1 / r²
Example: Earth (5.972 × 1024 kg) and a 70 kg person at r = 6.371 × 106 m: F = 6.6743 × 10−11 × 5.972 × 1024 × 70 / (6.371 × 106)² = 687.4 N

📖 How to Use This Calculator

Steps

1
Choose a mode. Pick Force between masses to find the pull between two bodies, or Surface gravity to find g, weight and escape speed of a planet or moon.
2
Enter masses and distance. Type the two masses and the separation between their centres (or the body mass, radius and a test mass), choosing kg or tonne and m or km. A preset only fills the field, so you can still edit the number afterwards.
3
Read the results and the chart. The results show the force, the acceleration of each body and the field strength, or the surface gravity, weight and escape speed. The log-log chart marks your point with a dashed guide and a green dot.

💡 Example Calculations

Example 1 — The Earth and the Moon

m₁ = 5.972 × 1024 kg, m₂ = 7.342 × 1022 kg, r = 3.844 × 108 m

1
F = G m₁ m₂ / r² = 6.6743 × 10−11 × 5.972 × 1024 × 7.342 × 1022 / (3.844 × 108)² = 1.980 × 1020 N
2
The Earth accelerates toward the Moon at 3.316 × 10−5 m/s², while the Moon accelerates toward the Earth at 0.002697 m/s², which is also the Earth's field strength at the Moon's distance
3
If the separation doubled, the force would drop to 4.951 × 1019 N, one quarter of the original
Force = 1.980 × 1020 N
Try this example →

Example 2 — Two 1 kg Masses 1 m Apart

m₁ = 1 kg, m₂ = 1 kg, r = 1 m

1
F = G × 1 × 1 / 1² = 6.674 × 10−11 N, numerically equal to G
2
Each mass accelerates at 6.674 × 10−11 m/s², a vanishingly small value that other forces in any real setting swamp completely
3
At 2 m the force is 1.669 × 10−11 N, one quarter
Force = 6.674 × 10−11 N
Try this example →

Example 3 — A 70 kg Person and the Earth

m₁ = 5.972 × 1024 kg (Earth), m₂ = 70 kg, r = 6.371 × 106 m (Earth radius)

1
F = 6.6743 × 10−11 × 5.972 × 1024 × 70 / (6.371 × 106)² = 687.4 N
2
The person accelerates at a₂ = F / 70 = 9.82 m/s², which is the field strength g of the Earth at its surface. The Earth accelerates at only 1.151 × 10−22 m/s²
3
Under standard gravity this force is the weight of a 70.1 kg mass, a little above 70 kg because the standard value of g (9.80665 m/s²) is slightly lower than this point-mass result
Force = 687.4 N, acceleration of the person = 9.82 m/s²
Try this example →

Example 4 — Surface Gravity of the Moon

M = 7.342 × 1022 kg, R = 1737.4 km, test mass 70 kg

1
g = G M / R² = 6.6743 × 10−11 × 7.342 × 1022 / (1.7374 × 106)² = 1.623 m/s², which is 0.166 times Earth's g
2
A 70 kg astronaut weighs 70 × 1.623 = 113.6 N, the same as an 11.59 kg mass on Earth
3
Escape speed = √(2 G M / R) = 2375 m/s (2.375 km/s), and the mean density is 3342 kg/m³
g = 1.623 m/s², weight = 113.6 N, escape speed = 2.375 km/s
Try this example →

❓ Frequently Asked Questions

What is the formula for gravitational force?+
Newton's law of universal gravitation gives F = G m₁ m₂ / r². G is 6.67430 × 10−11 N m² kg−2 (CODATA 2018), m₁ and m₂ are the masses in kilograms and r is the distance between their centres in metres. The force is attractive and acts along the line joining the two bodies.
What is the gravitational force between the Earth and the Moon?+
About 1.98 × 1020 N. With Earth mass 5.972 × 1024 kg, Moon mass 7.342 × 1022 kg and a mean separation of 3.844 × 108 m, F = G m₁ m₂ / r² gives 1.980 × 1020 N. The Moon accelerates toward the Earth at about 0.0027 m/s². The Moon's orbit is not a perfect circle, so the real force changes a little over each orbit.
What is the gravitational force between two 1 kg masses 1 m apart?+
Only 6.674 × 10−11 N, which is numerically equal to G. That is far too small to notice, which is why everyday objects do not visibly attract each other. It is also why the constant G is hard to measure and needed a sensitive torsion balance experiment, first done by Henry Cavendish in 1798.
How do you calculate surface gravity?+
Use g = G M / R², where M is the mass of the planet or moon and R its radius. For Earth, g = 6.6743 × 10−11 × 5.972 × 1024 / (6.371 × 106)² = 9.82 m/s². The weight of an object is then its mass times g. Switch to the Surface gravity mode to do this for Earth, the Moon, Mars, the Sun or your own body.
Does the force depend on the size of the objects?+
Not directly. The force depends only on the two masses and the distance between their centres. Size matters only because it limits how close the centres can get. A uniform sphere attracts as if all its mass were concentrated at its centre, so a planet and a point of the same mass give the same force at the same centre distance.
What happens to gravity when the distance doubles?+
The force falls to one quarter, because gravity follows an inverse square law and F is proportional to 1 / r². Tripling the distance gives one ninth and ten times the distance gives one hundredth. The results panel shows the force at double the distance, and the log-log chart shows the trend as a straight line of slope minus 2.
Why do both bodies feel the same force but accelerate differently?+
Newton's third law makes the two forces equal and opposite. Acceleration is force divided by mass, so the lighter body accelerates more. A 70 kg person and the Earth pull on each other with 687 N, yet the person accelerates at 9.82 m/s² and the Earth at about 1.2 × 10−22 m/s², which is why we never see the Earth move toward a falling object.
What is gravitational field strength?+
It is the force per unit mass created by a body at a point in space, g = G M / r², measured in N/kg, which is the same as m/s². At the Earth's surface it is about 9.82 m/s² and at the Moon's distance it falls to about 0.0027 m/s². It tells you the acceleration a small test mass would have at that point.
How is escape speed related to surface gravity?+
Escape speed is v = √(2 G M / R), which equals √(2 g R). It is the minimum launch speed needed to leave a body without further propulsion, ignoring air drag. For Earth it is 11.19 km/s and for the Moon 2.375 km/s. See the escape velocity calculator for altitude and orbital cases.
Why does my weight change on the Moon but not my mass?+
Mass is the amount of matter in you and stays the same everywhere. Weight is the gravitational force on you, W = m g, and g depends on the body. With g = 1.623 m/s² on the Moon, a 70 kg person weighs 113.6 N there against 687.4 N on Earth, so the weight is only about 16.6 percent of the Earth value.
Is the gravitational constant G an exact number?+
No. This calculator uses G = 6.67430 × 10−11 N m² kg−2, the CODATA 2018 recommended value, with a standard uncertainty of 0.00015 × 10−11. It is the least precisely known of the major fundamental constants because gravity is so weak and different laboratory measurements disagree slightly.
Does this calculator work for black holes or very strong gravity?+
Only as a rough guide. The calculator uses Newtonian gravity, which is accurate for planets, moons and ordinary stars. Near a black hole or a neutron star, or when a precision of a few parts per million is needed (the orbit of Mercury, GPS timing), general relativity is required and the Newtonian result is no longer reliable.

What is the formula for gravitational force?

Newton's law of universal gravitation gives F = G m1 m2 / r^2, where G = 6.67430e-11 N m^2 kg^-2 (CODATA 2018), m1 and m2 are the masses in kilograms and r is the distance between their centres in metres. The force is attractive and acts along the line joining the two bodies.

What is the gravitational force between the Earth and the Moon?

About 1.98e20 N. Using Earth mass 5.972e24 kg, Moon mass 7.342e22 kg and a mean separation of 3.844e8 m, F = 6.6743e-11 x 5.972e24 x 7.342e22 / (3.844e8)^2 = 1.98e20 N. The Moon accelerates toward the Earth at 2.7e-3 m/s^2.

What is the gravitational force between two 1 kg masses 1 m apart?

Only 6.674e-11 N, numerically equal to G. That is far too small to notice, which is why everyday objects do not visibly attract each other and why the constant G was so hard to measure in the laboratory.

How do you calculate surface gravity?

Use g = G M / R^2, where M is the mass of the body and R its radius. For Earth, g = 6.6743e-11 x 5.972e24 / (6.371e6)^2 = 9.82 m/s^2. The weight of any object is then its mass times g.

Does the force depend on the size of the objects?

Not directly. The force depends only on the masses and the distance between their centres. Size matters only because it limits how close the centres can get. A uniform sphere acts as if all its mass sat at its centre.

What happens to gravity when the distance doubles?

The force falls to one quarter. Gravity follows an inverse square law, so F is proportional to 1/r^2. Ten times the distance gives one hundredth of the force.

Why do both bodies feel the same force but accelerate differently?

Newton's third law makes the pair of forces equal and opposite. Acceleration is force divided by mass, so the less massive body accelerates more. A 70 kg person and the Earth pull each other with 687 N, yet the person accelerates at 9.82 m/s^2 and the Earth at about 1e-22 m/s^2.

What is gravitational field strength?

It is the force per unit mass that a body creates at a point, g = G M / r^2, measured in N/kg or m/s^2. At Earth's surface it is about 9.82 m/s^2, and at the Moon's distance it falls to about 2.7e-3 m/s^2.

How is escape speed related to surface gravity?

Escape speed is v = sqrt(2 G M / R), which equals sqrt(2 g R). For Earth it is 11.19 km/s and for the Moon 2.375 km/s. It is the minimum launch speed to leave the body without further propulsion, ignoring air drag.

Is the value of G exact?

No. G = 6.67430e-11 N m^2 kg^-2 with a standard uncertainty of 0.00015e-11 (CODATA 2018). It is the least precisely known of the major constants because gravity is so weak and laboratory results disagree slightly.