Skip to content

Gravitational Force Calculator

Newton’s law F = Gm₁m₂/r² between two masses, solved for any variable, plus surface gravity of planets.

Your details

Unit system
Calculate

Scientific notation works: type 5.9722e24 for the Earth.

Results update as you type

Gravitational force F

3.2026 × 10⁻⁷ N

Force in the unit of your choice
0 lbf
Acceleration of m₁ (F/m₁)
4.707 × 10⁻⁹ m/s²
Acceleration of m₂ (F/m₂)
5.4311 × 10⁻⁹ m/s²

Both bodies feel the same force in opposite directions (Newton’s third law); r is measured between their centres of mass.

Step-by-step solution
  1. F = G × m₁ × m₂ ÷ r²
  2. F = 6.6743 × 10⁻¹¹ N·m²/kg² × 68.0389 kg × 58.967 kg ÷ (0.9144 m)²
  3. F = 3.2026 × 10⁻⁷ N

Every mass in the universe attracts every other mass. Newton's law of universal gravitation puts a number on that pull: it grows with the product of the two masses and falls with the square of the distance between them. The same law that holds your feet on the ground keeps the Moon in orbit and the Earth circling the Sun.

This gravitational force calculator applies the law in two ways. In force mode, enter two masses and the distance between their centres, or choose a preset pair (Earth–Moon, Earth–Sun, a person standing on Earth), and get the force in newtons with scientific notation, plus the acceleration each body receives. With Solve for you can work backwards: what distance gives a certain force, or what mass is needed.

In surface gravity mode, the calculator finds g = GM/R² for the Earth, the Moon, Mars, Jupiter, the Sun or any body whose mass and radius you enter, together with the weight of a 70 kg person there and the escape velocity. The masses and radii of the presets come from NASA's planetary fact sheets and the gravitational constant from CODATA.

How to use this calculator

  1. Choose Force between two masses or Surface gravity.
  2. Force: pick a preset pair or enter m₁, m₂ and the distance r between centres. Scientific notation is accepted (5.9722e24).
  3. Surface gravity: pick a body or choose Other and enter its mass M and radius R.
  4. Read the force (or g), switch units if needed, and open the steps to see the calculation.
  5. Use Solve for to find the distance or a mass for a given force, or the mass or radius for a given g.

The formula

Newton's law of universal gravitation:

F=G m1 m2r2G=6.674 30×10−11 N⋅m2/kg2F = G\,\frac{m_1\, m_2}{r^2} \qquad G = 6.674\,30 \times 10^{-11}\ \text{N·m}^2/\text{kg}^2

where rr is the distance between the centres of mass. Rearranged: r=Gm1m2/Fr = \sqrt{G m_1 m_2 / F} and m1=Fr2/(Gm2)m_1 = F r^2 / (G m_2).

At the surface of a spherical body of mass MM and radius RR, the force on a mass mm is mgmg, so

g=G MR2g = \frac{G\,M}{R^2}

and the escape velocity is vesc=2GM/Rv_{esc} = \sqrt{2GM/R}. Each body receives an acceleration a=F/ma = F/m; the two forces are equal and opposite.

Worked example

Two people. Two people of 70 kg and 60 kg standing 1 m apart attract each other with F=6.6743×10−11×70×60/12F = 6.6743 \times 10^{-11} \times 70 \times 60 / 1^2 ≈ 2.803 × 10⁻⁷ N, far too small to notice.

Earth and Moon. With M = 5.9722 × 10²⁴ kg, m = 7.346 × 10²² kg and r = 384,400 km, FF ≈ 1.982 × 10²⁰ N. Between the Earth and the Sun (1 AU), it reaches 3.542 × 10²² N.

Your weight. A 70 kg person on the Earth's surface (R = 6,371 km) is pulled with 687.4 N, the weight measured by a scale.

Surface gravity. GM/R2GM/R^2 gives 9.82 m/s² for the Earth, 1.624 m/s² for the Moon, 3.73 m/s² for Mars and 25.92 m/s² for Jupiter. The Earth's escape velocity is 11.19 km/s.

Why gravity is so weak — and so strong

The constant GG is tiny, so the attraction between everyday objects is minute: Henry Cavendish needed a delicate torsion balance in 1798 to detect it between lead spheres. Gravity only dominates when at least one mass is enormous, like a planet. Because it falls with 1/r21/r^2, doubling the distance divides the force by four; at the Moon's distance, about 60 Earth radii, the Earth's pull is about 3,600 times weaker than at the surface. The potential energy calculator and the free fall calculator use the surface value of g, which this law explains.

Gravitational force, weight and g

Weight is simply the gravitational force a planet exerts on you, W=mgW = mg, so a 70 kg person weighs about 687 N on Earth but only about 114 N on the Moon, with the same mass. The force is measured between centres of mass, which for spheres lies at their centres: that is why RR, not zero, is the distance for an object resting on the ground. Accelerations measured in multiples of g are covered by the g-force calculator, and a pendulum offers a classic way to measure g itself.

Frequently asked questions

What is the gravitational constant G?

G = 6.67430 × 10⁻¹¹ N·m²/kg² (CODATA 2018, unchanged in the 2022 adjustment). It is one of the least precisely known fundamental constants, with a relative uncertainty of about 2 × 10⁻⁵.

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

About 1.982 × 10²⁰ N, using NASA's masses and the mean distance of 384,400 km. This force supplies the centripetal acceleration that keeps the Moon in orbit.

How does distance affect gravitational force?

Through an inverse-square law: double the distance and the force drops to a quarter; triple it and it drops to a ninth. Doubling one of the masses doubles the force.

Why is surface gravity on Earth 9.82 and not 9.81?

GM/R² with the mean radius gives about 9.82 m/s². The Earth’s rotation reduces the felt value, especially at the equator, and its flattening changes the radius, so measured gravity ranges from about 9.78 to 9.83 m/s². The standard value 9.80665 is a convention.

Can the formula be used for objects that are not spheres?

Exactly only for point masses and spherical bodies. For other shapes it is a good approximation when the distance is large compared with their size; otherwise the attraction has to be added up piece by piece.

Sources

Last updated:

More Physics calculators

People also use