Science · Interactive demo
Why is the sky blue but sunsets red?
Drag the sun to the horizon. Its light crosses nearly forty times more air, and the blue scatters out before it reaches you.
Created by ExplainerTools.
About this explainer
- Made by
- ExplainerTools
- Format
- Interactive demo
- Subject
- Science
- Where it runs
- Plays here
- Full tool
- Open the tool page
- Published
- Added to collection
- light
- color
- atmosphere
- scattering
How the model works
Same sun, same air. So why does the sky go from blue to orange?
- Sun heighthorizon → overhead
Presets Noon · 60°Afternoon · 20°Golden hour · 5°Sunset · 0°
Single-scattering clean-air model (Rayleigh scattering, light haze and ozone, Kasten–Young air mass). The sky colors are illustrative, not a weather forecast.
Model notes and sources
Single-scattering sky in a flat, uniform atmosphere, computed at three wavelengths (680, 550 and 440 nm). Rayleigh optical depth τ ≈ 0.0086 λ−4 (λ in µm), plus a light aerosol haze and ozone absorption (Chappuis band, about 300 Dobson units). Air mass comes from the Kasten–Young formula, which gives about 38× more air at the horizon than straight overhead. Real skies add multiple scattering and variable dust and cloud, so the colors here are illustrative.
Rayleigh scattering grows as 1/λ⁴, so 440 nm blue scatters about 5.7× more than 680 nm red. Violet scatters even more, but sunlight has less of it and our eyes are less sensitive to it. The side view exaggerates the thickness of the atmosphere.
Sources: Rayleigh scattering; Air mass (astronomy); Bucholtz (1995), Rayleigh-scattering calculations for the terrestrial atmosphere.
An ExplainerTools Original.
Watch it move
- Why is the sky blue but sunsets red?30-second Short
Go deeper
Explore interactive ideas in space, science, math, and more. Try a demo, read an interactive article, watch a short video, and follow what makes you curious.
New Originals
Change one thing and see why.
The three newest models, each with a short film. Watch the question, then play with the answer.
Follow your curiosity
A collection of small doors into big ideas.
Format
Swipe or scroll for more formats →
Subject
Swipe or scroll for more subjects →
Topic
Swipe or scroll for more topics →
Sort by
Rankings count activity here on ExplainerTools. Newest means added to this collection.
Loading collection…
Make something click.
Made an explainer, or found one you love? Give it a place in the collection.


