Skip to content

Light and optics simulation

Why Is the Sky Blue and the Sunset Red? Scattering Simulation in 3D

Try this: Press Send in sunlight and watch Hitting the air: under What changed, compare how many blue, green and red photons were scattered.

Loading simulation…

Send red, green and blue photons of sunlight into the air and watch the molecules knock blue off course far more often than red. See scattered blue reach you from every direction, then lower the Sun and watch its long, slanting path strip out the blue until the setting Sun glows orange-red.

In short

Why is the sky blue and the sunset red?

Sunlight is a mix of all colours. The tiny nitrogen and oxygen molecules in air scatter short wavelengths far more than long ones, so blue light is bounced around the whole sky and reaches your eyes from every direction. At sunset the light crosses nearly 40 times as much air, most of the blue is scattered out, and the direct beam looks orange-red.

This is one of our 3D physics simulations: drag to turn it, or use the Front, Side and Top buttons.

Show symbols for

Predict first

Question 1 of 4

  1. Predict
  2. Run
  3. Check

Sunlight is a mix of all colours. As it passes through the air, tiny nitrogen and oxygen molecules knock some of it off in new directions (scattering). Which colour do they scatter the most?

Try this

  1. Press Send in sunlight and watch Hitting the air: under What changed, compare how many blue, green and red photons were scattered.
  2. Press Back, switch on Slow and press Next to replay Light from every direction. Where does the scattered light reach you from, and what does the What you see tile say about the sky overhead?
  3. Play The Sun goes down and watch the Air crossed chip on the stage. How many times more air does the light cross when the Sun reaches the horizon?
  4. Drag Sun height from 90° down to 0° and watch the colour of the Direct sunlight beam along its length.
  5. Set Air to None (Moon), then Thin (Mars), then 4 × Earth, and compare the sky overhead in the What you see tile.

What you are looking at

You stand under a cut-away slice of the atmosphere, drawn far thicker than it really is, with the Sun shining in from the left. Send in sunlight plays five named stages; Back, Next and the scrubber replay any of them, and the Sun height slider puts the Sun wherever you like. The What you see tile names every colour.

Why is the sky blue?

Sunlight looks white because it contains every colour of the rainbow at once. When it enters the air it meets nitrogen and oxygen molecules, each about a thousand times smaller than a wavelength of light. Now and then a molecule sends some light off in a new direction. This is called scattering, and for particles that small it depends strongly on wavelength: the amount goes as 1λ4\frac{1}{\lambda^4}. Light at 450 nm (blue) gets scattered about (700÷450)4≈5.9(700 \div 450)^4 \approx 5.9 times more strongly than light at 700 nm (red). The scattered blue is sent everywhere, so wherever you look away from the Sun, some of it arrives at your eyes. That glow from every part of the sky is the blue sky.

Why are sunsets red and orange?

A high Sun loses only a little of its blue, so it still looks white. As it sinks, the light slants through more and more air. If all the air were squeezed to sea-level density it would form a layer about 8.4 km deep, and light from the horizon runs along that layer for roughly 330 km. On such a long path nearly all the blue and much of the green is scattered out sideways. The light still reaching you directly is dominated by orange and red, which is why the setting Sun glows orange-red.

Why isn't the sky violet?

Violet is scattered even more than blue. But sunlight contains a little less violet than blue, and our eyes respond only weakly to it. The eye has three kinds of colour-sensing cell (cones), and skylight sets off all three: the blue-sensitive ones most, the others less. The brain reads that combination of signals as a pale sky blue, not violet. Ozone high in the atmosphere does absorb ultraviolet strongly, but it takes very little of the visible violet.

Why are clouds white?

Cloud droplets are typically about 0.01 to 0.02 mm across, some 20 to 40 times a wavelength of light. Drops that large scatter all colours about equally, and an even mix of all colours looks white. This is called Mie scattering, a term you will not need for GCSE or IGCSE.

What colour is the sky on the Moon and Mars?

With almost no air, the Moon has nothing to scatter sunlight towards you, so its sky is black even at midday. Mars has only about 2% as much air above each square metre as Earth, and that thin air alone would give a dark, faintly blue sky. Instead, fine reddish dust gives Mars a butterscotch daytime sky, and near sunset the dust lets blue light through more easily close to the Sun. NASA's Curiosity rover photographed a bluish Martian sunset in April 2015.

In your course

AQA GCSE Physics places visible light in the electromagnetic spectrum in 4.6.2.1, and gives each colour its own band of wavelength in 4.6.2.6 (physics only). Cambridge IGCSE lists the seven colours in order of wavelength in 3.2.4. Punjab Physics 10 explains the blue sky and red sunsets in words in section 18.6. The 1λ4\frac{1}{\lambda^4} rule is beyond all three. Split white light with the prism and colour simulation, place visible light among the other waves in the electromagnetic spectrum, and see another sky glow in the northern lights in 3D.

Quiz

Check your understanding

8 questions

  1. 1.Why does the daytime sky look blue?
  2. 2.Blue light (about 450 nm) is scattered by air molecules about how many times as much as red light (about 700 nm)?
  3. 3.Why does the Sun look orange-red when it is setting?
  4. 4.What colour is the daytime sky on the Moon, which has almost no air?
  5. 5.Why do clouds look white rather than blue?
  6. 6.Violet light has a shorter wavelength than blue, so it is scattered even more. Why doesn't the sky look violet?
  7. 7.Roughly how far does sunlight travel through the air when the Sun is on the horizon, compared with straight overhead?
  8. 8.On Mars, NASA's Curiosity rover photographed a sunset in 2015. What colour was the sky around the setting Sun?

For teachers

Embed it in your site or open it full-screen for the projector.

Next step

Rainbows in 3D (why a double rainbow has its colours reversed)

The next simulation in light and optics.