Orbital Mechanics Calculator
Calculate orbital parameters using Kepler's laws and the vis-viva equation. Compute escape velocities for any solar system body, and plan Hohmann transfer orbits between circular orbits. All three modes include interactive SVG orbit diagrams and step-by-step formulas with KaTeX rendering.
Orbit Visualization
Controls
Results
Kepler's Third Law
Vis-Viva Equation (velocity at periapsis)
Reference Guide
Kepler's Laws
First Law — Planets move in ellipses with the Sun at one focus.
Second Law — A line from the Sun to a planet sweeps out equal areas in equal times. Planets move faster at periapsis and slower at apoapsis.
Third Law — The square of the orbital period is proportional to the cube of the semi-major axis.
For the same central body, doubling multiplies the period by .
Orbital Velocity (Vis-Viva)
The vis-viva equation gives the speed of an orbiting body at any point in its orbit, connecting position and semi-major axis .
For a circular orbit where , this simplifies to . At periapsis the body is fastest; at apoapsis it is slowest.
This equation also applies to hyperbolic escape trajectories when .
Escape Velocity
The minimum speed needed to escape a body's gravitational pull without further propulsion. Setting total orbital energy to zero gives
Escape velocity is exactly times the circular orbital velocity at the same radius. For Earth's surface, km/s.
Escape velocity depends only on mass and distance, not on the direction of launch or the mass of the escaping object.
Hohmann Transfer Orbits
The Hohmann transfer is the most fuel-efficient two-burn maneuver for moving between two coplanar circular orbits. It uses an elliptical transfer orbit that is tangent to both the initial and target orbits.
Burn 1 (departure) — Accelerate at the initial orbit to enter the transfer ellipse.
Burn 2 (arrival) — Accelerate at the target orbit to circularize.
The transfer time is half the period of the transfer ellipse. Earth to Mars via Hohmann takes approximately 259 days.