ideal gas law, ideal gas, equation of state, PV = nRT, PV = NkT, universal gas constant, mole, molar mass, STP
13 min read
Ideal Gas Law
An ideal gas is a gas whose molecules take up no volume of their own. They exert no forces on one another except during collisions. Real gases behave this way at low density, far from the conditions at which they liquefy. The ideal gas law relates the four quantities that describe a sample of such a gas, PV=NkT,
where P is the absolute pressure, V is the volume, T is the absolute temperature in kelvins, and N is the number of molecules. The constant k is Boltzmann’s constant, k=1.381×10−23J/K.
It converts a temperature into an energy, and kT is the energy scale of everything in thermodynamics. Many texts and lab handouts write the pressure as lowercase p.
Chemistry counts molecules in moles. A mole (mol) contains Avogadro’s number of molecules, NA=6.022×1023, and the molar massM of a substance, in grams per mole, is numerically equal to its molecular mass in atomic mass units. A sample of mass m holds n=m/M moles and N=nNA molecules. In moles the law reads PV=nRT,R=NAk=8.314J/(mol⋅K)=0.0821L⋅atm/(mol⋅K),
where R is the universal gas constant. The two forms say the same thing, because nR=nNAk=Nk. This course uses N and k, and quotes n and R when a problem is stated in moles. Standard temperature and pressure (STP) means T=273.15K and P=1atm=1.013×105Pa. One mole of any ideal gas at STP occupies 22.4L.
The law is an equation of state. It has four variables and is one equation, so by itself it predicts nothing. Give it any three of P, V, T, and N and it returns the fourth. With N fixed, which is the usual case, two of the remaining three fix the third, and every point of a $P$-$V$ diagram is a state with a definite temperature. The law describes a gas in equilibrium, which means one pressure and one temperature throughout the container. For a fixed amount of gas it reduces to the combined gas law, P1V1/T1=P2V2/T2. Air and other common gases follow it to within a fraction of a percent at ordinary conditions. It fails at high pressure or near liquefaction, where the van der Waals equation applies.
Not Taught in Lecture
Lecture mentioned moles and R=NAk only to set them aside in favor of N and k. Molar mass, R in liter-atmospheres, STP, and the 22.4L molar volume were not covered. They follow Giancoli sections 17.7 and 17.8.
Intuition
The gas laws describe a fixed sample of gas. The ideal gas law adds the amount. Doubling the number of molecules in a container at fixed volume and temperature doubles the number of collisions with the walls. The pressure doubles with it, as the first sketch shows. Pressure is therefore proportional to N, and the three gas laws combine into PV∝NT. The proportionality constant is Boltzmann’s constant k when the amount is counted in molecules and R when it is counted in moles. One equation covers every gas because the molecules of a low-density gas do not interact. They spend their time in free flight, and a helium atom in free flight behaves like a nitrogen molecule in free flight. The kinetic theory of gases derives the law from this picture and identifies kT as a measure of the kinetic energy per molecule.
An equation of state describes a constraint, not a process. A sample of gas with fixed N has three variables and one equation, so it has two degrees of freedom. Its state is a point on a P-V diagram, and the equation assigns a temperature T=PV/Nk to every point. The curves of constant temperature are hyperbolas, called isotherms, and higher temperatures lie farther from the origin. The second diagram shows three isotherms and one state. Any process that changes the gas slowly traces a path across this diagram. The work done by the gas is the area under the path.
\usepackage{tikz}\begin{document}\definecolor{hot}{HTML}{D9483B}\begin{tikzpicture}[x=1cm,y=1cm,>=latex]\draw[very thick] (0,0) rectangle (2.4,2.0);\foreach \x/\y in {0.4/0.5,0.9/1.4,1.3/0.7,0.5/1.6} \fill (\x,\y) circle (0.06);\foreach \y in {0.6,1.4} {\fill (2.31,\y) circle (0.06); \draw[->,very thick,hot] (2.4,\y) -- (2.85,\y);}\node at (1.2,-0.4) {$N$ molecules};\node at (1.2,-0.85) {pressure $P$};\begin{scope}[xshift=4.4cm]\draw[very thick] (0,0) rectangle (2.4,2.0);\foreach \x/\y in {0.4/0.5,0.9/1.4,1.3/0.7,0.5/1.6,1.7/1.2,0.3/1.0,1.0/0.35,1.6/1.75} \fill (\x,\y) circle (0.06);\foreach \y in {0.35,0.8,1.25,1.7} {\fill (2.31,\y) circle (0.06); \draw[->,very thick,hot] (2.4,\y) -- (2.85,\y);}\node at (1.2,-0.4) {$2N$ molecules};\node at (1.2,-0.85) {pressure $2P$};\end{scope}\node at (3.4,2.45) {same $V$, same $T$};\end{tikzpicture}\end{document}
(Four Variables, One Equation) A single equation of state cannot say what happened to a gas; the process has to be given.
Compressing a gas quickly in a sealed cylinder makes it hot enough to ignite paper. The ideal gas law does not predict this. It says only that PV/T stayed fixed while V fell, and that leaves P and T free to trade off in any proportion. What fixes the outcome is how the change was made. A fast push lets no heat escape, and that extra condition, not the equation of state, is what sets the final temperature. Every problem about a changing gas therefore needs two ingredients: the equation of state and a statement of the process. The three named gas laws are the processes that hold one variable fixed.
(Density of a Gas) The density follows from the pressure, the temperature, and the molar mass.
Not Taught in Lecture
Lecture used the density of air, 1.29kg/m3 at STP, only to count the molecules in a bottle. It did not derive ρ=PM/RT. This property follows Giancoli section 17.8.
Substituting n=m/M into the law and dividing by V gives ρ=Vm=RTPM,
where M must be in kilograms per mole when R is in joules. Air has an average molar mass of 29.0g/mol, so its density is 1.29kg/m3 at STP and 1.21kg/m3 at 20∘C. The formula shows that hot air is less dense than cold air at the same pressure. It also shows that a gas with a smaller molar mass, such as helium (4.0g/mol), is less dense than air. Both facts are the basis of buoyant balloons.
(Internal Energy Depends on T Alone) The internal energy of an ideal gas is a function of its temperature only.
Ideal gas molecules have no potential energy of interaction. The internal energy of the gas is therefore the sum of the kinetic energies of its molecules. The kinetic theory shows that the average kinetic energy per molecule is set by T alone. Compressing or expanding an ideal gas at constant temperature therefore leaves its internal energy unchanged, even though the pressure and volume both change. Any heat added during such an isothermal process leaves again as work done by the gas.
(Unit Bookkeeping) Most errors with the law come from mixed units.
The law needs absolute pressure, not gauge pressure, and kelvins, not degrees Celsius. With R=8.314J/(mol⋅K), the volume must be in cubic meters (1L=10−3m3) and the pressure in pascals. Small volumes are often given in cubic centimeters, with 1cm3=10−6m3. A product of pressure and volume is an energy, and 1atm⋅cm3=0.1013J. With R=0.0821L⋅atm/(mol⋅K), the volume is in liters and the pressure in atmospheres. Problems that compare two states of the same sample avoid R entirely through the combined gas law. Any consistent units for P and V then cancel. Temperature never cancels this way and must always be in kelvins.
(Differential Form) For a fixed amount of gas, small changes along any path obey PdV+VdP=NkdT.
Not Taught in Lecture
Lecture did not write this form. It substituted P=NkT/V instead. The homework uses it.
Along a process, both sides of PV=NkT change. The product rule gives the change of the left side, d(PV)=PdV+VdP. With N fixed, the right side changes by NkdT. So PdV+VdP=NkdT.
On an isobar dP=0, and the relation becomes PdV=NkdT. On an isotherm dT=0, and it becomes PdV=−VdP. It is the usual first step when a problem gives a rule for the heat and asks for the path. The note 2.5.3d Adiabatic Process shows such a case.
(Mixtures of Gases) In a mixture of ideal gases, each gas exerts its own partial pressure, and the partial pressures add.
Not Taught in Lecture
Lecture did not cover mixtures. This rule is Dalton’s law of partial pressures, and the homework uses it.
Ideal gas molecules do not interact, so each gas in a mixture behaves as if the others were absent. Gas i alone in the volume would exert its partial pressure, Pi=NikT/V. The total pressure is the sum, P=∑iPi=(∑iNi)VkT.
So a mixture obeys PV=NkT, with N the total number of molecules. The kind of molecule does not matter, only the count. Each partial pressure must be taken in the full volume the mixture fills.
(Limits of Validity) The law fails when the molecules are close enough to feel one another.
Not Taught in Lecture
Lecture said only that the free-particle picture breaks down near the change from gas to liquid. The two corrections below follow Giancoli section 18.5.
The two assumptions, negligible molecular volume and no intermolecular forces, both break down at high density. The volume of the molecules themselves reduces the space available and raises the pressure above the prediction. The attraction between molecules pulls them inward and lowers the pressure below the prediction. Near the boiling point the attraction wins, and the gas condenses. The van der Waals equation adds one correction for each effect. At room temperature and one atmosphere, air departs from the ideal gas law by less than 0.1 percent.
Derivation
Not Taught in Lecture
Lecture obtained PV=NkT from molecular collisions with the walls, as in 2.3.1 Molecular Interpretation of Temperature. This route through the gas laws and Avogadro’s hypothesis follows Giancoli section 17.7.
We want to show how the ideal gas law follows from the gas laws and one further experimental fact. The combined gas law states that PV/T is constant for a fixed sample. The constant depends on how much gas is present. Avogadro’s hypothesis states that equal volumes of any two gases at the same pressure and temperature contain the same number of molecules. The note 2.2.4 Avogadro’s Number discusses it. The volume of a sample at fixed P and T is therefore proportional to its number of moles n, and so is PV/T. Writing the proportionality constant as R gives TPV=nR,orPV=nRT.
The value of R comes from a single measurement. One mole of gas at STP occupies 22.414L, so R=nTPV=(1mol)(273.15K)(1.013×105Pa)(22.414×10−3m3)=8.31J/(mol⋅K),
which is the headline value. The same constant works for every gas because Avogadro’s hypothesis holds for every gas.
Examples
Not Taught in Lecture
Lecture did not use moles or molar mass in problems. This example follows Giancoli section 17.8.
(Easy) Mass of the Air in a Room
A room measures 4.0m by 5.0m by 3.0m. The air is at 20∘C and 1.013×105Pa, and its average molar mass is 29.0g/mol.
How many moles of air are in the room, and what do they weigh? V=60m3. The ideal gas law gives the number of moles,
n=RTPV=(8.314J/(mol⋅K))(293.15K)(1.013×105Pa)(60m3)=2.49×103mol.
The mass is m=nM=(2494mol)(0.0290kg/mol)=72kg. The air in an ordinary room weighs about as much as a person.
The volume is
(Medium) Weather Balloon
A helium balloon is released at ground level with a volume of 1.00m3, where the pressure is 1.00atm and the temperature is 20∘C. It rises to an altitude where the pressure is 0.500atm and the temperature is −20∘C. No helium escapes.
What is the volume of the balloon at that altitude? V2=V1P2P1T1T2=(1.00m3)0.500atm1.00atm293.15K253.15K=1.73m3.
The drop in pressure alone would double the volume. The drop in temperature shrinks it by 14 percent, so the net growth is 73 percent. The pressures cancel in the ratio, so atmospheres work without conversion.
The amount of gas is fixed, so the combined gas law applies. Solving for the final volume,
(Medium) Gas Trapped Under a Piston
A vertical cylinder of radius 2.00cm traps air under a piston of mass 0.200kg. The piston slides without friction, and the atmosphere above it is at 1.00×105Pa. A 0.500kg mass is then placed on the piston.
What is the pressure of the trapped air before and after the mass is added? A=π(0.0200m)2=1.26×10−3m2. Before the mass is added,
P1=Patm+Ampistong=1.00×105Pa+1.26×10−3m2(0.200kg)(9.80m/s2)=1.016×105Pa.
With the mass added, the weight is (0.700kg)(9.80m/s2)=6.86N, and P2=1.00×105+5.46×103=1.055×105Pa. Both pressures sit within a few percent of atmospheric. The mass on the piston sets the pressure, and the gas adjusts its volume.
The piston is in equilibrium, so the trapped air supports the atmosphere plus the weight above it. The piston area is
With the mass in place, the cylinder is warmed from 20∘C to 50∘C. By what factor does the volume of the trapped air change?
The mass on the piston has not changed, so the pressure stays at P2. Charles's law applies,
V1V2=T1T2=293.15K323.15K=1.10,
so the piston rises until the volume has grown by 10 percent. Heating the gas at constant pressure is an isobaric process, and the gas does work on the piston as it lifts the mass.