Solar System Lab
| Planet | a (AU) | e | T (yr) | T²/a³ |
|---|---|---|---|---|
| Mercury | 0.39 | 0.206 | 0.24 | 1.0021 |
| Venus | 0.72 | 0.007 | 0.61 | 1.0008 |
| Earth | 1.00 | 0.017 | 1.00 | 1.0000 |
| Mars | 1.52 | 0.093 | 1.88 | 0.9996 |
| Jupiter | 5.20 | 0.048 | 11.86 | 0.9986 |
| Saturn | 9.54 | 0.054 | 29.46 | 1.0005 |
| Uranus | 19.19 | 0.047 | 84.01 | 0.9987 |
| Neptune | 30.07 | 0.009 | 164.80 | 0.9989 |
| Pluto | 39.48 | 0.249 | 248.10 | 1.0003 |
Solar System Simulator — Orbital Mechanics & Kepler's Laws
This solar system simulator computes orbital positions using Kepler's equation with Newton-Raphson solving and real eccentricity values for all eight planets plus Pluto. Elapsed simulation years and adjustable speed (1–5000x) let you fast-forward to observe long-period planets. Click any planet to open a data panel showing semi-major axis, eccentricity, period, and a description. A Kepler's Third Law table below the canvas shows T²/a³ for every planet. Saturn has a rendered ring, and optional orbital trails and body labels can be toggled.
What you can do in this simulation
- Animate all 8 planets plus Pluto with accurate Keplerian orbits
- Adjust simulation speed (1–5000x) and zoom (5–300 px/AU)
- Toggle orbital trails, body labels, and orbit ellipses
- Click any planet to view semi-major axis, eccentricity, period, and description
- Verify Kepler's Third Law from the T²/a³ table shown below the canvas
Concepts covered
Kepler's laws · orbital mechanics · elliptical orbits · semi-major axis · orbital period · Keplerian equation
How orbital mechanics works
The planets orbit the Sun in ellipses, not circles, obeying the three laws Johannes Kepler distilled from decades of observations in the early 1600s. His first law says each orbit is an ellipse with the Sun at one focus. His second law says a planet sweeps out equal areas in equal times, so it moves faster when nearer the Sun and slower when farther away. His third law ties a planet's orbital period to its distance: the period squared is proportional to the semi-major axis cubed.
Newton later showed that all three laws follow from a single inverse-square law of gravity. This simulator uses real eccentricity values and solves Kepler's equation numerically for each planet, so the positions you see are faithful to the actual geometry of the solar system rather than idealized circles.
Experiments to try in this simulation
1. Verify Kepler's third law: open the T²/a³ table below the canvas. For every planet that ratio comes out to essentially the same number — the fingerprint of a single gravitational law governing them all.
2. Speed and distance: fast-forward the simulation and watch Mercury race around while Neptune barely creeps. Inner planets have far shorter years because they are both closer and moving faster.
3. Eccentric orbits: click a planet with a stretched orbit, such as Mercury or Pluto, and watch it speed up near the Sun and slow down far away — Kepler's second law in motion.
4. Compare the data: click each planet to read its semi-major axis, eccentricity, and period, and see how sharply orbital period grows with distance from the Sun.
Key laws
Kepler's third law, T² ∝ a³, is the quantitative heart of the simulation: a planet's year (T) depends only on its average distance from the Sun (the semi-major axis a), not on its mass. Double the distance and the period grows by a factor of 2^(3/2) ≈ 2.8. Kepler's second law is equivalent to the conservation of angular momentum, which forces a planet to trade speed for distance as it orbits.
Newton's law of universal gravitation, F = G·m₁m₂/r², underlies all of it — the inverse-square dependence on distance is exactly what produces closed elliptical orbits and Kepler's tidy relationships.
Real-world applications
The same orbital mechanics that place the planets guide every satellite and spacecraft we launch. Mission designers use Kepler's and Newton's laws to plan orbits, timing, and the gravitational slingshots that let probes reach the outer planets on limited fuel. Kepler's third law is also how astronomers weigh distant objects: measuring the period and size of an orbit reveals the mass at its centre — a technique used to find exoplanets and to infer the supermassive black holes at the hearts of galaxies.
Related simulations
- Gravity Lab — N-Body Orbital Mechanics Simulator
- Gravity Orbit Simulator — Kepler's Laws Interactive
- Escape Velocity Simulator: Orbit or Escape Explained
- Acoustics & Sound Waves — Interactive Simulator
- Angular Momentum Simulator: The Spinning Skater Effect
- Black Hole Simulator — Gravity & Spacetime
Browse all Physics simulations →
Related reading
Free to use in your browser — no signup required. Found a bug or have an idea to make it better? Tell us.
Finished experimenting?
Save one completion to this browser's signed guest ledger, or directly to your account when signed in.