Gravity Orbit Simulator
Gravity orbit simulator: set star mass, radius and launch speed, then watch the path turn circular, elliptical, escape or crash, with escape speed shown.
Still loading. If the tool doesn’t appear, reload this page.
Planned features and workflows
- AltF Planet Maker
Coming soon
About this tool
Gravity Orbit Simulator
Interactive N-body orbital mechanics simulator with velocity vectors, orbital eccentricity, escape velocity, and collision mechanics.
This gravity orbit simulator launches a small body sideways around a star and lets Newton's inverse-square gravity decide its path. Launch at √(GM/r) and the orbit is circular; slower gives an ellipse or a crash; at √(2GM/r) or faster it escapes. Change mass, radius and speed and the orbit redraws instantly.
How to use Gravity Orbit Simulator
Drag "Central Star Mass" between 1000 and 15000, "Initial Radius" between 60 and 240 and "Initial Speed" between 1 and 15, or click an Orbit Preset: Circular Orbit, Elliptical Orbit, Escape Velocity or Spiral Crash.
The canvas relaunches on every change and integrates the inverse-square pull step by step, drawing the trail and a velocity-vector arrow; "Pause Orbit" freezes it and Reset relaunches from the current sliders.
The telemetry heading reads "Stable Circular Orbit", "Elliptical Orbit", "Hyperbolic Escape" or "Collision (Crashed)", beside the v_esc figure and the live Current Speed and Distance readouts (in scaled simulation units).
Why use Gravity Orbit Simulator
Names the orbit as it evolves
Circular, elliptical, escape and crash are classified live from the body's orbital energy (v²/2 − GM/r) at its current position, not just drawn.
One-click regime presets
Buttons set the launch speed to the exact circular value, 75% of it for a bound ellipse, 110% of escape velocity, or 25% for a guaranteed crash — so each regime is one click away.
Live telemetry beside the trail
Current radius and speed update continuously next to the escape-velocity figure for your chosen mass and radius, making the energy trade-off visible.
Common use cases
- You are learning orbital mechanics and want to watch what changes when speed drops just below the circular value — the orbit turns elliptical rather than falling straight in, which is hard to believe until you see it.
- A physics class is covering escape velocity and you want a live demonstration that the threshold is exactly √2 times circular speed, at the same radius and the same star mass.
- You are checking your own intuition about why a spacecraft speeds up near periapsis and slows near apoapsis, using the live speed and radius readouts as the ellipse is traced.
Frequently asked questions
What speed gives a perfectly circular orbit?
v = √(GM/r), where M is the central mass and r the orbital radius. The simulator computes this for your slider settings and its circular preset applies it exactly; any deviation from that value turns the path into an ellipse.
Link to answerHow is escape velocity related to orbital velocity?
Link to answerWhy does my orbit crash into the star?
Because the tangential speed is too low for the radius, so the ellipse's closest approach falls inside the star's surface. The crash preset uses 25% of circular speed to show this deliberately; the run stops when the body reaches the star's radius.
Link to answerAre the units realistic?
No — the simulation uses scaled units with G set to 1, star masses from 1,000 to 15,000 and radii from 60 to 240, advancing time in fixed steps. The proportions and the physics are faithful, but the numbers are not kilometres and kilograms, so use it to understand the relationships rather than to plan a real transfer.
Link to answerHow does the simulator decide which orbit type it is?
From the specific orbital energy E = v²/2 − GM/r at the body's current position. If E is zero or positive the path is unbound and labelled Hyperbolic Escape; if the body reaches the star's surface it is a Collision; otherwise it is bound, and it is labelled Stable Circular Orbit when the launch speed is within 2% of √(GM/r), and Elliptical Orbit otherwise.
Link to answerWhat else should I know about this tool?
The Gravity Orbit Simulator integrates Newton's inverse-square law, a = −GM·r/r³, step by step to draw the path a small body takes around a fixed central star, and classifies the result as circular, elliptical, escape or decaying crash. You set the star's mass, the starting radius and the initial tangential speed, and the panel shows live distance and speed against the escape velocity √(2GM/r) for that radius. It is a teaching tool for anyone trying to see why a satellite that is too slow spirals in and one that is too fast never comes back.
Link to answer