Squeeze a bicycle pump with your finger over the hole and the air pushes back harder. Leave a balloon in the sun and it swells; put it in the freezer and it shrinks. A spray can carries the warning "do not heat". All three are one law at work. Gases are the simplest form of matter, and their pressure, volume and temperature are tied together by a single equation, the ideal gas law. This lesson builds it up step by step, as it was found in experiments, and then counts the molecules inside.
Three variables and a fixed amount of gas#
A gas in a closed container is described by three measurable quantities: its pressure , in pascal (lesson 4.1); its volume , in m³; and its temperature . In every gas law the temperature is the absolute temperature in kelvin (lesson 4.2): add 273 to the temperature in degrees Celsius. (Where more precision matters, add 273.15.)
Other units are common too. Volumes are often given in litres: . Pressures are often given in kilopascal: normal air pressure at sea level is about .
The first three laws hold for a fixed amount of gas: the container is sealed, so no gas gets in or out. Each law keeps one more quantity fixed and looks at how the other two change together.
Boyle's law: pressure and volume#
Seal a syringe full of air and push the plunger in. The volume shrinks and the pressure rises; pull it out and the pressure falls. If the temperature stays the same, measurements show that halving the volume doubles the pressure, and a third of the volume gives three times the pressure. The pressure is inversely proportional to the volume (lesson 0.6, a power law with power ). Robert Boyle is credited with this result:
In words
p V equals constant or p one V one equals p two V two
The numbers 1 and 2 label two states of the same gas, before and after. On a graph of against the law gives a curve that falls steeply at small volumes and flattens out at large ones; a graph of against is a straight line through the origin.
Why does it happen? With less room, the same molecules hit each square metre of the walls more often, so they push harder. Lesson 4.4 makes this picture quantitative.
Because both sides of are a pressure times a volume, any units will do here, as long as each quantity has the same unit on both sides.
A bubble rising in a lake
A diver at a depth of in a freshwater lake breathes out a bubble of . The air pressure at the surface is . What is the volume of the bubble just below the surface? Assume the water has the same temperature everywhere.
The pressure at depth
The water adds a pressure of (lesson 4.1), so at the depth of the diver the pressure is , almost twice the pressure at the surface.
Boyle's law
. The bubble nearly doubles in volume on its way up. This is why divers are taught never to hold their breath while rising: the air in their lungs expands in the same way.
Charles's law: volume and temperature#
Now keep the pressure fixed, for example in a balloon or in a syringe whose plunger moves freely, and change the temperature. A warmer gas takes up more room. Plot the volume against the temperature in degrees Celsius and the measurements lie on a straight line. Extend that line to lower temperatures and it reaches zero volume at about , for every gas. That is absolute zero, , and in kelvin the line goes straight through the origin: the volume is directly proportional to the absolute temperature. The law was published by Joseph Louis Gay-Lussac in 1802, who referred to earlier unpublished work by Jacques Charles:
In words
V over T equals constant or V one over T one equals V two over T two
A real gas turns into a liquid long before , so its volume never actually reaches zero. The straight line is still the clearest way to see why the kelvin scale, and not the Celsius scale, belongs in the gas laws.
A balloon in the freezer
A balloon holds of air in a room at . It is put in a freezer at . What is its volume once the air inside has cooled down? Assume the pressure inside stays the same.
Temperatures in kelvin
and .
Charles's law
. The balloon shrinks by about 14%. In degrees Celsius the temperature would even have changed sign, which would make the volume negative: nonsense, and a sure sign that kelvin is needed.
The pressure law: pressure and temperature#
Finally keep the volume fixed, in a rigid closed container. Heating the gas makes the molecules move faster, so they hit the walls more often and harder, and the pressure rises. Measured in kelvin, the pressure is directly proportional to the temperature. This is sometimes called Gay-Lussac's law or Amontons' law; many people worked on it at the same time:
In words
p over T equals constant or p one over T one equals p two over T two
A spray can in a hot car
The gas in a spray can has a pressure of at . The can is left in a car in the sun, where it warms up to . What is the pressure now?
Temperatures in kelvin
and .
Pressure law
: about 14% more. A can is built to survive this, but in a fire the temperature, and so the pressure, keeps rising until the can bursts.
The combined gas law#
The three laws are parts of one rule. The pressure is inversely proportional to the volume and directly proportional to the temperature, so , or is a constant for a fixed amount of gas. Comparing two states:
In words
p one V one over T one equals p two V two over T two
Siyavula calls this the general gas equation. Keep fixed and it becomes Boyle's law, keep fixed and it becomes Charles's law, keep fixed and it becomes the pressure law. Again: in kelvin, and the same units for and for on both sides.
A weather balloon
A weather balloon is filled at ground level with of helium at and . It rises to an altitude of , where NASA's standard model of the atmosphere gives a pressure of and a temperature of . What is its volume there, if the gas inside takes the pressure and temperature of the air around it?
Temperatures in kelvin
and .
Rearrange and calculate
.
Check
The lower pressure alone would make the balloon times larger; the cold shrinks it again a little. Weather balloons are made of thin stretchy rubber so that they can swell this much.
Counting the gas: the mole#
The constant depends on how much gas there is: twice as much gas at the same pressure and temperature fills twice the volume. Amedeo Avogadro noticed in the early 1800s that equal volumes of different gases, at the same temperature and pressure, contain the same number of molecules. So what matters is not the kind of gas but how many particles it has.
Particles are counted in moles (unit mol, one of the SI base units of lesson 0.2). One mole is a fixed, very large number of particles, Avogadro's number, . Written with its unit, "per mole", it is the Avogadro constant :
In words
capital N sub A equals 6.02 times 10 to the power 23 moles to the power minus 1, capital N equals n capital N sub A
Here is the amount of gas in moles and the number of particles. The value of is fixed exactly by the definition of the mole, per mole; three figures are enough here. (In chemistry the amount of a gas is often found from its mass instead: divide the mass by the molar mass, the mass of one mole of that gas.)
The ideal gas law#
For one mole of any gas, measurements give , the same for every gas. This is the universal gas constant . For moles, , which is usually written as
In words
p V equals n R T, R equals 8.31 joule moles to the power minus 1 kelvin to the power minus 1
Unlike the earlier laws, this one compares nothing: it holds for a single state, so it can tell you the amount of gas, or any one of the four quantities when the other three are known. Because is in SI units, everything must be in SI units: in Pa, in m³, in K. (A joule is a pascal times a cubic metre, so is an energy.)
How much gas is in one mole?
What volume does one mole of an ideal gas fill at and ?
Rearrange
.
Every gas the same
This is true for hydrogen, helium, oxygen or carbon dioxide alike: a box about 28 cm on each side. (With the more exact values , and , it comes out at , the number often quoted in chemistry.)
A helium cylinder
A steel cylinder holds helium at and . How many moles, and how many helium atoms, are inside? Treat helium as an ideal gas.
SI units
, .
Moles
.
Atoms
atoms.
How many balloons?
At the same temperature and , Boyle's law says this helium would fill . The last stays behind in the cylinder, so the rest fills balloons of .
The graph shows the ideal gas law for one mole. Each curve is an isotherm: the pressure against the volume at one fixed temperature, so each curve on its own is Boyle's law. Move the slider to change the temperature: a hotter gas has a higher pressure at every volume.
Per molecule: Boltzmann's constant#
Write in the ideal gas law: . The ratio is the gas constant for a single particle, Boltzmann's constant (the value NIST lists, rounded to three figures), so (check: ). The ideal gas law becomes
In words
p V equals capital N k B T, k B equals 1.38 times 10 to the power minus 23 joules per kelvin
This is the form physicists use most, and the one the university course starts from. It says that the pressure depends only on the number of particles per cubic metre, , and on the temperature, and not on what the particles are. Lesson 4.4 explains why: measures the energy of motion of each particle.
The air on Earth and on Mars
How many molecules are there in each cubic metre of air at sea level (, )? Compare with the surface of Mars, where NASA's Mars Fact Sheet gives a surface pressure of (at the planet's mean radius; it changes with the seasons) and an average temperature of about .
Earth
molecules per m³.
Mars
molecules per m³.
Compare
: although Mars is colder, its air is more than a hundred times thinner than ours.
When is a real gas ideal?#
The ideal gas law describes an imagined ideal gas: its particles take up no room themselves, and they do not attract each other, they only bounce. Real molecules have a size and do attract each other a little. The law still works well for real gases as long as these two facts do not matter, and they matter in two situations:
- At high pressure the molecules are squeezed close together, and the room they take up themselves is no longer small compared with the volume of the container. The measured pressure is then higher than the law predicts.
- At low temperature the molecules move slowly, and the weak attractions between them start to hold them back. The measured pressure is then lower than the law predicts. Cool or squeeze a gas far enough and it turns into a liquid, where the law fails completely (lesson 4.6).
In ordinary air the molecules are far apart. At sea level each molecule has to itself, a cube (3.4 nm) on each side. A hydrogen atom has a radius of about (lesson 0.11), so it is about across: the room each molecule has is more than thirty times as wide as a hydrogen atom (). That is why air, and most gases at everyday pressures and temperatures, follow the ideal gas law closely.
Try it#
On the "Ideal" screen, pump some gas into the box. Hold the temperature constant and push the wall in: watch the pressure rise as in Boyle's law. Then hold the volume constant and heat the gas, or hold the pressure constant and watch the box grow. Check that doubling the kelvin temperature doubles the pressure at fixed volume.
Summary#
- For a fixed amount of gas, with the temperature always in kelvin: at constant , (Boyle); at constant , (Charles); at constant , (the pressure law).
- Together: , the combined gas law.
- Gas is counted in moles: one mole is particles, so the Avogadro constant is , and .
- The ideal gas law , with , holds for any gas in SI units. One mole fills about at and normal air pressure.
- Per particle: with and .
- Real gases follow the law closely except at high pressure and low temperature, near the point where they would turn into a liquid.