AP Chemistry · Topic 3.4 · Reading guide, about 6 min

Relating pressure, volume, temperature and moles

Use PV = nRT, the single-variable gas laws, the combined gas law and Dalton's law to solve gas problems with correct units and kelvins.

In one minute

A gas is described by four connected quantities: pressure PP, volume VV, temperature TT and amount in moles nn. The ideal gas law ties them together, and every other gas relationship in this topic is a special case or an extension of it.

Gas problems reward a steady routine: list what you know, convert temperature to kelvins, match the gas constant to your units, and check that the answer is reasonable.

Key terms

Pressure
Force per unit area from gas particles colliding with a surface. Common units are atm, kPa, mmHg and torr.
Kelvin temperature
Absolute scale where K = degrees C + 273.15. Gas-law work must use kelvins, never degrees Celsius.
Ideal gas law
PV=nRTPV = nRT. It relates pressure, volume, moles and kelvin temperature for an ideal gas, using the gas constant RR.
Gas constant R
R = 0.08206 L atm/(mol K) when pressure is in atm and volume in L, or 8.314 J/(mol K) when working in energy units.
Boyle's law
At constant nn and TT, pressure and volume are inversely proportional, so P1V1=P2V2P_1V_1 = P_2V_2.
Charles's law
At constant nn and PP, volume is directly proportional to kelvin temperature, so V1/T1=V2/T2V_1/T_1 = V_2/T_2.
Avogadro's law
At the same temperature and pressure, equal volumes of gas contain equal numbers of particles, so volume is proportional to moles.
Dalton's law
In a gas mixture, the total pressure is the sum of the partial pressures, and each is PA=XAPtotalP_A = X_A P_{total}.
Mole fraction
Moles of one component divided by total moles, XA=nA/ntotalX_A = n_A/n_{total}. It has no units and the fractions add to 1.

The ideal gas law and its special cases

The equation PV=nRTPV = nRT works for any ideal gas. If PP is in atm and VV in L, use R=0.08206R = 0.08206 L atm/(mol K); if you work in pascals and cubic meters, use R=8.314R = 8.314 J/(mol K). Whichever you choose, TT must be in kelvins, so add 273.15 to a Celsius reading. Using degrees Celsius is the most common error in gas problems, and it can even produce a zero or negative volume.

Hold some variables fixed and the law reduces to simpler relationships. Boyle's law says squeezing a gas into half the volume doubles its pressure at constant temperature. Charles's law says a gas heated at constant pressure expands in proportion to its kelvin temperature. Avogadro's law says that at constant TT and PP volume rises with moles, which is why a balloon grows as you blow more air into it. A fourth relationship, pressure proportional to kelvin temperature at constant volume, explains why a sealed can can burst in a fire.

When a fixed amount of gas goes from one set of conditions to another, nn and RR cancel and you get the combined gas law, P1V1/T1=P2V2/T2P_1V_1/T_1 = P_2V_2/T_2. For example, 2.00 L of gas at 1.00 atm and 300. K that is moved to 1.50 atm and 350. K occupies V2=(1.00)(2.00)(350.)/((300.)(1.50))=1.56V_2 = (1.00)(2.00)(350.)/((300.)(1.50)) = 1.56 L. The pressure rise alone would shrink the volume, the temperature rise alone would expand it, and the net result lies between.

Which gas law to use, depending on what stays fixed.
Fixed quantitiesRelationshipEquation
nn, TTPressure and volume are inversely relatedP1V1=P2V2P_1V_1 = P_2V_2
nn, PPVolume is directly proportional to kelvin temperatureV1/T1=V2/T2V_1/T_1 = V_2/T_2
TT, PPVolume is directly proportional to molesV1/n1=V2/n2V_1/n_1 = V_2/n_2
nn onlyCombined gas lawP1V1/T1=P2V2/T2P_1V_1/T_1 = P_2V_2/T_2

Mixtures, partial pressures and molar mass

In a mixture of gases, each gas behaves as if it were alone in the container, so the total pressure is the sum of the partial pressures. Since pressure at fixed VV and TT is proportional to moles, a gas's partial pressure equals its mole fraction times the total: PA=XAPtotalP_A = X_A P_{total}. This is the form you will most often use. Collecting a gas over water adds water vapor to the total, which you subtract using the vapor pressure at that temperature.

Rearranging PV=nRTPV = nRT gives a way to find molar mass. Because n=m/Mn = m/M, where mm is mass and MM is molar mass, M=mRT/(PV)M = mRT/(PV). Dividing mass by volume gives the density dd, so M=dRT/PM = dRT/P. Gas density is therefore proportional to molar mass: a denser gas at the same temperature and pressure is made of heavier molecules.

Worked example: a mixture and an unknown gas

A 5.00 L flask at 25 degrees C holds 1.60 g of O2\text{O}_2 and 2.80 g of N2\text{N}_2. Find the total pressure and the partial pressure of oxygen. Step 1: convert temperature, T=25+273=298T = 25 + 273 = 298 K. Step 2: convert masses to moles using the molar masses 32.00 g/mol and 28.02 g/mol: n(O2)=1.60/32.00=0.0500n(\text{O}_2) = 1.60/32.00 = 0.0500 mol and n(N2)=2.80/28.02=0.0999n(\text{N}_2) = 2.80/28.02 = 0.0999 mol, so ntotal=0.1499n_{total} = 0.1499 mol. Step 3: use P=nRT/V=(0.1499)(0.08206)(298)/(5.00)P = nRT/V = (0.1499)(0.08206)(298)/(5.00). The numerator is 3.666 and dividing by 5.00 gives Ptotal=0.733P_{total} = 0.733 atm.

Step 4: the mole fraction of oxygen is 0.0500/0.1499=0.3340.0500/0.1499 = 0.334, so P(O2)=(0.334)(0.733)=0.245P(\text{O}_2) = (0.334)(0.733) = 0.245 atm. A check using only the oxygen, (0.0500)(0.08206)(298)/5.00(0.0500)(0.08206)(298)/5.00, also gives 0.245 atm, as Dalton's law predicts. The nitrogen contributes the rest: (0.0999)(0.08206)(298)/5.00=0.489(0.0999)(0.08206)(298)/5.00 = 0.489 atm, and 0.245+0.489=0.7340.245 + 0.489 = 0.734 atm matches the total within rounding.

Now an unknown gas has a density of 1.96 g/L at 273.15 K and 1.00 atm. Using M=dRT/P=(1.96)(0.08206)(273.15)/(1.00)M = dRT/P = (1.96)(0.08206)(273.15)/(1.00) gives 43.9 g/mol, close to the 44.01 g/mol of carbon dioxide. Units check: (g/L)(L atm/(mol K))(K)/atm leaves g/mol, as required.

How it connects

  • Back to 1.1: converting grams to moles with molar mass feeds directly into the n term of PV = nRT.
  • Forward to 3.5: the kinetic molecular theory explains each of these laws in terms of colliding particles.
  • Forward to 4.5: gas volumes and pressures let you find moles for stoichiometry calculations.

Common mistakes

  • Leaving temperature in degrees Celsius. Every gas-law calculation needs kelvins; a result using 25 instead of 298 is wrong by a factor of about twelve.
  • Using the wrong R for the units. If pressure is in kPa or mmHg, convert to atm first, or choose an R that matches, and do not mix 8.314 with atm and liters.
  • Applying Boyle or Charles when moles change. Those relationships need a fixed amount of gas; if gas is added or removed, use PV = nRT.
  • Forgetting that mole fractions are unitless and sum to 1. A fraction above 1 signals an inverted ratio.

How it shows up on the exam

  • A calculation gives pressure, volume and temperature for a sample and asks for moles, molar mass or density, with units and sensible significant figures expected.
  • A mixture problem asks for partial pressures or mole fractions from masses or moles.
  • A short explanation asks what happens to pressure or volume when one variable changes, justified using the proportionality, not a memorized rule.

Check yourself

  1. A sample is heated from 20 degrees C to 40 degrees C at constant pressure. Does its volume double, and why not?
  2. Why must you convert grams to moles before using PV = nRT?
  3. How does the partial pressure of one gas compare with total pressure if its mole fraction is 0.25?
  4. How could you tell, without calculating, that a gas with twice the density of another at the same T and P has a larger molar mass?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.