3D Solar System — Planetary Orbits & Kepler's Laws

All 8 planets with real orbital elements. Drag to rotate · Scroll to zoom · Hover for planet data.

Date: J2000
Year: 2000.0
Speed: Earth days/s
Tilt: 25°

Presets

View

Parameters

30d/s
120

Actions

The Solar System at a Glance

The solar system formed ~4.6 billion years ago from a collapsing molecular cloud. Conservation of angular momentum caused the cloud to flatten into a rotating disk — the solar nebula — from which the planets accreted. The result is a remarkably flat system: all planetary orbital planes lie within a few degrees of the ecliptic plane (Earth's orbital plane).

Mercury

a = 0.387 AU · T = 87.97 d · e = 0.206 · Most eccentric inner planet; extreme temperature swings (−180°C to +430°C)

Venus

a = 0.723 AU · T = 224.7 d · e = 0.007 · Nearly circular orbit; retrograde rotation; hottest planet (464°C surface)

Earth

a = 1.000 AU · T = 365.25 d · e = 0.017 · Orbital unit of measure; one Moon; liquid water

Mars

a = 1.524 AU · T = 686.97 d · e = 0.093 · Two moons (Phobos, Deimos); 6-month journey from Earth

Jupiter

a = 5.203 AU · T = 11.86 yr · e = 0.049 · 95 known moons; Great Red Spot storm; 318× Earth mass

Saturn

a = 9.537 AU · T = 29.46 yr · e = 0.057 · Iconic ring system; least dense planet (floats on water)

Uranus

a = 19.19 AU · T = 84.01 yr · e = 0.046 · 98° axial tilt — orbits on its side; ice giant

Neptune

a = 30.07 AU · T = 164.8 yr · e = 0.010 · Predicted mathematically before discovery; winds to 2100 km/h

Kepler's Three Laws

Johannes Kepler (1609–1619) derived three empirical laws from Tycho Brahe's observations. Newton later proved they follow from the inverse-square law F = GMm/r².

Kepler's First Law (Law of Ellipses):
Each planet orbits the Sun in an ellipse with the Sun at one focus.
r = a(1−e²)/(1 + e·cos ν)   (polar equation, ν = true anomaly)
Kepler's Second Law (Law of Equal Areas):
The radius vector sweeps equal areas in equal times — a planet moves faster at perihelion (closest approach) and slower at aphelion (farthest point).
dA/dt = L/(2m) = constant   (conserved angular momentum)
Kepler's Third Law (Law of Periods):
T² = (4π²/GM) · a³   (Newton's generalisation)
In solar units: T²/a³ = 1 when T is in years and a in AU (for all planets!)

Orbital Mechanics Data

Planeta (AU)ei (°)T (years)v_orb (km/s)T²/a³
Mercury0.3870.2067.0°0.24147.41.000
Venus0.7230.0073.4°0.61535.01.000
Earth1.0000.0170.0°1.00029.81.000
Mars1.5240.0931.9°1.88124.11.000
Jupiter5.2030.0491.3°11.8613.11.000
Saturn9.5370.0572.5°29.469.71.000
Uranus19.190.0460.8°84.016.81.000
Neptune30.070.0101.8°164.85.41.000

Orbital Mechanics: From Kepler Equation to Position

To find a planet’s position at time t, this simulation solves Kepler’s Equation:

Step 1 — Mean anomaly: M(t) = 2π · t / T (uniform angular speed)
Step 2 — Eccentric anomaly: Solve M = E − e·sin(E) via Newton-Raphson iteration
Step 3 — True anomaly: tan(ν/2) = √((1+e)/(1−e)) · tan(E/2)
Step 4 — Orbital radius: r = a(1−e·cos E)
Step 5 — 3D position: Rotate by argument of perihelion ω, inclination i, and longitude of ascending node Ω

Hohmann Transfer Orbits

The most fuel-efficient way to move between two circular orbits is a Hohmann transfer ellipse — an ellipse tangent to both orbits. For Earth→Mars:

a_transfer = (r_Earth + r_Mars)/2 = (1.0 + 1.524)/2 = 1.262 AU
T_transfer = (a_transfer)^(3/2) years = 1.262^1.5 = 1.416 years = 259 days (one way)
Launch window: Every 2+ years when Earth-Mars alignment is correct (synodic period 779.9 days)

Frequently Asked Questions

Why do inner planets orbit faster than outer planets?
Kepler’s Third Law — T² ∝ a³ — means period grows faster than distance. This follows from Newton’s gravity: closer planets feel stronger attraction and must move faster to avoid falling into the Sun. Mercury (0.387 AU) travels at 47 km/s; Neptune (30.07 AU) at just 5.4 km/s — a 9× speed difference for 78× the distance.
Why are orbits elliptical?
Newton proved that any F ∝ 1/r² attractive force produces conic-section orbits (Bertrand’s theorem). An ellipse results when total energy E = ½mv² − GMm/r < 0 (bound orbit). Eccentricity e = √(1 + 2EL²/(G²M²m³)) where L is angular momentum. Nearly circular orbits (e ≈ 0) arise when the angular momentum is nearly "optimal" for the energy level — all planets inherited near-optimal conditions from the protoplanetary disk.
What are Lagrange points?
Five positions in the Sun-Earth system where gravity + centrifugal force exactly cancel. L1 (~1.5 Mkm sunward) hosts SOHO and DSCOVR. L2 (~1.5 Mkm anti-sunward) hosts JWST and Gaia. L4 and L5 (60° ahead/behind Earth) are stable for objects — Earth has no Trojans, but Jupiter has ~10,000+ Trojan asteroids at its L4/L5.
How is this simulation computed?
Each planet’s position is computed every frame from its mean anomaly M = 2π·t/T. Kepler’s equation M = E − e·sin(E) is solved numerically (Newton-Raphson, 5 iterations, <10⁻¹⁰ rad accuracy). The eccentric anomaly E gives heliocentric 3D coordinates via the orbital elements (a, e, i, Ω, ω). Projection to canvas uses a simple perspective with adjustable tilt and rotation angles, controlled by mouse drag. The camera system uses 3D rotation matrices rather than full-scene 3D rendering.