N-Body Orbit Calculator

Newtonian gravity · velocity-Verlet integrator · WebGL
1 · Mode
2 · Masses
Raw kilograms accept E-notation, e.g. 1.989e30.
3 · Separation
3-body: this is the triangle side (Lagrange) or the inner pair's separation (hierarchical).
4 · Velocities (km/s)
Drag the arrow tips in the 3D view to aim & size each velocity vector.
Display
Collisions are detected on the displayed radii, so what you see is what you get.
5 · Results
Press COMPUTE to solve the orbit.
🖱 Left-drag = rotate · wheel = zoom · right-drag = pan · drag arrow tip = set velocity vector