Solar System Simulator Back
Astrophysics · Space Science

Solar System Simulator — Planetary Orbits & Kepler's Laws

Real-time simulation of all 8 planets using actual orbital periods and semi-major axes. Click any planet to see its mass, radius, and distance from the Sun. Experience Kepler's Third Law intuitively.

Simulation Settings
January 1, 2000
Focus On
Display Options
Controls
Planet Info
Aerospace CAE Connection
Orbital mechanics forms the basis of satellite trajectory design (Hohmann transfers, gravity assists). CAE tools handle spacecraft structural loads during launch, thermal cycling in orbit, and aerodynamic heating during atmospheric re-entry.
Results
Selected
Period (yr)
Semi-major axis (AU)
Mass (Earth=1)
Solar System — Top View (Ecliptic Plane) Click a planet for details
Solar

Planet Name

Mass (Earth = 1)
Equatorial radius (km)
Orbital period
Semi-major axis
Orbital eccentricity
Avg. distance from Sun
Note: Planet sizes are exaggerated for visibility. On true scale, even Jupiter is tiny compared to its orbital radius. Scroll or use the slider to zoom.
Theory & Key Formulas

Orbital period $T$ and semi-major axis $a$:

$$T^2 \propto a^3$$

In AU/year units: $T^2 = a^3$. Neptune's period ≈ $30.07^{3/2}$ ≈ 164.8 years.

What is Orbital Mechanics & Kepler's Laws?

🙋
What exactly are Kepler's Laws? I see planets moving in the simulator, but what's the rule behind their paths?
🎓
Basically, they're three simple rules that perfectly describe how planets orbit the Sun. The first law says orbits are ellipses, not perfect circles. In the simulator, try zooming out and focusing on Mars or Mercury—you can see their orbits are slightly oval-shaped with the Sun at one focus of the ellipse.
🙋
Wait, really? So a planet doesn't move at a constant speed? That seems weird.
🎓
Exactly! That's Kepler's Second Law. A planet speeds up when it's closer to the Sun and slows down when it's farther away. In practice, it sweeps out equal areas in equal times. Watch Mercury in the simulator—when its orbit line turns red (closest approach), it visibly zips along faster than when the line is blue (farthest point).
🙋
Okay, I see the speed change. But what connects a planet's "year" to its distance from the Sun? Is there a formula?
🎓
Great question! That's Kepler's Third Law. It gives us a precise mathematical relationship: the square of a planet's orbital period is proportional to the cube of its average distance from the Sun. A common case is comparing Earth and Mars. Try changing the "Focus On" parameter to Mars. You'll see its year is much longer, and that's because its orbit is so much larger—and the law tells us exactly how much longer.

Physical Model & Key Equations

The most famous and practical of Kepler's Laws is the Third Law, which relates a planet's orbital period (its "year") to the semi-major axis of its elliptical orbit (essentially its average distance from the Sun).

$$T^2 \propto a^3 \quad \text{or}\quad \frac{T^2}{a^3}= \text{constant}$$

Where $T$ is the orbital period (e.g., in Earth years), and $a$ is the semi-major axis (often in Astronomical Units, AU, where 1 AU is the Earth-Sun distance). The constant is the same for all objects orbiting the same central body (like our Sun).

When we include Newton's Law of Universal Gravitation, we can derive the exact constant, leading to a more powerful form of the law.

$$T^2 = \frac{4\pi^2}{G(M_{\odot} + m)}a^3$$

Here, $G$ is the gravitational constant, and $M_{\odot}$ and $m$ are the masses of the Sun and the planet. Since the Sun's mass is enormous, $M_{\odot}+ m \approx M_{\odot}$. This equation is the foundation for calculating orbits of planets, asteroids, and human-made satellites.

Real-World Applications

Satellite Trajectory Design: Kepler's Laws are the ABCs of placing satellites in correct orbits. Engineers use them to calculate the precise speed and altitude needed for a communications satellite to remain in geostationary orbit, appearing fixed over one point on Earth.

Space Mission Planning: Every interplanetary mission, like the Mars rovers, relies on these laws. Mission planners calculate efficient transfer orbits (called Hohmann transfers) based on Kepler's Third Law to determine launch windows and flight duration with minimal fuel.

Exoplanet Discovery: Astronomers apply these laws in reverse to discover planets around other stars. By measuring the periodic wobble or dimming of a star (caused by an orbiting planet), they can use Kepler's Third Law to estimate the planet's orbital distance and mass.

Aerospace CAE & Simulation: Before launch, CAE software uses orbital mechanics to simulate structural loads on a spacecraft during launch, predict thermal cycles it will experience in orbit, and model the extreme aerodynamic heating it must withstand during atmospheric re-entry.

Common Misconceptions and Points to Note

There are a few key points you should be aware of when starting to use this simulator. First, don't assume the orbits are perfect circles. While the tool displays them as clear circles for simplicity, actual planetary orbits are ellipses, with the Sun located at one "focus," not the center. For example, Mars's orbital eccentricity is about 0.09, meaning its distance from the Sun varies by roughly 20% between perihelion and aphelion. This "deviation" is one reason why launch windows for spacecraft are so narrow.

Second, understand that the simulation ignores the gravitational influence of other planets. This simulation is fundamentally based on the two-body problem of "the Sun and one planet." However, in reality, the gravity of massive planets like Jupiter perturbs the orbits of others. Practical trajectory calculations must handle this "n-body problem," making the computations significantly more complex.

Third, watch out for pitfalls with the "simulation speed" setting. If you set the speed to maximum to observe long-term motion, computational errors can accumulate, causing the orbit to drift slightly over time. This stems from the numerical integration method used (like Euler's method). In practice, higher-precision methods like Runge-Kutta are employed. You can sometimes observe this error effect by zooming in fully and watching Mercury's motion at ultra-high speed in the tool—give it a try.

How to Use

  1. Adjust speedSlider to control simulation velocity from 0.1× to 100× real-time; speedSliderNum displays current multiplier
  2. Use zoomSlider to scale view from 0.5× to 5× (zoomSliderNum shows magnification level for inner or outer planets)
  3. Select a planet from the dropdown; the output stats display its orbital Period in years, Semi-major axis in AU, and Mass relative to Earth

Worked Example

Simulate Earth's orbit: set speed to 10× real-time, zoom to 1.0×. Earth displays Period=1.00 yr, Semi-major axis=1.00 AU, Mass=1.0. Increase speed to 50×; observe Mars completing ~0.53 orbits while Earth completes one full cycle. Semi-major axis for Mars reads 1.52 AU, confirming Kepler's third law: T² ∝ a³ (Mars period 1.88 yr matches the 1.52³ ratio).

Practical Notes

  1. Use 100× speed for Jupiter (T=11.86 yr) to observe multi-year transits in seconds; zoom to 0.5× to fit outer planets
  2. Mercury (a=0.387 AU) requires zoom 2× to visualize; its 0.24 yr period becomes clear at 50× speed
  3. Verify Kepler's third law by comparing Venus (a=0.723 AU, T=0.615 yr) and Saturn (a=9.54 AU, T=29.5 yr) at 10× speed