Galaxies

A collision decided by a speed across the sky

Andromeda is coming toward the Milky Way at a hundred and ten kilometres a second, and that part is measured to a few per cent. Whether the two galaxies merge in the next ten billion years depends on how fast Andromeda is also moving sideways — a drift of fifteen millionths of an arcsecond a year, measured twice, with answers of seventeen and fifty-seven kilometres a second. One is a near head-on collision in under five billion years, the other a coin toss.

Assumes Galaxy interactions, Dynamical friction and Expansion.

Andromeda’s light is blueshifted. Almost every galaxy in the sky is moving away from the Milky Way, carried by the expansion of the universe, and Andromeda, the nearest large spiral, is one of the few that is approaching. After the Sun’s own orbit around the Galaxy is subtracted, its velocity along the line of sight is about 110 kilometres per second toward the Milky Way, at a distance of about 770 kiloparsecs. The two galaxies have been falling toward each other since the expansion around them was slowed and reversed by their combined mass — a history that can be run backwards to weigh the pair — and at that speed and distance they would meet in about five billion years.

Whether they merge when they meet is a different question, and the approach speed does not answer it. Two galaxies passing each other merge only if the passage transfers enough orbital energy into their internal motions, and how much it transfers depends above all on how close the passage comes. How close it comes depends on the pair’s angular momentum, and the angular momentum depends on the one component of Andromeda’s velocity that cannot be read off a spectrum: its motion across the sky.

The separation of the Milky Way and Andromeda, run forward. The distance between the Milky Way and Andromeda against time from now, in billions of years, integrated from today's separation of 770 kpc and radial approach of 110 km/s, for four values of Andromeda's sideways (tangential) velocity: 0, 17, 57, 100 km/s. The haloes are extended Hernquist spheres of 1.15 and 1.5 trillion solar masses, and dynamical friction drains the orbit at each passage. At 0 km/s the first approach is so nearly head on that the centres pass within 10 kpc and the pair merges at 4.0 Gyr. At 17 km/s the first approach is so nearly head on that the centres pass within 10 kpc and the pair merges at 4.8 Gyr. At 57 km/s the first pericentre is 117 kpc at 4.5 Gyr, and the pair merges at 9.2 Gyr. At 100 km/s the first pericentre is 321 kpc at 4.8 Gyr, and the pair has not merged by 14 Gyr. The measured sideways speed runs from about 17 km/s (Hubble) to about 57 km/s (Gaia), and the outcomes across that range differ by billions of years.
Fig. 1 The separation of the Milky Way and Andromeda run forward from today, for four sideways speeds, with extended dark haloes and dynamical friction. With no sideways motion or with the 17 kilometres per second measured by Hubble, the first approach is nearly head on and the galaxies merge within five billion years. At the 57 kilometres per second measured by Gaia, they swing past each other at a hundred kiloparsecs and merge only after a second passage, nine billion years from now. At a hundred kilometres per second they miss.

The figure’s four curves share their start and their first few billion years almost exactly. Every one of them falls from 770 kiloparsecs toward closest approach in four to five billion years, because the time to fall is set by the energy, and the energy is dominated by the radial speed and the combined mass. They separate only near the bottom, where the sideways motion, negligible at large distances, becomes the whole of the velocity.

Why the arrival time is robust

The time to first approach barely changes across the four curves, and the reason is the same one that makes the period of an orbit depend only on its energy. For a bound pair, the time spent falling from a given separation to the bottom of the potential depends on the orbital energy and the total mass, and the angular momentum only redistributes that time between the approach and the swing round the pericentre. The sideways speeds in question add at most a few per cent to the kinetic energy — 57 kilometres per second squared is a quarter of 110 squared — so the energy, and with it the arrival, is fixed by the radial speed and the mass.

That makes the arrival time the part of the forecast that the evidence pins down. For any sideways speed in the measured range, and for masses across their plausible range, the galaxies are closest between four and five billion years from now, about when the Sun, on its own evolution, will be starting to swell. It is the outcome at that moment that is open, not the date.

The asymmetry between the two components of velocity is worth holding onto because it is general. The radial component sets the timescale through the energy; the transverse component sets the geometry through the angular momentum; and the geometry of a close encounter is exquisitely sensitive to angular momentum while the timescale is not. A comet’s return date is known long before its closest approach to the Sun is, for the same reason, and so is the arrival of a spacecraft at a planet long before its aim point is.

A speed that has to be measured as an angle

A velocity along the line of sight shifts spectral lines and is measured in an afternoon. A velocity across the line of sight moves the source on the sky, and at 770 kiloparsecs a sideways speed of 57 kilometres per second is an angular drift of about fifteen microarcseconds a year. Fifteen microarcseconds is roughly the width of a coin on the Moon seen from the Earth. Measuring it requires positions accurate to a fraction of that, repeated over years, against a reference frame that is itself not moving.

It has been done twice by different routes. In 2012 the Hubble Space Telescope measured the positions of stars in three fields of Andromeda against background galaxies, seven years apart, and combined them with the motions of Andromeda’s satellite galaxies. The result was a sideways speed of 17 kilometres per second, with an uncertainty as large as the value: consistent with zero. In 2019 and again in 2021, positions from the Gaia satellite for thousands of Andromeda’s brightest stars gave a larger value — about 57 kilometres per second in the first analysis and about 80 in the second, each with uncertainties of thirty to forty.

The two families of measurement are not formally in conflict, since their error bars overlap. But they place the value in different regions of a range where, as the first figure shows, the outcome changes qualitatively. Subtracting the Sun’s own motion adds a further uncertainty, since the Sun moves at about 250 kilometres per second around the Galaxy and its component across the line of sight to Andromeda has to be removed exactly — the same subtraction that turns a measured proper motion into a distance elsewhere in astronomy.

Angular momentum, and where it becomes everything

The sideways speed matters through the angular momentum it carries. The pair’s angular momentum per unit reduced mass is the sideways speed times the separation — for 57 kilometres per second and 770 kiloparsecs, about forty-four thousand kiloparsec-kilometres per second. That quantity is conserved while nothing but the pair’s gravity acts, and at closest approach it sets a floor under the separation: the galaxies cannot come closer than the distance at which all their relative speed would have to be sideways to carry it.

How close the first passage comes, against the sideways speed. The separation of the Milky Way and Andromeda at their first closest approach, against Andromeda's tangential velocity today. With no sideways motion, and up to about 22 km/s, the first passage brings the two centres within 10 kpc and they merge on it; the Hubble estimate, 17 km/s, is in that range; at 57 km/s, the Gaia estimate, 113 kpc; at 100 km/s, 321 kpc. The first pericentre comes about 4.7 Gyr from now across the whole range. Angular momentum is the sideways speed times the separation, and the pericentre grows roughly as its square for small values, so a velocity smaller than the uncertainty on it moves the first passage from grazing to wide.
Fig. 2 The distance of closest approach on the first passage, against Andromeda’s sideways speed today. Up to about 22 kilometres per second, which includes the Hubble measurement, the two centres pass within ten kiloparsecs and merge on the first approach. Beyond that the pericentre grows steeply — 113 kiloparsecs at the Gaia value of 57, over 300 at 100 — and the time of first passage hardly changes. The shaded bands are the one-sigma ranges of the two measurements.

The steepness comes from how angular momentum enters the effective potential. The centrifugal barrier grows as the square of the angular momentum over the square of the distance, so for a nearly radial orbit, where the barrier only matters at small separations, the pericentre grows roughly as the square of the sideways speed. Doubling the sideways speed from 30 to 60 kilometres per second nearly quadruples the distance of closest approach. A measurement whose uncertainty is thirty kilometres per second therefore does not leave the pericentre uncertain by a factor of two; it leaves it uncertain between a collision of the discs and a passage outside both of them.

Friction turns a passage into a capture

Two point masses on a bound orbit would return to the same pericentre forever. Galaxies are not point masses. Each sits inside a dark halo several hundred kiloparsecs across, and the haloes overlap long before the discs do. As Andromeda’s halo moves through the Milky Way’s, it gravitationally focuses the dark matter it passes into a wake behind it, and the wake pulls back. That is dynamical friction, and it drains the orbit’s energy fastest where the density is highest and the relative speed is comparable to the halo’s internal speeds — that is, near pericentre.

Andromeda's path around the Milky Way, in the plane of the orbit. The position of Andromeda relative to the Milky Way over the next 10 billion years, in the plane of their orbit, in kiloparsecs, for tangential velocities of 17 and 57 km/s. Andromeda starts 770 kpc away on the right. At 17 km/s it spirals in and merges at 4.8 Gyr. At 57 km/s it spirals in and merges at 9.2 Gyr. Friction removes energy mainly near pericentre, so each loop is smaller than the last; the difference between the two paths is set almost entirely by how much angular momentum the pair started with.
Fig. 3 Andromeda’s path relative to the Milky Way over the next ten billion years, in the plane of the orbit. At 17 kilometres per second it falls almost straight in and merges on arrival. At 57 kilometres per second it swings round at about a hundred kiloparsecs, is braked by friction near the bottom of the swing, climbs out only to two hundred, and falls back to merge on the second approach, about nine billion years from now.

The second loop is the signature of friction. Without it, the orbit at 57 kilometres per second would return to 770 kiloparsecs and come back to a pericentre of a hundred again, and the galaxies would pass each other at intervals of about ten billion years indefinitely. With it, each passage costs a large fraction of the orbital energy, the apocentre shrinks, and the next pericentre is closer. The capture is not sudden; it is the accumulation of losses at a few close approaches, and the number of approaches it takes depends on how close the first one was.

The friction in this model uses the classical formula with a small Coulomb logarithm, appropriate for two haloes of comparable size, and the logarithm is the least well pinned part of the whole calculation. It moves the merger time of the wider orbits by billions of years. It hardly moves the head-on case, which merges on arrival whatever the friction, because there the orbit’s energy goes directly into the collision of the two galaxies.

The knife-edge between capture and escape runs through the middle of the Gaia range, and two more orbits either side of the measured value show where.

Andromeda's path around the Milky Way, in the plane of the orbit. The position of Andromeda relative to the Milky Way over the next 12 billion years, in the plane of their orbit, in kiloparsecs, for tangential velocities of 40 and 80 km/s. Andromeda starts 770 kpc away on the right. At 40 km/s it spirals in and merges at 6.3 Gyr. At 80 km/s it swings past at 216 kpc and has not merged after 12 Gyr. Friction removes energy mainly near pericentre, so each loop is smaller than the last; the difference between the two paths is set almost entirely by how much angular momentum the pair started with.
Fig. 4 The same plane for sideways speeds of 40 and 80 kilometres per second, over twelve billion years. At 40 the first swing is at about sixty kiloparsecs, friction captures the pair within one loop and they merge at about six billion years. At 80 the first swing is at more than two hundred kiloparsecs, where the haloes are thin and the relative speed high, friction takes little, and the pair has not merged after twelve billion years.

What divides the two is not a threshold in the sideways speed itself but where the first pericentre falls relative to the dense inner parts of the haloes. The density of a dark halo falls steeply with radius, as the cube of the distance at large radii, and the friction falls with it. A pericentre inside about a hundred kiloparsecs passes through dark matter dense enough to take a large fraction of the orbital energy in one passage; a pericentre at two hundred passes through matter eight times thinner and takes correspondingly little. The Gaia value sits near the transition, which is why its forecast is closer to a coin toss than either extreme.

The masses matter less than the angle

The halo masses of the Milky Way and Andromeda are each uncertain by tens of per cent — the Milky Way’s between about 0.8 and 1.5 trillion solar masses, Andromeda’s similar or slightly larger. Mass enters twice. A heavier pair falls in faster and to a closer pericentre for the same velocities, and a heavier halo drags harder.

Merger time against the mass of both haloes. The time until the Milky Way and Andromeda merge, against a common factor applied to both halo masses (1 is 1.15 and 1.5 trillion solar masses), for tangential velocities of 17 and 57 km/s. Heavier haloes pull harder, so the first passage is closer and sooner, and they have more dark matter to drag against, so each passage loses more. For 17 km/s the merger comes at 5.6 Gyr for 0.7 times the masses, 4.8 Gyr for 1 times the masses, 4.1 Gyr for 1.5 times the masses; for 57 km/s, at 18.2 Gyr, 9.2 Gyr, 6.0 Gyr. The masses are uncertain by tens of per cent, and they matter less than the velocity only because the velocity is uncertain by a factor of three.
Fig. 5 Time until merger against a common scaling of both halo masses, for the two measured sideways speeds. At 17 kilometres per second the merger comes between four and six billion years from now over the whole range of masses. At 57 the answer runs from six billion years for haloes half again as massive as the adopted ones to eighteen billion for haloes three-tenths lighter, and beyond twenty for lighter still.

The asymmetry is the point. For a nearly head-on approach, the outcome is robust: every plausible mass gives a merger on the first passage, a little sooner or later. For a wide approach, the outcome is fragile: a thirty per cent change in the masses moves the merger from within the Sun’s lifetime to beyond the universe’s present age. The uncertainty in mass matters exactly as much as the sideways speed allows it to, and it is the speed that decides which regime the pair is in.

The fate as a probability

With both uncertainties in hand, the question can be asked the only way it can be answered: draw many orbits from the measurements and count how many merge.

The chance of a merger by a given time, for two measurements. The fraction of 300 orbits, each drawn from the uncertainties, in which the Milky Way and Andromeda have merged by a given time from now. Each draw takes a tangential velocity from one of two published measurements — Hubble, 17 ± 17 km/s, and Gaia, 57 ± 33 km/s — split into two sky components, and scatters each galaxy's mass by a quarter either way. Within 10 Gyr the pair merges in 97 per cent of the draws for the first measurement and 43 per cent for the second. Neither is certainty and neither is its opposite. The uncertainty on one velocity, a few tens of kilometres per second measured as a drift of millionths of a degree over a decade, is most of the uncertainty on the fate of the Local Group.
Fig. 6 The fraction of 300 orbits drawn from each measurement’s uncertainties, with both masses also scattered, that have merged by a given time. From the Hubble velocity, nearly all merge within ten billion years, most between four and six. From the Gaia velocity, fewer than half have merged by ten billion years and the curve is still rising slowly at sixteen. The difference between the two measurements is most of the difference between a certain and an undecided future.

Neither curve is a prediction that the galaxies will or will not merge. They are statements about what is known, and the width of each is the width of the measurement. An analysis published in 2025 that included the pulls of the Large Magellanic Cloud and of the Triangulum galaxy, M33, along with the latest proper motions and masses, found the probability of a merger within ten billion years to be close to one half — between the two curves here, and near the Gaia one. The same analysis found that the Large Magellanic Cloud, by pulling the Milky Way sideways, makes the merger less likely, and that M33 makes it more likely. The Local Group is a problem of several bodies, and the pair is only its largest term.

What the merger would make

If the pair does merge, the product is not a larger spiral. The discs of both galaxies are thin because their stars move on nearly circular orbits in one plane, and a merger of two discs of comparable mass scrambles those orbits into a roughly spheroidal system held up by random motions rather than rotation — a galaxy held up by disorder, the shape of an elliptical. Simulations of the pair show the remnant settling within a couple of billion years of the final coalescence into a smooth, reddish, gas-poor elliptical of about three trillion solar masses in total.

The gas in the two discs would be compressed at each close passage and form a burst of new stars, and some of it would fall to the centre and feed the two central black holes. Those black holes, of four million and about a hundred million solar masses, would sink toward the centre of the remnant by the same friction that merged their galaxies, form a bound pair, and then face the problem of the last parsec: whether enough stars can be thrown out of their way for them to spiral together and merge in a burst of gravitational waves. The galaxy merger is the first and best-determined step of a chain whose later steps are much less certain.

What the model leaves out

The integration treats each galaxy as a smooth spherical halo, with no disc, no bulge and no internal response. A real close passage raises tides in both discs, draws out bridges and tails, and puts orbital energy into internal motions faster than the friction formula alone describes, so the merger times for close passages are, if anything, shorter than those drawn. Full N-body simulations of the pair, which follow these responses, find the same division into near-head-on and wide approaches.

It leaves out the rest of the Local Group. M33, a tenth of Andromeda’s mass, orbits Andromeda; the Large Magellanic Cloud, perhaps a tenth of the Milky Way’s, is falling into the Milky Way now and has already pulled it measurably. Each changes the pair’s effective velocities and masses by amounts comparable to the uncertainties, and the published probability of about one half comes from including them.

It leaves out the expansion of the universe and the mass outside the pair, both small at these distances over these times. And it leaves out the most-asked question about the event, which is what happens to the Sun: nothing violent. Stars in both galaxies are separated by distances millions of times their own sizes, and a merger of two galaxies is a merger of two potentials, in which almost no pair of stars ever comes close. The Sun would be flung into a new orbit in the combined galaxy, and the night sky would change completely, over hundreds of millions of years.

What was actually measured

Three numbers go into the calculation and only one is a direct measurement in the ordinary sense. The radial velocity is a Doppler shift, measured to a few kilometres per second. The distance comes from Cepheids and the tip of the red giant branch, to about three per cent. The sideways velocity is a change in position of a few hundredths of a milliarcsecond over a decade, measured against quasars and background galaxies, and converted to a speed with the distance and the Sun’s own velocity.

The masses are not measured at all in that sense. They are inferred from the motions of satellites and globular clusters and halo stars around each galaxy, from the timing of the pair’s own approach, and from rotation curves extrapolated beyond the discs. Each method returns a mass within some radius, and the halo mass beyond that radius — which is what the friction drags against — is a model.

The pivotal quantity, then, is the smallest and least certain. It is also the one whose error is hardest to state honestly, because it depends on modelling the internal rotation of a galaxy seen nearly edge-on, where the stars that are measured are moving in their own orbits at speeds ten times the drift being sought. That is typical of orbital problems: the radial motion fixes when and the transverse motion fixes how, and the transverse motion is always the harder one to see. Kepler’s problem was solved from angles rather than distances for the same reason, and the fate of the Local Group is being decided by astrometry, not spectroscopy.

Still open: a velocity measured to ten kilometres a second

The sideways speed is converging, slowly, as Gaia’s baseline lengthens and as Hubble and its successors return to the same fields. A measurement good to ten kilometres per second would place the pair unambiguously on one side of the divide the second figure draws: below about thirty, a near head-on encounter in under five billion years; above about fifty, a wide first passage and a merger delayed or missed. The measurements so far favour the second, but not decisively, and the answer depends on a systematic question about how well the motion of Andromeda’s bright stars represents the motion of Andromeda’s centre of mass — stars in a rotating disc move across the sky at hundreds of kilometres per second in their own right, and the disc’s rotation has to be modelled out before the galaxy’s drift is left. The same question, with a different galaxy, is what separates the Hubble and Gaia values for the Large Magellanic Cloud’s orbit, and resolving it for both would fix the geometry of the Local Group’s next few billion years.

About the same objects

Not linked from either essay — found by the objects both name.

What links here

Essays that link to this one from their own argument.

The objects this essay names

Each one links to every other essay that touches it.

Angular momentumDark matter haloDynamical frictionGalaxy mergerLocal groupPericentreProper motionTangential velocity