Gravitational Force Solver – Solve F = Gm₁m₂/r² for Any Variable

Use this free Gravitational Force Solver to work with Newton's law of universal gravitation in any direction — find the force between two masses, an unknown mass, or the distance between them.

mass m₁ mass m₂ distance r

Formula

Newton's law of universal gravitation: F = G m₁ m₂ / r², with G = 6.674 × 10⁻¹¹ N·m²/kg².
Rearranged: m₁ = F r² / (G m₂)  ·  m₂ = F r² / (G m₁)  ·  r = √( G m₁ m₂ / F )

How to use

Worked example

The Earth (m₁ = 5.972 × 10²⁴ kg) and the Moon (m₂ = 7.348 × 10²² kg) are r = 3.844 × 10⁸ m apart.
F = 6.674 × 10⁻¹¹ × 5.972 × 10²⁴ × 7.348 × 10²² / (3.844 × 10⁸)² = 1.98 × 10²⁰ N.
That is the pull that keeps the Moon in orbit around the Earth.

FAQ

Why is the force so small between everyday objects?
G is tiny (6.674 × 10⁻¹¹), so the attraction between two people or two cars is far too weak to notice. Only planet-sized masses produce a force we can feel — as weight.

What happens to the force if the distance doubles?
Because r is squared, doubling the distance cuts the force to one quarter — this is called an inverse-square law.

Is r measured from the surfaces or the centres?
From centre to centre. For planets, use the distance between their centres, not the gap between their surfaces.