Dynamics

Gravitational Force Calculator

F = G·m₁m₂ / r²
Calculator
Raw
Writing tips
  • Use * for multiplication: write G*M*m, not GMm.
  • Use ^ for powers: r^2 means r squared.
  • After a /, wrap the whole denominator in brackets: 1/(4*pi*eps0) puts everything in brackets below the line.
  • Scientific notation: write 6*10^-7 or 6e-7 — both mean 6×10⁻⁷.
  • Functions need brackets: sqrt(2*G*M/r), sin(x), ln(x).
  • Define the result with =: e.g. F = G*M*m/r^2 so the answer is labelled F.
Advertisement

This calculator finds the gravitational force between any two objects using Newton's law of universal gravitation. Enter the two masses and the distance between their centres, and it returns the attractive force in newtons and other units. The gravitational constant G is filled in automatically.

What the symbols mean

Worked example

For the Earth (5.97×10²⁴ kg) and the Moon (7.34×10²² kg) separated by 3.84×10⁸ m, the force is about 1.98×10²⁰ N — the pull that keeps the Moon in orbit.

Want the full story behind this formula? Read our guide: Gravitational Force.

How the formula works

Newton's law of universal gravitation says the attractive force between two masses grows with the product of those masses and falls off with the square of the distance between their centres. The gravitational constant G sets the overall strength of the effect; because it is so tiny, gravity only becomes noticeable when at least one of the masses is very large, like a planet or star.

The inverse-square part — dividing by r² rather than r — reflects how the influence spreads out over the surface of an ever-larger sphere as distance increases. Double the distance and the force drops to a quarter; triple it and the force drops to a ninth.

Common mistakes to avoid

Where it is used

This formula predicts planetary orbits, the tides raised by the Moon, the trajectories of spacecraft, and the gravitational pull that holds galaxies together. Near a planet's surface it simplifies to the familiar weight formula, force equals mass times g.

Related calculators

Advertisement