These The ideal gas equation notes explain the idea step by step, with 6 worked examples and ten questions with solutions. After this topic you will be able to use PV = nRT with the right value of R, find pressure, volume, amount or temperature, find the density and molar mass of a gas, and count the molecules in a given volume.
In the earlier topics we met three gas laws. Boyle's law links P and V when n and T are fixed. Charles's law links V and T when n and P are fixed. Avogadro's law links V and n when P and T are fixed. Each law works only when two other quantities are held still. In real life all four can change together. A cooking gas cylinder is filled, used, warmed and cooled. We want one relation that holds in every case. That relation is the ideal gas equation.
Combining the three laws
Look at what the volume depends on. V goes up when n goes up. V goes up when T goes up. V goes down when P goes up. A single proportion that obeys all three statements is V∝nT/P. Check it: keep n and T fixed and you get V∝1/P (Boyle). Keep n and P fixed and you get V∝T (Charles). Keep P and T fixed and you get V∝n (Avogadro).
To turn a proportion into an equation we put in a constant. Experiment shows that the same constant works for every gas, so it is called the universal gas constant, R. Then V=nRT/P, which is written as PV=nRT.
Each law holds two quantities fixed; together they give one equation with no quantity fixed.
PV=nRT
P is pressure, V is volume, n is amount in mol, T is temperature in kelvin, R is the gas constant.
Ideal gas
A gas that obeys PV=nRT exactly at every pressure and temperature. Real gases come close at low pressure and high temperature; how they differ is the subject of the next chapter, Real gases.
For a fixed amount of gas, PV is proportional to T. A graph of PV against T is a straight line through the origin with slope nR. Twice the gas gives twice the slope.
PV against T in kelvin: straight lines through the origin; slope nR, so 2 mol gives twice the slope of 1 mol.
The value and units of R
We can find R from one known fact. One mole of an ideal gas at 273.15 K and 1 atm occupies 22.414 L. So R=PV/(nT)=(1atm×22.414L)/(1mol×273.15K)=0.08206LatmK−1mol−1. The number of R depends only on the units we use for P and V. The unit of PV is a unit of energy, so R is energy per kelvin per mole.
Value of R
Units
Use it when
0.0821
LatmK−1mol−1
P in atm, V in L
0.083 (0.0831 more precisely)
LbarK−1mol−1
P in bar, V in L
8.314
JK−1mol−1 = Pam3K−1mol−1
P in Pa, V in m3 (or P in kPa, V in L)
1.987 (about 2)
calK−1mol−1
energy in calories (thermodynamics)
8.314×107
ergK−1mol−1
CGS units
Tip
1 kPa multiplied by 1 L is exactly 1 J, because 103Pa×10−3m3=1Pam3. So with P in kPa and V in L you can still use R=8.314.
Choosing units
The equation itself has no preferred units. The only rule is that the units of P, V and R must match. Temperature must always be in kelvin, because Charles's law, one of the laws we combined, is a proportion only on the kelvin scale. Useful conversions: 1atm=101325Pa=1.01325bar=760mmHg; 1L=1dm3=1000mL=10−3m3; T(K)=t(∘C)+273 (273.15 when the data are precise).
How to use PV = nRT for one unknown
1List P, V, n, T and mark the unknown.
2Change T to kelvin.
3Pick R to match the units of P and V, or convert P and V to match the R you are given.
4Rearrange: P=nRT/V, V=nRT/P, n=PV/RT or T=PV/nR.
5Substitute with units and check that the units cancel to the unit you want.
Common mistake
Mixing units is the most common error. With R=8.314 and V in litres, the pressure comes out in kPa, not in Pa or atm. With R=0.0821 and P in mm Hg, the answer is wrong by a factor of 760. Convert first, then substitute.
Density form: PM = dRT
Moles are mass divided by molar mass, n=m/M. Put this into PV=nRT: PV=(m/M)RT. Multiply both sides by M and divide by V: PM=(m/V)RT. The ratio m/V is the density d. So PM=dRT.
PM=dRTord=RTPM
d in gL−1 when P is in atm and R=0.0821; M in gmol−1.
This form tells us three things. At fixed T, density is proportional to pressure: squeeze the gas and the same mass sits in a smaller volume. At fixed P, density is inversely proportional to T: hot air is lighter, which is why a hot air balloon rises. At the same P and T, density is proportional to molar mass: CO2 is heavier than air and collects near the floor.
Density against pressure at 300 K: straight lines through the origin with slope M/RT; the heavier gas has the steeper line.
Molar mass of a gas from measurements
Rearranging gives two ways to find the molar mass of an unknown gas or vapour. If we measure the mass m of gas in a vessel of volume V at P and T, then M=mRT/(PV). If we know the density, then M=dRT/P. In the laboratory a bulb is weighed empty (evacuated) and then full of the gas. The difference is the mass of gas. A volatile liquid can be treated the same way: it is vaporised completely at a known temperature and the vapour is weighed.
Weighing a gas: the difference between the two masses is the mass of gas in the known volume.
How to find molar mass from mass or density
1Find the mass of gas (by difference) or note the density.
2Convert T to kelvin and P, V to units that match R.
3Use M=mRT/(PV) or M=dRT/P.
4Check the answer against real molar masses; it should be close to a whole formula.
Number of molecules in a volume
Once we have n, the number of molecules is N=nNA=PVNA/(RT). The ratio R/NA is the Boltzmann constant, k=1.381×10−23JK−1, the gas constant per molecule. So PV=NkT, and the number of molecules per unit volume is N/V=P/(kT).
N=RTPVNA=kTPV
Use SI units (Pa, m3, K) with k in JK−1.
Common mistake
The number of molecules does not depend on which gas it is. Equal P, V and T means equal N for H2 and for CO2. But the number of atoms does depend on the gas: multiply by the atoms in one molecule (O2 has 2, O3 has 3).
Worked examples
Worked example 1: pressure from amount
Find the pressure of 4.0 g of helium in a 5.0 L vessel at 27∘C. (He = 4, R=0.0821LatmK−1mol−1)
1n=4.0/4=1.0mol; T=27+273=300K.
2P=nRT/V=(1.0×0.0821×300)/5.0.
3P=24.63/5.0=4.926atm.
Answer: 4.93 atm.
Worked example 2: volume in bar units
What volume does 5.6 g of N2 occupy at 1.0 bar and 300 K? (N = 14, R=0.083LbarK−1mol−1)
1M(N2)=28gmol−1, so n=5.6/28=0.20mol.
2V=nRT/P=(0.20×0.083×300)/1.0.
3V=4.98L.
Answer: 4.98 L.
Worked example 3: SI units
A tank of volume 0.50m3 holds a gas at 200 kPa and 400 K. How many moles are present? (R=8.314JK−1mol−1)
1Convert pressure to Pa: 200kPa=2.00×105Pa.
2n=PV/RT=(2.00×105×0.50)/(8.314×400).
3n=1.00×105/3325.6=30.07mol.
Answer: About 30.1 mol.
Worked example 4: density of a gas
Find the density of ethane, C2H6, at 1.5 atm and 300 K. (H = 1, C = 12, R=0.0821LatmK−1mol−1)
1M=2×12+6×1=30gmol−1.
2d=PM/RT=(1.5×30)/(0.0821×300).
3d=45/24.63=1.827gL−1.
Answer: 1.83gL−1.
Worked example 5: identify a gas from its density
A gas has density 3.654gL−1 at 1.5 atm and 320 K. Find its molar mass and suggest which of O2, SO2 and SO3 it is. (O = 16, S = 32, R=0.0821LatmK−1mol−1)
Worked example 6: molecules in one cubic centimetre
How many gas molecules are present in 1.00cm3 of any ideal gas at 273.15 K and 1 atm, where the molar volume is 22.414 L? (NA=6.022×1023mol−1)
122.414L=22414cm3.
2n=1.00/22414=4.462×10−5mol.
3N=4.462×10−5×6.022×1023=2.687×1019.
Answer: 2.69×1019 molecules, the same for every gas.
Key points
PV=nRT joins Boyle, Charles and Avogadro laws into one equation.
R=0.0821Latm=0.083Lbar=8.314J, each per K per mol. Match the units of P and V to R.
Temperature is always in kelvin.
Density form: PM=dRT; molar mass M=dRT/P=mRT/(PV).
Number of molecules N=PVNA/(RT)=PV/(kT); it does not depend on the identity of the gas.
Ten The ideal gas equation questions
Try each one on paper first, then open the answer and the worked solution under it.
1Starter
What pressure is exerted by 0.50 mol of N2 in a 10.0 L vessel at 27∘C? (R=0.0821LatmK−1mol−1)
A0.111 atm
B1.23 atm
C12.3 atm
D125 atm
Show answer and solution
Answer: B
T=27+273=300K. P=nRT/V=(0.50×0.0821×300)/10.0=12.315/10.0=1.23atm. 0.111 atm comes from using T=27 (Celsius). 12.3 atm comes from forgetting to divide by V. 125 atm comes from using R=8.314 with litres and atm. Answer: 1.23 atm.
2Starter
Which value of the gas constant is correct when pressure is in bar and volume in litres?
A0.0821LbarK−1mol−1
B8.314LbarK−1mol−1
C0.083LbarK−1mol−1
D1.987LbarK−1mol−1
Show answer and solution
Answer: C
R=8.314JK−1mol−1 and 1J=1Pam3. Since 1Lbar=10−3m3×105Pa=100J, R=8.314/100=0.08314, usually rounded to 0.083LbarK−1mol−1. 0.0821 is the value in L atm, 8.314 is the value in J, and 1.987 is the value in cal. Answer: 0.083LbarK−1mol−1.
3Starter
What is the density of CO2 at 2.0 atm and 400 K? (C = 12, O = 16, R=0.0821LatmK−1mol−1)
A2.68gL−1
B1.49gL−1
C8.44gL−1
D1.96gL−1
Show answer and solution
Answer: A
M=12+32=44gmol−1. d=PM/RT=(2.0×44)/(0.0821×400)=88/32.84=2.68gL−1. 8.44 comes from using T=127 (the Celsius value of 400 K). 1.49 comes from the inverted formula PRT/M=2.0×0.0821×400/44. 1.96 is 44/22.4, the density at 273 K and 1 atm, which ignores the given conditions. Answer: 2.68gL−1.
4Starter, numerical answer
3.2 g of a gas occupies 2.463 L at 1.00 atm and 300 K. Find its molar mass in gmol−1. (R=0.0821LatmK−1mol−1) Give the answer to the nearest integer.
Numerical answer, in g/mol.
Show answer and solution
Answer: 32 g/mol
M=mRT/(PV)=(3.2×0.0821×300)/(1.00×2.463). Numerator =78.816. M=78.816/2.463=32.0gmol−1. (The gas could be O2.) Answer: 32.
5Exam level
A 250 mL flask contains oxygen at 0.821 atm and 27∘C. How many O2 molecules are in the flask? (R=0.0821LatmK−1mol−1, NA=6.022×1023mol−1)
A1.00×1022
B5.02×1024
C5.58×1022
D5.02×1021
Show answer and solution
Answer: D
V=0.250L, T=300K. n=PV/RT=(0.821×0.250)/(0.0821×300)=0.20525/24.63=8.333×10−3mol. N=8.333×10−3×6.022×1023=5.02×1021. 1.00×1022 is the number of O atoms (two per molecule). 5.02×1024 uses 250 instead of 0.250 L. 5.58×1022 uses T=27. Answer: 5.02×1021.
6Exam level
Oxygen at 1 atm and 27∘C has a certain density. At what temperature will SO2 at 1 atm have the same density? (O = 16, S = 32)
A327∘C
B54∘C
C600∘C
D−123∘C
Show answer and solution
Answer: A
From d=PM/RT at equal P and equal d: M1/T1=M2/T2. 32/300=64/T2, so T2=600K=600−273=327∘C. The heavier gas must be hotter to be as light per litre. 54∘C comes from doubling the Celsius value. 600∘C forgets to convert 600 K back to Celsius. −123∘C (150 K) comes from putting the ratio the wrong way round. Answer: 327∘C.
7Exam level
2.0 mol of a gas is kept in a 24.9 L vessel at 300 K. Using R=8.314JK−1mol−1, what is its pressure?
A0.200 kPa
B200 kPa
C2.00×105kPa
D1.98 kPa
Show answer and solution
Answer: B
Work in SI: V=24.9L=0.0249m3. P=nRT/V=(2.0×8.314×300)/0.0249=4988.4/0.0249=2.003×105Pa=200kPa. Short cut: with V in L and R=8.314, P comes out in kPa: 4988.4/24.9=200 kPa. 0.200 kPa and 2.00×105 kPa come from wrong unit labels (a factor of 1000 each way). 1.98 kPa comes from using R=0.0821, which gives 1.98 atm, and then writing kPa as the unit. Answer: 200 kPa.
8Exam level, numerical answer
0.580 g of a volatile liquid is vaporised completely at 373 K and 1.00 atm. The vapour occupies 306.2 mL. Find the molar mass of the liquid in gmol−1. (R=0.0821LatmK−1mol−1) Give the answer to the nearest integer.
Numerical answer, in g/mol.
Show answer and solution
Answer: 58 g/mol
V=306.2mL=0.3062L. M=mRT/(PV)=(0.580×0.0821×373)/(1.00×0.3062). Numerator: 0.580×0.0821=0.047618; ×373=17.762. M=17.762/0.3062=58.0gmol−1. If the volume is left in mL the answer is 1000 times too small. Answer: 58.
9Challenge
A hydrocarbon has the empirical formula CH2. Its vapour has a density of 1.40gL−1 at 0.821 atm and 400 K. What is its molecular formula? (H = 1, C = 12, R=0.0821LatmK−1mol−1)
AC2H4
BC3H6
CC4H8
DC5H10
Show answer and solution
Answer: C
M=dRT/P=(1.40×0.0821×400)/0.821. Since 0.0821/0.821=0.1, M=1.40×400×0.1=56gmol−1. Empirical formula mass of CH2=14. Multiplier =56/14=4, so the formula is C4H8. Using M=d×22.4=31.4 (ignoring the real conditions) points wrongly to about C2H4 (28). Answer: C4H8.
10Challenge, numerical answer
A vacuum chamber is pumped down to a pressure of 1.0×10−6Pa at 300 K. How many gas molecules are still present in each cm3? Write your answer as x×108 and give x to one decimal place. (R=8.314JK−1mol−1, NA=6.022×1023mol−1)
Numerical answer.
Show answer and solution
Answer: 2.4 (accepted range 2.35 to 2.45)
Take V=1m3 first (SI units). n=PV/RT=(1.0×10−6×1)/(8.314×300)=1.0×10−6/2494.2=4.009×10−10mol. N=4.009×10−10×6.022×1023=2.414×1014 molecules per m3. 1m3=106cm3, so per cm3: 2.414×1014/106=2.414×108. Even a very good vacuum holds hundreds of millions of molecules in each cm3. Answer: x=2.4.