HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Layers, Composition and the Earth's Energy Balance
  1. 1Layers and composition of the air
  2. 2Sunlight, albedo and the radiation laws
  3. 3The greenhouse effect and the energy budget
  1. Earth and Environmental Science
  2. /Layers, Composition and the Earth's Energy Balance
  3. /Layers and composition of the air

Course 5.1·Lesson 1 of 3

Layers and composition of the air

Dry air is nitrogen, oxygen and argon, with small amounts of carbon dioxide and other gases; water vapour comes and goes. Pressure falls by the same factor for each step up, p=p0e−z/Hp = p_0 e^{-z/H}p=p0​e−z/H

Lesson 1 of 3Show all lessonsHide
Layers, Composition and the Earth's Energy Balance
  1. 1Layers and composition of the air
  2. 2Sunlight, albedo and the radiation laws
  3. 3The greenhouse effect and the energy budget

Try the code and the simulations beside the lesson.

Thin air on the highest summit

Climbers on Mount Everest, 8849 m8849\ \text{m}8849 m high, gasp for breath. The air there still holds 21 %21\ \%21 % oxygen, the same share as at sea level. What has changed is the pressure. Each breath holds only about a third as many molecules. Why does the pressure fall so fast? And why is it so cold up there, when the summit is closer to the Sun? We find out in this course.

What the air is made of

Here is dry air near the ground, by volume. A share by volume is also a share of the molecules.

GasShare by volume
Nitrogen, N₂78.08 %78.08\ \%78.08 %
Oxygen, O₂20.95 %20.95\ \%20.95 %
Argon, Ar0.93 %0.93\ \%0.93 %
Carbon dioxide, CO₂about 0.042 %0.042\ \%0.042 %
Neon, helium, methaneunder 0.002 %0.002\ \%0.002 % each

Small shares are given in parts per million (ppm). Carbon dioxide is about 420420420 ppm (2023), so 420420420 of every million molecules. Methane is about 1.91.91.9 ppm. The NCERT Class 11 table prints 0.036 %0.036\ \%0.036 % for carbon dioxide, the value of the 1990s; the air holds more now. Water vapour is not in the table, because its share changes from place to place. It is close to 0 %0\ \%0 % over a cold desert and up to about 4 %4\ \%4 % over a warm sea.

Up to about 80 km80\ \text{km}80 km the winds keep the air well mixed. So these shares stay the same even where the air is thin.

Here is a useful rule. In a mixture, each gas pushes as if it were alone. Its push is its partial pressure, the share of the molecules times the total pressure. At sea level the oxygen pushes with 0.2095×1013 hPa=212 hPa0.2095 \times 1013\ \text{hPa} = 212\ \text{hPa}0.2095×1013 hPa=212 hPa.

Pressure falls with height

Air pressure is the weight of the air above each square metre. Take a thin slab of air, of thickness dzdzdz and density ρ\rhoρ. The pressure under it is larger than the pressure above it by the slab's weight per square metre:

dpdz=−ρg\displaystyle \dfrac{dp}{dz} = -\rho gdzdp​=−ρg

This is the hydrostatic equation. The gas law for dry air links density, pressure and temperature: p=ρRdTp = \rho R_d Tp=ρRd​T, with Rd=287 J kg−1 K−1R_d = 287\ \text{J kg}^{-1}\ \text{K}^{-1}Rd​=287 J kg−1 K−1. Put it in:

dpdz=−pgRdT\displaystyle \dfrac{dp}{dz} = -\dfrac{p g}{R_d T}dzdp​=−Rd​Tpg​

If the temperature is the same at every height, the answer is

p=p0 e−z/H,H=RdTg\displaystyle p = p_0\,e^{-z/H}, \quad H = \dfrac{R_d T}{g}p=p0​e−z/H,H=gRd​T​

HHH is the scale height. Over each height HHH the pressure falls by the factor e=2.718e = 2.718e=2.718. For T=260 KT = 260\ \text{K}T=260 K, H=287×260/9.81 m=7.6 kmH = 287 \times 260/9.81\ \text{m} = 7.6\ \text{km}H=287×260/9.81 m=7.6 km. Many books round it to about 8 km8\ \text{km}8 km.

Half the air lies below the height Hln⁡2H\ln 2Hln2, about 5.3 km5.3\ \text{km}5.3 km. So you could stand above half the atmosphere on a high mountain.

How heavy is the air?

At sea level the pressure is 1013.25 hPa=101 325 Pa1013.25\ \text{hPa} = 101\,325\ \text{Pa}1013.25 hPa=101325 Pa. That is the weight of the air above one square metre. So the mass of that column is

m=p0g=101 325 Pa9.81 m/s2\displaystyle m = \dfrac{p_0}{g} = \dfrac{101\,325\ \text{Pa}}{9.81\ \text{m/s}^2}m=gp0​​=9.81 m/s2101325 Pa​
m=10 330 kg\displaystyle m = 10\,330\ \text{kg}m=10330 kg

about ten tonnes on every square metre. We do not feel it, because the air pushes on us from every side, and from inside too.

The layers

A graph of height, from 0 to 100 km up the side, against temperature, from minus 110 to plus 30 degrees Celsius along the bottom. The line starts at 15 degrees Celsius at the ground and slopes to the left, getting colder, up to minus 56.5 degrees Celsius at 11 km: this band is labelled troposphere. The line then goes straight up to 20 km and slopes to the right, getting warmer, up to about minus 2.5 degrees Celsius near 50 km: this band is labelled stratosphere, and a shaded strip from 15 to 35 km is labelled ozone layer. From 50 km the line slopes left again, getting colder, to about minus 86 degrees Celsius at 85 km: the mesosphere. Above 85 km it turns to the right again: the thermosphere. Thin dashed lines mark the tropopause, the stratopause and the mesopause.

The temperature does not fall all the way up. It falls, rises, falls and rises again. So we sort the air into four layers by the way the temperature changes.

  • Troposphere, from the ground to about 12 km12\ \text{km}12 km. The temperature falls by about 6.5 K6.5\ \text{K}6.5 K per km on average. Its top, the tropopause, is about 8 km8\ \text{km}8 km high over the poles and about 17 km17\ \text{km}17 km over the equator. It holds about 80 %80\ \%80 % of the air's mass and nearly all the water vapour, so nearly all the weather happens here.
  • Stratosphere, from the tropopause to about 50 km50\ \text{km}50 km. The temperature rises with height, to about 0 ∘C0\ ^\circ\text{C}0 ∘C at the stratopause. Warm air above cold air does not overturn, so the air here lies in calm layers.
  • Mesosphere, from about 505050 to 85 km85\ \text{km}85 km. The temperature falls again, to about −90 ∘C-90\ ^\circ\text{C}−90 ∘C at the mesopause, the coldest place in the atmosphere. Most meteors burn up here.
  • Thermosphere, above about 85 km85\ \text{km}85 km. The few molecules there absorb the Sun's X-rays and far ultraviolet light, and they reach 500 ∘C500\ ^\circ\text{C}500 ∘C or more. But the air is so thin that you would not feel warm.

Why is the ground the warm end of the troposphere? Sunlight passes through the air and warms the ground. The ground then warms the air above it. Air that rises also expands and cools, as course 3 shows. So a summit is cold although it is nearer the Sun.

Ozone warms the stratosphere

Ozone, O₃, is oxygen with three atoms. Ultraviolet light splits ordinary O₂ into two atoms, and each atom joins an O₂ to make O₃. Ozone then absorbs ultraviolet light of wavelengths from about 200200200 to 320 nm320\ \text{nm}320 nm and is split again. Each time, the energy of the light ends up as heat in the air.

Most ozone lies between about 151515 and 35 km35\ \text{km}35 km: this is the ozone layer. It stops nearly all the Sun's UV-C and most of its UV-B, which would damage the cells of living things.

Why is the top of the stratosphere warmer than the ozone layer itself? The ultraviolet light is strongest high up, before it has been absorbed. And there are few molecules to share the heat. So each kilogram of air near 50 km50\ \text{km}50 km gains the most energy.

Worked example: the air on the summit

The air below the summit of Everest has a mean temperature of about 260 K260\ \text{K}260 K. Find the pressure at the top and the partial pressure of oxygen there.

  1. The scale height. H=RdT/g=287×260/9.81 m=7607 mH = R_d T/g = 287 \times 260/9.81\ \text{m} = 7607\ \text{m}H=Rd​T/g=287×260/9.81 m=7607 m.
  2. The pressure. p=1013.25 hPa×e−8849/7607=1013.25 hPa×0.3124=316.6 hPap = 1013.25\ \text{hPa} \times e^{-8849/7607} = 1013.25\ \text{hPa} \times 0.3124 = 316.6\ \text{hPa}p=1013.25 hPa×e−8849/7607=1013.25 hPa×0.3124=316.6 hPa.
  3. The oxygen. 0.2095×316.6 hPa=66.3 hPa0.2095 \times 316.6\ \text{hPa} = 66.3\ \text{hPa}0.2095×316.6 hPa=66.3 hPa, against 212 hPa212\ \text{hPa}212 hPa at sea level.
  4. Check. The ratio is 0.310.310.31, about a third, as the climbers find. The answer is rough, because the temperature really falls with height.

Find the tropopause, the stratopause and the mesopause on the curve. Then raise the ground temperature to 30 ∘C30\ ^\circ\text{C}30 ∘C. Does the whole curve move?

Practise with new numbers

Try it in Python

The program climbs the standard atmosphere in steps of 10 m10\ \text{m}10 m. At each step it takes away the weight of a thin slab of air.

Predict first. At about what height has the pressure fallen to half of 1013 hPa1013\ \text{hPa}1013 hPa? Then run it. Check with Show the answer.

1. Change the lapse rate from 6.5 to 9.8, the rate for rising dry air. Does the pressure at 10 km10\ \text{km}10 km go up or down?

2. Print the pressure every 1 km1\ \text{km}1 km up to 6 km6\ \text{km}6 km. Between which two heights does it pass 500 hPa500\ \text{hPa}500 hPa?

Common mistakes

  • Thinking the share of oxygen falls on a mountain. The share stays 21 %21\ \%21 %. The pressure, and so the number of molecules in each breath, falls.
  • Making pressure fall in a straight line. It falls by the same factor for each step up, so the curve flattens.
  • Mixing up hPa and Pa. 1 hPa=100 Pa1\ \text{hPa} = 100\ \text{Pa}1 hPa=100 Pa. Use pascals with ggg and the gas law.
  • Saying the stratosphere is warm because it is nearer the Sun. It is warm because ozone absorbs ultraviolet light there.

Remember these

  • Dry air: N₂ 78.08 %78.08\ \%78.08 %, O₂ 20.95 %20.95\ \%20.95 %, Ar 0.93 %0.93\ \%0.93 %, CO₂ about 420420420 ppm.
  • dp/dz=−ρgdp/dz = -\rho gdp/dz=−ρg, and in air at one temperature p=p0e−z/Hp = p_0 e^{-z/H}p=p0​e−z/H with H=RdT/gH = R_d T/gH=Rd​T/g.
  • The column of air above each m² at sea level has a mass of about 10 330 kg10\,330\ \text{kg}10330 kg.
  • Troposphere, stratosphere, mesosphere, thermosphere, sorted by how the temperature changes.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. On a plateau the pressure is 600 hPa600\ \text{hPa}600 hPa. What is the partial pressure of oxygen there?
  1. How much does the pressure fall between the heights HHH and 2H2H2H?
  1. Why does almost all the weather happen in the troposphere?
  1. Ozone absorbs ultraviolet light. How does that make the temperature rise with height in the stratosphere?

References

  • J. M. Wallace and P. V. Hobbs, Atmospheric Science: An Introductory Survey (2nd edition, Academic Press, 2006), Chapter 1 Introduction and Overview, and Chapter 3 Atmospheric Thermodynamics.
  • NCERT, Fundamentals of Physical Geography (Class 11), the chapter Composition and Structure of Atmosphere.

Enroll free in Layers, Composition and the Earth's Energy Balance

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

Land stands above sea level, so the mean pressure over the whole surface of the Earth is lower than…Hard · High School (11–12) · by StemPy Lab
A team of climbers rests at the base camp of Mount Everest, 5364 m above sea level, where their…Hard · High School (11–12) · by StemPy Lab
Ozone is measured in Dobson units. One Dobson unit means that, if all the ozone above a place were…Advanced · High School (11–12) · by StemPy Lab
Next: lesson 2Sunlight, albedo and the radiation laws
← Layers, Composition and the Earth's Energy Balance
← PreviousSunlight, albedo and the radiation laws →

Discussion (0)

Log in to join the discussion.

Loading…

. The temperature sorts the air into four layers, and ozone makes the stratosphere warm.
about 35 min1 simulation2 practice questions1 Python program5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Python Labs (1)

Finding the tropopause in a balloon soundingPython Lab · by StemPy Lab