← thecodex.expert
Astrophysics & Cosmology Hub Dark Matter
Definition Curious Exploring Deep Dive Sources
Galaxies · Concept

Galaxy Formation

Reading time: 9 minConfidence: HighLast verified: August 2026

Galaxy formation is the process by which galaxies formed and evolved from tiny density fluctuations present in the early universe — driven primarily by dark matter's gravitational collapse into filamentary structures called "haloes," which then attracted ordinary matter that cooled and condensed into the stars and gas making up the visible galaxies observed today.

Curious

One sentence that captures itGalaxies didn't form from nothing in empty space — they grew out of tiny, almost imperceptible density differences already present in the universe less than 400,000 years after the Big Bang, amplified over billions of years by gravity into the galaxies, galaxy clusters, and vast cosmic web observed today.

The cosmic microwave background (see the Codex's cosmic microwave background entry) reveals that the early universe was almost, but not perfectly, uniform — tiny density fluctuations of roughly 1 part in 100,000 were already present at the time of recombination. In regions that were very slightly denser than average, gravity's attractive pull was correspondingly very slightly stronger, gradually drawing in more matter over cosmic time — a slow, self-reinforcing process that eventually amplified these initially tiny differences into the dramatic structure of galaxies and galaxy clusters observed billions of years later.

Dark matter played the leading role in this process: because it doesn't interact electromagnetically (and so wasn't affected by the pressure of the hot, radiation-dominated early universe the way ordinary matter was), dark matter could begin collapsing gravitationally earlier and more efficiently, forming the initial gravitational "scaffolding" (dark matter haloes) into which ordinary matter later fell, cooled, and condensed to form the visible galaxies we observe.

Exploring

Real-world exampleDeep-field images from the James Webb Space Telescope have revealed surprisingly well-formed, massive galaxies already in place within the first few hundred million years after the Big Bang — earlier and more numerous than many pre-launch theoretical models predicted, prompting active ongoing revision and refinement of galaxy formation theory to better account for how galaxies could assemble so much stellar mass so quickly in the early universe.
StageApproximate cosmic time
Recombination / density fluctuations set~380,000 years
First stars and protogalaxies~100–400 million years
Major galaxy assembly~1–5 billion years
Milky Way's current structure~13.6 billion years (ongoing)
Common mistake — Commonly ConfusedGalaxy formation is understood to proceed "hierarchically" — smaller structures (dark matter haloes, and the small protogalaxies within them) form first and then merge together over cosmic time to build up larger galaxies — rather than large galaxies simply appearing whole from the start. This is a common point of confusion: galaxies like the Milky Way are understood to have grown substantially through numerous mergers with smaller galaxies over billions of years, a process that is, in fact, still ongoing today (the Milky Way is currently absorbing several small satellite galaxies).

Deep Dive

Primary sourceWhite, S.D.M., Rees, M.J. (1978). "Core Condensation in Heavy Halos: A Two-Stage Theory for Galaxy Formation and Clustering." Monthly Notices of the Royal Astronomical Society, 183(3), 341–358.

Simon White and Martin Rees's influential 1978 paper established the basic "two-stage" theoretical framework still underlying modern galaxy formation theory: dark matter haloes collapse first under gravity, and ordinary (baryonic) gas subsequently falls into these haloes, where it can cool, condense, and form stars — a framework later substantially refined and made quantitatively precise through large-scale cosmological computer simulations that model the gravitational and gas dynamics involved across cosmic time.

Cosmological simulations and the cosmic web: Modern galaxy formation research relies heavily on large-scale computer simulations (such as the Illustris, EAGLE, and IllustrisTNG projects) that model dark matter gravitational collapse alongside gas dynamics, star formation, and feedback processes (such as supernova explosions and supermassive black hole activity, which can heat or expel gas and regulate further star formation) across cosmic time. These simulations successfully reproduce the observed large-scale "cosmic web" structure — a vast, filamentary network of galaxies and galaxy clusters connected by thinner filaments of gas and dark matter, with large, relatively empty voids in between — providing strong, independent support for the underlying dark-matter-driven hierarchical formation picture.

Significant open questions remain in galaxy formation theory, including precisely how supermassive black holes and their host galaxies co-evolve (see the Codex's supermassive black holes entry), how galaxies regulate their own star formation over billions of years (avoiding either fully depleting their gas too quickly or fully suppressing star formation), and how to fully reconcile early, surprisingly massive high-redshift galaxy observations with standard hierarchical formation timescales — active areas of ongoing observational and theoretical research.

Sources

  • White, S.D.M., Rees, M.J. (1978). Monthly Notices of the Royal Astronomical Society, 183(3), 341–358.
  • Vogelsberger, M., et al. (2014). "Introducing the Illustris Project." Monthly Notices of the Royal Astronomical Society, 444(2), 1518–1547.
Last verified: August 2026 · Source: White & Rees (1978); Vogelsberger et al. (2014) · Confidence: high