Atmospheric Scattering (Rayleigh) Calculator

Calculate relative Rayleigh scattering intensity by wavelength and compare any two wavelengths, illustrating why the sky is blue.

🌈 Atmospheric Scattering (Rayleigh) Calculator
Wavelength (λ)450 nm
nm
380nm750nm
Comparison wavelength 1 (λ1)
nm
380nm750nm
Comparison wavelength 2 (λ2)
nm
380nm750nm
Relative intensity vs 550nm
—
Color region
—
Ratio (λ2 vs λ1)
—
Step-by-step working

🌈 What is Atmospheric (Rayleigh) Scattering?

Rayleigh scattering is the scattering of light by particles much smaller than its wavelength, such as the individual nitrogen and oxygen molecules that make up most of Earth's atmosphere. Its defining physical feature is a strong wavelength dependence: scattering intensity is proportional to 1 divided by wavelength to the fourth power (1/lambda^4), meaning shorter wavelengths scatter dramatically more than longer ones. This single relationship explains two of the most familiar sights in the sky: why the daytime sky is blue, and why sunsets glow red and orange.

Atmospheric scientists, remote sensing specialists, and photographers rely on an understanding of Rayleigh scattering constantly, to correct satellite imagery for atmospheric haze before analyzing surface features, to model how polarized skylight varies across the sky for navigation and photography, to predict how atmospheric composition on other planets would change their sky color, and to explain, in introductory physics and astronomy courses, one of the most commonly asked "why" questions about the natural world.

A common misconception is that the sky is blue simply because it reflects the ocean, or because air itself is blue. In reality, air is colorless, and the sky's blue color comes entirely from Rayleigh scattering redirecting the shorter blue wavelengths in sunlight across the whole sky far more than the longer wavelengths. Another misconception is that violet light, which scatters even more strongly than blue under the 1/lambda^4 law, should make the sky look violet. It does not, mainly because sunlight contains less violet light to begin with and human eyes are less sensitive to it.

This calculator applies the 1/lambda^4 Rayleigh scattering law directly, normalizing to a 550nm green reference wavelength and letting you compare any two wavelengths side by side, so you can see numerically just how much more strongly blue light scatters than red.

📐 Formula

I(λ) ∝ 1 ÷ λ4
λ = wavelength of light
I(λ) = Rayleigh scattering intensity at that wavelength, per Lord Rayleigh's original scattering law (per Wikipedia "Rayleigh scattering")
Irelative(λ) = (550 ÷ λ)4
Normalized to a 550nm green reference wavelength, so a result above 1 scatters more strongly than 550nm green light, and below 1 scatters more weakly
Ratio between two wavelengths: I1 ÷ I2 = (λ2 ÷ λ1)4
Example: λ = 450nm (blue) → Irelative = 2.232×. Comparing 450nm and 650nm → ratio = (650÷450)4 = 4.353×.

📖 How to Use This Calculator

Steps

1
Enter a wavelength. Type or slide to the wavelength you want the relative scattering intensity for, in nanometers.
2
Enter two comparison wavelengths. Type or slide to two wavelengths you want to directly compare, for example blue versus red.
3
Read the relative intensity and ratio. The calculator reports the scattering intensity relative to a 550nm green reference and the direct ratio between your two comparison wavelengths.

💡 Example Calculations

Example 1 — Why the Sky is Blue: Blue vs Red

λ = 450nm (blue), comparing λ1 = 450nm (blue) vs λ2 = 650nm (red)

1
Irelative(450nm) = (550 ÷ 450)4 = 2.232× the scattering of 550nm green light
2
Ratio = (650 ÷ 450)4 = 4.353×
450nm scatters 2.232× more than 550nm green, and 4.353× more than 650nm red, illustrating why the sky is blue
Try this example →

Example 2 — Red Light Scatters Much Less

λ = 650nm (red), comparing λ1 = 650nm (red) vs λ2 = 450nm (blue)

1
Irelative(650nm) = (550 ÷ 650)4 = 0.513× the scattering of 550nm green light
2
Ratio = (450 ÷ 650)4 = 0.230×
650nm scatters only 0.513× as much as 550nm green, and just 0.230× as much as 450nm blue
Try this example →

Example 3 — Violet vs Red, the Full Visible Spectrum Spread

λ = 550nm (green reference), comparing λ1 = 400nm (violet) vs λ2 = 700nm (red)

1
Irelative(550nm) = (550 ÷ 550)4 = 1.000×, exactly the reference value
2
Ratio = (700 ÷ 400)4 = 9.379×
Violet (400nm) scatters 9.379× more strongly than red (700nm), the widest spread across the visible spectrum
Try this example →

❓ Frequently Asked Questions

What is Rayleigh scattering?+
Rayleigh scattering is the scattering of electromagnetic radiation, including visible light, by particles much smaller than its wavelength, such as individual nitrogen and oxygen molecules in the atmosphere. Its defining feature is that scattering intensity increases sharply as wavelength decreases, following an inverse fourth-power relationship.
Why does the sky look blue because of Rayleigh scattering?+
Sunlight contains all visible wavelengths, but Rayleigh scattering redirects shorter, blue wavelengths far more strongly than longer, red wavelengths, because intensity scales as 1/wavelength^4. That scattered blue light reaches your eyes from every direction across the sky, which is why the sky appears blue rather than the sun's actual white color.
What is the formula for Rayleigh scattering intensity by wavelength?+
Scattering intensity I is proportional to 1/wavelength^4, where wavelength is lambda. This calculator normalizes that relationship to a 550nm green reference wavelength: I_relative(lambda) = (550/lambda)^4, so a value greater than 1 means that wavelength scatters more strongly than 550nm green light.
How much more does blue light scatter than red light?+
Comparing a typical blue wavelength (450nm) to a typical red wavelength (650nm) using the 1/lambda^4 law gives a ratio of (650/450)^4, approximately 4.4 times more scattering for blue than for red, which is the core reason the sky looks blue rather than red.
Why do sunsets and sunrises look red or orange instead of blue?+
At sunset or sunrise, sunlight travels through a much longer, more oblique path through the atmosphere to reach an observer. Rayleigh scattering removes most of the blue light along that long path before it arrives, leaving mostly the less-scattered red and orange wavelengths, which is why the sun and sky near the horizon take on warm colors at those times.
Why isn't the sky violet instead of blue, since violet has an even shorter wavelength?+
Violet light does scatter even more strongly than blue under the 1/lambda^4 law. The sky still looks blue rather than violet mainly because the sun's spectrum contains less violet light than blue to begin with, and the human eye's cone cells are considerably less sensitive to violet wavelengths than to blue.
Does Rayleigh scattering apply to all types of particles?+
No. Rayleigh scattering specifically applies to particles much smaller than the wavelength of light, such as individual air molecules. Larger particles like water droplets, dust, and aerosols scatter light through Mie scattering instead, which is far less wavelength-dependent, which is why clouds and fog appear white or gray rather than blue.
Why does Mars have a different-colored sky than Earth?+
Mars has a much thinner atmosphere composed mostly of carbon dioxide, and its atmosphere carries significant suspended dust. The dust particles scatter light through Mie-like scattering rather than pure Rayleigh scattering, and combined with the thin atmosphere, this produces Mars's characteristic butterscotch or reddish sky color rather than a blue one.
Is Rayleigh scattering the same phenomenon that makes the ocean look blue?+
No, they are different mechanisms. Ocean water appears blue mainly because water molecules themselves weakly absorb red light more than blue light as light travels through the water, combined with some scattering, rather than the atmospheric Rayleigh scattering mechanism responsible for sky color.
How does Rayleigh scattering relate to why airplane windows sometimes show a dark blue sky at high altitude?+
At high cruising altitude, an aircraft is above much of the denser lower atmosphere, so there are fewer air molecules along the line of sight to scatter sunlight, especially when looking away from the sun. With less scattered light reaching the eye, the sky appears darker, deeper blue, or even near-black at very high altitudes, compared to the paler blue seen from the ground.
Can this calculator be used for wavelengths outside the visible range?+
The underlying 1/lambda^4 relationship holds for any electromagnetic wavelength, so the calculator will still compute a mathematically valid relative intensity outside 380 to 750nm. However, wavelengths outside that range fall outside human visible perception, so a note appears reminding you the result describes physical scattering strength, not a color you could actually see.

What is Rayleigh scattering?

Rayleigh scattering is the scattering of electromagnetic radiation, including visible light, by particles much smaller than its wavelength, such as individual nitrogen and oxygen molecules in the atmosphere. Its defining feature is that scattering intensity increases sharply as wavelength decreases, following an inverse fourth-power relationship.

Why does the sky look blue because of Rayleigh scattering?

Sunlight contains all visible wavelengths, but Rayleigh scattering redirects shorter, blue wavelengths far more strongly than longer, red wavelengths, because intensity scales as 1/wavelength^4. That scattered blue light reaches your eyes from every direction across the sky, which is why the sky appears blue rather than the sun's actual white color.

What is the formula for Rayleigh scattering intensity by wavelength?

Scattering intensity I is proportional to 1/lambda^4, where lambda is the wavelength of light. This calculator normalizes that relationship to a 550nm green reference wavelength: I_relative(lambda) = (550/lambda)^4, so a value greater than 1 means that wavelength scatters more strongly than 550nm green light.

How much more does blue light scatter than red light?

Comparing a typical blue wavelength (450nm) to a typical red wavelength (650nm) using the 1/lambda^4 law gives a ratio of (650/450)^4, approximately 4.4 times more scattering for blue than for red, which is the core reason the sky looks blue rather than red.

Why do sunsets and sunrises look red or orange instead of blue?

At sunset or sunrise, sunlight travels through a much longer, more oblique path through the atmosphere to reach an observer. Rayleigh scattering removes most of the blue light along that long path before it arrives, leaving mostly the less-scattered red and orange wavelengths, which is why the sun and sky near the horizon take on warm colors at those times.

Why isn't the sky violet instead of blue, since violet has an even shorter wavelength?

Violet light does scatter even more strongly than blue under the 1/lambda^4 law. The sky still looks blue rather than violet mainly because the sun's spectrum contains less violet light than blue to begin with, and the human eye's cone cells are considerably less sensitive to violet wavelengths than to blue.

Does Rayleigh scattering apply to all types of particles?

No. Rayleigh scattering specifically applies to particles much smaller than the wavelength of light, such as individual air molecules. Larger particles like water droplets, dust, and aerosols scatter light through Mie scattering instead, which is far less wavelength-dependent, which is why clouds and fog appear white or gray rather than blue.

Why does Mars have a different-colored sky than Earth?

Mars has a much thinner atmosphere composed mostly of carbon dioxide, and its atmosphere carries significant suspended dust. The dust particles scatter light through Mie-like scattering rather than pure Rayleigh scattering, and combined with the thin atmosphere, this produces Mars's characteristic butterscotch or reddish sky color rather than a blue one.

Is Rayleigh scattering the same phenomenon that makes the ocean look blue?

No, they are different mechanisms. Ocean water appears blue mainly because water molecules themselves weakly absorb red light more than blue light as light travels through the water, combined with some scattering, rather than the atmospheric Rayleigh scattering mechanism responsible for sky color.

How does Rayleigh scattering relate to why airplane windows sometimes show a dark blue sky at high altitude?

At high cruising altitude, an aircraft is above much of the denser lower atmosphere, so there are fewer air molecules along the line of sight to scatter sunlight, especially when looking away from the sun. With less scattered light reaching the eye, the sky appears darker, deeper blue, or even near-black at very high altitudes, compared to the paler blue seen from the ground.

Can this calculator be used for wavelengths outside the visible range?

The underlying 1/lambda^4 relationship holds for any electromagnetic wavelength, so the calculator will still compute a mathematically valid relative intensity outside 380 to 750nm. However, wavelengths outside that range fall outside human visible perception, so a note appears reminding you the result describes physical scattering strength, not a color you could actually see.