Measurement

Kepler's Planetary Laws & Orbit Simulator

Simulate elliptical planetary and comet orbits with Kepler's three laws, real-time area velocity conservation animation, perihelion/aphelion speed, and T² = a³ period scaling.

Free to use No sign-up Runs in your browser

Tool workspace

Planetary & Comet Orbit Presets

Orbital Elements & Solar Mass

Semi-Major Axis (a, AU)1.00 AU
Orbital Eccentricity (e)0.0167
Central Star Mass (M☉)1.00 M☉

Keplerian Mechanics Metrics

Orbital Period (T)1.000 yr (365.3 d)
Perihelion Distance (r_p)0.983 AU
Aphelion Distance (r_a)1.017 AU
Perihelion Speed (v_p)30.28 km/s
Aphelion Speed (v_a)29.29 km/s
Kepler's 3rd Law (T²/a³)1.0000

Real-Time Keplerian Orbit Canvas

Sun at primary focus. Notice planet accelerating as it whips around perihelion and slowing at aphelion (Kepler's 2nd Law).

What is the Kepler's Planetary Laws Simulator?

The Kepler's Planetary Laws Simulator is an astronomical celestial mechanics tool based on Johannes Kepler's three fundamental empirical laws of planetary motion: 1) All planets orbit in ellipses with the Sun at one focus; 2) A line segment connecting planet and Sun sweeps out equal areas during equal intervals of time (conservation of angular momentum); and 3) The square of the orbital period T is directly proportional to the cube of the semi-major axis a (T² ∝ a³).

How to Use the Simulator

  1. 1Select a celestial preset (such as Mercury, Earth, Mars, Jupiter, or Halley's Comet) to load observed semi-major axes and eccentricities.
  2. 2Adjust the semi-major axis (a) or eccentricity (e) slider to see the ellipse stretch or become circular.
  3. 3Observe the animated planet on the canvas speeding up at perihelion (closest point) and coasting slowly at aphelion.
  4. 4Toggle the 'Equal Area Sectors' to visually verify Kepler's Second Law.

Astrodynamics & Spaceflight Applications

Hohmann Transfer Orbits to Mars

Calculate orbital travel times and eccentricity requirements for interplanetary spacecraft cruise phases.

Comet Trajectory and Sun Grazing

Demonstrate why long-period comets like Halley spend 99% of their lifetimes in the freezing outer solar system and only months near the Sun.

Exoplanet Transit and Radial Velocity

Apply Kepler's Third Law to calculate parent star masses and exoplanet orbital distances from light curve transit periods.

Frequently asked questions

What is orbital eccentricity (e)?

Eccentricity measures how much an orbit deviates from a perfect circle. An eccentricity of e = 0 represents an exact circle, 0 < e < 1 is an ellipse, e = 1 is a parabolic escape trajectory, and e > 1 is a hyperbolic unbound orbit.

Why does a planet speed up when it is closer to the Sun?

Due to conservation of angular momentum (L = r × m v), as orbital radius r decreases near perihelion, tangential orbital velocity v must increase proportionately. This is the physical foundation of Kepler's Second Law of equal area sweep rates.

Does Kepler's Third Law apply to moons orbiting planets?

Yes. Kepler's Third Law T² = (4π² / G M) a³ applies to any satellite system bound by gravity, where M is the mass of the central attracting body (e.g., Earth for the Moon and GPS satellites, or Jupiter for the Galilean moons).