AstronomyIntermediate2D simulation~15 min

Planetary Orbits and Gravity

Earth races around the Sun at about 30 km per second, yet it never flies off into space or falls into the Sun. The reason is a balance between motion and gravity. Launch your own planet and find out how fast it must move to circle, swing in an ellipse, or escape forever.

Press Start to launch Click the orbit to inspect
t = 0.0 s
100

As a percentage of the speed needed for a circular orbit.

0

0° = sideways (perpendicular to the star). Positive tilts away from the star.

1

In astronomical units (AU). 1 AU = Earth’s distance from the Sun.

1

In solar masses. Changing it during flight changes gravity immediately.

Key

  • Velocity
  • Gravitational force (toward the star)
  • Predicted orbit
Orbit type
—
Orbital period
—
Eccentricity
—
Closest / farthest
—
Distance now
—
Speed now
—

Speed over time

The planet's orbital speed in kilometres per second over time.

    How to use this simulator

    1. Set the launch speed (as a percentage of circular speed), the direction and the starting distance, then press Start.
    2. The dashed purple curve is the predicted orbit. The readouts give the orbit type, period, eccentricity and closest and farthest distances.
    3. Turn on equal areas to see Kepler’s second law: each shaded wedge takes the same time to sweep out.
    4. Try the Circular, Elliptical and Escape presets. Change the star mass during flight to see the orbit respond.
    5. Click anywhere to see the circular speed and period at that distance. Reset restores Earth-like settings.

    Orbiting is falling

    Isaac Newton imagined a cannon on a very tall mountain. Fire a ball slowly and it falls to the ground nearby; fire it faster and it lands farther away. Fire it fast enough and the ground curves away beneath it as quickly as it falls — it never lands. That is an orbit: an object continuously falling toward a planet or star while moving sideways fast enough to keep missing it. The same gravity that drops an apple holds the Moon and the planets in their paths.

    Circles, ellipses and escape

    • At exactly circular speed and launched sideways, the pull of gravity bends the path into a circle.
    • Slower, gravity wins at first: the planet dives inward, speeds up, swings around, and returns — an ellipse with the launch point farthest away.
    • Faster (but below escape speed), the planet climbs outward and slows down before falling back — a larger ellipse with the launch point closest.
    • At or above escape speed (√2 ≈ 1.41 times circular speed), the path opens up and the planet never returns.

    Kepler’s three laws

    Johannes Kepler discovered these laws in the early 1600s from careful observations of Mars. Newton later showed that all three follow from his law of gravity.

    1. Orbits are ellipses, with the star at one focus (not the centre).
    2. Equal areas in equal times: a line from the star to the planet sweeps out equal areas in equal times, so the planet moves fastest at its closest point (perihelion) and slowest at its farthest (aphelion).
    3. T² ∝ a³: the square of the orbital period is proportional to the cube of the orbit’s average size (semi-major axis). Planets farther out take much longer to orbit.

    Formulas

    Gravity: F = G·M·m / r²Circular speed: v_c = √(GM / r) Escape speed: v_esc = √(2GM / r)Kepler’s third law: T² = 4π²·a³ / (G·M)

    In the units used by the simulator (AU, years and solar masses), the third law becomes simply T² = a³ / M. For Earth, a = 1 AU and M = 1, so T = 1 year.

    Key terms

    Astronomical unit (AU)
    The average Earth–Sun distance, about 150 million km.
    Semi-major axis (a)
    Half the longest diameter of an ellipse — the orbit’s average distance.
    Eccentricity (e)
    How stretched an orbit is: 0 for a circle, between 0 and 1 for an ellipse, 1 or more for escape paths.
    Perihelion and aphelion
    The closest and farthest points of an orbit around the Sun.
    Bound orbit
    An orbit with negative total energy, which repeats forever.

    Real-world applications

    • Satellites: engineers choose orbit heights and speeds for GPS, weather and communications satellites using these same equations.
    • Space missions: spacecraft travel between planets on elliptical “transfer orbits” and use gravity assists to gain speed.
    • Weighing stars and planets: measuring a moon’s orbit lets astronomers calculate the mass of the planet it orbits.
    • Finding exoplanets: a star wobbling in response to an orbiting planet reveals the planet’s mass and orbit.

    Common misconceptions

    • “There is no gravity in space.” Gravity in orbit is nearly as strong as on the ground; astronauts float because they are falling together with their spacecraft.
    • “Seasons happen because Earth gets closer to the Sun.” Earth’s orbit is nearly circular (e ≈ 0.017); seasons are caused by the tilt of Earth’s axis.
    • “The star is at the centre of an elliptical orbit.” It sits at one focus, off-centre.

    What the model simplifies

    The star is fixed in place and much heavier than the planet, and there are no other planets tugging on the orbit. The orbit is calculated step by step with a method that conserves energy well, so ellipses close neatly. Real orbits slowly change because of other planets and, for Mercury, effects described by Einstein’s general relativity.

    Key takeaways

    • An orbit is a balance between sideways motion and the pull of gravity.
    • Circular speed is √(GM/r); escape speed is √2 times larger.
    • Planets move fastest when closest to their star (equal areas in equal times).
    • T² ∝ a³: larger orbits take disproportionately longer.

    Knowledge check

    Planetary Orbits and Gravity: test your understanding

    Answer each question to get instant feedback and an explanation. Use the simulator to check your thinking.

    7 questions3 basic2 intermediate2 advanced

    0 of 7 answered

    1. Q1BasicWhat keeps a planet in orbit around a star?
      Show answer

      Answer: B. Gravity pulling it toward the star while it moves sideways

      Gravity constantly pulls the planet toward the star. Because the planet is also moving sideways, it keeps “falling around” the star instead of into it.

    2. Q2BasicA planet in an elliptical orbit moves fastest when it is…
      Show answer

      Answer: B. closest to the star

      Kepler’s second law: a planet sweeps out equal areas in equal times, so it must move faster when it is close to the star. Watch the speed graph peak at each closest approach.

    3. Q3BasicIn the simulator, what happens if you launch a planet with much less than circular speed?
      Show answer

      Answer: B. It follows a smaller, more elongated ellipse and swings close to the star

      Too little sideways speed means gravity bends the path inward. The launch point becomes the farthest point of an ellipse, and the planet dives toward the star. With very little speed, it falls in.

    4. Q4IntermediateEscape speed is about what percentage of circular orbit speed at the same distance?
      Show answer

      Answer: C. About 141% (√2 times)

      Escape speed is √(2GM/r) and circular speed is √(GM/r), so escape speed is √2 ≈ 1.414 times faster. Try 140% and 143% to see the change from a huge ellipse to an escape.

    5. Q5IntermediatePlanet A orbits at 1 AU and planet B at 4 AU from the same star. How do their periods compare?
      Show answer

      Answer: B. B takes 8 times as long

      Kepler’s third law: T² ∝ a³. With a 4 times larger, T² is 64 times larger, so T is 8 times longer.

    6. Q6AdvancedIf the star had twice the mass, how would the period of a planet at the same distance change?
      Show answer

      Answer: B. It would be about 0.71 times as long

      The general form of Kepler’s third law is T² = 4π²a³/(GM). Doubling M divides T² by 2, so T is divided by √2 — it becomes about 0.71 times as long. A heavier star means stronger gravity and faster orbits.

    7. Q7AdvancedAn orbit has eccentricity 0. What shape is it?
      Show answer

      Answer: A. A circle

      Eccentricity measures how stretched an orbit is: 0 is a circle, values between 0 and 1 are ellipses, 1 is a parabola (just escaping), and above 1 is a hyperbola. Earth’s orbit has e ≈ 0.017, very nearly circular.

    References and further reading

    1. Fraknoi, A., Morrison, D., & Wolff, S. C. (2022). Astronomy 2e, Section 3.1: The Laws of Planetary Motion. OpenStax. openstax.org (opens in a new tab)
    2. Fraknoi, A., Morrison, D., & Wolff, S. C. (2022). Astronomy 2e, Section 3.4: Orbits in the Solar System. OpenStax. openstax.org (opens in a new tab)
    3. Ling, S. J., Sanny, J., & Moebs, W. (2016). University Physics Volume 1, Sections 13.4–13.5: Satellite Orbits and Energy; Kepler’s Laws. OpenStax. openstax.org (opens in a new tab)
    4. NASA. Earth Fact Sheet (orbital speed and eccentricity). nssdc.gsfc.nasa.gov (opens in a new tab)

    This simulator is a simplified educational model. Found an error? Let us know. See our educational disclaimer.