Home / Learn / Science / Cosmology A to Z / Lesson 10.6
All lessons

Module 10: From smooth to lumpy · Lesson 10.6 · about 16 min

How galaxies form

Small halos form first and merge; gas cools into discs of stars; supernovae and black holes push back. The bottom-up story of how galaxies like ours were built.

Key points, meanings and formulas on one page: choose "Save as PDF" in the print box.

Module 10 · about 16 minutes. Read first: 10.3 Dark matter halos. Halos are the scaffolding; galaxies are what the gas builds inside them. By the end you will be able to tell the bottom-up story of how a galaxy like ours was assembled, explain why its stars sit in a disc, and say why galaxies turn so little of their gas into stars.

Galaxies grow from the bottom up: small halos form first and merge into bigger ones. Inside each, gas cools, sinks and spins into a disc of stars, while exploding stars and black holes push back, so most of the gas never becomes stars at all.

1. Small first, big later

Cold dark matter has ripples on every scale, and the small ones reach collapse first (Lesson 10.3). So small halos form first, and bigger ones are built by swallowing and merging with them: hierarchical, or bottom-up, growth. The record of who merged with whom is called a merger tree. Clusters of galaxies, the biggest settled objects, are still being assembled today, with groups still falling in along the filaments of the cosmic web (Lesson 10.4). The rival top-down picture, in which giant pancakes form first and break up into galaxies, goes with hot dark matter and was ruled out in the 1980s (Lesson 8.5).

First, many small dark matter halos, each perhaps a million suns, collapse around z ≈ 20 on the rare high peaks.
Over billions of years they merge, two by two and many at a time, into ever bigger halos. Time runs down the page; the bottom is a Milky Way-sized halo of about 10¹² suns.
Gas that falls in is heated by the collision. The part that can radiate its heat away cools, sinks to the middle and, keeping its spin, settles into a thin rotating disc where stars form.
Feedback: exploding stars drive winds out of the disc, and the black hole in the middle shoots out jets and heats the gas around it. Both stop the gas turning into stars too fast.

2. Cooling: the gas must lose its heat

Gas falling into a halo is heated by shocks to about the halo’s “virial temperature”: around a million degrees for the Milky Way’s halo. Hot gas holds itself up with its pressure. To sink and make stars it must radiate that heat away, and it can only collapse when it cools faster than it would fall in:

tcool<tff,tff=3π32Gρ
tcool
the cooling time: how long the gas takes to radiate away its heat (shorter for denser gas)
tff
the free-fall time: how long a ball of density ρ, with nothing holding it up, takes to collapse completely
ρ
the density of the cloud
Physical meaning
If gas cools faster than it falls, it collapses and can fragment into stars. If not, it sits in the halo as a hot atmosphere. In 1977 Martin Rees and Jeremiah Ostriker, and Joseph Silk, showed this sets the largest masses of galaxies: about 10¹² suns of gas. Bigger halos, like clusters, keep most of their gas hot.

In 1978 Simon White and Martin Rees put it together: dark matter halos form hierarchically, and galaxies are the gas that cooled and condensed in their middles. That two-stage picture is still the basis of galaxy formation theory.

3. Discs and ellipticals

Every halo gets a little spin from the tugs of its neighbours. When gas cools and sinks inwards it can radiate away energy but not its spin (angular momentum), so, like a spinning skater pulling in their arms, it spins faster and flattens into a thin disc. Mike Fall and George Efstathiou showed in 1980 that this naturally gives discs the sizes we see, but only if the disc sits inside a much heavier halo: another quiet piece of evidence for dark matter.

When two big galaxies of similar size collide, their discs are wrecked and the stars end up on random orbits: a round or egg-shaped elliptical galaxy (galaxy types). The Milky Way has had no such major merger for about 10 billion years; its last big meal, a galaxy called Gaia-Enceladus, was found in 2018 from the motions of stars measured by the Gaia satellite.

4. Feedback, and why galaxies waste their gas

Without something holding it back, cooling gas would turn into stars far too fast, and galaxies would be much bigger and redder than they are. Something pushes back: feedback.

  • In small halos, the winds from supernovae blow gas out of the shallow gravity well (Avishai Dekel and Joseph Silk, 1986).
  • In big halos, the supermassive black hole in the middle swallows gas and releases enormous energy as jets and radiation, heating the gas around it so it cannot cool (black holes).
How much of a halo's mass ends up in stars today, from matching galaxy counts to halo counts (Moster, Naab and White 2013). The dashed line is the most possible: all of the halo's fair share of atoms, 15.7%. Even at the peak, near the Milky Way's mass, only about a fifth of those atoms became stars.

All this is written in the cosmic star formation history: the universe made stars fastest at about redshift 2, some 10 billion years ago (“cosmic noon”), and today makes them roughly ten times more slowly (Piero Madau and Mark Dickinson’s review, 2014).

  • 1972 Alar and Juri Toomre show colliding disc galaxies make tails and bridges, and suggest mergers make ellipticals.
  • 1977 Rees and Ostriker, and Silk: cooling sets the masses of galaxies.
  • 1978 White and Rees: galaxies form by gas cooling in hierarchically growing dark matter halos.
  • 1980 Fall and Efstathiou: discs from spinning, cooling gas inside heavy halos.
  • 1986 Dekel and Silk: supernova winds explain why small galaxies are so faint.
  • 2018 Gaia data reveal Gaia-Enceladus, a galaxy the Milky Way swallowed about 10 billion years ago.

“A galaxy is mostly stars.” By mass, a galaxy like ours is mostly dark matter: about 10¹² suns in the halo against some 6 × 10¹⁰ in stars. And even of its ordinary atoms, much is not in stars but in thin, hot gas spread through the halo, or was blown out long ago by feedback.

  • Galaxies form bottom-up: small halos first, merging into bigger ones (a merger tree); clusters are still forming.
  • Gas is heated as it falls in and must cool (tcool < tff) before it can sink and form stars.
  • Cooling gas keeps its spin and flattens into a disc; major mergers make ellipticals.
  • Feedback from supernovae (small halos) and black holes (big halos) stops most gas becoming stars: at best about a fifth, near 10¹² suns.
  • The universe made stars fastest about 10 billion years ago (z ≈ 2).

Check yourself

1In the cold dark matter picture, which form first?
2Why does cooling gas in a halo end up in a spinning disc?
3Which halos are best at turning their atoms into stars?

Sources

Your ticks stay in this browser. Save them as a file on the course home.

Updated 2026-11-22. Numbers are rounded for teaching; measured values come from the sources listed in each lesson. Simulations run in your browser; nothing you type is sent anywhere.