Click anywhere on the screen multiple times

then press Play

The three-body problem

Given three masses, their positions and their velocities, where will they be at any later time? Newton answered this for two bodies in 1687: they trace ellipses, parabolas or hyperbolas forever, and a formula tells you exactly where they will be. Add a third body and there is no such formula.

Why it's hard to solve

Why it's unstable

The rare stable dances

Special starting positions do repeat forever. Euler (1767) found three bodies in a line, and Lagrange (1772) found them at the corners of an equilateral triangle; Jupiter's Trojan asteroids ride that triangle. In 1993 Cris Moore found three equal masses chasing each other around a figure-eight. But most of these orbits are balanced on a knife-edge: nudge them and chaos takes over.

About this simulation

Helios runs in 2D with equal masses. It softens gravity at very close range so bodies pass through each other instead of reaching infinite speeds. It also adds a weak pull toward the center of the screen so bodies return instead of escaping. Click to place bodies, press Play, and watch how small changes in placement lead to completely different outcomes.