← All tools
DIYFORGE TOOLBOX · SPACE PHYSICS

Orbital Mechanics Simulator

Build an orbit around the Sun, a planet, dwarf planet or major moon. Inspect its physical properties, rotate the orbit in the diagram, then watch a spacecraft move through it in simulated time. Explore bound ellipses and unbound parabolic or hyperbolic trajectories with live orbital physics and telemetry.

\[v=\sqrt{\mu\left(\frac{2}{r}-\frac{1}{a}\right)}\qquad T=2\pi\sqrt{\frac{a^3}{\mu}}\]
Vis-viva equation and Kepler’s third law

Mean radius and standard gravitational parameter.

Loading orbital calculator…

LIVE SIMULATION

Your spacecraft’s trajectory

KEPLER ORBIT

The central body and orbital distances share one physical scale. Toggle the coordinate grid and read its kilometre labels and scale bar. The spacecraft marker is enlarged so you can see it. Enhanced body visibility is on by default: central bodies smaller than 6 pixels are drawn at a 6-pixel minimum. Turn it off for strictly true-size rendering; orbital distances, paths, grid and scale bar are unchanged either way.

01 · ORBITAL ENERGY

Why the spacecraft speeds up

An elliptical orbit is fastest at periapsis and slowest at apoapsis. The vis-viva equation calculates speed at any point: \(v=\sqrt{\mu(2/r-1/a)}\).

Here, \(r\) is the current distance from the body’s centre, \(a\) is the semi-major axis and \(\mu=GM\) is the standard gravitational parameter.

02 · KEPLER’S LAWS

One orbit, changing speed

Kepler’s equation connects elapsed time to position on an ellipse: \(M=E-e\sin E\), where \(M\) is mean anomaly, \(E\) is eccentric anomaly and \(e\) is eccentricity.

The orbital period follows Kepler’s third law only for a bound ellipse: \(T=2\pi\sqrt{a^3/\mu}\). At eccentricity 1, Barker’s equation describes a parabolic escape; above 1, the hyperbolic Kepler equation \(M_h=e\sinh H-H\) describes an unbound flyby or escape.

Scale, physics and assumptions

The central body and trajectory use one shared linear scale. Complete ellipses fit the view; open parabolic and hyperbolic trajectories show an expanding segment, with the view zooming out as the spacecraft travels away. Only the spacecraft marker is enlarged; its drawn size is not to scale.

The motion uses a Newtonian two-body conic-section model: elliptic Kepler motion below eccentricity 1, Barker’s equation at exactly 1, and hyperbolic Kepler motion above 1. It ignores atmospheric drag, body rotation, oblateness, moons, other planets, solar radiation pressure and propulsion.

Satellite gravitational parameters and mean radii are based on NASA/JPL Solar System Dynamics physical-parameter tables. Some small or irregular moons are approximated as spheres; moons without a reliable published GM are not included.

Low orbits may decay in reality, and giant-planet radii are reference levels. When a moon is selected, it becomes the isolated central body; its parent planet and neighbouring moons are not simulated. This is an educational model, not a mission-navigation tool.

Educational two-body model · Not for real mission design or navigation.