The three-body problem considers three or more massive objects that interact gravitationally according to Newton's Law of Gravitation. The problem cannot be solved analytically, and must be solved by computation.
Refresh the page to restart the simulation.
In this simulation, two of the three objects are not allowed to move, while the third one is. The initial position and velocity of the third object are randomised, as are the masses of all three objects. The mass of each particle is represented by its radius.