Skip to content
Tutorials Center
My learning

Topics

Lesson 11 of 37 · The Solar System

Kepler's Laws of Planetary Motion

Learn Kepler's three laws: elliptical orbits, equal areas in equal times, and the period-distance law T squared equals a cubed, with Python checks for real planets.

Early astronomers believed that heavenly bodies must move in perfect circles at steady speeds. In the early 1600s Johannes Kepler used the extremely careful observations of Tycho Brahe to show that this was wrong. Planets move on ellipses, at changing speeds, in a pattern that can be written in three short laws.

Kepler found these laws by fitting data, without knowing why they were true. Newton later explained them with gravity (see the next lesson). Here you will learn what the laws say, test them with real numbers, and use them to predict orbital periods.

Law 1: orbits are ellipses

Every planet moves around the Sun on an ellipse, with the Sun at one of its two foci (the plural of focus). An ellipse is a stretched circle. Two numbers describe it:

  • The semi-major axis (a): half of the longest diameter. It is the planet's "average" distance from the Sun.
  • The eccentricity (e): how stretched the ellipse is. A circle has e = 0. Larger values are more elongated; values must stay below 1 for a closed orbit.

The closest point to the Sun is the perihelion, at distance a × (1 − e). The farthest point is the aphelion, at distance a × (1 + e).

Python Perihelion and aphelion

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.

Planets in the Solar System have nearly circular orbits (small e). Comets often have very elongated orbits: Halley's Comet swings from inside the orbit of Venus out beyond Neptune.

Law 2: equal areas in equal times

An imaginary line from the Sun to the planet sweeps out equal areas in equal amounts of time. This means a planet moves faster when it is close to the Sun and slower when it is far away.

Kepler's three laws

Law 1 Orbits are ellipses
Law 2 Equal areas, equal times
Law 3 T squared = a cubed
1 / 2

The speed ratio can be calculated. Angular momentum is conserved, so the speed at perihelion and aphelion satisfy

v_peri / v_aph = (1 + e) / (1 − e)

For Earth (e = 0.0167) the ratio is about 1.034. That is, Earth moves about 3 percent faster in January than in July. For Halley's Comet the ratio is (1.967) / (0.033) ≈ 59.6: it moves nearly sixty times faster at perihelion than at aphelion.

Python Speed at perihelion versus aphelion

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.

Law 3: the harmonic law

The square of a planet's orbital period is proportional to the cube of its semi-major axis. If T is in years and a is in AU, the law becomes beautifully simple:

T² = a³

This is valid for objects orbiting the Sun (or any object whose mass is overwhelmingly larger than the orbiting body's). For example, a planet at a = 4 AU has T² = 64, so T = 8 years.

Python Test Kepler's third law

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.

Every ratio comes out very close to 1.00, from tiny Mercury to distant Neptune. That is a powerful result: one rule describes all the planets.

Plotting the law

On a graph of period against distance, the data form a curve. If we plot both on logarithmic axes, the points fall on a straight line with slope 1.5, because T = a^1.5.

Python Period versus distance on log axes

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 best-fit slope is essentially 1.5, which confirms the law.

Kepler's laws apply to moons orbiting planets and to satellites orbiting Earth as well, but the constant of proportionality changes with the central body's mass.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Where is the Sun located relative to a planet's elliptical orbit?

    Kepler's first law puts the Sun at one of the two foci, not at the center.
  2. 2. According to Kepler's second law, when does a planet move fastest?

    Near the Sun, the line to the planet is short, so the planet must move faster to sweep the same area.
  3. 3. A body orbits the Sun at a = 4 AU. What is its period in years?

    T² = a³ = 64, so T = 8 years.
  4. 4. What does an eccentricity of 0 describe?

    e = 0 means both foci coincide and the ellipse is a circle.

Summary

  • Law 1: planets orbit on ellipses with the Sun at one focus; perihelion is a(1 − e) and aphelion is a(1 + e).
  • Law 2: a planet sweeps out equal areas in equal times, so it is faster near the Sun.
  • Law 3: T² = a³ (years and AU), so farther planets have much longer years.
  • These laws were found from data, and Newton's gravity later explained them.

Next: Gravity and Orbits