TL;DR: The sky is blue because molecules of nitrogen and oxygen in the air scatter short wavelengths of sunlight much more strongly than long ones, a process called Rayleigh scattering. Violet light is scattered even more than blue, but the sky still looks blue because sunlight contains less violet, some of it is absorbed high in the atmosphere, and our eyes are more sensitive to blue. The same physics explains red sunsets, white clouds and the strange colors of the sky on Mars.
Sunlight is a mix of colors
Sunlight looks white, but it is really a blend of every color of the visible spectrum, from violet and blue at the short-wavelength end to orange and red at the long-wavelength end. You can see that mix pulled apart in a rainbow or through a glass prism. Blue light has a wavelength of roughly 450 nanometers, while red light is closer to 700 nanometers.
When that light enters Earth’s atmosphere, it runs into gas molecules, mostly nitrogen and oxygen. These molecules are far smaller than the wavelength of visible light, and that size difference is the key to the whole story.
What Rayleigh scattering actually means
When light hits a particle much smaller than its own wavelength, the particle absorbs a tiny bit of energy and re-emits it in many directions. This is scattering. The British physicist Lord Rayleigh worked out the math in the 1870s and showed that the amount of scattering depends very strongly on wavelength: it scales with one over the wavelength to the fourth power. Britannica’s overview of Rayleigh scattering covers the details.
That “fourth power” is a big deal. Because red light’s wavelength is about one and a half times longer than blue light’s, blue light ends up being scattered several times more strongly than red. As sunlight passes through the air, blue light gets bounced around the whole sky, so whichever direction you look, some of that scattered blue light is heading toward your eyes. Red and yellow light mostly travel straight through.
NASA’s Space Place explains it in a sentence: blue light is scattered more than the other colors because it travels as shorter, smaller waves.

So why isn’t the sky violet?
This is the question that trips most people up. If shorter wavelengths scatter more, violet should win. Three things work against it:
- The sun emits less violet than blue. Sunlight’s output is not evenly spread across the spectrum.
- Some violet is absorbed high up. The upper atmosphere, including the ozone layer, absorbs a portion of the shortest wavelengths before they reach the lower air.
- Our eyes favor blue. The cone cells in the human eye respond more strongly to blue than to violet. The brain combines the scattered mix of violet, blue and a little green into what we perceive as sky blue.
Why sunsets turn orange and red
At noon, sunlight takes a fairly short path through the atmosphere to reach you. At sunrise and sunset, the sun is low on the horizon, so its light passes through much more air. Over that long path, most of the blue gets scattered out of the beam before it arrives. What is left is the longer-wavelength light: yellow, orange and red.
Dust, smoke, sea salt and volcanic particles can intensify these colors. That is why sunsets after a large volcanic eruption or during wildfire season can be unusually vivid.
Why clouds are white (and sometimes gray)
Cloud droplets are much bigger than gas molecules, about the same size as or larger than the wavelength of visible light. Particles that size scatter all colors roughly equally, a process often described as Mie scattering. Equal scattering of all colors adds up to white. When a cloud gets thick enough, less light makes it through to the bottom, so its base looks gray or even dark before a storm.
A quick reference
| What you see | Main reason |
|---|---|
| Blue daytime sky | Rayleigh scattering of short wavelengths by air molecules |
| Paler sky near the horizon | Light passes through more air and is scattered multiple times, mixing colors toward white |
| Orange and red sunsets | Long path through the air removes most blue light before it reaches you |
| White clouds | Larger droplets scatter all colors about equally |
| Deep blue sky at high altitude | Less air above you, so less scattered light and a darker sky |
Is the ocean blue because it reflects the sky?
Partly, but that is not the main reason. Water itself absorbs red light slightly more than blue. In a glass, the effect is invisible, but over many meters of depth it adds up, leaving the water with a blue tint even when the sky is gray. Reflected sky light, algae and sediment then shift the color toward green, turquoise or brown depending on location.
What color is the sky on other planets?
The answer depends on what is in the atmosphere. Mars has a thin atmosphere filled with fine reddish dust. During the day, that dust gives the Martian sky a butterscotch or pinkish tone. At sunset, the dust scatters blue light forward toward the observer, so Martian sunsets look bluish, the reverse of what we see on Earth. NASA rovers have photographed these blue sunsets.
The Moon has almost no atmosphere at all, so there is nothing to scatter sunlight. That is why photos from the lunar surface show a black sky even in full daylight.
Common myths about the blue sky
- “The sky reflects the ocean.” No. The sky is blue over deserts and in the middle of continents.
- “Blue light is absorbed by the air.” Not quite. It is scattered, redirected in new directions, rather than absorbed.
- “Pollution makes the sky blue.” The opposite is closer to true. Haze and larger particles tend to wash the sky out toward white or gray.
The bottom line
The color of the sky is a direct, everyday view of physics at work. Tiny air molecules scatter blue light across the sky, the long path at dusk strips blue away to leave red, and bigger cloud droplets scatter everything equally to make white. Next time someone asks why the sky is blue, you can answer in one phrase: Rayleigh scattering, with a little help from your eyes.



