Interactive explainer

Why is the sky blue, and why are sunsets red?

Sunlight holds every color. The molecules of the air scatter short waves, blue and violet, far more than long red ones, so blue light reaches you from every part of the sky.
NASA Space Place: Why Is the Sky Blue? Air molecules scatter blue light more than other colors; the sky fades to pale blue or white near the horizon because that light has crossed more air; particles also scatter blue light out of a low Sun's beam; on Mars the day sky is orange and the sunset blue. Source · All sources
Lord Rayleigh (1899), On the transmission of light through an atmosphere containing small particles in suspension, and on the origin of the blue of the sky, Philosophical Magazine 47, 375: even without foreign particles, the molecules of air would make a blue sky. Source · All sources
When the Sun is low its light crosses up to about 38 times as much air as from overhead. Nearly all its blue is scattered away on the trip, and the orange and red that are left color the Sun, the clouds and the sky around it.
Kasten and Young (1989), Revised optical air mass tables and approximation formula, Applied Optics 28, 4735: sunlight from the horizon crosses about 38 times the air it crosses from overhead. Source · All sources
NASA Space Place: Why Is the Sky Blue? Air molecules scatter blue light more than other colors; the sky fades to pale blue or white near the horizon because that light has crossed more air; particles also scatter blue light out of a low Sun's beam; on Mars the day sky is orange and the sunset blue. Source · All sources

Move the Sun and watch the whole sky

The whole sky around you, from the horizon to straight overhead, worked out color by color from how air, haze and ozone treat sunlight. Lower the Sun, or play a sunset.
Nishita, Sirai, Tadamura and Nakamae (1993), Display of the earth taking into account atmospheric scattering, SIGGRAPH 93, 175. Sunlight scattered along each line of sight in a spherical atmosphere, as the model does. Source · All sources

The interactive figures need JavaScript. Everything they show is explained in the sections below.

All the way around you: the Sun's side on the left, the opposite side on the right, the horizon at the bottom and straight overhead at the top. Colors are exposed like a camera's, so a dim twilight still shows, but only up to a point.

The long way through

Earth and its air from the side. A low Sun's light skims through far more air to reach you, losing blue on the way. Once the Sun has set, it still lights the air high above you.
How much of each color gets through: the solid line for the Sun where you put it, the dashed one for the Sun straight overhead. Violet and blue go first; red holds on longest.
Hansen and Travis (1974), Light scattering in planetary atmospheres, Space Science Reviews 16, 527. The Rayleigh optical depth of the atmosphere at each wavelength, used by the model. Source · All sources
The light from the sky overhead (blue line, its peak marked), sunlight above the air (dashed) and how sensitive the eye is to each color (green). The sky's light peaks in violet or deep blue, where the eye sees poorly, and still holds every other color, so it looks a pale sky blue, not violet.
Smith (2005), Human color vision and the unsaturated blue color of the daytime sky, American Journal of Physics 73, 590: skylight holds about as much violet as blue, and our cones see the mix as a pale blue. Source · All sources

How it works

Sunlight holds every color

White sunlight is a mix of all the colors of the rainbow, each a different wavelength: violet and blue are short waves, red long ones.
NOAA NESDIS: Why Is the Sky Blue? Scattered violet and blue light dominate the sky; some violet is absorbed high in the atmosphere, and our eyes are less sensitive to violet than to blue. Source · All sources
The Sun shines much like a glowing body at 5,772 K.
Prša et al. (2016), Nominal values for selected solar and planetary quantities: IAU 2015 Resolution B3, Astronomical Journal 152, 41. The Sun's nominal effective temperature, 5,772 K: the model's sunlight above the air. Source · All sources

Small things scatter short waves

In 1871 Lord Rayleigh showed that particles much smaller than a wavelength send light off sideways, and the shorter the wave the more they scatter: blue light at 450 nm is scattered about six times as much as red at 700 nm.
Strutt (Lord Rayleigh) (1871), On the light from the sky, its polarization and colour, Philosophical Magazine 41, 107 and 274: particles small compared with the wavelength scatter blue light sideways, more strongly the shorter the wave. Source · All sources
Hansen and Travis (1974), Light scattering in planetary atmospheres, Space Science Reviews 16, 527. The Rayleigh optical depth of the atmosphere at each wavelength, used by the model. Source · All sources
In 1899 he showed the molecules of the air are enough on their own: even perfectly clean air makes a blue sky.
Lord Rayleigh (1899), On the transmission of light through an atmosphere containing small particles in suspension, and on the origin of the blue of the sky, Philosophical Magazine 47, 375: even without foreign particles, the molecules of air would make a blue sky. Source · All sources

Why not violet?

Violet is scattered even more than blue, but sunlight holds less of it, some is absorbed high in the atmosphere, and our eyes are less sensitive to it.
NOAA NESDIS: Why Is the Sky Blue? Scattered violet and blue light dominate the sky; some violet is absorbed high in the atmosphere, and our eyes are less sensitive to violet than to blue. Source · All sources
Scientific American: Why is the sky blue? Anthony Del Genio of NASA's Goddard Institute for Space Studies explains: less violet in sunlight and eyes less sensitive to it; small particles of sulfate, carbon or dust can make sunsets spectacular; cloud droplets scatter every color, so clouds look white. Source · All sources
The light from the sky is roughly equal parts violet and blue, with some of every other color; our cones see that mix as a pale, unsaturated blue.
Smith (2005), Human color vision and the unsaturated blue color of the daytime sky, American Journal of Physics 73, 590: skylight holds about as much violet as blue, and our cones see the mix as a pale blue. Source · All sources

Paler at the horizon

Look low and you look through far more air. The blue scattered toward you along that line is scattered away again on its way, while light of every color piles up, so the sky fades to pale blue or white near the horizon.
NASA Space Place: Why Is the Sky Blue? Air molecules scatter blue light more than other colors; the sky fades to pale blue or white near the horizon because that light has crossed more air; particles also scatter blue light out of a low Sun's beam; on Mars the day sky is orange and the sunset blue. Source · All sources

Red at sunrise and sunset

From the horizon, sunlight crosses about 38 times the air it crosses from straight overhead.
Kasten and Young (1989), Revised optical air mass tables and approximation formula, Applied Optics 28, 4735: sunlight from the horizon crosses about 38 times the air it crosses from overhead. Source · All sources
By the time it reaches you, the air has scattered nearly all the blue and much of the green out of the beam, so the Sun and everything it lights look orange and red.
NASA Space Place: Why Is the Sky Blue? Air molecules scatter blue light more than other colors; the sky fades to pale blue or white near the horizon because that light has crossed more air; particles also scatter blue light out of a low Sun's beam; on Mars the day sky is orange and the sunset blue. Source · All sources
Watch the readouts above: with the Sun a few degrees up, only a few percent of its blue gets through, and many times more of its red.
Hansen and Travis (1974), Light scattering in planetary atmospheres, Space Science Reviews 16, 527. The Rayleigh optical depth of the atmosphere at each wavelength, used by the model. Source · All sources

Haze, smoke and clouds

Bigger particles scatter colors more evenly, and more of their light goes forward.
Ångström (1929), On the atmospheric transmission of sun radiation and on dust in the air, Geografiska Annaler 11, 156. How the haze's optical depth changes with wavelength in the model. Source · All sources
Henyey and Greenstein (1941), Diffuse radiation in the galaxy, Astrophysical Journal 93, 70. The phase function the model gives haze, which sends most light forward. Source · All sources
Haze whitens the sky and brightens the glow around the Sun; small particles of sulfate, carbon or dust also scatter blue out of a low Sun's beam and can make sunsets spectacular; cloud droplets scatter every color alike, so clouds look white.
Scientific American: Why is the sky blue? Anthony Del Genio of NASA's Goddard Institute for Space Studies explains: less violet in sunlight and eyes less sensitive to it; small particles of sulfate, carbon or dust can make sunsets spectacular; cloud droplets scatter every color, so clouds look white. Source · All sources
NASA Space Place: Why Is the Sky Blue? Air molecules scatter blue light more than other colors; the sky fades to pale blue or white near the horizon because that light has crossed more air; particles also scatter blue light out of a low Sun's beam; on Mars the day sky is orange and the sunset blue. Source · All sources

The blue of twilight is partly ozone

After sunset the sky overhead stays a deep blue partly for another reason. The light reaching it has crossed a long, low path through the air, and the ozone layer high up soaks up some of its orange and red. In 1953 Edward Hulburt worked out that ozone gives most of the blue overhead at sunset.
Hulburt (1953), Explanation of the brightness and color of the sky, particularly the twilight sky, Journal of the Optical Society of America 43, 113: ozone's absorption makes much of the blue of the twilight sky overhead. Source · All sources
Modern calculations agree: about two thirds with the Sun at the horizon, very little with a high Sun.
Lange, Rozanov and von Savigny (2023), Revisiting the question "Why is the sky blue?", Atmospheric Chemistry and Physics 23, 14829: with a high Sun ozone matters little; with the Sun at the horizon it gives about two thirds of the zenith's blue, as Hulburt estimated. Source · All sources
Switch off the ozone layer at Blue hour and the model's sky overhead turns pale.

Earth's shadow and the Belt of Venus

Just after sunset, turn your back on the Sun. A blue-gray band rises from the horizon: Earth's shadow on its own air. Above it lies a pink band, the Belt of Venus, air still lit by the reddened light of the setting Sun.
EarthSky: How to see Earth's shadow at sunrise and sunset. A deep blue-gray band on the horizon opposite the Sun, with the pink Belt of Venus above it. Source · All sources
NASA Astronomy Picture of the Day, 10 November 1999: The Belt of Venus. The pink band opposite the Sun in twilight is air lit by the reddened light of the setting or rising Sun. Source · All sources
The model above draws both, with the Sun a degree or two below the horizon.

On Mars it is the other way round

Mars has a thin, dusty sky: orange by day. Its fine dust lets blue light through more easily and keeps it close to the Sun's direction, so Martian sunsets are blue.
NASA Photojournal PIA19400: Sunset in Mars' Gale Crater. Curiosity's first color sunset, 15 April 2015: fine dust lets blue light through more efficiently and keeps it close to the Sun's direction. Source · All sources
NASA Space Place: Why Is the Sky Blue? Air molecules scatter blue light more than other colors; the sky fades to pale blue or white near the horizon because that light has crossed more air; particles also scatter blue light out of a low Sun's beam; on Mars the day sky is orange and the sunset blue. Source · All sources

Common mix-ups

  • “The sky is blue because it reflects the ocean.” The blue is sunlight scattered by the air itself, over land and sea alike.
    NASA Space Place: Why Is the Sky Blue? Air molecules scatter blue light more than other colors; the sky fades to pale blue or white near the horizon because that light has crossed more air; particles also scatter blue light out of a low Sun's beam; on Mars the day sky is orange and the sunset blue. Source · All sources
  • “Air absorbs the blue light.” The air sends blue light off in new directions rather than swallowing it. That is why the blue comes at you from the whole sky. The one big exception is ozone, which absorbs some orange and red.
    NASA Space Place: Why Is the Sky Blue? Air molecules scatter blue light more than other colors; the sky fades to pale blue or white near the horizon because that light has crossed more air; particles also scatter blue light out of a low Sun's beam; on Mars the day sky is orange and the sunset blue. Source · All sources
    Hulburt (1953), Explanation of the brightness and color of the sky, particularly the twilight sky, Journal of the Optical Society of America 43, 113: ozone's absorption makes much of the blue of the twilight sky overhead. Source · All sources
  • “Red sunsets are caused by pollution.” Perfectly clean air reddens a low Sun on its own. Particles change the colors, and small ones can make a sunset more vivid.
    Lord Rayleigh (1899), On the transmission of light through an atmosphere containing small particles in suspension, and on the origin of the blue of the sky, Philosophical Magazine 47, 375: even without foreign particles, the molecules of air would make a blue sky. Source · All sources
    Scientific American: Why is the sky blue? Anthony Del Genio of NASA's Goddard Institute for Space Studies explains: less violet in sunlight and eyes less sensitive to it; small particles of sulfate, carbon or dust can make sunsets spectacular; cloud droplets scatter every color, so clouds look white. Source · All sources
    NASA Space Place: Why Is the Sky Blue? Air molecules scatter blue light more than other colors; the sky fades to pale blue or white near the horizon because that light has crossed more air; particles also scatter blue light out of a low Sun's beam; on Mars the day sky is orange and the sunset blue. Source · All sources
  • “The sky should be violet, since violet scatters most.” It would, for a different eye. Sunlight has less violet, and our eyes are weak in the violet; what reaches us looks pale blue.
    NOAA NESDIS: Why Is the Sky Blue? Scattered violet and blue light dominate the sky; some violet is absorbed high in the atmosphere, and our eyes are less sensitive to violet than to blue. Source · All sources
    Smith (2005), Human color vision and the unsaturated blue color of the daytime sky, American Journal of Physics 73, 590: skylight holds about as much violet as blue, and our cones see the mix as a pale blue. Source · All sources

See it for yourself

  • Watch the horizon pale On a clear day, compare the sky straight overhead with the sky just above the horizon, away from the Sun. The low sky is always paler.
    NASA Space Place: Why Is the Sky Blue? Air molecules scatter blue light more than other colors; the sky fades to pale blue or white near the horizon because that light has crossed more air; particles also scatter blue light out of a low Sun's beam; on Mars the day sky is orange and the sunset blue. Source · All sources
  • Turn around at sunset A few minutes after sunset, face away from the Sun to find Earth's shadow and the pink Belt of Venus above it.
    EarthSky: How to see Earth's shadow at sunrise and sunset. A deep blue-gray band on the horizon opposite the Sun, with the pink Belt of Venus above it. Source · All sources
    Golden and blue hours gives the times for your place.
  • Look straight up at dusk After the Sun has set, the sky overhead stays a deep blue while the west glows orange: partly the ozone at work.
    Hulburt (1953), Explanation of the brightness and color of the sky, particularly the twilight sky, Journal of the Optical Society of America 43, 113: ozone's absorption makes much of the blue of the twilight sky overhead. Source · All sources

For teachers

The big idea

Light interacts with matter differently at different wavelengths. One process, scattering by molecules, explains both the blue sky and the red sunset: what is scattered out of the beam lights the sky, and what is left lights the Sun.

Ways to use the model

  • Play a sunset and have students record the Sun's color and the blue and red readouts every few degrees, then graph them.
  • Test a hypothesis: switch on “What if air scattered every color alike?” What happens to the blue sky and the red sunset?
  • Set Blue hour and switch off the ozone layer: a modern repeat of Hulburt's 1953 result.
  • Compare sea level with an airliner: why is the sky darker and deeper blue from 11 km?

Try it in class: a sunset in a glass (20 minutes)

  1. Fill a tall clear glass with water, darken the room and shine a flashlight down into it from above.
  2. Stir in a spoonful of milk. Look at the glass from the side: the water has a faint bluish glow.
  3. Look at the light that comes out at the bottom on a sheet of white paper: it is yellow to orange. Add more milk and it turns redder.
  4. Discuss: which part of the glass is the sky, and which is the setting Sun? What plays the part of the air?
Adapted from UCAR's classroom activity.
UCAR Center for Science Education: Blue Skies and Red Sunsets. A classroom activity with a flashlight, a tall glass of water and a little milk. Source · All sources
Fits NGSS MS-PS4-2: develop and use a model to describe that waves are reflected, absorbed, or transmitted through various materials.
Next Generation Science Standards, MS-PS4-2: develop and use a model to describe that waves are reflected, absorbed, or transmitted through various materials. Source · All sources

Check yourself

Air scatters violet light even more than blue. Why isn't the sky violet?
Sunlight holds less violet than blue, some violet is absorbed high up, and our eyes are less sensitive to violet. The mix of violet, blue and everything else looks pale blue.
Why does the setting Sun look red?
Its light crosses up to about 38 times as much air as from overhead, and the air scatters nearly all the blue and green out of it on the way. Mostly red and orange are left.
Why are clouds white when the sky is blue?
Cloud droplets are much bigger than a wavelength of light, so they scatter every color about equally. Air molecules are far smaller and favor the short waves.
What color is the daytime sky on the Moon, and why?
Black: with no air to scatter sunlight, light only reaches you straight from the Sun and from the ground.

Keep exploring

About the model

The model follows 18 wavelengths from 380 to 720 nm. Sunlight above the air is a 5,772 K blackbody.
Prša et al. (2016), Nominal values for selected solar and planetary quantities: IAU 2015 Resolution B3, Astronomical Journal 152, 41. The Sun's nominal effective temperature, 5,772 K: the model's sunlight above the air. Source · All sources
Air molecules have the Rayleigh optical depth of Hansen and Travis and an 8 km scale height.
Hansen and Travis (1974), Light scattering in planetary atmospheres, Space Science Reviews 16, 527. The Rayleigh optical depth of the atmosphere at each wavelength, used by the model. Source · All sources
Haze has an optical depth at 550 nm of 0.03 (very clean), 0.1 (typical), 0.35 (hazy) or 1.5 (wildfire smoke), changing with wavelength by Ångström's law, a 1.2 km scale height and a Henyey-Greenstein phase function (asymmetry 0.76).
Ångström (1929), On the atmospheric transmission of sun radiation and on dust in the air, Geografiska Annaler 11, 156. How the haze's optical depth changes with wavelength in the model. Source · All sources
Henyey and Greenstein (1941), Diffuse radiation in the galaxy, Astrophysical Journal 93, 70. The phase function the model gives haze, which sends most light forward. Source · All sources
Ozone is 300 Dobson units between 10 and 40 km, with its Chappuis band smoothed.
Serdyuchenko et al. (2014), High spectral resolution ozone absorption cross-sections, Part 2, Atmospheric Measurement Techniques 7, 625. Ozone's Chappuis band, smoothed for the model, peaks near 600 nm. Source · All sources
Light is followed along each line of sight through a round atmosphere 100 km deep, scattered once toward you, with a rough allowance for light scattered more than once; so Earth's shadow and twilight come out of the geometry, but deep twilight is darker than in life.
Nishita, Sirai, Tadamura and Nakamae (1993), Display of the earth taking into account atmospheric scattering, SIGGRAPH 93, 175. Sunlight scattered along each line of sight in a spherical atmosphere, as the model does. Source · All sources
Spectra become colors through the CIE 1931 observer and sRGB, white-balanced to sunlight above the air.
Wyman, Sloan and Shirley (2013), Simple analytic approximations to the CIE XYZ color matching functions, Journal of Computer Graphics Techniques 2(2), 1. How the model turns spectra into the colors you see. Source · All sources
Stokes, Anderson, Chandrasekar and Motta (1996), A Standard Default Color Space for the Internet: sRGB (W3C). The screen colors the model draws in. Source · All sources
The air mass readout is Kasten and Young's formula, which includes refraction.
Kasten and Young (1989), Revised optical air mass tables and approximation formula, Applied Optics 28, 4735: sunlight from the horizon crosses about 38 times the air it crosses from overhead. Source · All sources

Sources

22 sources