Curious Minds

Clear answers to science and history questions

How Galaxies Formed After the Big Bang

· 7 min read · Science

Galaxies formed after the Big Bang through a chain of events that began with tiny density variations in the hot, nearly uniform early universe. Gravity slowly amplified those variations: dark matter clumped into halos, ordinary gas fell into them, cooled, condensed into stars, and the resulting star clusters and gas merged into progressively larger galaxies over billions of years. In short, galaxies are the end product of gravitational instability acting on a universe that started out almost, but not perfectly, smooth.

The Starting Point: A Hot, Almost Smooth Universe

About 13.8 billion years ago, the universe began in an extremely hot, dense state. Within the first few minutes, conditions were right for the formation of light atomic nuclei — hydrogen, helium, and traces of lithium — in a process called Big Bang nucleosynthesis. For the next few hundred thousand years, the universe was filled with a glowing plasma of free electrons and nuclei, so opaque that light could not travel far without scattering.

Roughly 380,000 years after the Big Bang, the universe cooled enough for electrons and nuclei to combine into neutral atoms. This event, called recombination, released the cosmic microwave background (CMB), the relic radiation we still observe today. The CMB shows the universe at that moment was astonishingly uniform, with temperature ripples of only about one part in 100,000. Those tiny ripples are the seeds of everything that followed.

Why Dark Matter Mattered

The density ripples came in two flavors: ordinary matter (baryons, the stuff of gas, stars, and planets) and dark matter, a substance that does not emit or absorb light but exerts gravity. Dark matter played the decisive role in early structure formation for a simple reason: ordinary matter was coupled to radiation and pushed back by light pressure, while dark matter was not.

As a result, dark matter could begin collapsing under its own gravity much earlier. Small dark matter concentrations grew by accreting more dark matter, forming what astronomers call halos. These halos became the gravitational scaffolding within which ordinary gas could later gather. Without dark matter, the growth of structure would have been far slower, and the universe we see — rich in galaxies — might not have developed as it did.

From Gas Clouds to the First Stars

Once dark matter halos existed, ordinary gas — mostly hydrogen and helium — was pulled into them. The gas heated up as it fell in, and for a halo to become a site of star formation, that gas had to cool and condense. Hydrogen gas cools most efficiently when it can form molecules (molecular hydrogen), and this process became important in the first, relatively small halos.

The first stars are thought to have formed a few hundred million years after the Big Bang. They were likely massive, hot, short-lived, and made almost entirely of hydrogen and helium, since heavier elements had not yet been manufactured in significant quantities. These first stars ended their lives in supernovae, scattering heavier elements — carbon, oxygen, iron, and more — into surrounding gas. That enrichment mattered enormously: heavier elements allow gas to cool more efficiently, which in turn makes later star formation easier.

Hierarchical Assembly: Small Things Merge into Big Things

Galaxy formation is best described as hierarchical: small structures form first and merge to build larger ones. The sequence generally runs like this:

  1. Tiny dark matter density peaks grow into low-mass halos.
  2. Gas cools and condenses within those halos, forming the first stars and star clusters.
  3. Gravity draws halos together; they merge into larger halos.
  4. Galaxies within merging halos interact, sometimes combining into a single larger galaxy.
  5. Continued gas accretion and further mergers build galaxies up over billions of years.

This picture explains why the universe contains both small dwarf galaxies and giant galaxies like the Milky Way. It also explains why galaxies are not scattered randomly: they tend to be found in groups and clusters, which are themselves the largest gravitationally bound structures, sitting at the intersections of a vast cosmic web of dark matter filaments.

The Cosmic Web and Large-Scale Structure

On the largest scales, matter in the universe is arranged in a web-like pattern: long filaments and sheets of matter surrounding enormous, comparatively empty regions called voids. Galaxies tend to form where filaments intersect, in dense nodes. This cosmic web is a natural outcome of gravity amplifying the initial density ripples. Observations of galaxy surveys, which map the positions of millions of galaxies, show this web-like arrangement directly, and computer simulations that start from the observed CMB ripples reproduce it well.

How Galaxies Change Over Time

Galaxies are not static objects. Their appearance and behavior change as they age and interact:

  • Star formation: Gas-rich galaxies form stars vigorously, often appearing blue and bright. As gas is consumed or expelled, star formation slows.
  • Mergers: When galaxies merge, their gas can be compressed, triggering bursts of star formation. Mergers can also build spiral galaxies into elliptical ones.
  • Feedback: Energy from supernovae and from supermassive black holes at galactic centers can heat or blow gas out of a galaxy, limiting further star formation.
  • Environment: Galaxies in dense clusters may have their gas stripped away as they move through hot intracluster gas, shutting down star formation.

These processes help explain the observed variety of galaxy shapes and colors, from actively star-forming spirals to quiescent ellipticals.

What Observations Reveal

Several independent lines of evidence support this account. The cosmic microwave background provides a snapshot of the initial ripples. Deep surveys with telescopes such as Hubble and James Webb have found galaxies at ever greater distances, and because light takes time to travel, distant galaxies are seen as they were in the distant past — smaller, more irregular, and more gas-rich on average than present-day galaxies. The abundances of light elements match predictions of Big Bang nucleosynthesis. And the large-scale clustering of galaxies matches simulations that begin with dark matter and the observed CMB ripples.

Uncertainties remain. The exact nature of dark matter is unknown, and the detailed physics of how gas cools, how stars form, and how feedback operates inside galaxies is complex and still an active area of research. The broad framework, however, is well established.

Frequently Asked Questions

Did galaxies form all at once after the Big Bang?

No. Galaxy formation was gradual. The first stars and small protogalaxies appeared a few hundred million years after the Big Bang, and larger galaxies were assembled through mergers and gas accretion over billions of years. Galaxy formation is still ongoing in a sense, as galaxies continue to merge and evolve.

What is the difference between a galaxy and a star cluster?

A star cluster is a group of stars bound by gravity, typically containing from a few hundred to a few million stars. A galaxy is far larger, containing millions to hundreds of billions of stars along with gas, dust, and dark matter, and it is gravitationally bound as a system. Galaxies often contain many star clusters within them.

How do we know dark matter exists if we cannot see it?

Dark matter is inferred from its gravitational effects. For example, galaxies rotate faster than their visible mass alone would allow, galaxy clusters hold together more strongly than visible matter can explain, and the pattern of the cosmic microwave background and the growth of large-scale structure both require a dark component. These lines of evidence are independent and consistent.

Could the universe be expanding and galaxies forming at the same time?

Yes. The universe has been expanding since the Big Bang, but gravity can overcome expansion on smaller scales. Within gravitationally bound regions — galaxies, groups, and clusters — matter collapses and merges even as the universe expands overall. On the largest scales, expansion dominates and distant galaxies move apart.

When did the Milky Way form?

The Milky Way's history is complex. Its oldest stars are more than 13 billion years old, indicating that its building blocks began forming early. The galaxy has since grown through mergers and continued star formation. Astronomers study its history through the ages, motions, and chemical compositions of its stars.

Are new galaxies still forming today?

Small galaxies can still form from gas, and galaxies continue to merge and change. However, the overall rate of star formation in the universe peaked billions of years ago and has declined since, so the era of vigorous galaxy building is largely in the past.

In this article
  1. The Starting Point: A Hot, Almost Smooth Universe
  2. Why Dark Matter Mattered
  3. From Gas Clouds to the First Stars
  4. Hierarchical Assembly: Small Things Merge into Big Things
  5. The Cosmic Web and Large-Scale Structure
  6. How Galaxies Change Over Time
  7. What Observations Reveal
  8. Frequently Asked Questions