Skip to content
Calculator · Gravity

Gravitational force calculator

Enter two masses and the distance between their centres. The calculator applies Newton's law of universal gravitation, shows the working with your numbers, and places the answer on a scale that runs from two people to Earth and the Sun.

Two people 1 m apart

Distance is centre to centre. For huge numbers type an exponent: 5.97e24 means 5.97 × 10²⁴.

Gravitational force
Same as the weight of
Acceleration of body 1
Acceleration of body 2

Working

Every mass pulls every other mass

The force grows with both masses. Double either one and the pull doubles.

F = Gm1m2 / r2

Distance squared

Measured between the centres. Twice as far apart, a quarter of the force; ten times as far, a hundredth.

F ∝ 1 / r2

G is tiny

That is why only planet-sized masses produce a pull you can feel. Both bodies feel the same force, in opposite directions.

G = 6.674 × 10−11 N m² kg−2

How do you calculate the gravitational force between two objects?

Multiply the two masses, divide by the square of the distance between their centres, and multiply by the gravitational constant G = 6.674 × 10⁻¹¹ N m² kg⁻²: F = Gm₁m₂/r². Two 70 kg people standing 1 m apart pull on each other with F = 6.674 × 10⁻¹¹ × 70 × 70 ÷ 1² = 3.27 × 10⁻⁷ N, while Earth pulls each of them with 687 N. Both bodies feel the same force, in opposite directions.

Enter the masses in kg, g, lb or tonnes and the distance in m, km, ft or miles. The calculator converts to SI units, shows every step with your numbers, draws the two bodies with equal and opposite arrows on a log scale, and marks where your answer sits among everyday forces. For why the pull of the person next to you goes unnoticed, read why you don't feel the gravity of the person next to you.

Key results from the calculator

  • Two people, 70 kg each, 1 m apart: 3.27 × 10⁻⁷ N, the weight of about 0.0333 mg. Each accelerates at 4.67 × 10⁻⁹ m/s².
  • You (70 kg) and Earth: 687 N. That is your weight: 9.82 m/s² is g at Earth's mean radius.
  • Earth and the Moon: 1.98 × 10²⁰ N at the mean distance of 384,400 km.
  • Earth and the Sun: 3.54 × 10²² N, enough to bend Earth's path into its yearly orbit.

Five examples, worked

Each uses G = 6.674 30 × 10⁻¹¹ (CODATA 2022) and NASA values for Earth, the Moon and the Sun. The button loads it.

Two people standing 1 m apart

70 kg, 70 kg, 1 m

F = 6.674 × 10⁻¹¹ × 70 × 70 ÷ 1² = 3.27 × 10⁻⁷ N. That is the weight of a mass of 0.0333 mg, and about 2.1 × 10⁹ times smaller than each person's weight.

Treating people as points is rough at 1 m, because their mass is spread over a body about as wide as the gap. The answer is right to within a factor of a few, which does not change the conclusion: you cannot feel it. Step back to 10 m and it falls a hundredfold, to 3.27 × 10⁻⁹ N.

Force 3.27 × 10⁻⁷ N Weight of 0.0333 mg Acceleration 4.67 × 10⁻⁹ m/s² At 10 m 3.27 × 10⁻⁹ N

You and Earth

70 kg, Earth, 6,371 km

Earth acts as if all of its 5.97 × 10²⁴ kg sat at its centre, 6,371 km below your feet. F = 6.674 × 10⁻¹¹ × 70 × 5.97 × 10²⁴ ÷ (6.371 × 10⁶)² = 687 N.

Divide by your mass and you get 9.82 m/s², the familiar g. Earth is pulled towards you with the same 687 N, but its acceleration is 1.15 × 10⁻²² m/s².

Force 687 N Your acceleration 9.82 m/s² Earth's acceleration 1.15 × 10⁻²² m/s² Distance 6,371 km

An apple and Earth: Newton's example

100 g, Earth, 6,371 km

A 100 g apple at the surface: F = 6.674 × 10⁻¹¹ × 0.1 × 5.97 × 10²⁴ ÷ (6.371 × 10⁶)² = 0.982 N, about one newton.

The apple accelerates at 9.82 m/s², the same as you, because g does not depend on the falling mass. Earth accelerates towards the apple at 1.64 × 10⁻²⁵ m/s².

Force 0.982 N Apple's acceleration 9.82 m/s² Earth's acceleration 1.64 × 10⁻²⁵ m/s² Mass 100 g

Earth and the Moon

5.97 × 10²⁴ kg, 7.35 × 10²² kg, 384,400 km

F = 6.674 × 10⁻¹¹ × 5.97 × 10²⁴ × 7.35 × 10²² ÷ (3.844 × 10⁸)² = 1.98 × 10²⁰ N.

The Moon's acceleration towards Earth is 0.0027 m/s², which is exactly what keeps it on its curved orbit. Earth's is 3.32 × 10⁻⁵ m/s², about 81 times smaller, because the Moon has about 1/81 of Earth's mass.

Force 1.98 × 10²⁰ N Moon's acceleration 0.0027 m/s² Earth's acceleration 3.32 × 10⁻⁵ m/s² Distance 384,400 km

Earth and the Sun

5.97 × 10²⁴ kg, 1.99 × 10³⁰ kg, 1 AU

F = 6.674 × 10⁻¹¹ × 5.97 × 10²⁴ × 1.99 × 10³⁰ ÷ (1.496 × 10¹¹)² = 3.54 × 10²² N, the largest force on this page.

Even so, Earth's acceleration towards the Sun is only 0.00593 m/s², because Earth is so massive. The same Sun pulls on you with 0.415 N, more than a hundred times the Moon's pull on you, 0.00232 N.

Force 3.54 × 10²² N Earth's acceleration 0.00593 m/s² Sun on you 0.415 N Distance 149.6 million km

Gravitational forces compared

PairMassesDistanceForce
Two people70 kg, 70 kg10 m3.27 × 10⁻⁹ N
Two people70 kg, 70 kg1 m3.27 × 10⁻⁷ N
You and the Moon70 kg, Moon384,400 km0.00232 N
You and the Sun70 kg, Sun149.6 million km0.415 N
An apple and Earth0.1 kg, Earth6,371 km0.982 N
You and Earth70 kg, Earth6,371 km687 N
Earth and the MoonEarth, Moon384,400 km1.98 × 10²⁰ N
Earth and the SunEarth, Sun149.6 million km3.54 × 10²² N

G = 6.674 30 × 10⁻¹¹ m³ kg⁻¹ s⁻² (CODATA 2022). Earth 5.9722 × 10²⁴ kg, Moon 7.346 × 10²² kg, Sun 1.9884 × 10³⁰ kg, Earth's mean radius 6,371 km and the mean distances from the NASA fact sheets. People are treated as points, which is rough at 1 m.

How the calculator works

Masses are converted to kilograms (grams ÷ 1,000, pounds × 0.45359237, tonnes × 1,000) and the distance to metres (km × 1,000, feet × 0.3048, miles × 1,609.344). The force is F = Gm₁m₂/r² with G = 6.674 30 × 10⁻¹¹ m³ kg⁻¹ s⁻², the CODATA 2022 value published by NIST, which has a relative uncertainty of 2.2 × 10⁻⁵.

The distance is between the centres. A sphere, or a planet made of spherical shells, pulls on things outside it as if all its mass were at its centre, so for "you and Earth" r is Earth's radius. People and apples are treated as points.

Each body is pulled towards the other with the same force (Newton's third law), so the calculator also gives each one's acceleration, F ÷ m. To make tiny and huge forces easier to picture, it also gives the mass that would weigh the same on Earth, F ÷ 9.80665 m/s².

The arrows on the stage have equal lengths, and that length grows with the logarithm of the force, so a force a million times larger gets a longer arrow, not one a million times longer. The ruler underneath runs from 10⁻¹² N to 10²⁴ N and marks five reference forces. Sizes and distances in the picture are not to scale.

What the model leaves out

  • Shape: the point-mass formula is exact for spheres, approximate for people and boulders. At distances much larger than the objects it is excellent.
  • Other bodies: the calculator gives the force between two bodies only. On Earth's surface you are also pulled by the Moon and the Sun, which is where tides come from.
  • Earth's spin and shape: your measured weight is slightly less than Gm₁m₂/r² because of Earth's rotation, and Earth is not a perfect sphere, so g varies between about 9.78 and 9.83 m/s².
  • Relativity: near black holes or neutron stars, or for very precise orbits such as Mercury's, Newton's law needs corrections from general relativity.

Common misconceptions

"The bigger body pulls harder." Both pull with exactly the same force. The bigger body just accelerates less.

"Gravity stops in space." The Sun pulls on Earth from 150 million km away. Astronauts float because they are falling around Earth, not because gravity has gone.

"Doubling the distance halves the force." It quarters it. The force falls with the square of the distance.

Frequently asked questions

What is the formula for gravitational force?

F = Gm₁m₂/r², where m₁ and m₂ are the masses in kilograms, r is the distance between their centres in metres and G = 6.674 × 10⁻¹¹ N m² kg⁻². The answer is in newtons.

What is the value of G?

The CODATA 2022 value published by NIST is 6.674 30 × 10⁻¹¹ m³ kg⁻¹ s⁻², with a standard uncertainty of 0.000 15 × 10⁻¹¹. That is a relative uncertainty of about 22 parts per million.

How strong is the gravitational pull between two people?

About 3.27 × 10⁻⁷ N for two 70 kg people 1 m apart: roughly the weight of 0.0333 milligrams. That is about 2.1 × 10⁹ times weaker than Earth's pull on each of them.

What is the gravitational force between Earth and the Moon?

About 1.98 × 10²⁰ N at the average distance of 384,400 km, using Earth's mass 5.97 × 10²⁴ kg and the Moon's 7.35 × 10²² kg.

What happens to gravitational force if you double the distance?

It drops to a quarter. Gravity follows an inverse square law: triple the distance and the force falls to a ninth, ten times the distance and it falls to a hundredth.

Keep learning

More simulations

More students and teachers tools

See all science tools