N-Body Orbit Calculator
Newtonian gravity · velocity-Verlet integrator · WebGL
1 · Mode
Two objects
Three objects
Configuration
Binary / central-orbit (2-body)
Equilateral Lagrange triangle (3-body)
Hierarchical: 3rd on outer orbit (3-body)
2 · Masses
Object 1 mass
× M☉
× M⊕
kg
Object 2 mass
× M☉
× M⊕
kg
Object 3 mass
× M☉
× M⊕
kg
Raw kilograms accept E-notation, e.g.
1.989e30
.
3 · Separation
Distance between objects
AU
km
3-body: this is the triangle side (Lagrange) or the inner pair's separation (hierarchical).
4 · Velocities (km/s)
Object 1 speed ·
0°
Object 2 speed ·
0°
Object 3 speed (auto · momentum balanced)
↻ Set circular
↗ Set escape
Drag the
arrow tips in the 3D view
to aim & size each velocity vector.
▶ COMPUTE & SIMULATE
⏸ Pause
⟲ Reset
✕ Trails
Display
Time speed
1×
Body size exaggeration
20×
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