Why is the sky blue and sunsets red?
By Daniel Ruiz · Published 14 November 2026
Sunlight is white, yet the sky is not. And in the evening that same sky turns orange and red. One single effect explains both colours, and you can calculate it with a fourth power. On Mars, meanwhile, everything comes out the other way round.
White light and its colours
Sunlight looks white, but it is a mix of every colour, each with its own wavelength: violet and blue are the shortest, red the longest. To see where each colour sits in the spectrum, you can browse it in the interactive electromagnetic spectrum.
For the sky to look blue, something has to separate those colours and send the blue in every direction. That something is the air itself.
Rayleigh and the 1/λ⁴ law
In 1871 Lord Rayleigh published "On the light from the sky, its polarization and colour" in the Philosophical Magazine. He found that light scattered by particles much smaller than its wavelength varies as the inverse fourth power of that wavelength.
In practice, air molecules scatter short wavelengths (blue) far more strongly than long ones (red). Scattering means redirecting light in all directions: when you look at a patch of sky away from the Sun, what reaches you is blue light that bounced off molecules and changed course.
How much more blue scatters: the calculation
Compare a 450 nm blue with a 700 nm red. The scattering ratio is (700/450)⁴. First, 700/450 = 1.5556. Squared that gives 2.4198, and squared again, 5.855.
So 450 nm blue scatters about 5.9 times more than 700 nm red. With a 400 nm violet the gap is even bigger: (700/400)⁴ = 1.75⁴ = 9.38 times more than red, and (450/400)⁴ = 1.60 times more than 450 nm blue.
Why is it not violet?
That calculation raises a problem: if violet scatters even more than blue, why isn't the sky violet? According to the US National Weather Service (NOAA), there are three reasons: the Sun emits less violet than blue, some violet is absorbed in the upper atmosphere, and our eyes are less sensitive to violet.
According to West Texas A&M University, what reaches our eyes is a mix of scattered light with plenty of violet and blue and some green, and the brain perceives it as sky blue. The violet does not vanish; it just doesn't win.
Red sunsets and white clouds
At sunset the Sun is low on the horizon and its light crosses far more atmosphere on the way to us, NASA explains. Along that path the blue is scattered out of the beam, and what survives is mostly reds and yellows. The same mechanism that makes the sky blue turns the Sun red.
The most vivid sunsets happen with fairly clean air in the lower layers: according to NOAA's Storm Prediction Center, plenty of aerosols in the lower troposphere tend to dull the colours rather than intensify them. So it is not true that pollution always makes the best sunsets.
Clouds, on the other hand, are white. Their droplets are similar to or larger than the wavelength of light and scatter it almost equally across all colours, a regime called Mie scattering. When every colour comes out in the same proportion, the result is white (or grey, if the cloud is thick and lets little light through).
On Mars it is the other way round: ochre sky, blue sunset
If you have read Project Hail Mary, you know other skies are worth a look. Take Mars: the daytime sky runs from yellow to orange because dust absorbs blue light and scatters yellow and red across the sky, according to NASA.
And the sunset flips. Curiosity images from 15 April 2015 showed a bluish twilight: very fine dust is just the right size for blue light to pass through the atmosphere somewhat more effectively than longer wavelengths. According to Mark Lemmon, that blue near the Sun is not caused by water-ice clouds but by the dust itself.
The Martian twilight glow can stay visible, increasingly faint, for up to two hours before sunrise or after sunset. And Perseverance photographed a sunset with Mastcam-Z on sol 257 (9 November 2021) that was more muted than usual, because there was less dust in the atmosphere.
Frequently asked questions
If violet scatters more, why isn't the sky violet?
Because the Sun emits less violet than blue, some violet is absorbed in the upper atmosphere and our eyes are less sensitive to it. The mix that reaches our eyes is perceived as sky blue.
Why are clouds white or grey rather than blue?
Their droplets are similar to or larger than the wavelength of light and scatter it almost equally across all colours (Mie scattering), so the result is white.
Why is the sunset blue on Mars?
According to NASA, very fine dust is just the right size for blue light to pass through the atmosphere somewhat better than longer wavelengths. The blue near the Sun comes from the dust, not from ice clouds.
More articles
- Does GPS need Einstein's relativity?
- How do astronomers know what an exoplanet's atmosphere is made of?
- How fast can bacteria evolve?
- How long does it take to get to Mars?