Why the sky is blue

And why the same law makes the sunset red. Rayleigh, 1871.

Air is not blue. Sunlight is white. The blue comes from the air molecules themselves: they are far smaller than a wave of light, and a particle that small scatters short waves much more than long ones. Blue light bounces around the whole sky before it reaches you. Red light goes straight through. Look away from the sun and you see the bounced light: blue. Look at the sun when it is low, through a long slab of air, and all that is left after the bouncing is red.

The law

Lord Rayleigh worked it out in 1871: a particle much smaller than the wavelength scatters light in proportion to 1 divided by the wavelength to the fourth power. Halve the wavelength and the scattering goes up sixteen times. Blue light at 450 nanometres is scattered about 5.5 times more than red at 700. That one exponent is the whole story.

ColourWavelengthScattered, red = 1
Violet400 nm9.4
Blue450 nm5.9
Green550 nm2.6
Red700 nm1

Then why not violet? Three reasons at once: the sun gives off less violet than blue, the ozone layer swallows some of it, and your eye is far less sensitive to it. Blue wins on points.

Who proved it

John Tyndall made a blue sky in a glass tube in 1869 with a faint mist and a white lamp, and saw it turn orange looking along the beam. Rayleigh wrote the law two years later but thought dust did the scattering. In 1899 he realised air molecules alone are enough. In 1910 Einstein and Smoluchowski showed it is really the random bunching of molecules that scatters, and Einstein used the blue of the sky to count the molecules in a litre of air. The colour of the sky is evidence that atoms exist.

Sunrise and sunset: same law, different air

The physics is identical. At both ends of the day the light crosses the same long slab of air. What differs is what is in the air. By evening the sun has heated the ground all day, and dust, pollen, moisture and city haze have been lifted into the low air. Those particles are far bigger than molecules, so they scatter every colour more evenly and smear the glow wider: sunsets tend to be broader, hazier and more orange. Overnight the air cools and settles and the dust drops out, so a sunrise is usually cleaner, pinker and sharper at the edge.

Two more differences are in you, not the sky. At sunset your eyes have spent the day in bright light; at dawn they come out of darkness and are more sensitive, so the same colours look stronger. And far more people watch sunsets than sunrises, which is where the reputation comes from. Over the sea or in the desert, where the air does not change through the day, you cannot tell the photographs apart.

The same law elsewhere

WhereWhat you see
Blue eyesno blue pigment, just tiny structures in the iris scattering short waves
Skim milk, wood smoke, a blue jaythe same, particles too small to see
Distant mountainsgo blue and faint: miles of air between you and them
Marsbackwards: dust is big enough to scatter red, so the day sky is butterscotch and the sunset is blue
The Moonno air, so the sky is black at noon