Look up on a clear day and the sky is a deep, even blue from horizon to horizon. It is such a familiar sight that the obvious question rarely gets asked: why blue, and not green, or white, or the black of space behind it? The answer is a tidy piece of physics about how light interacts with the air.

The short answer

The sky is blue because molecules in the air scatter the blue part of sunlight in every direction far more strongly than they scatter the red part. When you look at the sky away from the Sun, the light reaching your eyes is mostly this scattered blue light. The effect is called Rayleigh scattering, after the physicist Lord Rayleigh, who described it in the 1870s.

Sunlight is a mix of colors

Sunlight looks white, but it is really all the colors of the rainbow mixed together. A prism splits that white light into a spectrum running from red through orange, yellow, green, and blue to violet. Each color corresponds to a different wavelength of light: red light has the longest waves, and blue and violet the shortest.

This matters because the different wavelengths do not all behave the same way when they hit the atmosphere.

How scattering picks out the blue

The air is made mostly of nitrogen and oxygen molecules. These are tiny, far smaller than the wavelength of visible light. When light waves pass molecules this small, the molecules absorb a little of the light and re-radiate it in all directions. That redirection is scattering.

The key fact is that scattering is strongly wavelength-dependent. Shorter wavelengths are scattered much more than longer ones. In fact, the strength of Rayleigh scattering rises sharply as wavelength shrinks, so blue light is scattered several times more than red light.

The result:

  • Red, orange, and yellow light mostly travels straight through the air toward your eyes from the direction of the Sun.
  • Blue light gets bounced around the sky, bent off in countless directions by molecule after molecule.

So when you look at any patch of sky away from the Sun, you are seeing blue light that has been scattered toward you from the air itself.

Then why isn't the sky violet?

Here is a natural follow-up: violet has an even shorter wavelength than blue, so shouldn't the sky be violet? Physically, violet is scattered even more strongly. A few things tip the balance toward blue:

  • The Sun emits less violet light than blue to begin with.
  • The upper atmosphere absorbs some incoming violet.
  • The human eye contains color receptors that are more sensitive to blue than to violet.

Add these together and the sky we perceive is blue rather than purple.

The color of the sky is as much a fact about our eyes and our Sun as it is about the air.

Why sunsets turn red

The same physics explains the warm colors of sunrise and sunset. When the Sun is low on the horizon, its light reaches you at a shallow angle and must travel through a far greater thickness of atmosphere than it does at noon.

Over that longer path, almost all the blue light gets scattered away before it can reach your eyes. What survives the journey is the light that scatters least: the reds and oranges. That is why the Sun and the sky around it glow red as the day ends. Dust, smoke, or pollution in the air can deepen the effect, scattering even more of the remaining light and producing especially vivid sunsets.

Where this shows up elsewhere

Rayleigh scattering is not just a sky phenomenon. It explains why distant mountains can take on a bluish haze, and why the same scattering logic predicts that a planet with a thinner or different atmosphere would have a differently colored sky. On the Moon, which has essentially no atmosphere, there is nothing to scatter sunlight, so the sky stays black even in daytime.

The bottom line

The sky is blue because air molecules scatter short, blue wavelengths of sunlight far more than long, red ones, filling the daytime sky with redirected blue light. The same effect, seen through a longer slice of atmosphere, drains the blue from low-angle sunlight and paints sunrises and sunsets in red and orange. It is one of the clearest examples of how a single, simple physical rule shapes something we see every single day.