Earth's atmosphere is a thin shell of gas held by gravity, composed primarily of nitrogen (78%) and oxygen (21%), with trace amounts of argon, carbon dioxide, water vapor, and other gases. It is divided into layers — troposphere, stratosphere, mesosphere, thermosphere, and exosphere — defined by temperature gradients. Nearly all weather occurs in the troposphere, the lowest 12 km, where temperature decreases with altitude. The stratosphere contains the ozone layer, which absorbs UV radiation and creates a temperature inversion that prevents mixing with the troposphere.
Study each layer by its defining temperature profile and key processes. Drawing a labeled altitude-temperature diagram helps lock in the structure. Connect composition to function: why does the small fraction of CO₂ matter so much compared to the large fraction of N₂?
Think of Earth's atmosphere as a series of concentric shells, each with a distinct personality defined by how temperature changes with altitude. The whole thing is held in place by gravity, and its composition is deceptively simple: nitrogen makes up about 78% and oxygen about 21%. That accounts for 99% of the dry atmosphere. The remaining 1% — argon, carbon dioxide, water vapor, and other trace gases — punches far above its weight. Carbon dioxide and water vapor are greenhouse gases that regulate Earth's temperature, and ozone in the stratosphere shields the surface from ultraviolet radiation. If you already understand atomic structure, you can appreciate why these molecules matter: CO₂ and H₂O have molecular geometries that allow them to absorb and re-emit infrared radiation, while the symmetric N₂ and O₂ molecules cannot.
The lowest layer, the troposphere, extends from the surface to roughly 12 km and contains about 75% of the atmosphere's mass. Temperature decreases with altitude here — roughly 6.5°C per kilometer on average — because the ground absorbs solar radiation and heats the air from below. This temperature gradient drives convection, and convection drives weather. Virtually all clouds, rain, snow, and storms are confined to this layer. If you recall the ideal gas law, the decrease in pressure with altitude makes intuitive sense: there is simply less atmosphere stacked above you as you go higher, so pressure drops, and with it density and temperature.
Above the troposphere sits the stratosphere, extending to about 50 km. Here something counterintuitive happens: temperature *increases* with altitude. The reason is the ozone layer, concentrated between 15 and 35 km, which absorbs incoming ultraviolet radiation and converts that energy into heat. This temperature inversion acts as a lid — it makes the stratosphere extremely stable, suppressing vertical mixing. That is why volcanic ash or aerosols injected into the stratosphere can linger for years, while pollutants in the troposphere wash out in days to weeks.
Beyond the stratosphere, the mesosphere (50–85 km) cools again with altitude, reaching the coldest temperatures in the atmosphere (around −90°C at the mesopause). The thermosphere (85–600 km) then heats dramatically due to absorption of extreme ultraviolet radiation by sparse oxygen molecules, though the air is so thin that "temperature" in the conventional sense is misleading — you would not feel warm there. Finally, the exosphere fades into the vacuum of space with no sharp boundary. The key insight is that each layer's identity comes from its energy source and temperature profile: the troposphere is heated from below, the stratosphere from within (by ozone), and the thermosphere from above (by solar radiation). This layered structure controls everything from weather patterns to the lifetime of atmospheric pollutants.