Milky Way and Andromeda collision simulator
Watch a possible merger unfold over eight billion years. Compare the two galaxies seen from afar with the changing night sky seen from Earth.
10²² m · 2.5 million light-years (the distance to Andromeda today) · Canvas · Restricted N-body dynamics
Time from today
0.00 billion years
The discs are approaching. Focus on the Milky Way for a closer look at its spiral arms.
About this encounter
Each stellar tracer follows its own orbit in the gravity of both galaxies. A smooth mass distribution represents each dark halo and its central stellar mass. A dynamical friction term accounts for orbital energy lost to the overlapping haloes.
The sky camera travels with a tracer that starts on a solar orbit and looks towards Andromeda. The angular radius encloses 90% of the tracers that began in Andromeda, measured from its core on the sky. The mountain horizon provides a fixed visual reference.
Initial conditions and model limits
- Stellar tracers
- 6,144
- Integration time step
- 0.25 Myr
- Initial core separation
- 770 kpc
- Initial radial velocity
- -113 km/s
- Initial transverse speed
- 20 km/s
- Dark halo mass · Milky Way
- 1 × 10¹² M☉
- Dark halo mass · Andromeda
- 1.3 × 10¹² M☉
The model approximates the Milky Way’s main stellar arms with a rotating two-arm gravitational disturbance. Its strength is chosen to keep the arms visible, reaching about 11% of the undisturbed disc-plane acceleration near the Sun’s initial radius. Stars move through the arms on their own orbits. The disturbance weakens as tides from Andromeda disrupt the outer disc.
Playback interpolates the saved positions from the numerical integration. The model counts the cores as merged when their bound orbit fits within 250 parsecs. The calculation omits gravity between stellar tracers, gas dynamics, star formation, and the gravity of satellite galaxies. Brightness represents stellar populations. The sky view keeps an Earth-like horizon and omits the evolution of the Sun and Earth.
This low transverse speed gives a merging orbit. In a 2025 study that also considered the Large Magellanic Cloud and Triangulum, the galaxies merged within ten billion years in about half of the simulated orbits.
Sawala et al., Nature Astronomy (2025)van der Marel et al., The Astrophysical Journal (2012)Grosbøl and Carraro, The spiral potential of the Milky Way (2018)