Home▸Space & Astronomy▸Kepler's Laws 2D: Elliptical Orbits & Equal-Area Sweep

Kepler's Laws 2D: Elliptical Orbits & Equal-Area Sweep

A genuine 2D orbital-mechanics lab: reshape elliptical orbits with an eccentricity slider, watch a real equal-areas-in-equal-times sweep wedge, and prove Kepler's Third Law (T^2 proportional to a^3) live across four independent planets.

Space & Astronomy2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-solar ↗ Open standalone

This 2D orbital-mechanics lab solves the real two-body Kepler problem for four independent planets, each with its own adjustable semi-major axis and eccentricity. Every position on screen comes from Newton-Raphson solving Kepler's equation for the eccentric anomaly, not a scripted loop — so the shapes and speeds you see are the genuine physics. Reshape an orbit's eccentricity to watch it stretch from a circle into a narrow ellipse while its period stays fixed, then study the selected planet's equal-time sweep wedges: because orbital angular momentum is conserved, every wedge carries the same area even though the planet visibly speeds up near perihelion and crawls near aphelion — Kepler's Second Law made visible. The live table on the left checks Kepler's Third Law across all four planets at once, confirming that T squared divided by a cubed lands on the same constant, 4π² ≈ 39.48, regardless of how eccentric each orbit is.

⚙ Under the hood

A genuine 2D orbital-mechanics lab: reshape elliptical orbits with an eccentricity slider, watch a real equal-areas-in-equal-times sweep wedge, and prove Kepler's Third Law (T squared proportional to a cubed) live across four independently adjustable planets.

Kepler's lawsorbital mechanicselliptical orbiteccentricityequal areasT-squared a-cubed2D canvasastronomy

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)