Three-Body Problem in 3D

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

In the classic three-body problem, point masses with initial positions and velocities can result in very complicated trajectories.

Contributed by: Jeff Bryant and José Martin‐Garcia (February 2016)
Based on a program by: Enrique Zeleny
Open content licensed under CC BY-NC-SA



The equation of motion is


where is the acceleration of the body, is the mass, and is the vector connecting the masses and .


[1] J. C. Sprott, Elegant Chaos: Algebraically Simple Chaotic Flows, Singapore: World Scientific, 2010 pp. 121–123. t=aboutBook.

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.