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

1 See

Same sun, same air. So why does the sky go from blue to orange?

2 Change
  • Sun heighthorizon → overhead

Presets Noon · 60°Afternoon · 20°Golden hour · 5°Sunset · 0°

Model · clean air

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

See how the world works.

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.

Find your next rabbit hole

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.

All Originals

Follow your curiosity

A collection of small doors into big ideas.

Format

Subject

Topic

Sort by

Rankings count activity here on ExplainerTools. Newest means added to this collection.

Loading collection…

Opening the collection…

Make something click.

Made an explainer, or found one you love? Give it a place in the collection.

Your next question

What do you wish someone would explain?

Send one question. If it becomes an ExplainerTools Original, you can hear when it is ready.

One weekly email with new explainers. We send a confirmation link first, and you can unsubscribe at any time.

We save your question, your email if you add one, and whether you asked to subscribe. Privacy

Share something worth understanding.

An interactive demo, an interactive article, or an educational video. Every suggestion is reviewed before it joins the collection.

Submit the creator’s original link. We credit creators and link to their work.

A collection for the curious.

ExplainerTools collects interactive explainers, visual essays, and educational videos that help an idea make sense. Browse by subject, follow a topic, or find a creator whose way of explaining speaks to you.

The work belongs to its creators.

Every entry credits its original creator. Supported experiences play here, with a link to the creator’s original work available in the player. Inclusion does not imply a partnership or endorsement.

How rankings work

Views, likes, and bookmarks count activity on ExplainerTools. They don’t include views or likes from a creator’s website or social accounts. Newest means most recently added to this collection. Ties are ordered by date added, then our curated catalog order.

Your collection

New likes and bookmarks require a free account and sync across devices when sign-in is available. Previously saved items from this browser may remain visible here.

Browse the catalog data or read about privacy.