AP · Environmental Science · Atmosphere and Climate

Atmosphere Composition and Layers

13 min readUpdated November 30, 2026FreeAP Environmental Science, Earth Systems and Resources

Earth's atmosphere is about 78% nitrogen and 21% oxygen by volume, with just under 1% argon and small but vital amounts of water vapor and carbon dioxide. Going up, the temperature trend switches direction three times, which splits the atmosphere into four layers: the troposphere, stratosphere, mesosphere and thermosphere. Weather happens in the troposphere, and the ozone layer sits in the stratosphere.

Quick check

  1. What does ppm (parts per million) mean, and how many ppm equal 1%?Show answerHide answer

    It is the number of parts of a substance in every million parts of a mixture. 1% is 1 part in 100, which is 10,000 parts in a million, so 1% = 10,000 ppm.

  2. Which layer of the atmosphere do you live and breathe in?Show answerHide answer

    The troposphere, the lowest layer. It holds most of the atmosphere's mass and almost all of its water vapor.

Know these already? Jump to the practice questions

What you'll be able to do

  • State the main gases in dry air and their approximate shares by volume.
  • Describe how temperature changes with altitude in each layer.
  • Explain why the troposphere cools with height and the stratosphere warms with height.
  • Identify where weather happens and where the ozone layer is.
  • Calculate with a lapse rate and with ppm.

Key terms

Troposphere

The lowest layer, from the surface to roughly 6 to 18 km (thinnest over the poles), where temperature usually falls with altitude and almost all weather happens.

In plain English
The bottom layer, where clouds and storms are.
Don't write
"The troposphere holds the ozone layer."

Stratosphere

The layer above the troposphere, to about 50 km, where temperature rises with altitude because ozone absorbs ultraviolet (UV) radiation.

In plain English
The calm, ozone-warmed layer above the weather.
Don't write
"The stratosphere gets colder with height."

Ozone layer

The part of the stratosphere, roughly 15 to 30 km up, where ozone (O₃) is most concentrated; it absorbs most incoming UV radiation.

In plain English
A sunscreen band high above the weather.
Don't write
"The ozone layer is in the troposphere."

Lapse rate

The rate at which air temperature falls as altitude increases, in °C per km; about 6.5 °C per km on average in the troposphere.

In plain English
How much colder it gets for each kilometer you climb.
Don't write
A lapse rate with no "per km".

What is air made of?

Dry air is air with its water vapor left out. Its mix is nearly the same everywhere near the surface:

GasFormulaShare of dry air by volume
NitrogenN₂about 78%
OxygenO₂about 21%
ArgonArabout 0.93%
Carbon dioxideCO₂about 0.04% (roughly 420 ppm)

Water vapor (H₂O) is left out because its share varies, from almost 0% to about 4% in warm, humid air.

Small shares still matter: carbon dioxide and water vapor absorb infrared radiation given off by Earth's surface, so they are greenhouse gases. Nitrogen and oxygen are not.

To convert, multiply a percentage by 10,000 to get ppm (Learn this): 0.04%×10,000=4000.04\% \times 10{,}000 = 400 ppm.

Key idea

Dry air is about 78% N₂, 21% O₂ and 0.93% Ar by volume; CO₂ is only about 0.04% but still traps heat.

Check yourself

Why do tables of air composition usually leave out water vapor?
Show answerHide answer

Its share changes with place and weather, from almost 0% to about 4%, so tables give the steady mix of dry air instead.

How are the layers defined?

Each time the temperature trend reverses with height, a new layer begins. The boundaries are the tropopause, stratopause and mesopause.

LayerApproximate altitude (km)Temperature as altitude increasesNotable features
Troposphere0 to 6–18decreasesall weather; most of the mass
Stratospheretop of troposphere to about 50increasesozone layer absorbs UV
Mesosphereabout 50 to 85decreasescoldest layer (around −90 °C at its top); most meteors burn up
Thermosphereabout 85 to several hundredincreases sharplyvery thin air; auroras

Above 50 km there is little ozone, so the mesosphere cools with height. In the thermosphere, sparse nitrogen and oxygen molecules absorb X-rays and extreme UV, so temperatures can pass 1,000 °C, though the gas is too thin to feel hot. Pressure and density fall smoothly through every layer.

Check yourself

A balloon instrument records temperature rising with altitude between 20 km and 45 km. Which layer is it in?
Show answerHide answer

The stratosphere: the layer from the top of the troposphere to about 50 km, where temperature rises with height.

Why does the troposphere cool with height?

The troposphere is heated from below:

  1. Most sunlight passes through the air and is absorbed by land and ocean, so the surface warms.
  2. The surface warms the air above it by conduction and by infrared radiation that greenhouse gases absorb, so air near the ground is warmest.
  3. Warm air is less dense, so it rises. Rising air expands under lower pressure, so it cools.
  4. Air farther from the heated surface is colder, by about 6.5 °C per km on average.

Nearly all water vapor is here, and warm air below cooler air overturns, so moist air rises, cools and forms clouds and rain.

To find a temperature higher up (Learn this; the lapse rate is usually given in the question):

Thigher=Tlower−(lapse rate×height gained)T_{\text{higher}} = T_{\text{lower}} - (\text{lapse rate} \times \text{height gained})

Examiner's eye

Marks go to naming the heat source, the sunlit ground, and linking the steps: heated from below, so warmest at the bottom.

Check yourself

Why does a rising parcel of air cool even though no heat is taken from it?
Show answerHide answer

Pressure falls with height, so the parcel expands, and expanding air cools.

Why does the stratosphere warm with height?

  1. Ozone (O₃) absorbs incoming UV radiation, so that energy heats the stratosphere.
  2. UV arrives from above at full strength, so heating is greatest near the top, where temperature reaches about 0 °C.
  3. Warm air sits on cooler air, so the layer is stable: air does not overturn, so there is almost no weather.

Ozone absorbs almost all UV-C and most UV-B, so little reaches the ground. That protects organisms from UV damage to DNA, which in people causes sunburn and skin cancer.

Key idea

The troposphere is heated from the ground, so it cools with height; the stratosphere is heated by ozone absorbing UV, so it warms with height.

Check yourself

Why is there almost no weather in the stratosphere?
Show answerHide answer

Temperature rises with height, so warm air already sits above cooler air. Air does not rise and overturn, so clouds and storms do not form there.

Worked example 1: Identify a layer from data

Question: A hypothetical temperature profile, rounded, is shown.

Altitude (km)Temperature (°C)
015
10−50
20−56
30−46
48−2
85−88

(a) Name the layer that contains 30 km. (b) Identify the gas whose absorption of UV explains the trend in that layer.

What tells you the method

A temperature–altitude table: find where the trend reverses, then match trends to layers.

  1. Step 1: Read the trend from 0 to 10 km.

    It falls from 15 °C to −50 °C, about 6.5 °C per km.

    Why

    Falling from the ground up is the troposphere's pattern.

  2. Step 2: Read the trend from 20 to 48 km.

    It rises from −56 °C to −2 °C, so 30 km is in a warming layer.

    Why

    The first layer that warms with height is the stratosphere.

  3. Step 3: Link the trend to its cause.

    Ozone absorbs UV there, so the layer is heated from within.

    Why

    A warming trend needs a heat source inside the layer.

Check it

Above 48 km the temperature falls again (mesosphere), so the stratosphere ends near 50 km.

Answer

(a) The stratosphere; (b) ozone.

Worked example 2: Lapse rate on a mountain

Question: A trailhead at 1,200 m is at 18 °C. Assume the temperature falls by 6.5 °C per km (Given in the question). Calculate the temperature at a summit at 3,800 m. Show your work.

What tells you the method

A starting temperature, a lapse rate and a height gain.

  1. Step 1: Find the height gained in km.

    3,800 m−1,200 m=2,600 m3{,}800 \text{ m} - 1{,}200 \text{ m} = 2{,}600 \text{ m}, and 2,600 m×1 km1,000 m=2.6 km2{,}600 \text{ m} \times \dfrac{1 \text{ km}}{1{,}000 \text{ m}} = 2.6 \text{ km}.

    Why

    The lapse rate is per km, so the height must be in km.

  2. Step 2: Find the temperature drop.

    2.6 km×6.5 ∘C/km=16.9 ∘C2.6 \text{ km} \times 6.5 \ {}^\circ\text{C/km} = 16.9 \ {}^\circ\text{C}.

    Why

    The km cancel, leaving °C.

  3. Step 3: Subtract from the starting temperature.

    18 ∘C−16.9 ∘C=1.1 ∘C18 \ {}^\circ\text{C} - 16.9 \ {}^\circ\text{C} = 1.1 \ {}^\circ\text{C}.

    Why

    The summit is higher, so it is colder by the drop.

Check it

Roughly 2.5 km × 6.5 °C per km is about 16 °C, so just above freezing is sensible.

Answer

1.11.1 °C at the summit.

Your turn

Question: Argon is 0.93% of dry air by volume. (a) Convert this to ppm. (b) Calculate the volume of argon, in liters, in 500 L of dry air.

  1. Step 1: Convert percent to ppm.

    0.93×10,000=9,3000.93 \times 10{,}000 = 9{,}300 ppm.

  2. Step 2: Your go: turn 0.93% into a decimal and multiply by 500 L.

Show the full solutionHide the solution

Step 2. 0.93%=0.93100=0.00930.93\% = \dfrac{0.93}{100} = 0.0093, so 500 L×0.0093=4.65 L500 \text{ L} \times 0.0093 = 4.65 \text{ L}.

Answer: (a) 9,3009{,}300 ppm; (b) 4.654.65 L of argon.

Traps

Trap

Air temperature falls steadily all the way up through the atmosphere.

It seems right because mountaintops are colder than valleys. But that pattern holds only in the troposphere. Temperature rises with height in the stratosphere, where ozone absorbs UV, and again in the thermosphere.

Is the air at 40 km warmer or colder than the air at 20 km?

Warmer. Both heights are in the stratosphere, where temperature rises with altitude.

Trap

Carbon dioxide must be a large share of the air, since it has such a big effect on climate.

It seems right because CO₂ is discussed so much. But it is only about 0.04% of dry air; it matters because it absorbs infrared radiation, not because there is a lot of it.

Which is more abundant in dry air, argon or carbon dioxide?

Argon, at about 0.93%, which is more than 20 times the share of carbon dioxide.

What's examined

On the AP® Environmental Science exam, this topic belongs to Unit 4: Earth Systems and Resources and can appear in multiple-choice and free-response questions. Expect to identify a layer from a temperature–altitude graph, explain a temperature trend with its cause, and calculate with ppm or a lapse rate.

Practice questions

  1. Recall Which gas is the second most abundant in dry air by volume?
  • A) Nitrogen
  • B) Oxygen
  • C) Argon
  • D) Carbon dioxide
Show answer

Answer: B. Oxygen is about 21% of dry air, second to nitrogen at about 78%.

Why the others are wrong:

  • A is the most abundant gas, not the second.
  • C is third, at about 0.93%.
  • D is only about 0.04%, a trace gas.
  1. Recall Where is most ozone, and what does it do there?
  • A) Troposphere; it absorbs infrared radiation from clouds
  • B) Mesosphere; it burns up meteors
  • C) Thermosphere; it absorbs X-rays
  • D) Stratosphere; it absorbs most incoming UV radiation
Show answer

Answer: D. The ozone layer is in the stratosphere, and it absorbs most of the Sun's UV radiation.

Why the others are wrong:

  • A puts the ozone layer in the weather layer.
  • B names a mesosphere feature unrelated to ozone.
  • C describes nitrogen and oxygen in the thermosphere.
  1. Apply A city at sea level is at 27 °C. A jet flies 9,000 m above it, still in the troposphere. Assume temperature falls by 6.5 °C per km. Calculate the air temperature at the jet's altitude, in °C.
Show answer

Answer: −31.5-31.5 °C.

Marking points:

  • Height in km: 9,000 m×1 km1,000 m=9 km9{,}000 \text{ m} \times \dfrac{1 \text{ km}}{1{,}000 \text{ m}} = 9 \text{ km}.
  • Drop: 9 km×6.5 ∘C/km=58.5 ∘C9 \text{ km} \times 6.5 \ {}^\circ\text{C/km} = 58.5 \ {}^\circ\text{C}.
  • Temperature: 27 ∘C−58.5 ∘C=−31.5 ∘C27 \ {}^\circ\text{C} - 58.5 \ {}^\circ\text{C} = -31.5 \ {}^\circ\text{C}.
  1. Apply A probe records −10 °C at 55 km, −35 °C at 65 km and −75 °C at 80 km. Which layer is it in, and why?
  • A) Mesosphere; too little ozone to absorb much UV, so it cools with height
  • B) Stratosphere; ozone absorbs UV, so it cools with height
  • C) Thermosphere; thin gas absorbs X-rays, so it cools with height
  • D) Troposphere; heated from the ground, so it cools with height
Show answer

Answer: A. Between about 50 and 85 km temperature falls with height, which is the mesosphere.

Why the others are wrong:

  • B pairs ozone heating with a falling trend; ozone makes the stratosphere warm with height.
  • C pairs X-ray absorption with a falling trend; the thermosphere warms with height.
  • D is far too high: the troposphere ends below about 20 km.
  1. Apply Dry air contains 420 ppm carbon dioxide. Calculate the volume of carbon dioxide, in liters, in 2,000 L of dry air.
Show answer

Answer: 0.840.84 L of carbon dioxide.

Marking points:

  • 420 ppm means 420 L in every 1,000,000 L.
  • 2,000 L×4201,000,000=0.84 L2{,}000 \text{ L} \times \dfrac{420}{1{,}000{,}000} = 0.84 \text{ L}.
  1. Exam-style Which statement best explains why temperature usually decreases with altitude in the troposphere?
  • A) Air at higher altitude is farther from the Sun.
  • B) Ozone in the lowest air absorbs UV radiation near the ground.
  • C) The sunlit surface heats the troposphere from below, and rising air expands and cools.
  • D) Greenhouse gases are more concentrated higher up, so they absorb heat there.
Show answer

Answer: C. The ground absorbs sunlight and warms the air above it, so the air is warmest at the bottom and cools as it rises and expands.

Why the others are wrong:

  • A: a few kilometers is nothing compared with the roughly 150 million km to the Sun.
  • B: most ozone is in the stratosphere, and it warms that layer, not the ground-level air.
  • D is backward: water vapor, the most abundant greenhouse gas, is most concentrated near the surface.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • Dry air is about 78% N₂, 21% O₂, 0.93% Ar and 0.04% CO₂; water vapor varies from almost 0 to about 4%.
  • The layers follow the temperature trend: falling in the troposphere, rising in the stratosphere, falling in the mesosphere, rising in the thermosphere.
  • Sunlight warms the ground, which warms the troposphere from below; its moist, overturning air makes all the weather.
  • Ozone in the stratosphere absorbs UV, so that layer warms with height, stays stable and shields life below.
  • Multiply a percent by 10,000 for ppm; subtract lapse rate × height gained to find a temperature higher up.

Keep learning

Explore AP Environmental Science tutoring →

View the full Environmental Science syllabus →

More in this unit

Earth Systems and Resources

All Atmosphere and Climate notes

Part of Novark's AP Environmental Science notes