Home▸Articles▸Cosmology

The Andromeda–Milky Way Collision: A Cosmic Dance Predicted by N-Body Simulations

Understanding the dynamics of galaxy mergers is crucial for our comprehension of large-scale structure formation in the universe.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

Overview of N-Body Simulations

N-body simulations are computational models that track the gravitational interactions among a large number of particles. In this context, these particles represent stars or dark matter in galaxies. The Andromeda–Milky Way collision simulation uses such an approach to predict how two spiral galaxies will merge over time.

The model incorporates the laws of physics governing stellar motion and gravitational forces between bodies, allowing scientists to simulate the complex dynamics involved in galactic mergers with unprecedented accuracy.

Key Features of the Simulation

This simulation focuses on a restricted (Toomre-type) N-body model, which simplifies the system by considering only a subset of particles and their interactions. The model includes up to 16,000 test stars in two disc galaxies, enabling detailed visualization of tidal tails and an elliptical-like remnant galaxy.

The simulation also accounts for additional factors such as Gaia-style glancing scenarios and the inclusion of M33 (the Triangulum Galaxy), providing a more comprehensive view of galactic interactions.

live demo · related simulation● LIVE

Significance of the Andromeda–Milky Way Collision

The predicted collision between the Milky Way and Andromeda galaxies is one of the most significant events in our cosmic neighborhood. Over the next few billion years, these two spiral galaxies will merge into a single larger galaxy, known as Milkomeda.

Studying this event helps us understand how galaxies evolve over time, the role of dark matter in galactic dynamics, and the fate of stars within merging systems.

Implications for Our Understanding of the Universe

By simulating the Andromeda–Milky Way collision, scientists can gain insights into the large-scale structure of the universe. The dynamics observed in such simulations provide a framework for understanding how galaxies form and evolve over cosmic time.

Moreover, these models help predict the future evolution of our local galactic environment, offering valuable data for astronomers and astrophysicists.

Frequently asked questions

How does this simulation account for dark matter?

Dark matter is represented in the model through its gravitational influence on visible stars. While not directly simulated as particles, its effects are accounted for to ensure accurate dynamics and tidal interactions between galaxies.

What is a Toomre-type N-body simulation?

A Toomre-type N-body simulation simplifies the system by focusing on a subset of particles that are most relevant to the study. This approach allows for more efficient computation while still capturing essential features of galactic interactions.

Why is M33 included in this simulation?

M33, the Triangulum Galaxy, is often considered a satellite galaxy of Andromeda and its inclusion helps to model the complex gravitational interactions between multiple galaxies during the collision event.

What are tidal tails in galactic mergers?

Tidal tails are streams of stars and gas that form as one galaxy passes through another, being stripped away by the gravitational forces. These tails provide evidence for past or ongoing galactic interactions and can be observed in many merging galaxies.

Try it live

Everything above runs in your browser — open Andromeda–Milky Way Collision: Milkomeda N-Body Simulation and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Andromeda–Milky Way Collision: Milkomeda N-Body Simulation simulation

What did you find?

Add reproduction steps (optional)