Apphemeride

Sun and daylight

Why the sky is blue and the sunset red

At a glance

Air scatters sunlight. Air molecules scatter blue much more strongly than red, which is why the sky is blue in daylight. When the Sun is low, light travels farther through the atmosphere. More blue light scatters out of the direct beam, leaving yellow, orange and red around the Sun. Sky view shows how the colors change for the place and time you choose.

Rayleigh scattering makes the sky blue

Sunlight contains all the colors we can see. When it encounters particles much smaller than its wavelength, chiefly nitrogen and oxygen molecules, some of the light scatters in every direction. Rayleigh scattering increases with the fourth power of frequency. Blue light at about 450 nanometers scatters almost six times as strongly as red light at 700 nanometers. Look away from the Sun and most of the scattered light reaching your eyes is blue.

Violet scatters even more strongly, but the Sun emits less violet than blue light and our eyes are less sensitive to violet. That combination favors blue.

Mie scattering brightens the sky around the Sun

Air also contains larger particles. Dust, pollen, sea salt and tiny droplets form aerosols that we see as haze. They scatter a wider range of colors and send much of the light forward. This Mie scattering creates a whitish glow around the Sun and makes a hazy sky paler. It can also intensify sunset colors.

Why sunsets turn red

When the Sun is high, its light passes through a relatively shallow layer of air. At the horizon, the path through the atmosphere is about 38 times as long. Much of the blue and green scatters away, leaving yellows, oranges and reds. The solar disk also dims, but it remains dangerous to look at without proper protection.

The sky close to the horizon is illuminated by that already colored light. Haze can intensify the effect. In very clear air, the sunset glow tends to be narrower and yellower.

Safe solar viewing. Never look directly at the Sun without certified eclipse glasses (ISO 12312-2), including at sunrise and sunset. Use those glasses only for direct, unaided viewing. For binoculars, secure a purpose-made solar filter over the front of each objective. Cameras and telescopes also need suitable front-mounted solar filters.

The colors of twilight

After sunset, sunlight still reaches the upper atmosphere. An orange band lingers in the west. Above it, blue shades into violet. In the east, Earth’s shadow rises as a dark blue band, often topped by the pink Belt of Venus.

Ozone absorbs some orange and red light high in the atmosphere. This makes the twilight sky a deeper blue. Without ozone it would look grayer.

Multiple scattering keeps the sky bright after sunset

Light can scatter several times along its path. Multiple scattering sends light into parts of the sky that receive no direct sunlight, just after sunset or in the Moon’s shadow during a total solar eclipse. At totality the horizon can glow all around you as light scatters in from beyond that shadow.

How Apphemeride answers this

How Apphemeride answers this

Sky view on each object page models Rayleigh and Mie scattering, ozone absorption and multiple scattering for your chosen time and place. Select the Sun and move the timeline through sunset to see golden light give way to the reds of sunset and then the deeper colors of twilight. The Sun’s Sky view is free. Other dates and locations are available in the full version. Explore Sky view.

Sky view in Apphemeride shows the Sun one degree above the Atlantic at Cabo da Roca, with golden light on the water and a sky fading from orange through violet to blue.
Sunset colors follow from how the atmosphere scatters sunlight. Sky view models that process.
Eye mode shortly after sunset at Cabo da Roca on October 10, 2026, with a narrow orange line above the Atlantic and a violet sky.
Twilight a half hour later at Cabo da Roca. The horizon stays warm while the sky above turns violet.

Frequently asked questions

Why is the sky blue rather than violet?

Violet light scatters more strongly than blue, but there is less violet in sunlight. Some is absorbed higher in the atmosphere, and our eyes are much less sensitive to violet. The light we perceive is predominantly blue.

Why are some sunsets more intense?

Aerosols from a volcanic eruption, Saharan dust or humid air can intensify the colors. In very clear air, the colored band is often thin and more yellow.

Are sunrise and sunset colors caused by the same thing?

Yes. Sunlight travels far through the atmosphere in both cases. The morning air is often cooler and less hazy, so the dawn colors can look clearer and softer.

Why does the setting Sun look flattened?

Light from the lower edge crosses denser air at a shallower angle. Refraction lifts the image of that edge more than it lifts the upper edge. The effect makes the Sun look compressed vertically.

Sources: Bruneton (2017) · NASA Earth Observatory · NASA Safety

Download Apphemeride

Free to download. The Sun and Moon are always free. Unlock the remaining features with the full version: a one-time purchase after a three-day trial, with no subscription.

Download Apphemeride on the App Store