Astronomy · Deep dive

Orbits, Kepler’s Laws & Going to Mars

Why can’t a spacecraft leave for Mars whenever it wants, but has to wait about 26 months for the next chance? The answer is hidden in three laws Johannes Kepler found 400 years ago, and in Newton’s law of gravity.

What you’ll be able to do: predict whether a launch falls, orbits or escapes; test all three of Kepler’s laws with real data; and pick your own launch day to send a probe to Mars.

Newton’s cannon, with real Earth numbers

This time it is the real Earth: radius 6,371 km and real gravity. At every instant the program uses Newton’s law of gravity to work out the pull on the cannonball, then moves it a tiny step, over and over (this is called numerical integration).

💨 Speed
⛰ Mountain
⏩ Time

Kepler’s three laws lab

Kepler had no telescope data, only Tycho Brahe’s 20-plus years of naked-eye measurements. It took him about ten years of calculations to find three rules. Now test them yourself.

✏️ An ellipse = two pins and a loop of string

Drag the planet around the orbit. Its distances to the two foci always add up to the same number. The Sun sits at one focus; the other focus is empty.

–distance to Sun r₁
–distance to empty focus r₂
–r₁ + r₂ (= 2a, the long axis)
–short ÷ long axis (b/a)

💡 Memory hint
🚀 Advanced: Newton’s version of Kepler’s laws: the star’s mass
🎯 Challenge: mystery star Press 🎲 to hide the star’s mass. Go to the 3rd-law tab, launch a planet, and use T² ÷ a³ from the table to work out how many Sun masses the star has.

⚖️ Weigh things with Kepler’s 3rd law: M = a³ ÷ T²

With a in AU and T in years, a³ ÷ T² is simply the central body’s mass in Sun masses (1 Sun mass ≈ 333,000 Earth masses). The Moon row gives Earth + Moon together. Data: NASA fact sheets; S2 is a star orbiting Sagittarius A*, the black hole at the center of our galaxy (ESO measurements, approximate).

Log–log axes: each grid step is ×10. Hollow circles = real planets (data: NASA Planetary Fact Sheet); filled dots = your launches. Dashed line: T² = a³ (T in years, a in AU).

📒 Your data

If Kepler’s 3rd law is right, the last column should always come out close to 1.00.

Figure 1: real orbital periods against distance (log–log). Three parallel lines for three different central bodies: the Sun, Jupiter and Earth. Hover over a dot for its numbers. Data: NASA Planetary and Satellite Fact Sheets; satellite values approximate.

Challenge: Mission to Mars (Hohmann transfer)

The cheapest route is an ellipse that touches Earth’s orbit at one end and Mars’s orbit at the other. The probe coasts half of it, about 8.5 months. The catch: when you leave, Mars must already be ahead of Earth by about 44°, so it arrives at the meeting point at the same time you do. Pick a launch date, set your burn, and launch!

🛰 Mission control

–Mars ahead of Earth (ideal ≈ 44°)
–Earth–Mars distance
–predicted closest approach
–predicted flight time

Model notes: Earth’s and Mars’s orbits have their real sizes and periods but are simplified to circles (Mars’s real orbit is a little stretched, e = 0.093). Only the Sun’s gravity is computed; the “burn” is your speed relative to Earth after escaping Earth’s gravity. The target zone is 4.5 million km wide in radius, far more generous than a real mission.

Figure 2: Mars launch-window calendar. Orange bars = windows computed with this page’s circular-orbit model (approximate; real windows can differ by a few weeks to two months). Dots = real mission launch dates. Data: published launch dates from NASA, ESA, ISRO, the UAE Space Agency and CNSA.

Test yourself

🧠 Orbits & Kepler quiz

Some questions use the charts above.

🗂️ Sort it: which of Kepler’s laws?

Drag each card (or tap it, then tap a box) into the right group.

👩‍🏫 Teacher notes

Supports GSE S6E1 (especially element d: develop and use a model to explain how gravity and inertia govern the motion of objects in the solar system); the Mars mission also connects to S6E2 (positions in the Earth–Moon–Sun system change over time in predictable ways). This lesson goes beyond grade 6: it uses the real gravitational constant, numerical integration, log–log graphs, the quantitative form of Kepler’s 3rd law (T² = a³) and Hohmann transfer orbits. Suggested flow: in Newton’s cannon, have students predict what happens near 7.9 km/s and 11.2 km/s; in the Kepler lab, test the laws one by one (the 3rd-law table lets students “discover” T²/a³ ≈ 1); use Figure 1 to discuss why Jupiter’s moons lie on a different line (a different central mass); then run the Mars challenge.

Simplifications: Newton’s cannon ignores air resistance and Earth’s spin; the Mars mission uses circular orbits and only the Sun’s gravity, so its window dates can be off from the real ones by weeks. Figure 2’s real launch dates let students judge how good the model is, which is a great discussion in itself.