PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Optics & Light

Other simulators in this category — or see all 44.

View category →
NewSchool

Inferior Mirage (hot road)

n(y) gradient above hot asphalt: rays bend — sky light looks like a wet patch.

Launch Simulator
School

Reflection

Flat, concave, and convex mirrors with auto-drawn ray diagrams.

Launch Simulator
FeaturedSchool

Refraction

Light crossing boundaries. Snell's law with angle measurements.

Launch Simulator
School

Total Internal Reflection

Find the critical angle. Fiber optics analogy.

Launch Simulator
FeaturedSchool

Lens Simulator

Converging and diverging lenses with ray diagrams and image formation.

Launch Simulator
NewSchool

Simple Eye (Thin Lens)

P_total = P_eye + P_glasses; 1/v = P − 1/u vs retina; blur cue.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Optics & Light/Rayleigh Sky (blue)

Rayleigh Sky (blue)

Rayleigh scattering is the fundamental process that explains why the daytime sky appears blue and turns red near the horizon at sunrise and sunset. This interactive model visualizes how sunlight, composed of many wavelengths, interacts with the molecules in Earth's atmosphere. The core physical principle is that the intensity of light scattered by particles much smaller than the wavelength of light is inversely proportional to the fourth power of that wavelength (I_scattered ∝ 1/λ⁴). This strong wavelength dependence means shorter wavelengths (blue/violet light) are scattered roughly ten times more efficiently than longer wavelengths (red light). The simulator typically shows a simplified Earth with an observer on the surface, a representation of the sun's position, and the resulting color gradient across the sky dome. Students can manipulate parameters like the sun's elevation angle to see how the path length of sunlight through the atmosphere changes, affecting the amount of scattering and thus the sky's color. Key simplifications include treating the atmosphere as a uniform layer of ideal scatterers, ignoring larger aerosol particles (Mie scattering), and using a simplified color palette. By interacting with the model, learners directly experience the quantitative relationship in Rayleigh's law, understand why we perceive a blue sky overhead and red sunsets, and grasp how the color gradient arises from varying optical path lengths.

Who it's for: High school and introductory undergraduate physics students studying wave optics, light-matter interaction, or atmospheric phenomena, as well as educators seeking a visual tool to demonstrate scattering.

Key terms

  • Rayleigh scattering
  • Wavelength (λ)
  • Inverse fourth power law
  • Atmospheric optics
  • Scattering intensity
  • Optical path length
  • Sky color gradient
  • Electromagnetic scattering

Reference λ₀

550 nm

Molecular scattering in air favors short wavelengths; the gradient is qualitative. At sunset the long path removes more blue, leaving redder direct sunlight.

Measured values

I_blue / I₀2.23
I_red / I₀0.51
Ratio blue/red4.35

How it works

The λ⁻⁴ factor is the small-particle limit; Mie theory matters for larger aerosols. This page isolates the wavelength dependence that students meet first.

Frequently asked questions

If violet light is scattered even more than blue light, why does the sky look blue and not violet?
This is an excellent observation. While the scattering law does predict violet light is scattered most strongly, two main factors explain the blue sky. First, sunlight contains less violet intensity to begin with compared to blue. Second, and more importantly, the human eye is less sensitive to violet light than to blue and green. The combined signal from the scattered light across the spectrum, weighted by our eye's sensitivity, peaks in the blue region.
Why does the sky look white or hazy near the horizon on a cloudy day?
The model focuses on Rayleigh scattering by molecules, which dominates on clear days. Hazy or white skies indicate the presence of larger particles like water droplets, dust, or pollution aerosols. These particles scatter all wavelengths of light more equally (a process called Mie scattering), washing out the strong blue color and creating a whitish appearance. This simulator simplifies by not including this type of scattering.
Does the simulator show why the sun itself looks red at sunset?
Yes, indirectly. When the sun is low, its light travels a much longer path through the atmosphere to reach your eyes. Along this long path, most of the shorter blue wavelengths are scattered away in all directions. The light that reaches you directly from the sun is therefore depleted in blue, leaving predominantly the longer red and orange wavelengths, making the sun appear red. The sky gradient in the simulator illustrates this increased scattering path.
Is the 'inverse fourth power' (λ⁻⁴) relationship just a mathematical model, or does it have a physical cause?
It has a direct physical origin derived from classical electromagnetism. For particles much smaller than the wavelength, the oscillating electric field of the light induces a dipole moment in the molecule. The radiated (scattered) power from an oscillating dipole depends on the frequency to the fourth power (or inversely on λ⁴). This is not an arbitrary fit but a theoretical prediction for ideal, small scatterers.