Skip to content
Tutorials Center
My learning

Topics

Lesson 2 of 37 ยท Getting Started

The Scale of the Universe

Climb the ladder of cosmic distances from the Moon to the observable universe, and learn the astronomical unit, the light-year, and the parsec with code.

Space is big in a way that is hard to feel. Everyday units like kilometers produce numbers with so many zeros that they lose meaning. Astronomers solve this by using units that fit the job: the astronomical unit for the Solar System, the light-year and the parsec for the stars and beyond.

In this lesson you will climb the "distance ladder" from the Moon to the edge of the observable universe, and you will learn how to compute light travel times yourself. Understanding scale gives every later lesson context.

The speed of light as a ruler

Light travels through empty space at exactly 299,792,458 meters per second (about 300,000 km/s). Nothing carries information faster. Because it is so steady, light makes a perfect measuring stick: we can describe a distance by how long light takes to cross it.

  • Moon: about 1.28 seconds (average distance 384,400 km)
  • Sun: about 8 minutes 20 seconds (average distance 149.6 million km)
  • Neptune: about 4 hours
  • Nearest star beyond the Sun, Proxima Centauri: about 4.2 years

Three astronomical units of distance

Unit Symbol Value Used for
Astronomical unit AU 149,597,870.7 km (average Earth-Sun distance) Planets and the Solar System
Light-year ly about 9.461 trillion km Stars and nearby galaxies
Parsec pc about 3.086 ร— 10^13 km, or 3.26 ly Professional work on stars and galaxies

A light-year is a unit of distance, not time. It is how far light travels in one year in a vacuum. A parsec comes from a measuring technique called parallax, which you will meet in the lesson on stellar distances.

Python Light travel times

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The loop turns each distance into seconds, minutes, and hours. Neptune comes out near 4.2 hours; it varies as Neptune orbits.

The distance ladder

Earth and Moon

Earth 12,742 km wide
Moon 384,400 km away
1 / 4

Here is the ladder in a table, rounded to useful numbers.

Object Approximate distance
Moon 0.00257 AU
Sun 1 AU
Neptune 30 AU
Proxima Centauri 4.2 ly (about 268,000 AU)
Center of the Milky Way about 26,000 ly
Andromeda galaxy about 2.5 million ly
Edge of observable universe about 46 billion ly (comoving)

The last entry needs a note. The universe has been expanding since the Big Bang about 13.8 billion years ago, so the farthest light we can see has traveled 13.8 billion years, but its source is now much farther away. We will return to this in the cosmology chapters.

Distances in this table are rounded and some, such as the distance to the Milky Way's center and to Andromeda, are measured with uncertainty. Always treat these as good approximations.

Shrinking the universe to a walk

A classic way to feel scale is a scale model. Suppose the Sun is the size of a grapefruit about 10 cm across. What size and distance do other bodies get? The code below shrinks everything by the same factor. The Sun's diameter is 1,392,700 km, and Earth's mean orbital distance is 1 AU.

Python A scale model of the Sun and Earth

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

With a 10 cm Sun, Earth is under a millimeter wide and about 10.7 meters away. The nearest star sits thousands of kilometers away in the same model. Almost all of space is empty.

Scientific notation

When numbers are enormous, write them as a number between 1 and 10 times a power of ten. For example, 9,460,700,000,000 km becomes 9.4607 ร— 10^12 km. In Python (and JavaScript) you type this as 9.4607e12. Multiplying and dividing is then easy: add or subtract the exponents. We practice this more in the next lesson.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is a light-year?

    A light-year measures distance. It equals about 9.461 trillion kilometers.
  2. 2. About how long does sunlight take to reach Earth?

    149.6 million km divided by 300,000 km/s is about 499 seconds, or roughly 8 minutes 20 seconds.
  3. 3. Which unit is most natural for distances between planets?

    One AU is the average Earth-Sun distance, so planet distances come out as small convenient numbers.
  4. 4. How is 4.2 ร— 10^5 written in Python?

    The letter e means 'times ten to the power'. So 4.2e5 is 420,000.

Summary

  • Light travels at 299,792,458 m/s and makes a natural ruler for space.
  • The AU suits the Solar System; the light-year and parsec suit stars and galaxies.
  • A light-year measures distance, about 9.461 trillion km.
  • Scale models show how empty space is.
  • Scientific notation keeps huge numbers readable.

Next: Units and Numbers in Astronomy