The Physics of the Atmosphere: Why the Sky Is Blue, Sunsets Are Red, and Weather Exists at All
The atmosphere is a thin shell of gas clinging to a rocky planet by gravity — just 100 km thick, less than 2% of Earth's radius. But within that sliver of air, physics creates weather, shields us from radiation, keeps the surface warm enough for liquid water, and paints the sky blue every morning.
Table of Contents
A Thin Blue Line
Seen from space, the atmosphere is startlingly thin — a luminous blue haze clinging to the planet’s surface, barely visible against the blackness of space. If Earth were an apple, the atmosphere would be thinner than the apple’s skin.
This sliver of gas — just 100 kilometres thick in any meaningful sense, tapering exponentially to near-vacuum — is the only thing between you and the lethal environment of space. It provides the oxygen you breathe, absorbs the ultraviolet radiation that would sterilise the surface, maintains the pressure that keeps your blood from boiling, retains the heat that keeps the planet habitable, and produces the weather that distributes water across the continents.
And the physics of this thin shell — how it scatters light, absorbs radiation, transports heat, and responds to the rotation of the planet beneath it — explains everything from why the sky is blue to why hurricanes spin to why the planet is warming.
Why the Sky Is Blue: Rayleigh Scattering
The colour of the sky is one of the simplest and most satisfying explanations in physics.
Sunlight — white light, containing all visible wavelengths — enters the atmosphere and encounters gas molecules (nitrogen and oxygen). These molecules are much smaller than the wavelength of visible light (molecular diameter ≈ 0.3 nm vs. light wavelength ≈ 400–700 nm). When a photon interacts with such a small molecule, it can be scattered — re-emitted in a random direction.
Lord Rayleigh showed in 1871 that the probability of scattering depends strongly on wavelength:
Scattering intensity ∝ 1/λ⁴
Blue light (wavelength ~450 nm) is scattered about 5.5 times more than red light (wavelength ~650 nm). Violet light is scattered even more, but our eyes are less sensitive to violet, and the Sun emits less violet than blue. The net result: the sky appears blue.
When you look at the sky away from the Sun, you’re seeing sunlight that has been scattered toward your eyes by atmospheric molecules along the line of sight. The direct beam from the Sun has lost some of its blue component (scattered away), making the Sun appear slightly yellow rather than pure white. On the Moon — which has no atmosphere — the sky is black even during daytime, and the Sun appears white.
Why Sunsets Are Red
At sunset, sunlight travels through much more atmosphere — up to 38 times the path length compared to when the Sun is overhead. Over this long path, Rayleigh scattering removes most of the blue and green light. What remains — what reaches your eyes along the direct path — is predominantly red and orange.
The Sun at the horizon appears red because you’re seeing the light that survived the long scattering gauntlet. The sky near the horizon glows red and orange because that’s the light being scattered toward you from the long, low path. Higher in the sky, where the path is shorter, the sky remains blue.
Aerosols — dust, volcanic ash, pollution, wildfire smoke — enhance sunset colours by scattering additional wavelengths. Large particles scatter all colours roughly equally (Mie scattering), creating the white or grey haze near the horizon. Intermediate-sized particles produce the deeper reds and oranges. The eruption of Krakatoa in 1883 produced vivid red sunsets worldwide for months — and inspired the blood-red sky in Edvard Munch’s painting The Scream.
The Layers of the Atmosphere
The atmosphere isn’t uniform — it’s layered, with each layer having distinct physics.
Troposphere (0–12 km): where weather happens. Temperature decreases with altitude (about 6.5 °C per km) because the ground is heated by the Sun and heats the air from below. Almost all water vapour, clouds, and precipitation occur here. Convection — warm air rising, cool air sinking — drives weather systems and thunderstorms. The top of the troposphere (the tropopause) is where temperature stops decreasing — about -55 °C at 12 km in temperate latitudes.
Stratosphere (12–50 km): temperature increases with altitude because the ozone layer (concentrated at 15–35 km) absorbs ultraviolet radiation from the Sun, heating the air. This temperature inversion makes the stratosphere stable — no convection, no weather. Aircraft cruise in the lower stratosphere because the calm, stable air reduces turbulence.
Mesosphere (50–85 km): temperature decreases again with altitude, reaching the coldest temperatures in the atmosphere (about -90 °C at the mesopause). Meteors burn up here, producing the streaks we see as shooting stars.
Thermosphere (85–600 km): temperature increases dramatically because the sparse gas molecules absorb extreme ultraviolet and X-ray radiation. Individual molecules can reach temperatures of 1,500 °C — but you wouldn’t feel warm because the gas is so thin that the rate of energy transfer to a human body would be negligible. The auroras occur here, where charged particles from the solar wind excite atmospheric gases. The International Space Station orbits in the thermosphere at about 400 km.
The Greenhouse Effect: Why Earth Isn’t Frozen
Without an atmosphere, Earth’s average surface temperature would be about -18 °C — well below freezing, with no liquid water. With the atmosphere, it’s about +15 °C. The 33 °C difference is the natural greenhouse effect, and it’s essential for life.
The physics is straightforward. The Sun emits mostly visible light. The atmosphere is largely transparent to visible light (which is why it’s visible — our eyes evolved to see the wavelengths that pass through the atmosphere). Sunlight reaches the surface and warms it.
The warm surface re-emits energy as infrared radiation — longer wavelengths, peaking at about 10 micrometres. Greenhouse gases in the atmosphere — water vapour (the largest contributor), CO₂, methane, nitrous oxide, and ozone — absorb infrared radiation strongly at these wavelengths. They then re-emit it in all directions, including back toward the surface.
This back-radiation warms the surface above what it would be without an atmosphere. The surface must warm until its outgoing radiation (which increases as T⁴ by the Stefan-Boltzmann law) balances the total input — solar radiation plus back-radiation from the atmosphere.
The enhanced greenhouse effect from human CO₂ emissions is adding to this natural warming. Pre-industrial CO₂ was about 280 ppm. As of 2026, it’s about 425 ppm — a 50% increase. The physics predicts that doubling CO₂ from pre-industrial levels (to 560 ppm) would, by itself, raise the surface temperature by about 1.1 °C. Feedback mechanisms (increased water vapour, reduced ice cover, cloud changes) amplify this to an estimated 2.5–4 °C of total warming per doubling — the climate sensitivity.
Wind and Weather: Heat-Driven Circulation
Weather exists because the Sun heats the Earth unevenly.
The equator receives about 2.4 times more solar energy per square metre than the poles (due to the angle of sunlight). This creates a temperature gradient — warm at the equator, cold at the poles — that drives atmospheric circulation.
Warm air at the equator rises (convection), flows poleward at high altitude, cools, sinks at about 30° latitude, and returns to the equator at the surface. This is the Hadley cell — the dominant tropical circulation pattern, responsible for the trade winds and the subtropical deserts (the Sahara, the Arabian desert, the Australian outback sit at roughly 30° latitude where the dry, descending air suppresses rainfall).
Earth’s rotation adds the Coriolis effect — a deflection of moving air masses due to the planet spinning beneath them. In the Northern Hemisphere, air is deflected to the right; in the Southern Hemisphere, to the left. This creates the familiar wind patterns: easterly trade winds in the tropics, westerlies in the mid-latitudes, and polar easterlies near the poles.
The Coriolis effect also causes weather systems to rotate: counterclockwise (cyclonic) in the Northern Hemisphere, clockwise in the Southern. This is why hurricanes and low-pressure systems spiral, and why weather in the mid-latitudes generally moves from west to east.
All of this — the winds, the storms, the rain patterns, the ocean currents — is ultimately driven by one thing: the temperature difference between the equator and the poles, maintained by the Sun.
The Ozone Layer: A Molecular Shield
About 15–35 km above the surface, a thin layer of ozone (O₃) absorbs the Sun’s ultraviolet radiation — specifically UV-B (280–315 nm) and UV-C (100–280 nm) — preventing it from reaching the surface.
The chemistry is simple. UV photons split O₂ molecules into individual oxygen atoms. These atoms react with other O₂ molecules to form O₃ (ozone). Ozone itself absorbs UV, splitting back into O₂ and O. The cycle — creation and destruction of ozone — is in steady state, maintaining the ozone layer.
Without the ozone layer, UV-B radiation would reach the surface at intensities sufficient to cause severe sunburn in minutes, dramatically increase skin cancer and cataract rates, damage crops, and kill phytoplankton — the base of the ocean food chain.
The discovery in the 1980s that chlorofluorocarbons (CFCs) were destroying stratospheric ozone — creating the Antarctic ozone hole — led to the Montreal Protocol (1987), which phased out CFC production worldwide. It’s arguably the most successful international environmental agreement in history: CFC concentrations have been declining since the late 1990s, and the ozone layer is expected to recover to 1980 levels by about 2066.
The physics of the ozone layer is a reminder that a thin molecular shield — just a few parts per million of a single molecular species, distributed across a 20-km-thick layer — can determine whether a planet’s surface is habitable or sterilised.
What the Atmosphere Teaches Us
The atmosphere is a physics laboratory on a planetary scale. Rayleigh scattering paints the sky blue and sunsets red. The greenhouse effect maintains a habitable temperature. Pressure gradients drive winds that distribute heat and moisture. The Coriolis effect organises weather into rotating systems. The ozone layer filters lethal radiation. Convection creates thunderstorms. Differential heating creates climate zones.
All of it follows from simple physics — thermodynamics, fluid dynamics, radiative transfer, electromagnetic scattering — applied to a thin shell of gas on a spinning, orbiting planet lit by a star.
What I find most humbling is how thin the atmosphere is. If you drive 100 km — less than an hour on a motorway — you’d reach space. The entire mass of the atmosphere, spread over the planet’s surface, would be a layer of liquid about 10 metres deep. We live at the bottom of this thin ocean of air, breathing it, warmed by it, shielded by it, and only recently understanding the physics that makes it work.
That thin blue line is all that separates a living world from the void. And the physics of how it works — light scattering, heat transport, molecular absorption — determines everything about the planet we live on.
Frequently Asked Questions
Why is the sky blue?
The sky is blue because of Rayleigh scattering — the scattering of sunlight by gas molecules (mostly nitrogen and oxygen) in the atmosphere. Rayleigh scattering is strongly wavelength-dependent: the scattering intensity is proportional to 1/λ⁴, meaning shorter wavelengths (blue/violet, around 400-450 nm) are scattered much more than longer wavelengths (red, around 600-700 nm). Blue light is scattered about 5.5 times more than red light. When you look at any part of the sky away from the Sun, you're seeing sunlight that has been scattered toward your eyes by atmospheric molecules. Since blue is scattered most, the sky appears blue. Violet light is scattered even more than blue, but our eyes are less sensitive to violet, and some violet is absorbed by the upper atmosphere — so the sky appears blue rather than violet.
Why are sunsets red?
At sunset, sunlight travels through a much greater thickness of atmosphere to reach your eyes — roughly 38 times more atmosphere than at noon. Over this long path, most of the blue and green light has been scattered away by Rayleigh scattering, leaving predominantly red and orange light to continue in a straight line to your eyes. The Sun itself appears reddish for the same reason. The sky near the horizon during sunset is also reddened because you're looking through the longest atmospheric path. Particularly vivid sunsets occur when volcanic ash, dust, or aerosol particles are present in the upper atmosphere — these particles scatter additional wavelengths and create dramatic reds, oranges, and purples. The eruption of Mount Pinatubo in 1991 produced spectacular sunsets worldwide for over a year.
How does the greenhouse effect work?
The greenhouse effect is a natural warming process essential for life on Earth. The Sun emits mostly visible light (peak wavelength about 500 nm), which passes through the atmosphere and warms the Earth's surface. The warm surface re-emits energy as infrared radiation (peak wavelength about 10 μm). Greenhouse gases in the atmosphere — primarily water vapour, CO₂, methane, and nitrous oxide — absorb and re-emit this infrared radiation in all directions, including back toward the surface. This traps energy in the lower atmosphere, raising the surface temperature by about 33 °C above what it would be without an atmosphere (from about -18 °C to +15 °C). The enhanced greenhouse effect from human-produced CO₂ and methane is increasing this natural warming, causing global climate change. The physics is straightforward: more greenhouse gas molecules mean more infrared absorption and re-emission, which means a higher equilibrium surface temperature.
Why does atmospheric pressure decrease with altitude?
Atmospheric pressure at any altitude is simply the weight of the air above that point. At sea level, there's the entire atmosphere above you — about 10 tonnes per square metre — producing a pressure of about 101,325 pascals (1 atmosphere). As you go higher, there's less air above you, so the pressure decreases. The decrease is approximately exponential: pressure drops by about half for every 5.5 km of altitude. At the summit of Everest (8,849 m), pressure is about one-third of sea level. At aircraft cruising altitude (10,000 m), it's about one-quarter. At 50 km, it's about one-thousandth. The atmosphere doesn't have a sharp boundary — it just gets thinner and thinner. The conventional boundary of 'space' is 100 km (the Kármán line), where the atmosphere is so thin that aerodynamic flight becomes impossible.
What causes wind?
Wind is air moving from regions of high atmospheric pressure to regions of low pressure, driven by uneven heating of the Earth's surface. The Sun heats the equator more than the poles, land more than ocean, dark surfaces more than light surfaces. These temperature differences create pressure differences, and air flows to equalise them. On a non-rotating Earth, air would simply flow from high to low pressure. But Earth's rotation deflects moving air (the Coriolis effect): to the right in the Northern Hemisphere, to the left in the Southern Hemisphere. This deflection creates the global wind patterns — trade winds, westerlies, and polar easterlies — and causes weather systems to rotate (counterclockwise in the Northern Hemisphere, clockwise in the Southern). Local winds (sea breezes, mountain winds, thunderstorm downdrafts) are driven by local temperature and pressure differences on smaller scales.