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
Simulation Speed 30 d/s
1 day/s — 1 year/s
Zoom 1.0×
Focus On
Display Options
Controls
Planet Info
Selected
Period (yr)
Semi-major axis (AU)
Mass (Earth=1)

Kepler's Third Law

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.

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.
Solar System — Top View (Ecliptic Plane) Click a planet for details

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.

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.

Related Engineering Fields

The dynamics calculations underlying this simulator are fundamentally connected to various CAE fields beyond aerospace engineering. The first to mention is "robotic arm trajectory planning." When designing the smooth motion of a robotic arm grappling a satellite in space, the trajectory calculations are mathematically analogous to celestial orbit calculations. You compute the most efficient path to the target object using drive torque and inertia instead of gravity.

Next, there are parallels with "automotive steering stability analysis." When a car turns a corner, the equations describing the rotational motion around its center of gravity share a similar form with the motion of a planet conserving angular momentum. For instance, the orbit of a non-spinning planet and the yaw motion of a vehicle turning at constant speed can both be modeled as rotation within a central force field.

Furthermore, "micro- and nano-scale molecular dynamics simulations" share the same fundamental physics. You replace planets with atoms or molecules and substitute gravitational force with intermolecular forces like the Lennard-Jones potential. While the scale differs vastly between a giant solar system and a minute molecular system, the core CAE process of numerically solving equations of motion is common to both.

For Further Learning

If this tool has piqued your interest, a recommended next step is to explore mathematically "why orbits become elliptical." Start by moving beyond high school physics' "uniform circular motion" and try setting up the equations of motion in polar coordinates for a central force field. From the conservation of angular momentum, you can derive constant areal velocity (Kepler's second law). From the conservation of energy, you obtain the orbit equation. Solving this equation reveals conic sections (ellipse, parabola, hyperbola).

Specifically, writing the equations of motion in polar coordinates $(r, \theta)$ with the Sun as the pole gives the radial equation as $$ m(\ddot{r} - r\dot{\theta}^2) = -\frac{GMm}{r^2}. $$ Using the conservation of angular momentum, $L = m r^2 \dot{\theta} = \text{const.}$, this can be reduced to a differential equation in $r$. Following through with this solution allows you to understand what the simulator is calculating inside its black box.

As a practical next learning step, consider tackling the "three-body problem." For example, try creating your own simple numerical code (in Python, etc.) for the Sun-Earth-Moon system. Attempting to reproduce how the Moon's orbit is affected not only by Earth's gravity but also by solar perturbation will clearly show the differences from this simulator's model. From there, you should glimpse the doorway to more practical fields like "controlled orbital mechanics" and "optimal trajectory design."