Skip to main content
GARGLOO

SCIENCE

Why Is the Sky Blue? (And Why Sunsets Are Red)

Sunlight is scattered by air molecules, and blue scatters far more than red. That is Rayleigh scattering — and it explains red sunsets too.

Last updated: 2026-11-15 · 6 min read

The short answer

The sky is blue because of the air itself. Sunlight looks white, but it is really a mixture of every colour of the rainbow. When that light enters the atmosphere, it collides with the tiny molecules of nitrogen and oxygen that make up the air — and those collisions scatter the short blue wavelengths far more strongly than the long red ones. The scattered blue light reaches your eyes from every direction overhead, so the whole sky looks blue.

The process is called Rayleigh scattering, after the British physicist Lord Rayleigh, who worked out the mathematics of it in the 1870s. It is the same process, running in reverse, that makes sunsets red: at sunset the light has travelled through far more air, the blue has been scattered away long before it reaches you, and only the reds and oranges are left.

It is not the ocean. The sea looks blue partly because it reflects the sky and partly because water absorbs red light — but the sky was blue long before anyone looked at the sea, and it is just as blue over a desert.

What sunlight really is

Isaac Newton showed more than three hundred years ago that white sunlight can be split into a spectrum with a prism: red, orange, yellow, green, blue, indigo and violet. The colours differ only in their wavelength — the distance between one wave crest and the next. Red light has a wavelength of about 700 nanometres, blue light about 450 nanometres, and violet about 400 nanometres. A nanometre is a billionth of a metre, so all of these waves are far too small to see individually — but their size relative to the air molecules is what decides how they scatter.

The molecules of nitrogen and oxygen in the air are much smaller than the wavelength of visible light. When sunlight meets them, the light's electric field makes the molecules vibrate, and they re-radiate the light in all directions. That re-radiation is the scattering — and it is not equal for all colours.

Lord Rayleigh showed that the amount of light scattered is inversely proportional to the fourth power of its wavelength. In plain words: the shorter the wavelength, the more the light is scattered, and the difference grows very fast. That single rule, intensity proportional to 1 divided by the wavelength to the fourth power, is the whole explanation of the blue sky.

The numbers: why blue beats red

Take blue light at about 450 nanometres and red light at about 700 nanometres. Rayleigh's rule says the ratio of their scattering is the ratio of the wavelengths, raised to the fourth power: (700 / 450)⁴, which works out to roughly 5 to 6. So blue light is scattered about five to six times more strongly than red light. Compare the extremes — violet at 400 nanometres against red at 700 — and the ratio climbs to about ten, which is the figure you will see in some textbooks.

That is why the sky looks blue rather than white. Every colour is scattered a little, but the blue is scattered so much more that it dominates what reaches your eyes. Look in any direction away from the sun and you are seeing sunlight that has been bounced off air molecules on its way to you — and most of that bounced light is blue.

Clouds are the exception that proves the rule. A cloud is made of water droplets that are roughly the same size as the wavelength of light, far larger than air molecules. They scatter all colours equally — a different process, called Mie scattering — which is why clouds look white, and why a dusty or hazy sky looks pale and washed out instead of deep blue.

Why is the sky not violet?

If shorter wavelengths scatter more, violet should scatter even more than blue — and it does. So why is the sky not violet? There are two reasons, and both are about what actually reaches your eyes.

First, sunlight simply contains less violet to begin with, and some of what little there is gets absorbed by the upper atmosphere before it ever reaches the lower air where most of the scattering you see happens. The violet that does get scattered is spread very high up, where it is hard to see.

Second, your eyes are less sensitive to violet than to blue. Human colour vision comes from three types of cone cells in the retina, responding most strongly to red, green and blue light. The scattered violet light stimulates the blue cones, and the red cones a little as well, and your visual system blends the result into the pale blue you actually perceive. The sky is not violet because your eyes, as much as the atmosphere, decide what colour you see.

Why sunsets are red

At noon the sun is overhead and its light takes the shortest possible path through the atmosphere to reach you. At sunset the sun is low, and its light has to travel through far more air — many times more — before it reaches your eyes. Along that long journey, the blue light is scattered away, again and again, until almost none of it is left travelling in your direction.

What survives the journey is the light that scatters least: the long red, orange and yellow wavelengths. That is why the sun itself looks red at sunset, and why the sky around it glows orange and pink. On a clear day the sunset tends to look yellow-orange; when the air holds more dust, smoke or pollution, the extra particles scatter the remaining light further, and the sunset turns a deeper red.

The same physics explains two things you may have noticed. From an aeroplane at cruising altitude, the sky overhead looks a deeper, darker blue — there is less air above you, and the violet and indigo scattered high up become visible. And on Mars, the sky looks red or pinkish-tan during the day, because the thin Martian atmosphere is full of fine red dust that scatters light in the opposite way to Earth's clean air.

Frequently asked questions

Is the sky blue because of the ocean?

No. The sky is blue because air molecules scatter blue sunlight more than red — Rayleigh scattering. The ocean looks blue for a different reason: water absorbs red light more than blue, and it reflects the sky. The sky is just as blue over a desert, far from any sea.

Why is the sky paler near the horizon?

Near the horizon you are looking through much more air than when you look straight up, so more of the blue light has been scattered away before it reaches you, and light scattered by dust and haze — which is whitish — mixes in. That is why the sky is deepest blue directly overhead and fades to pale blue-white at the edges.

Why are some sunsets more red than others?

It depends on what is in the air. Clean air gives a yellow-orange sunset. Dust, smoke, pollution and salt particles scatter the light further and push the colours towards deep red and pink. That is why sunsets are often most dramatic after a volcanic eruption or a dusty day.

Why is the sky on Mars red instead of blue?

Mars has a very thin atmosphere full of fine, red, iron-rich dust. That dust scatters light differently from Earth's clean air, so the Martian daytime sky looks pinkish-tan — and it can turn blue around the sun at sunset, the reverse of Earth.

Sources

Why Is the Sky Blue? (And Why Sunsets Are Red) | GARGLOO