Skip to content
Tutorials Center
My learning

Topics

Lesson 35 of 39 · Circular Motion and Gravitation

Newton's Law of Universal Gravitation

Learn Newton's law of universal gravitation, the constant G, how g depends on a planet's mass and radius, how it falls with height, and escape speed.

An apple falls. The Moon circles Earth. Both are pulled toward Earth, and Newton's great insight was that these are the same force. Gravity is not special to Earth: every object with mass attracts every other object with mass. This lesson gives you the law, the numbers and what they predict.

The law

Two point masses m₁ and m₂, a distance r apart between their centers, attract each other with a force of size:

F = G m₁ m₂ / r²

where G is the gravitational constant, G = 6.674 × 10⁻¹¹ N·m²/kg². The force is along the line joining the masses, always attractive, and the two forces form a third-law pair (equal and opposite).

Features worth remembering:

  • Inverse-square law: double the distance, and the force falls to one quarter. Triple it, and the force becomes one ninth.
  • Proportional to both masses: double either mass and the force doubles.
  • For spherically symmetric bodies (planets, stars), the force acts as if all the mass were at the center. This remarkable result (Newton's shell theorem) lets us treat Earth as a point when we stand on its surface, with r measured from its center.
  • G is tiny, so gravity between everyday objects is almost impossible to notice. Two 1 kg masses 1 m apart attract each other with 6.674 × 10⁻¹¹ N, about the weight of a few dozen bacteria. Gravity only becomes dominant when one mass is astronomical.
Python Gravity between everyday and astronomical objects

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

From the law to g

At Earth's surface, the gravitational force on a mass m is F = G M m / R². Compare with F = m g, and the mass cancels:

g = G M / R²

With M = 5.972 × 10²⁴ kg and R = 6.371 × 10⁶ m:

g = (6.674 × 10⁻¹¹ × 5.972 × 10²⁴) / (6.371 × 10⁶)² ≈ 9.82 m/s²

That matches the measured value (about 9.81 m/s², with small variations because Earth rotates and is not a perfect sphere). So g is not a universal constant but a property of a planet: bigger mass gives a larger g, larger radius gives a smaller g. This gives g for other bodies: the Moon (M = 7.35 × 10²² kg, R = 1.737 × 10⁶ m) has g ≈ 1.62 m/s².

Gravity above the surface

At height h above the surface, the distance to Earth's center is R + h:

g(h) = G M / (R + h)²

At 400 km (the altitude of the International Space Station), R + h = 6.771 × 10⁶ m and g ≈ 8.69 m/s², roughly 89% of the surface value. Astronauts float not because gravity is absent but because they and the station are in continuous free fall around Earth (more in the next lesson).

Python How g changes with altitude

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The last two rows are the geostationary altitude (35,786 km) and roughly the Moon's distance (the actual Earth-Moon distance is measured center to center).

Gravitational potential energy, again

Near the surface we used PE = m g h. That is only an approximation for small heights. The general expression, with zero energy at infinite separation, is:

PE = − G M m / r

It is negative because gravity is attractive: you must add energy to separate the masses. The closer you are, the more negative the value. Because only differences matter, near Earth this difference reduces to m g Δh.

Escape speed

How fast must you launch a projectile so that it never falls back (ignoring air and other bodies)? It needs enough kinetic energy to climb from r = R to infinity, where PE = 0 and the speed can fall to zero:

½ m v² − G M m / R = 0

v_esc = √(2 G M / R)

For Earth: v_esc = √(2 × 3.986 × 10¹⁴ / 6.371 × 10⁶) ≈ 1.119 × 10⁴ m/s, about 11.2 km/s. (Here G M = 3.986 × 10¹⁴ m³/s² is the product for Earth.) For the Moon, about 2.38 km/s. That is why the Moon has essentially no atmosphere: light gas molecules in the thin upper layers can easily exceed that speed.

Python Escape speed of several bodies

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Be careful with two radii: R in g = GM/R² is the distance to the center of the body, not the height above its surface. A frequent error is to add the altitude only when you should add it to the radius, giving r = R + h.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. The distance between two masses is doubled. The gravitational force between them becomes...

    F ∝ 1/r², so doubling r divides the force by 4.
  2. 2. Which expression gives the surface gravity g of a planet with mass M and radius R?

    Setting mg = GMm/R² and cancelling m gives g = GM/R².
  3. 3. At the altitude of the International Space Station (about 400 km), the value of g is about...

    g = GM/(R+h)² ≈ 8.69 m/s², about 89% of 9.81. Astronauts float because they are in free fall, not because gravity vanishes.
  4. 4. The escape speed from Earth's surface is about...

    v_esc = √(2GM/R) ≈ 11.2 km/s. About 7.9 km/s is the circular orbital speed near the surface.

Summary

  • F = G m₁m₂/r², with G = 6.674 × 10⁻¹¹ N·m²/kg²; attractive and an inverse-square law.
  • Spherical bodies act as if their mass were at the center; r is measured center to center.
  • Surface gravity g = GM/R²; at height h, g = GM/(R+h)².
  • General gravitational PE is −GMm/r.
  • Escape speed √(2GM/R) is about 11.2 km/s for Earth.

Next: Orbits and Kepler's Laws