Newton's law of gravitation says every mass attracts every other mass with a force that falls off as the inverse square of the distance. In this simulator that force is calculated between every pair of bodies at every time step, so you are watching real N-body motion and not a pre-drawn path.
Try the scenarios in order. With one planet you get a closed orbit. With three planets the inner one clearly moves faster, as T² ∝ r³ predicts. The binary star shows that two bodies really orbit their common centre of mass, and the figure-eight is a rare periodic solution of the three-body problem found numerically by Chenciner and Montgomery in 2000. In the sandbox, a slow drag gives a plunging orbit, a medium drag a bound ellipse and a fast drag a planet that escapes.
For a circular orbit around the Sun, v = √(GM/r) with GM = 1.327 × 10²⁰ m³/s². The escape speed from the Sun at the same distance is √2 times larger.
| Planet | Orbit radius r | Orbital speed v | Escape speed √2 v |
|---|---|---|---|
| Mercury | 5.79 × 10¹⁰ m | 47.9 km/s | 67.7 km/s |
| Venus | 1.082 × 10¹¹ m | 35.0 km/s | 49.5 km/s |
| Earth | 1.496 × 10¹¹ m | 29.8 km/s | 42.1 km/s |
| Mars | 2.279 × 10¹¹ m | 24.1 km/s | 34.1 km/s |
| Jupiter | 7.785 × 10¹¹ m | 13.1 km/s | 18.5 km/s |
| Saturn | 1.434 × 10¹² m | 9.6 km/s | 13.6 km/s |
| Neptune | 4.495 × 10¹² m | 5.4 km/s | 7.7 km/s |
Conditions: near-circular orbits, planetary masses ignored compared with the Sun, G = 6.674 × 10⁻¹¹ N m²/kg².
Related simulations: Kepler orbits and escape velocity. Full guide: Gravitation, orbital and escape velocity explained
Puzzle 1. 🌍 The Earth pulls the Moon with a force of about 2 × 10²⁰ N. How large is the force with which the Moon pulls the Earth?
Puzzle 2. 🛰️ An astronaut floats inside the ISS. Is gravity switched off up there?
Puzzle 3. 🪐 In the sandbox, you launch a planet from rest. What path does it take?
Puzzle 4. ⚖️ Two stars of mass M and 3M orbit each other. Which one moves on the bigger circle?
Puzzle 5. 🔁 Why can we write the orbit of Earth around the Sun exactly, but not the orbits of three equal stars?
Problem 1 (NEET level). 📘 Find the gravitational force between the Earth (5.972 × 10²⁴ kg) and the Moon (7.348 × 10²² kg) at a distance of 3.844 × 10⁸ m.
Problem 2 (CBSE Class 11 level). 📕 At what height above the Earth's surface is the acceleration due to gravity one quarter of its surface value? (Take R = 6371 km.)
Problem 3 (WBJEE level). 📙 Find the height of a geostationary satellite above the Earth's surface. (T = 86164 s, GM = 3.986 × 10¹⁴ m³/s², R = 6371 km.)
Problem 4 (JEE Main level). 📗 Two stars, each of one solar mass (1.989 × 10³⁰ kg), orbit each other in circles, always 1 AU (1.496 × 10¹¹ m) apart. Find the orbital period.
Problem 5 (JEE Advanced style). 📓 Cavendish used two lead spheres of 1 kg each with centres 0.1 m apart. Estimate the force between them, and compare with the weight of 1 kg.
Isaac Newton publishes the Principia with the law of universal gravitation, showing that the force that pulls an apple is the same one that holds the Moon in its orbit.
Henry Cavendish measures the tiny attraction between lead spheres with a torsion balance. From it, the value of G and the mass of the Earth can be worked out, so he is said to have weighed the Earth.
Urbain Le Verrier predicts the position of an unseen planet from its pull on Uranus. Johann Galle finds Neptune within one degree of that position, a triumph of Newtonian gravity.
Henri Poincaré shows that the general three-body problem has no simple solution and can behave chaotically, which became one of the seeds of chaos theory.
Alain Chenciner and Richard Montgomery prove that three equal masses can chase each other along a single figure-eight path. The orbit was first found numerically by Cristopher Moore in 1993, and it is one of the presets here.