The short answer
Sunlight is white — a mix of all visible wavelengths. As it passes through the atmosphere, it hits gas molecules. Those molecules scatter shorter wavelengths (blue, violet) much more strongly than longer ones (red, yellow). When you look at any patch of sky away from the sun, you're seeing scattered light — and the scattered light is dominated by short wavelengths. Your eye perceives that mix as blue.
This is Rayleigh scattering, after Lord Rayleigh who derived the math in 1871. The key formula: scattering intensity scales as 1/λ⁴.
Let that sink in. The fourth power. Blue light (450 nm) scatters about 5 times more than red light (700 nm) for the same molecule, because (700/450)⁴ ≈ 5.8. That's a big factor.
Why scattering depends on wavelength
A photon traveling through a gas occasionally bumps into a molecule. The molecule's electron cloud oscillates briefly in response to the photon's electric field, then re-emits a photon in a random direction. This is scattering.
Whether the molecule responds strongly depends on the photon's wavelength relative to the molecule's size. For gas molecules (about 0.1 nm) and visible light (400–700 nm), the wavelength is much larger than the molecule. In this regime — the Rayleigh regime — the scattering cross-section scales as 1/λ⁴.
Heuristically: a short-wavelength wave oscillates more times while passing a molecule, giving the electrons more opportunities to respond. Long-wavelength waves slip past with less interaction.
The 1/λ⁴ law was derived by Rayleigh from electromagnetism in 1871, decades before quantum mechanics. It's been confirmed countless times since.
Why blue rather than violet
Honestly: violet IS scattered more than blue. The sky should look violet, not blue.
Two reasons it doesn't:
The sun emits more blue than violet. The sun's spectrum peaks in the green-yellow range; intensity drops off faster at shorter wavelengths than the 1/λ⁴ scattering compensates for. Blue is closer to the peak.
Your eyes are more sensitive to blue than violet. The blue-sensing cones in the retina respond strongly. Violet-sensing receptors are much weaker (we don't really have dedicated violet cones; we perceive violet as a mix). So even if the actual scattered light has more violet than blue per area, your perception of it is blue-dominated.
Combine both effects, and the sky reads as blue to a human observer. A bee or a bird, with different colour vision, sees the sky differently.
Why the sky is paler near the horizon
Look straight up: deep blue, especially in clean dry air. Look toward the horizon: paler, more washed-out, often somewhat yellowish at the very bottom.
The reason is path length. Looking straight up, light from the sun reaching your eye has traveled through one "thickness" of atmosphere. Looking toward the horizon, it's traveled through tens of times more.
In a long path, even longer wavelengths eventually scatter too. By the time light has crossed the long horizontal column, much more of the original light has been scattered out, and the light reaching you has bounced around several times, mixing colours more. The result is paler — and as the sun gets close to the horizon, the path gets so long that even red is scattering enough to dominate, which is what produces sunsets (see why sunsets are red).
Why outer space is black
Above the atmosphere, there's no air to do the scattering. Sunlight passes through without being deflected to your eye unless something happens to be in the light's path. So when astronauts look "up" from orbit, they see the sun (intensely bright) and stars, but the background — where the atmosphere would have scattered sunlight toward them — is just black.
This is why all photos from the Moon show a black sky during day. There's no atmosphere on the Moon to scatter the sunlight into the visible camera-facing background.
If Earth had no atmosphere, the sky would be black even during day. You'd see the sun and the stars simultaneously. The blue sky is a direct consequence of the atmosphere existing.
What about clouds, then?
Cloud droplets are much bigger than gas molecules — typically 10–50 microns, which is far bigger than visible-light wavelengths. In this regime — called Mie scattering — the wavelength dependence vanishes. All visible wavelengths scatter roughly equally.
That's why clouds are white. The scattered light contains all the colors of the original sunlight in similar proportions, which we perceive as white.
For thick clouds, multiple scattering at every droplet means light bounces many times before escaping. The light that escapes downward is still roughly white but dimmer — which is why thick overcast looks grey.
What about sunset and sunrise?
Same Rayleigh scattering, but with much longer atmospheric path. As the sun gets near the horizon, sunlight has to traverse a column of air maybe 30 times longer than at noon. The blues and greens are mostly scattered out long before the light reaches your eye, so what arrives is dominated by the long-wavelength reds and oranges. That's the topic of the sunset article.
Want to keep building this kind of physics intuition? NerdSip can generate a personalized 5-minute course on light scattering with quizzes.
The history bit
The blue sky was a long-standing puzzle. Early ideas:
- Aristotle: the sky is blue because we're looking through a blue layer of something.
- Leonardo da Vinci: closer — "if smoky air is illuminated by the sun's rays, it will appear blue."
- Goethe: argued that the sky was blue because of how light interacts with the atmosphere generally, but didn't have the mechanism.
The real explanation came in stages:
- 1869: John Tyndall demonstrated experimentally that small particles preferentially scatter blue light (the "Tyndall effect").
- 1871: Rayleigh derived the 1/λ⁴ scattering law from first principles using classical electromagnetism.
- 1899: Rayleigh refined his model and confirmed it applies to scattering by gas molecules, not just suspended particles.
Two centuries of speculation, resolved with one equation. The Rayleigh formula is one of physics' cleanest derivations of an everyday phenomenon.
The takeaway
The sky is blue because air molecules scatter short-wavelength light much more strongly than long-wavelength light, by a factor of (long/short)⁴. When you look at any patch of sky away from the sun, you're seeing this scattered short-wavelength light, perceived by your eye as blue. The same physics produces red sunsets (long path scatters away the short wavelengths first), white clouds (droplets are too big for Rayleigh, scatter all wavelengths equally), and a black sky in space (no atmosphere to scatter). One equation, 1/λ⁴, explains all of these.