Skip to content
Omnikalc

Rayleigh scattering calculator: how much more is blue light scattered than red?

Enter two wavelengths and the elevation of the Sun to get the Rayleigh scattering ratio, the optical depths and the direct sunlight left along the path.

Updated on
Your inputs
nm

Value out of range

nm

Value out of range

°

Value out of range

Results

How much more the shorter wavelength is scattered

4.35 ×

Rayleigh optical depth, shorter wavelength (vertical, sea level)
0.2213
Rayleigh optical depth, longer wavelength (vertical, sea level)
0.0493
Air mass along the sunlight path
5.59
Direct sunlight left, shorter wavelength
29.1 %
Direct sunlight left, longer wavelength
75.9 %

The blue of the sky and the red of the sunset come from the same effect: air molecules scatter short wavelengths far more than long ones. The Rayleigh scattering calculator takes two wavelengths and the elevation of the Sun, and gives the scattering ratio, the Rayleigh optical depths of the atmosphere, the air mass and the share of direct sunlight left for each colour.

How the calculation works

  • Enter two wavelengths of light, such as 450 nm for blue and 650 nm for red, and the elevation of the Sun above the horizon.
  • The calculator applies Rayleigh scattering, in which the amount of light scattered by air molecules is proportional to 1 / λ⁴, and gives how many times more the shorter wavelength is scattered.
  • It computes the Rayleigh optical depth of the whole atmosphere at sea level for each wavelength, τ = 0.008569 λ⁻⁴ (1 + 0.0113 λ⁻² + 0.00013 λ⁻⁴), with λ in micrometres.
  • With the air mass along the path of sunlight (the Kasten–Young formula), it finds the share of direct sunlight left for each wavelength, e^(−τ × air mass).

Example

Blue light of 450 nm is scattered (650 / 450)^4 = 4.35 times more than red light of 650 nm. Looking straight up, the optical depths are 0.2213 for blue and 0.0493 for red. With the Sun only 10° above the horizon, the air mass is 5.59, so only 29.1 % of the direct blue light is left, against 75.9 % of the red light. This is why a low Sun looks orange or red.

Why it matters

Rayleigh scattering is the base of atmospheric optics. It explains the colour of the sky, the red of the twilight and the haze of distant mountains. It is used in remote sensing, in the design of lighting and cameras, in astronomy to correct for the loss of light in the air, and in teaching optics and physics.

Good to know

The optical depth formula is for dry air at sea level and standard pressure and it varies with the pressure, so it is lower at altitude. The calculator ignores the absorption by ozone and gases, the scattering by aerosols and clouds, and the refraction of light near the horizon. The real colours of the sky also depend on the spectrum of the Sun and on the response of the eye. Use the results for understanding and for estimates.

The Beer–Lambert calculator covers the decay of light in a medium, the sky quality calculator covers the darkness of the night sky, the photon energy calculator links the wavelength to the energy of light, and the refraction calculator covers the bending of light.

Frequently asked questions

Why is the sky blue?

Sunlight contains all colours, and the molecules of the air scatter the short wavelengths, blue and violet, much more than the long ones, as the scattering goes with 1 / λ⁴. The scattered blue light reaches your eye from all parts of the sky. The sky is not violet because the Sun emits less violet, the upper atmosphere absorbs some of it, and our eyes are less sensitive to it.

Why are sunsets red?

When the Sun is low, its light passes through a much longer path in the atmosphere, many times the thickness seen at noon. Along this path, the blue light is scattered out of the beam, and what is left is rich in orange and red. Dust and aerosols make the effect stronger, which is why sunsets are especially red after a volcanic eruption or a fire.

What is the air mass?

It is the length of the path of sunlight through the atmosphere compared with a path straight up. It is 1 for the Sun at the zenith, about 2 when it is 30° above the horizon, and 5.6 at 10°. The Kasten–Young formula is accurate even at the horizon, where a simple 1 / sin(elevation) would give infinity.

Does Rayleigh scattering apply to clouds?

No. The droplets of clouds are much larger than the wavelength of light, and they scatter all colours almost equally by Mie scattering, so clouds look white or grey. Rayleigh scattering applies to particles much smaller than the wavelength, such as the molecules of air. Haze and smoke, of intermediate size, scatter in between.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.