How Galaxies Form: The Science Behind the Universe’s Largest Structures

How galaxies form: the basic picture

Galaxies are vast systems of stars, gas, dust, dark matter, and supermassive black holes bound together by gravity.

Understanding how galaxies form means tracing how tiny density variations after the Big Bang grew into the spiral, elliptical, and irregular galaxies we observe today.

The process is not a single event.

It unfolds over billions of years as gravity pulls matter together, hydrogen gas cools and collapses, stars ignite, and repeated mergers reshape a galaxy’s structure.

Some galaxies grow quietly; others are built through violent collisions that leave lasting fingerprints.

What were the starting conditions in the early universe?

After the Big Bang, the universe expanded and cooled, leaving behind a nearly uniform mix of hydrogen, helium, dark matter, and radiation.

Small fluctuations in density, measured today in the cosmic microwave background, provided the seeds for all later structure.

Dark matter played a central role because it does not emit or absorb light, yet it creates gravitational wells.

Baryonic matter, meaning the normal matter that makes up stars and planets, fell into these wells over time.

This is why modern models of how galaxies form begin with dark matter halos.

  • Dark matter halos acted as gravitational scaffolding.
  • Primordial gas collected inside those halos.
  • Cooling and compression allowed the first stars to form.
  • Feedback from stars and black holes regulated later growth.

How do dark matter halos shape galaxy formation?

In the current Lambda Cold Dark Matter, or ΛCDM, cosmological model, small dark matter clumps merge into larger halos through hierarchical growth.

These halos determine where galaxies can form and how much material they can hold.

As gas falls into a halo, it heats up through compression.

If it can radiate that energy away, it cools, settles toward the center, and becomes dense enough for stars to form.

The mass of the halo influences the galaxy’s final size, gas supply, and star formation history.

Why are halos important?

They influence angular momentum, merger rate, and the retention of gas.

Massive halos can sustain large galaxies, while smaller halos may lose gas more easily due to stellar winds or supernova explosions.

How do the first stars and galaxies appear?

The first generations of stars likely formed within the earliest collapsed gas clouds, ending the cosmic “dark ages.” These first stars, called Population III stars, were made almost entirely of hydrogen and helium because heavier elements had not yet been manufactured.

Once these stars formed, they produced ultraviolet radiation, supernovae, and heavy elements such as carbon, oxygen, and iron.

Those elements enriched the surrounding gas, making later star formation more efficient and changing the chemistry of future galaxies.

The first small galaxies were then assembled from many such star-forming regions.

What drives galaxy growth over time?

Galaxy growth happens through two main channels: the accretion of gas and the merging of smaller galaxies.

Gas accretion fuels new star formation, while mergers alter shape, trigger bursts of star formation, and build up stellar mass.

Cosmological simulations and observations suggest that much of a galaxy’s mass can be assembled through repeated merging of smaller progenitors.

The Milky Way, for example, has absorbed dwarf galaxies and stellar streams throughout its history, and it continues to interact with the Large and Small Magellanic Clouds.

  • Gas accretion supplies raw material for star formation.
  • Minor mergers add stars and disturb the disk.
  • Major mergers can transform spirals into more spheroidal systems.
  • Continuous inflow from the cosmic web keeps galaxies growing.

Why do galaxies have different shapes?

Galaxy morphology reflects formation history.

Spiral galaxies usually contain rotating disks of gas and young stars, often because they have experienced a relatively calm growth history.

Elliptical galaxies are more common in dense environments and often result from major mergers that scramble stellar orbits.

Irregular galaxies may form in low-mass halos or through interactions that disrupt stable structure.

The balance between rotation, turbulence, star formation, and mergers helps determine whether a galaxy becomes a spiral, elliptical, or irregular system.

How do spiral galaxies stay disk-shaped?

Gas with angular momentum tends to flatten into a rotating disk as it cools.

If the galaxy avoids too many disruptive mergers, the disk can remain intact.

Spiral arms are not permanent material structures; they are density waves or transient patterns that organize star formation.

What role do supermassive black holes play?

Nearly every large galaxy appears to host a supermassive black hole in its center.

These black holes can strongly influence how galaxies form by regulating gas supply through active galactic nucleus, or AGN, feedback.

When matter falls toward the black hole, it can release enormous energy in radiation, jets, and winds.

This energy may heat or expel gas, slowing star formation and helping explain why some massive galaxies stop forming stars and become “red and dead.”

How does star formation regulate galaxy evolution?

Star formation is both a product and a regulator of galaxy formation.

Dense gas clouds collapse into stars, but the resulting radiation, stellar winds, and supernova explosions inject energy back into the surrounding medium.

This process is known as feedback.

Feedback can prevent all available gas from turning into stars at once.

It also enriches the interstellar medium with metals, which changes how gas cools and forms new generations of stars.

In this way, the life cycles of stars are built into the long-term evolution of galaxies.

What do observations tell us about how galaxies form?

Astronomers study galaxy formation using telescopes that observe across the electromagnetic spectrum, from radio to infrared to X-ray.

Deep surveys with the Hubble Space Telescope and James Webb Space Telescope have revealed galaxies at very high redshift, allowing researchers to see objects that existed when the universe was very young.

These observations show that galaxies were already assembling surprisingly early.

They also reveal clumpy, compact systems, frequent mergers, and intense star formation in the early universe.

Computer simulations such as IllustrisTNG and EAGLE help connect these observations to physical processes.

  • Hubble Space Telescope mapped distant galaxy populations.
  • James Webb Space Telescope is probing earlier and fainter galaxies.
  • Radio telescopes trace cold hydrogen and molecular gas.
  • Computational simulations test formation models against real data.

How do galaxies form in groups and clusters?

Environment matters.

Galaxies in clusters often grow differently from isolated galaxies because they experience tidal interactions, gas stripping, and frequent encounters.

Dense environments can remove star-forming gas and speed up the transition to passive galaxies.

In less crowded regions, galaxies can continue accreting gas from the intergalactic medium for longer periods.

This is one reason massive spiral galaxies like the Milky Way can still form stars today, while many cluster galaxies have already exhausted or lost their gas.

What are the main open questions in galaxy formation?

Despite major progress, several questions remain.

Scientists still work to understand how efficiently gas turns into stars, how feedback operates across different galaxy masses, and why galaxy growth varies so much from system to system.

Another major challenge is linking small-scale physics, such as supernova explosions and black hole accretion, to the large-scale structure of the cosmic web.

Researchers also continue to refine the role of dark matter and investigate whether alternative models can better explain certain observations.

  • How exactly does feedback regulate star formation across cosmic time?
  • What determines the transition from blue, star-forming galaxies to quiescent ones?
  • How much of a galaxy’s mass comes from mergers versus smooth gas accretion?
  • Why do some galaxies form stars efficiently while others remain gas-rich but inactive?

Why the study of galaxy formation matters

Studying how galaxies form reveals how matter organizes on the largest observable scales and how the chemical elements needed for planets and life are produced.

It also connects cosmology, astrophysics, and plasma physics into one coherent story about structure in the universe.

Every galaxy is a record of its environment, merger history, gas supply, and internal feedback.

By reading that record, astronomers can reconstruct how the universe evolved from nearly featureless beginnings into a cosmos filled with billions of galaxies.