Science & Education · Explainer
Why is the sky blue, and why do sunsets turn red?
The same process, Rayleigh scattering, paints the midday sky blue and the sunset orange. Here's how it works, and why the sky isn't violet.

Short answerThe sky is blue because air molecules scatter short blue wavelengths of sunlight far more than long red ones, a process called Rayleigh scattering. At sunset, light crosses much more air, so most of the blue is scattered away and reds and oranges remain.
Key takeaways
- Sunlight contains all colours. Air molecules scatter short (blue) wavelengths far more strongly than long (red) ones.
- Scattering depends on wavelength to the fourth power, so blue light is scattered roughly five to six times more than red.
- The sky isn't violet because sunlight contains less violet and our eyes are less sensitive to it.
- At sunset, light crosses much more atmosphere, so most blue is scattered away before it reaches you.
- Clouds look white because their droplets are large enough to scatter all colours about equally.
Look up on a clear day and the whole sky glows blue, though the Sun itself looks white or pale yellow. A few hours later the same sky can blaze orange and red. Both effects come from one process: light bouncing off the molecules of the air.
Sunlight is every colour at once
White sunlight is a mixture of all visible colours, from violet and blue (short wavelengths, about 400–450 nanometres) to orange and red (long wavelengths, about 600–700 nm). You can see the mixture split apart in a rainbow or through a prism.
When that light enters the atmosphere, it meets enormous numbers of nitrogen and oxygen molecules. They are far smaller than the wavelength of visible light, and when light hits particles that small, some of it is redirected in all directions. This is called Rayleigh scattering, after the physicist Lord Rayleigh, who described it in the 1870s.
Why blue wins
The key detail is that Rayleigh scattering is extremely sensitive to wavelength. Its strength goes up with the inverse of the wavelength to the fourth power. Halve the wavelength and the scattering increases sixteen-fold.
Comparing blue light at 450 nm with red at 700 nm:
(700 ÷ 450)⁴ ≈ 5.9
So blue light is scattered roughly five to six times more than red. As sunlight passes through the air, blue is redirected again and again across the whole sky, while most of the red and yellow light carries straight on. Look anywhere away from the Sun and what reaches your eye is that scattered blue light.
Then why isn’t the sky violet?
Violet light has an even shorter wavelength than blue, so it is scattered even more. Three things keep the sky looking blue rather than violet:
- There is less violet in sunlight to begin with. The Sun’s output peaks in the blue-green, not the violet.
- Some violet is absorbed high in the atmosphere.
- Our eyes are less sensitive to violet. The colour-sensing cones in our eyes respond strongly to blue, so the brain reads the mixture of scattered light as sky blue.
Why sunsets are red and orange
At midday, sunlight comes from high overhead (how high depends on the season) and crosses a relatively thin layer of atmosphere. Near sunrise and sunset it arrives at a low angle and travels through many times more air before reaching you.
Along that long path, blue light is scattered out of the beam long before it gets to your eyes. What survives is the light that scatters least: yellow, orange and red. That light colours the Sun itself and the clouds it shines on. Dust, smoke and other fine particles can scatter and absorb light further, which is why sunsets after wildfires or volcanic eruptions can be especially vivid.
Why are clouds white?
Cloud droplets are much larger than air molecules, about the same size as or larger than the wavelength of light. Particles that large scatter all colours roughly equally (a process called Mie scattering), so the light they send back looks white. When clouds are thick enough to block most light from above, their undersides look grey.
Quick misconceptions, corrected
| Common belief | What actually happens |
|---|---|
| The sky reflects the ocean. | No. The sky is blue over deserts too; the ocean often looks blue partly because it reflects the sky. |
| Blue light is “bent” by the air. | It is scattered in all directions by molecules, not bent like light through a lens. |
| Dust makes the sky blue. | Clean air is bluest. Dust and haze tend to make the sky paler or whiter. |
Why the sky is paler near the horizon
Look straight up on a clear day and the sky is a deep blue; look towards the horizon and it fades to a pale, almost white blue. Light reaching you from near the horizon has travelled through far more air. Along that long path it is scattered many times over, and the repeated scattering mixes the colours back together, so the result looks whiter. Haze and fine particles near the ground add to the effect.
Skies on other worlds
The same physics plays out very differently elsewhere, which is a good test of the explanation.
- The Moon has almost no atmosphere, so there is nothing to scatter sunlight. Even in full daylight its sky is black and stars would be visible if your eyes were shielded from the glare.
- Mars has a thin atmosphere filled with fine dust. By day the sky looks butterscotch or pinkish, but NASA’s Curiosity rover has photographed blue sunsets. The dust particles are a size that sends blue light onward close to the direction of the Sun, so a blue glow surrounds the setting Sun while the rest of the sky stays yellowish.
- High on Earth, the sky gets darker. Mountaineers and high-altitude pilots see a deeper, darker blue, because there is less air above them to scatter light. From the edge of space, the sky is black.
A hidden property: polarised skylight
Scattered skylight is partly polarised, meaning its light waves vibrate mostly in one direction. The effect is strongest in the part of the sky at right angles to the Sun. You can see it with polarising sunglasses or a camera’s polarising filter: as you turn them, that part of the sky grows noticeably darker, which is why photographers use these filters to make blue skies richer. Some animals, including honeybees, can detect this pattern and use it to find their way.
Why distant mountains look blue
The same scattering explains the blue haze on far-off hills. Between you and a distant mountain lies a long stretch of air, and the air scatters blue light towards your eyes while letting the mountain’s own colours fade. The further away the mountain, the bluer and paler it looks. Painters call the effect aerial perspective, and use it to give landscapes depth. Hazy ranges such as the Blue Ridge Mountains in the United States are named for the look.
The blue hour and the green flash
After sunset, and before sunrise, the sky can go a deep, rich blue, a time photographers call the blue hour. The Sun is below the horizon, and the light reaching you is scattered sunlight from the upper atmosphere. Very occasionally, when the horizon is clear, the last sliver of the Sun appears green for a second or two. This green flash is caused by the atmosphere bending and separating the light, and it is easiest to see over the sea.
Practical examples: see scattering for yourself
You can see Rayleigh scattering at home.
- Glass of water and milk: Add a few drops of milk to water and shine a torch through it. Seen from the side, it looks bluish. Through the glass, the light looks orange.
- Sunset watching: Notice how the colours deepen as the Sun gets lower and its light crosses more air.
- Polarised sunglasses: Tilt your head while looking at the sky at right angles to the Sun and watch it darken and brighten.
Why clouds are white
If small air molecules scatter blue light more, why are clouds white? Clouds are made of water droplets and ice crystals that are much larger than air molecules. Particles of that size scatter all colours of visible light roughly equally, a process often described as Mie scattering. When all colours are scattered together, the result looks white. Thick clouds look grey or dark underneath because less light passes all the way through them. The same idea explains why fog and mist look white, and why a sky full of haze or pollution can look pale rather than deep blue.
Why the sky is darker blue at high altitude
Pilots and mountaineers notice that the sky becomes a deeper, darker blue as they climb. There is less air above them, so less light is scattered towards their eyes. At the height of a cruising airliner, the sky overhead is noticeably darker. At the edge of space, there is too little air to scatter much light at all, and the sky looks black even in daylight, which is why astronauts see stars and the Sun against a black background.
The bottom line
The blue sky and the red sunset are two views of the same physics. Air molecules scatter short wavelengths far more than long ones. At midday you see the scattered blue all around you; at sunset you see what is left after the blue has been scattered away.
See also: How photosynthesis works, Types of clouds.
Sources and further reading
These official and reference pages support the key facts in this guide and are good places to read more. All Informations checked every link on 25 November 2026.
Frequently asked questions
Why is the night sky black and not blue?
Because there is no sunlight to scatter. The blue comes from sunlight bouncing off air molecules, so once the Sun is well below the horizon, the sky goes dark.
Is the sky the same blue everywhere on Earth?
No. It looks deepest in dry, clean air, especially at high altitude. Humid or hazy air, dust and pollution make the sky paler or whiter.






