Skip to content
Environment 12 min read

Why Are Sunsets Red, and Why Are Mars Sunsets Blue?

Observation recorded
Simulated sunset over mountains with the Sun half a degree above the horizon at air mass 31, an orange red Sun, an orange glow near the horizon fading to blue grey overhead

On 15 April 2015, at the end of its 956th Martian day, NASA's Curiosity rover pointed its Mastcam at the western rim of Gale Crater and recorded its first sunset in colour: a small white Sun sinking behind the crater rim inside a cold blue glow. On the same planet, a few hours earlier, the sky had been the colour of butterscotch. Earth does exactly the opposite: blue skies by day, orange and red at sunset.

Both come from the same physics, scattering of sunlight by whatever is floating in the air. The difference is the size of the particles. The sky colour and sunset simulator computes every colour of the sky from that physics, for Earth and for Mars, and this post walks through the numbers.

Quick answerSunsets are red because a low Sun shines through up to 38 times more air than a high one, and air scatters blue about 4.5 times more strongly than red. Over that path almost all the blue is scattered out of the beam, leaving orange and red. Mars sunsets are blue because Martian dust grains scatter blue light into a tight cone around the Sun.

How much more air does the setting Sun shine through?

Astronomers call it air mass: the amount of atmosphere along the line of sight, divided by the amount straight up. Overhead it is 1. For a flat atmosphere it would be 1 ÷ sin(altitude), which blows up at the horizon, but Earth's atmosphere is curved, so the real value levels off. Kasten and Young fitted it in 1989 with a formula that is still the standard:

m=1DD=cos⁡z+0.50572 (96.07995∘−z)−1.6364\begin{aligned}m &= \frac{1}{D} \\ D &= \cos z \\ &\quad + 0.50572\,(96.07995^\circ - z)^{-1.6364}\end{aligned}

where zz is the Sun's angle from the zenith in degrees. It gives 2.0 with the Sun 30 degrees up, 10.3 at 5 degrees and 37.9 at the horizon. A setting Sun's light crosses nearly 38 times the air that midday light does, the equivalent of about 320 km of air at sea level density.

Why does that path remove the blue?

Molecules of nitrogen and oxygen are about a thousand times smaller than a wavelength of visible light. Particles that small scatter light with a strength proportional to 1/λ41/\lambda^4, Rayleigh's law. Integrated up through the whole atmosphere, the scattering optical depth at sea level is well described by the Hansen and Travis formula, with λ\lambda in micrometres:

τR(λ)=0.008569 λ−4×(1+0.0113 λ−2+0.00013 λ−4)\begin{aligned}\tau_R(\lambda) = {}& 0.008569\,\lambda^{-4} \\ & \times \left(1 + 0.0113\,\lambda^{-2} + 0.00013\,\lambda^{-4}\right)\end{aligned}

That gives 0.221 at 450 nm (blue) and 0.049 at 650 nm (red), a ratio of 4.5. The direct beam keeps the fraction e−τme^{-\tau m} of each colour.

Worked example: clean air, Sun on the horizon
Blue, 450 nm: τm=0.221×37.9=8.39\tau m = 0.221 \times 37.9 = 8.39, so e−8.39=0.00023e^{-8.39} = 0.00023. About 0.02% of the blue survives.
Red, 650 nm: τm=0.049×37.9=1.87\tau m = 0.049 \times 37.9 = 1.87, so e−1.87=0.154e^{-1.87} = 0.154. About 15% of the red survives.
Red now outnumbers blue by a factor of about 680 compared with sunlight in space. Ozone's weak absorption in the red trims the red to 12%, and the simulator computes the Sun's colour as #FF7500, deep orange, with no haze at all.

So pollution is not needed for a red sunset. Clean air and a long path are enough.

Simulated sunset over mountains with the Sun half a degree above the horizon at air mass 31, an orange red Sun (#FF4E00), an orange glow near the horizon fading to blue grey overhead, and a spectrum panel showing only red and orange light left in the sunbeam
Figure 1. The Sun half a degree up, air mass 31, ordinary clear air. The spectrum panel shows what is left of the sunbeam, scaled up 266 times: only orange and red. Open this setup in the simulator.

When does the Sun start to turn gold?

Gradually, and later than you might think. The table gives the simulator's values for an ordinary clear day, with a little haze (aerosol optical depth 0.1 at 550 nm) and normal ozone.

Sun altitudeAir massBlue (450 nm) leftRed (650 nm) leftSun colour
90°1.070%86%#FFEBD6
30°2.049%74%#FFE6C4
10°5.614%43%#FFD18B
6°8.84.1%26%#FFBE61
5°10.32.3%21%#FFB54F
2°19.4under 0.1%3.6%#FF8700
0°37.9under 0.01%under 0.1%#FF2700
Worked example: golden hour at 6 degrees
Air mass: m=8.84m = 8.84.
Air alone: blue keeps e−0.221×8.84=e−1.96=14%e^{-0.221 \times 8.84} = e^{-1.96} = 14\%, red keeps e−0.049×8.84=e−0.44=65%e^{-0.049 \times 8.84} = e^{-0.44} = 65\%.
Haze lies in the lowest kilometre or so, so a low Sun's path through it is even longer than through the air. Adding it, the simulator gets 4.1% of the blue and 26% of the red, and a Sun of #FFBE61, the warm gold photographers call golden hour.
Golden hour simulation with the Sun 6 degrees above mountains at air mass 8.8, a golden Sun (#FFBE61), a yellow glow near the horizon and blue sky overhead; only 4 percent of the blue light in the sunbeam gets through against 26 percent of the red
Figure 2. Golden hour, Sun 6 degrees up. The beam has lost 96% of its blue, but the sky overhead is still blue. Open this setup in the simulator.

Why is the sky near the Sun orange while overhead stays blue?

Because the sky is lit by many different paths. The glow around a setting Sun is sunlight that has already crossed hundreds of kilometres of air, lost its blue, and is then scattered once more toward you by the dense air and haze near the ground. The sky overhead is lit by sunlight scattered down from high altitude, where the air is thin and the beam has kept more of its blue.

There is a second, less known reason, and it explains why twilight overhead looks blue rather than grey. Ozone absorbs weakly in the orange, in the Chappuis band, which peaks at 603 nm with a cross-section of 5.23 × 10⁻²¹ cm² per molecule. For a typical ozone column of 300 Dobson units that is an optical depth of only 0.042, invisible at midday. But twilight light skims through the ozone layer at a grazing angle, about 12 times its vertical thickness, and the orange loss becomes significant. Edward Hulburt showed in the early 1950s that without ozone the zenith sky at sunset would be noticeably greyer and dimmer.

Simulated midday sky with the Sun 55 degrees up at air mass 1.2, a blue sky computed from Rayleigh scattering, a nearly white Sun (#FFEAD3) and a spectrum panel showing 67 percent of the blue and 85 percent of the red getting through
Figure 3. Midday for comparison: air mass 1.2, a nearly white Sun and a blue sky, because the blue scattered out of the beam is what lights the sky. Open this setup in the simulator.

Our post on why the sky is blue and not violet covers the other half of that midday picture: why the scattered light looks blue rather than violet, even though violet is scattered even more.

Why do smoke, dust and volcanoes make redder sunsets?

Particles of smoke, dust, sea salt and sulphate, collectively called aerosol, add their own extinction on top of the air. Two things make them powerful at sunset. They are concentrated in the lowest one or two kilometres, so a grazing path through them is very long, roughly 2R/H≈100\sqrt{2R/H} \approx 100 times the vertical thickness for a 1.2 km layer on a 6,371 km Earth. And small smoke particles scatter blue somewhat more than red (an Angstrom exponent near 1.3), which reddens the beam further.

Set the haze slider to 0.7, a smoky day, with the Sun 2 degrees up, and the simulated Sun becomes #FF0300, nearly pure red, dim enough to look at. That is the blood red Sun seen through wildfire smoke, and the reason sunsets glowed unusually red around the world after the 1883 Krakatoa and 1991 Pinatubo eruptions.

Simulated smoky sunset with haze optical depth 0.7 and the Sun 2 degrees up, a blood red Sun disc (#FF0300) over dark mountains, a red and orange horizon and a pale whitish sky above
Figure 4. Smoke or dust with an optical depth of 0.7: the Sun turns almost pure red and the sky overhead whitens. Open this setup in the simulator.

The misconception: “the air scatters red light at sunset”

A common explanation says the sky turns red at sunset because the air starts scattering red. It does not. Air scatters red weakly at every hour of the day. What changes at sunset is the subtraction: the beam has had most of its blue removed before it reaches the part of the sky you are looking at. The blue is not destroyed either. It has been scattered sideways and is lighting the afternoon sky for people further west, under the stretch of atmosphere the sunbeam has just crossed.

Why is the Martian sky butterscotch?

Mars has a surface pressure of about 6.4 millibars and a carbon dioxide atmosphere, according to NASA's Mars fact sheet. Carbon dioxide scatters more strongly per molecule than air, roughly 2.4 times, but there is very little of it.

Worked example: Rayleigh scattering on Mars
Molecules per square metre of ground scale as pressure ÷ (gravity × molecular mass).
Mars: 636/(3.73×44)=3.9636 / (3.73 \times 44) = 3.9. Earth: 101,325/(9.81×29)=356101{,}325 / (9.81 \times 29) = 356. Ratio 1.09%.
Optical depth at 550 nm: 0.097×0.0109×2.4≈0.00250.097 \times 0.0109 \times 2.4 \approx 0.0025, about 40 times less than Earth's.

With so little molecular scattering, the colour of the Martian sky is set by dust. The grains, typically 1 to 2 micrometres across, are made largely of iron oxides, and they absorb some blue light. The result is a pale tan sky, #FFDEBC in the simulator.

Simulated Martian midday sky with the Sun 55 degrees up, a butterscotch sky (#FFDEBC) coloured by dust because the thin carbon dioxide air has a Rayleigh optical depth of only 0.0025, over rusty hills
Figure 5. Mars at midday with a dust optical depth of 0.5: a butterscotch sky. Open this setup in the simulator.

So why are sunsets on Mars blue?

NASA's explanation, from Curiosity team member Mark Lemmon, is that the fine dust lets blue light penetrate the atmosphere slightly more efficiently, and that when blue light scatters off the dust it stays closer to the direction of the Sun than other colours do. That is diffraction. A grain about 1.5 micrometres in radius scatters most of its light into a forward cone whose width scales with wavelength, roughly λ/(2r)\lambda / (2r) radians: about 9 degrees for blue at 450 nm and 13 degrees for red at 650 nm. Blue is concentrated into the smaller patch of sky around the Sun.

At midday that blue aureole is faint against the bright tan sky. At sunset, looking through about 16 air masses of dusty air, the forward scattered light near the Sun dominates, and a blue glow appears around the Sun while the rest of the sky stays tan. In the simulator, with the Sun 2 degrees up, the sky next to the Sun computes to #DBE8FF.

Simulated Martian sunset with the Sun 2 degrees up through dust of optical depth 0.5: a blue glow (#DBE8FF) around the small white Sun while the rest of the sky stays butterscotch, over rusty red hills
Figure 6. A Martian sunset: a blue glow round the Sun, butterscotch everywhere else. The dust model is tuned to diffraction by 1.5 micrometre grains, not fitted to rover data. Open this setup in the simulator.

Mars dust also drives its weather, as our post on Martian dust storms explains, and the Sun's own colour before any atmosphere touches it is white, as the blackbody star colour simulator shows.

Try it yourself

Open the simulator in the afternoon and drag the Sun altitude slowly down to zero, watching the spectrum panel lose its blue bars one by one. Then set the haze slider to 0 and repeat: the sunset is still orange. Finally switch to Mars and do the same. For the brief green rim that can appear as the Sun disappears, see what causes the green flash.

Sources

Frequently asked questions

Why are sunsets red?

Near the horizon, sunlight crosses about 38 times more air than when the Sun is overhead. Air scatters blue light about 4.5 times more than red, so along that long path almost all the blue is scattered out of the beam. What reaches you is mostly orange and red light.

Why are sunsets on Mars blue?

Martian dust grains, around 1.5 micrometres across, scatter blue light into a narrower cone around the Sun’s direction than red light. Looking toward the setting Sun through a long path of dusty air, you see a blue glow around the Sun while the rest of the sky stays butterscotch. NASA’s Curiosity rover photographed this in Gale Crater in April 2015.

Do you need pollution for a red sunset?

No. Clean air alone turns the Sun on the horizon deep orange: Rayleigh scattering removes about 99.98% of its blue light along 38 air masses. Smoke, dust and volcanic aerosol add extra extinction and make sunsets deeper red.

Why is the sky overhead still blue at sunset?

Light scattered down from the sky overhead has travelled a much shorter path through dense air than the direct sunbeam, so it keeps some blue. Ozone also absorbs orange light in its Chappuis band, which keeps the twilight sky overhead blue rather than grey.

What colour is the sky on Mars during the day?

Butterscotch or pale tan. Mars has under 1% of Earth’s air, so molecules barely scatter, and the sky colour is set by fine iron oxide dust that absorbs some blue light.

Try it yourself
Related observations
Physics Image Formation by Convex Lens: All 6 Cases with Diagrams Physics What Causes the Green Flash at Sunset? The Numbers Space How Long Does Sunlight Take to Reach Earth?
Transmit