AstronomyAdvanced2D simulation~15 min

Cosmic Expansion and Redshift

Almost every distant galaxy’s light arrives stretched towards the red, and the farther the galaxy, the bigger the stretch. This discovery revealed that the universe is expanding. Pick a galaxy, release its light, and watch the light cross billions of years of growing space, its waves getting longer all the way.

Light just emitted
10

Comoving distance today, in billions of light-years (Gly).

0

Press Start to play, or drag to any moment of the journey.

Compare
Spectral line to follow

Hydrogen lines at 121.6, 486.1 and 656.3 nm.

1
Redshift when the light arrives
—
Light travel time
—
Light left the galaxy
—
Distance then → today
—
Galaxy’s recession rate today
—

Redshift and distance

Redshift against present-day distance in the expanding-universe model, with the straight-line Hubble's law for comparison and the chosen galaxy marked.

    How to use this simulator

    1. Choose how far away the galaxy is today, using the slider or a preset. The readouts show the redshift, how long the light travelled and when it left.
    2. Press Start, or drag Light’s journey, to watch the light travel. The grid marks fixed places in space: watch it, and the light wave, stretch together.
    3. Follow a hydrogen spectral line in the spectrum at the bottom as it slides from the visible into the infrared.
    4. Switch to Motion through space to compare with a galaxy flying away through ordinary space: its light is stretched once, at the start, and then stays the same.
    5. Click the galaxies, the wave, the space or the spectrum for explanations. The graph below compares redshift and distance.

    Reading the light of galaxies

    When starlight is spread into a spectrum, it shows sharp lines at wavelengths set by the atoms that produced them. Hydrogen, for example, always emits its H-alpha line at 656.3 nm. Because these patterns are like fingerprints, astronomers can recognise them in the light of a distant galaxy, and measure exactly how far the whole pattern has shifted.

    What redshift means

    In the light of almost every distant galaxy, every line appears at a longer wavelength than in the laboratory: it is shifted towards the red end of the spectrum, a redshift. Redshift is written z, where1 + z = observed wavelength ÷ emitted wavelength. Every line in the spectrum is multiplied by the same factor. For large redshifts, visible lines move right out of the visible range into the infrared, and ultraviolet lines move into the visible.

    Expanding space

    In the 1920s, Georges Lemaître and Edwin Hubble found that the farther away a galaxy is, the larger its redshift. The explanation is that the universe is expanding. The distances between widely separated galaxies grow over time, not because the galaxies are flying through space away from a central point, but because space itself is stretching, everywhere at once. A common picture is raisins in a rising loaf: every raisin moves away from every other, and none of them is at the centre. Galaxies, stars, planets and atoms are held together by gravity and other forces, so they do not expand.

    Stretching during the journey

    Light from a distant galaxy takes millions or billions of years to reach us. While it travels, the space it crosses keeps expanding, and its waves are stretched along with it. When it finally arrives, its wavelength has grown by exactly the same factor as the universe:1 + z = (size of the universe now) ÷ (size when the light left). Light that left when the universe was half its present size arrives with z = 1, its wavelengths doubled. More distant galaxies show bigger redshifts because their light has been travelling longer while the universe expanded more.

    Hubble’s law

    For nearby galaxies, the rate at which a galaxy recedes is proportional to its distance:v = H₀ × d. The Hubble constant, H₀, is about 70 km/s per megaparsec: a galaxy 3.26 million light-years farther away recedes about 70 km/s faster. At large distances the relationship curves, because the expansion rate has changed over cosmic history: it slowed while matter dominated and has been speeding up for the last few billion years because of dark energy. The graph below the simulator shows this curve.

    Expansion is not ordinary motion

    A galaxy moving through space would also show a redshift, because of the Doppler effect. But that shift is fixed at the moment the light is emitted. Cosmological redshift builds up continuously during the light’s whole journey. The difference matters: very distant galaxies are now receding at more than the speed of light. This does not break relativity, which limits how fast things move through space, not how fast the space between distant objects can grow.

    Formulas

    1 + z = λ_observed ÷ λ_emitted = a(now) ÷ a(then)recession rate v = H₀ × d (Hubble–Lemaître law)for small z only: z ≈ v ÷ c

    Here a is the scale factor, the size of the universe relative to today (a = 1 now).

    What redshift has revealed

    • The Big Bang: running the expansion backwards shows the universe was once hot and dense, about 13.8 billion years ago.
    • The cosmic microwave background: light released about 380,000 years after the Big Bang has been stretched about 1,100 times, from visible and infrared light into microwaves.
    • Dark energy: in 1998, distant exploding stars revealed that the expansion is speeding up.
    • The earliest galaxies: JWST observes in infrared because the light of the most distant galaxies, at redshifts above 10, has been stretched out of the visible.

    Common misconceptions

    • “The Big Bang was an explosion at a point in space.” It happened everywhere; there is no centre.
    • “Everything expands, including us.” Bound objects such as galaxies and atoms do not.
    • “Redshift is just galaxies speeding through space.” For distant galaxies it is the stretching of space during the light’s travel.
    • “Nothing can recede faster than light.” Distant galaxies do, because space between us is expanding.
    • “The galaxy is now as far away as its light travel time suggests.” It is much farther, because space kept expanding.

    What the model simplifies

    The expansion history is a standard flat universe containing matter and dark energy, with H₀ = 70 km/s/Mpc and 30% matter and 70% dark energy, ignoring radiation. It gives an age of about 13.5 billion years, slightly less than the 13.8 billion years from detailed measurements, and its distances and times are approximate. Distances are present-day (comoving) distances. The picture is two-dimensional and not to scale: the galaxies are drawn hugely enlarged, and the wave’s on-screen length only shows how much it has been stretched. Real galaxies also have small motions of their own through space, which add a little Doppler shift. The comparison mode uses the special-relativity Doppler formula for a galaxy moving through non-expanding space, chosen to give the same final redshift.

    Key takeaways

    • Redshift is the stretching of light to longer wavelengths: 1 + z = λ_observed ÷ λ_emitted.
    • Cosmological redshift happens because space expands while the light travels; 1 + z equals how much the universe has grown since.
    • More distant galaxies have larger redshifts; nearby galaxies follow Hubble’s law, v = H₀ × d.
    • Expansion has no centre and does not stretch bound objects like galaxies or atoms.
    • Expansion is not motion through space, so distant galaxies can recede faster than light.

    Knowledge check

    Cosmic Expansion and Redshift: test your understanding

    Answer each question to get instant feedback and an explanation. Use the simulator to check your thinking.

    10 questions3 basic4 intermediate3 advanced

    0 of 10 answered

    1. Q1BasicWhat does “redshift” mean for light from a distant galaxy?
      Show answer

      Answer: B. The light’s wavelengths have been stretched, shifting features in its spectrum towards longer (redder) wavelengths

      Redshift z compares observed and emitted wavelengths: 1 + z = λ_observed ÷ λ_emitted. A hydrogen line emitted at 656 nm and seen at 1,312 nm has z = 1.

    2. Q2BasicAccording to the simulator, what causes cosmological redshift?
      Show answer

      Answer: B. Space itself expanding while the light travels, stretching its wavelength by the same factor as the universe grows

      If the universe doubles in size while the light is on its way, the wavelength doubles too: 1 + z = (size now) ÷ (size when the light left).

    3. Q3IntermediateWhy does light from more distant galaxies generally have a larger redshift?
      Show answer

      Answer: B. Their light has travelled longer, so the universe has expanded more during the journey

      Compare the presets: light from a galaxy now 1 billion light-years away travelled about 1 billion years and has z ≈ 0.07; light from one 21 billion light-years away travelled about 11.5 billion years and has z ≈ 3.

    4. Q4IntermediateWhat does Hubble’s law (the Hubble–Lemaître law) say?
      Show answer

      Answer: B. Galaxies recede from us at a rate roughly proportional to their distance: v = H₀ × d

      Twice as far away means receding twice as fast. This is exactly what uniform expansion produces, and it holds as a straight line for nearby galaxies. The graph shows how it curves at large distances.

    5. Q5IntermediateIn an expanding universe, where is the centre of the expansion?
      Show answer

      Answer: B. There is no centre: observers in every galaxy see all other distant galaxies receding, just as we do

      Like dots on an inflating balloon’s surface, every point moves away from every other. The Big Bang was not an explosion at one place in space; it happened everywhere.

    6. Q6BasicWhich of these does NOT get bigger as the universe expands?
      Show answer

      Answer: B. The galaxies themselves, the Solar System and atoms

      Gravity and other forces hold galaxies, planetary systems and atoms together, so they keep their size. In the simulator the galaxies stay the same size while the grid stretches.

    7. Q7AdvancedHow is cosmological redshift different from the Doppler shift of a galaxy moving through space?
      Show answer

      Answer: B. A Doppler shift is fixed when the light is emitted; cosmological redshift builds up gradually during the whole journey as space stretches

      Switch the simulator to “Motion through space”: the wave leaves already stretched and then stays the same. In expanding space it starts unstretched and grows longer all the way.

    8. Q8AdvancedA galaxy now 30 billion light-years away is receding at more than twice the speed of light. Does this break the rule that nothing can travel faster than light?
      Show answer

      Answer: B. No: the galaxy is not moving through space faster than light; the space between us is expanding, and relativity’s speed limit applies to motion through space

      The recession rate is H₀ × distance, which exceeds c beyond about 14 billion light-years. Locally, every galaxy moves slower than light; we can still see such galaxies because their light set out long ago.

    9. Q9AdvancedThe H-alpha line is emitted at 656 nm. A galaxy has z = 3. At what wavelength is the line observed, and what kind of light is that?
      Show answer

      Answer: C. About 2,625 nm, infrared

      λ_observed = (1 + z) × λ_emitted = 4 × 656 ≈ 2,625 nm, well into the infrared. This is why telescopes such as JWST observe the most distant galaxies in infrared light.

    10. Q10IntermediateIn the simulator, the light from a galaxy with z ≈ 1 left when the universe was about half its present size. What does 1 + z = 2 tell you?
      Show answer

      Answer: B. The universe has doubled in size (distances between distant galaxies have doubled) since the light was emitted

      Redshift measures the expansion directly: 1 + z = (size now) ÷ (size then). Converting it into a distance or a travel time needs a model of how fast the universe expanded.

    References and further reading

    1. Fraknoi, A., Morrison, D., & Wolff, S. C. (2022). Astronomy 2e, Section 26.5: The Expanding Universe; Section 29.1: The Age of the Universe. OpenStax. openstax.org (opens in a new tab)
    2. Hubble, E. (1929). A relation between distance and radial velocity among extra-galactic nebulae. Proceedings of the National Academy of Sciences, 15(3), 168–173.
    3. Davis, T. M., & Lineweaver, C. H. (2004). Expanding Confusion: common misconceptions of cosmological horizons and the superluminal expansion of the Universe. Publications of the Astronomical Society of Australia, 21(1), 97–109. arxiv.org (opens in a new tab)
    4. Planck Collaboration (2020). Planck 2018 results. VI. Cosmological parameters. Astronomy & Astrophysics, 641, A6.

    This simulator is a simplified educational model. Found an error? Let us know. See our educational disclaimer.