Why Is the Sky Blue (And Sunsets Red)?
written by Stefan Christoph
- 9 minutes readA quick note: this is part three of Lunch Break Physics, the little series that started with a suction cup that isn’t sucking and a fridge that doesn’t make cold. This week the misnomer is a childhood answer a lot of us were handed: that the sky is blue because it mirrors the sea. Standard physics below; sources at the bottom; corrections welcome in the comments.
It isn’t reflecting the ocean
The tidy explanation is that the sky is blue because it reflects the blue ocean. It falls apart the moment you look at it. The sky is just as blue over Kansas, over the Sahara, over a mountain range a thousand kilometres from any coast. It is blue on a day when the sea below is slate grey. And if you have ever flown, you have seen the sky get deeper blue as you climb toward it, away from the water, not paler.
So the sky is not borrowing its colour from anything below it. The blue is made in the air itself, out of ordinary white sunlight, by the air molecules you are breathing.
Watch the air sort the colours
White sunlight is every colour at once. Drag the sun down from overhead to the horizon and watch what the air does to it. The blue light gets flung out across the whole sky; the red mostly carries straight through to your eye.
Two things are happening at once, and you need both. The blue scatters far more than the red — that is the wavelength part. And when you lower the sun, the light has to cross more air to reach you, so more of the blue is scattered away before it arrives — that is the path-length part. Hold onto both: the wavelength and the path length are the whole post.
The actual physics: Rayleigh scattering
Air is mostly nitrogen and oxygen molecules, each far smaller than the wavelength of visible light. When a light wave washes over a molecule that much smaller than itself, the wave’s oscillating electric field pushes and pulls on the molecule’s electrons, and they slosh back and forth in step with it. A charge sloshing back and forth is a tiny antenna — an oscillating dipole — and it re-radiates light in all directions. That redirection is the scattering.
Here is the part usually left out, and it is where the colour comes from. The power an oscillating charge radiates does not just grow with frequency; it grows with the fourth power of frequency [3]. Blue light oscillates faster than red, so it drives that little molecular antenna harder and gets flung out far more strongly. Because frequency is just the speed of light divided by wavelength, “fourth power of frequency” is the same statement as “one over wavelength to the fourth” — which is exactly the law Lord Rayleigh derived [2][3].
Steeply is the key word. Blue light, near the short end of what we can see, gets knocked around the sky constantly. Red light, at the long end, mostly ignores the molecules and travels in a straight line [2]. Point your eyes at any patch of empty sky and the light reaching you is blue that was heading somewhere else entirely and got redirected into your eye. The sky is blue because it is full of scattered blue coming at you from every direction.
Violet is scattered even more than blue, which raises an obvious question we will come back to.
A little bit of math
Rayleigh’s result is compact. The scattering scales as one over the wavelength to the fourth power:
scattering ∝ 1 / λ⁴
That fourth power is why the effect is so lopsided. Blue light sits near 450 nm and red near 700 nm, so:
(700 / 450)⁴ ≈ 5.8
(700 / 400)⁴ ≈ 9.4
Blue is scattered roughly five to ten times more than red [2]. Not a little more — a lot more. That single ratio is the whole colour of the daytime sky.
The sunset uses the other half of the demo: path length. When the sun is overhead, its light takes the short way down through the atmosphere. When it sits on the horizon, the same light comes in at a grazing angle and has to plough through many times as much air — roughly one over the sine of the sun’s height above the horizon. Across that long path, the five-to-ten-times-stronger scattering of blue has time to remove almost all of it from the direct beam. What survives the journey to your eye is what scatters least: red and orange. Same mechanism as the blue sky, just run long enough that the blue is gone [2].
But then why isn’t the sky violet?
If shorter is scattered more, and violet is shorter than blue, the sky should be violet. It isn’t, and the honest answer has two parts [2].
First, the sunlight itself. The sun does not put out equal amounts of every colour; there is simply less violet in it to begin with, and some of that violet is absorbed high in the atmosphere before the scattering even happens [1].
Second, your eyes. We see colour with three types of cone, most sensitive to red, green and blue wavelengths, and we are relatively insensitive to violet. The strongly scattered violet that does reach us stimulates the blue cones and, slightly, the red ones, so the brain reads the mix as a pale blue rather than a pure violet [2]. The sky’s colour is part physics of the air and part physics of the eye looking at it.
The same trick, elsewhere
Once you can see Rayleigh scattering, it turns up all over the place:
- The reddening sun and moon. A rising or setting sun looks orange or red for exactly the reason above: a long, low path through the air scatters its blue away. The full moon low on the horizon goes the same amber, by the same route [2].
- Distant mountains fade to blue. Range after range of hills turns hazier and bluer the farther off it is. There is a whole column of air between you and the far ridge, and that air scatters its own faint blue into your line of sight — a little slab of “sky” laid over the distant slope [2].
- The sky is a touch paler near the horizon. Look straight up and the sky is a deep blue; look toward the horizon and it washes out. The horizon light has crossed more air, so some of its blue has already been scattered away, exactly as in the sunset — just not far enough to go red [2].
False friends
Plenty of blues in nature look like they should be the same effect and are not. Sorting them out is half the fun:
- A blue lake or the deep sea. This is the one the childhood explanation gets backwards. Deep water is blue mainly because water absorbs red light over a distance of a few metres and leaves blue behind — absorption, not scattering, and a completely different mechanism from the sky [2]. The sea can also mirror the sky on a calm day, which only muddies the story further. Either way, the sky is not copying the water; if anything the shallow story runs the other direction.
- Blue eyes and a blue jay’s feather. There is no blue pigment in either. The colour comes from microscopic structure scattering light — a scattering cousin of the sky, but off fixed structures in tissue rather than off free gas molecules, so it is not molecular Rayleigh in the same sense [2]. Structural colour is its own rabbit hole.
- A white cloud in a blue sky. Same sunlight, same sky, yet the cloud is white. Cloud droplets are far bigger than the wavelength of light, and big particles scatter every colour about equally (that regime has its own name and its own future episode). Equal scattering of all colours is white. The size of the scatterer decides the colour, and clouds are on the wrong side of the line to be blue.
- A red sky from wildfire smoke. Real, but not the sunset mechanism. Smoke and ash are large particles that redden the sun through absorption and coarse scattering, which is why a smoky midday sun can go blood-orange while it is still high. Dust deepens a sunset; it is not what causes one [2].
Fun consequences
| Observation | Why |
|---|---|
| The sky is deepest blue straight overhead | That is the thinnest slice of air, so the blue survives without being scattered to washout. |
| Sunsets get more spectacular after a storm or a fire | Extra particles in the air scatter and absorb even more, deepening the reds. |
| Astronauts see a black sky in daytime | No air to scatter sunlight means no blue — just the sun on black. |
| The Martian sky is butterscotch, and its sunsets go blue | A thin, dusty atmosphere flips the usual palette: dust reddens the day sky and lets blue linger near the setting sun. |
| Shadows on snow look faintly blue | They are lit not by the direct sun but by the blue scattered light of the whole sky. |
| A far-off mountain looks bluer than a near one | More air between you and it means more scattered blue laid over the view. |
So the next clear evening, when the sun goes down orange, it is the same air and the same sunlight as the midday blue overhead — only now with far more air in the way to strip the blue from the direct beam.
Lunch Break Physics runs Tuesdays at noon. Last week: why your fridge doesn’t make cold. Next Tuesday: why does ice float?. Got an everyday-physics puzzle you’d like poked at? The comments are open.
Sources
- [1] Visible Light — NASA Science — the visible spectrum runs from ~380 nm (violet) to ~700 nm (red); the sun’s output peaks in the yellow, not the violet.
- [2] Why is the sky blue? — Usenet Physics FAQ (P. Gibbs) — Rayleigh scattering ∝ 1/λ⁴, the ~10× blue-vs-red factor, the violet question, sunsets and long paths, blue mountain haze, and why deep water (absorption) and blue eyes (structure) are different mechanisms.
- [3] Rayleigh scattering — Wikipedia — the scattering arises from the induced oscillating dipole in each molecule, whose radiated power scales as the fourth power of frequency (equivalently 1/λ⁴) in the low-frequency limit.
About the Author
Stefan Christoph is a Principal Solutions Architect at AWS, focused on agentic AI, media & entertainment, and helping builders move from demo to production. He writes about AI architecture, developer productivity, and the future of software.
This is a personal blog. Opinions expressed here are my own and do not represent the views or positions of my employer.
❤️ Created with the support of AI (Kiro)