General Chemistry · Gases
Gas laws practice problems, with worked answers
Most gas problems aren't hard math. The hard part is the first ten seconds: figuring out which equation you need and getting your units ready for it. So this page starts there, then works through the ideal gas law, the combined gas law, and partial pressures.
Short on time? Jump to the 9 practice problems or the worked examples.
Which gas law do I use?
Ask what the problem is describing. These four setups cover the pressure, volume, and reaction problems practiced here. Assume ideal gas behavior throughout this guide, and use absolute pressures (not gauge pressures).
| What the problem looks like | Use |
|---|---|
| One gas, one set of conditions, and you need P, V, n, T, or mass | PV = nRT |
| One sample changes from a "before" to an "after," with moles unchanged | P1V1 ÷ T1 = P2V2 ÷ T2 |
| Two or more gases share a container, or a gas is collected over water | Ptotal = PA + PB + … and PA = XAPtotal |
| A reaction makes or uses a gas | Stoichiometry for moles, then PV = nRT |
Try it before doing any math. For each one, pick the most direct setup. The combined gas law and partial-pressure equations can also be derived from PV = nRT.
Three checks before you calculate
- Is the temperature in kelvin? For these gas-law equations, convert Celsius to kelvin by adding 273.15.
- Do your units match R? Either convert the pressure and volume, or pick the R that fits them.
- Is the pressure really your gas? If water vapor or another gas is in the mix, the total isn't the pressure of the gas you care about.
| Pressure unit | Equal to 1 atm | R to use |
|---|---|---|
| atm | 1 atm | 0.08206 L·atm/(mol·K) |
| kPa | 101.325 kPa | 8.314 L·kPa/(mol·K) |
| torr or mmHg | 760 torr | 62.36 L·torr/(mol·K) |
Volume in mL? Divide by 1,000 to get liters. Every example below uses R = 0.08206 unless it says otherwise. Keep unrounded values in your calculator; the displayed intermediate values are rounded. Treat torr and mmHg as equivalent at this precision.
Ideal gas law examples
PV = nRT
This connects pressure, volume, moles, and temperature for one gas at one moment. Know three, solve for the fourth. Since n = mass ÷ molar mass, it also lets you work with grams.
Example 1: Solve for pressure
A 10.0 L container holds 0.500 mol of N2 at 25 °C. What is the pressure?
- T = 25 + 273.15 = 298.15 K.
- Rearrange: P = nRT ÷ V.
- P = (0.500 mol)(0.08206 L·atm/(mol·K))(298.15 K) ÷ 10.0 L.
Answer: 1.22 atm
The easy mistake: plugging in 25 for T gives 0.103 atm, which is about 12 times too low.
Example 2: Start from grams, in kPa
What volume does 9.00 g of CO2 (44.01 g/mol) take up at 30.0 °C and 95.0 kPa?
- n = 9.00 g ÷ 44.01 g/mol = 0.2045 mol.
- T = 303.15 K. The pressure is in kPa, so use R = 8.314 L·kPa/(mol·K).
- V = nRT ÷ P = (0.2045)(8.314)(303.15) ÷ 95.0.
Answer: 5.43 L
The easy mistake: mixing kPa with R = 0.08206. Your R has to speak the same units as your pressure.
Example 3: Find a gas's molar mass
A 0.500 L flask holds 1.27 g of an unknown gas at 27 °C and 742 torr. What is its molar mass?
- P = 742 ÷ 760 = 0.9763 atm. T = 300.15 K.
- n = PV ÷ RT = (0.9763)(0.500) ÷ [(0.08206)(300.15)] = 0.01982 mol.
- Molar mass = grams ÷ moles = 1.27 g ÷ 0.01982 mol.
Answer: 64.1 g/mol, consistent with SO2 (64.06 g/mol). Molar mass alone does not prove the gas's identity.
The easy mistake: stopping at moles. The question asks for molar mass, so divide grams by moles.
Combined gas law examples
P1V1 ÷ T1 = P2V2 ÷ T2
This is PV = nRT with n and R canceled, so it applies to an ideal gas when moles stay fixed. You don't have to memorize three smaller laws. Cross out whatever stays constant and they appear on their own.
| Held constant | What's left | Name | In words |
|---|---|---|---|
| T | P1V1 = P2V2 | Boyle's law | Squeeze it, pressure goes up |
| P | V1 ÷ T1 = V2 ÷ T2 | Charles's law | Heat it, it expands |
| V | P1 ÷ T1 = P2 ÷ T2 | Gay-Lussac's law | Heat it in a rigid can, pressure goes up |
Example 4: A rising weather balloon
A balloon holds 2.50 L of helium at 745 torr and 22 °C. It rises to where the pressure is 525 torr and the temperature is −8 °C. What is its new volume?
- T1 = 295.15 K and T2 = 265.15 K.
- Solve for V2: V2 = V1 × (P1 ÷ P2) × (T2 ÷ T1).
- V2 = 2.50 L × (745 ÷ 525) × (265.15 ÷ 295.15).
Answer: 3.19 L
The easy mistake: leaving −8 in the formula. That gives a negative volume, which can't happen. The pressures are different: you don't need to convert them, because torr cancels in the ratio.
Partial pressure examples
Ptotal = PA + PB + PC + …
PA = XA × Ptotal, where XA = nA ÷ ntotal
In an ideal mixture, each gas contributes the pressure it would exert alone at the same temperature and volume. This is Dalton's law. Pressure splits up by moles, not by mass, so convert grams to moles before you find a mole fraction. Mole fractions always add up to 1, which makes a quick check.
Example 5: A gas mixture from grams
A 12.0 L tank at 15 °C holds 4.00 g of He (4.003 g/mol) and 14.0 g of N2 (28.01 g/mol). Find the total pressure and each partial pressure.
- n(He) = 4.00 ÷ 4.003 = 0.9993 mol. n(N2) = 14.0 ÷ 28.01 = 0.4998 mol. Total = 1.499 mol.
- Ptotal = nRT ÷ V = (1.499)(0.08206)(288.15) ÷ 12.0 = 2.954 atm.
- X(He) = 0.9993 ÷ 1.4991 = 0.6666, so P(He) = 0.6666 × 2.954 atm = 1.97 atm.
- X(N2) = 0.4998 ÷ 1.4991 = 0.3334, so P(N2) = 0.3334 × 2.954 atm = 0.985 atm.
Answer: 2.95 atm total, 1.97 atm He, 0.985 atm N2
The easy mistake: splitting by mass. Nitrogen is most of the mass here, but helium is most of the moles, so helium has most of the pressure.
Example 6: Gas collected over water
Zinc reacts with HCl, and you collect 0.240 L of H2 over water at 25 °C. The total pressure is 755 torr. The vapor pressure of water at 25 °C is 23.8 torr. How many moles of H2 did you collect?
- P(H2) = 755 − 23.8 = 731.2 torr.
- Convert: 731.2 ÷ 760 = 0.9621 atm. T = 298.15 K.
- n = PV ÷ RT = (0.9621)(0.240) ÷ [(0.08206)(298.15)].
Answer: 9.44 × 10−3 mol H2
The easy mistake: using 755 torr in PV = nRT. That counts the water vapor as hydrogen. Water's vapor pressure depends on temperature, so problems give it or give you a table. It's 17.5 torr at 20 °C and 31.8 torr at 30 °C.
Gases in reactions
Balanced equations count moles, so a gas volume is just the last step of a normal problem. If the mole-ratio part feels shaky, the stoichiometry practice guide covers it.
Example 7: Grams of solid to liters of gas
Sodium azide breaks down by 2 NaN3 → 2 Na + 3 N2. After 50.0 g of NaN3 (65.01 g/mol) decomposes completely, what volume does the N2 occupy when measured at 25 °C and 1.00 atm?
- Moles of NaN3 = 50.0 ÷ 65.01 = 0.7691 mol.
- Mole ratio: 0.7691 mol × (3 mol N2 ÷ 2 mol NaN3) = 1.154 mol N2.
- V = nRT ÷ P = (1.154)(0.08206)(298.15) ÷ 1.00.
Answer: 28.2 L
The easy mistake: using 22.4 L/mol here. That shortcut only works at 0 °C and 1 atm, and this gas is at 25 °C.
Want this for every chapter of General Chemistry? Practice with instant feedback.
Try 3 days free3-day free trial, no card needed.
Practice problems
Type a number without units, such as 3.37, 1.33e-2, or 1.33 × 10^-2. Answers within about 1% count, so rounding differences and using 273 instead of 273.15 won't hurt you. If you get it wrong, the feedback will often name the exact slip.
Answer key
Pick the law
- The combined gas law
- The ideal gas law, PV = nRT
- Partial pressures (Dalton's law)
- Stoichiometry, then PV = nRT
Practice problems
- 3.37 atm: PV = nRT with T = 308.15 K.
- 0.231 mol: convert torr to atm, then n = PV/RT.
- 12.1 g: 0.753 mol × 16.04 g/mol.
- 9.75 L: 6.00 × (1.20 ÷ 0.800) × (323.15 ÷ 298.15).
- 2.50 atm: P rises in proportion to kelvin temperature.
- 3.60 atm: X(Ar) = 0.600.
- 0.0133 mol: subtract the water vapor first.
- 1.22 L: 0.04996 mol of CO2 at 298.15 K.
- 43.9 g/mol: M = dRT/P. It fits CO2.
Frequently asked questions
Why do gas laws need kelvin?
For a fixed amount of ideal gas, pressure is proportional to absolute temperature at constant volume; volume is proportional to absolute temperature at constant pressure. Kelvin is the absolute scale used with the R values here. Heating from 20 °C to 40 °C takes you from 293.15 K to 313.15 K, about a 7% rise, not a doubling. Add 273.15 to each Celsius temperature first.
Which value of R should I use?
Use the one whose units match your pressure and volume. With liters and atm, use 0.08206 L·atm/(mol·K). With liters and kPa, use 8.314 L·kPa/(mol·K). With liters and torr, use 62.36 L·torr/(mol·K). The other option is to convert the pressure to atm first.
Is one mole of gas always 22.4 L?
No. About 22.4 L/mol is the usual reference value for an ideal gas at 0 °C and 1 atm. Some sources define STP as 0 °C and 1 bar, which gives about 22.7 L/mol. At any other conditions, use PV = nRT. Check which STP your course uses.
When do I use the combined gas law instead of PV = nRT?
Use the combined gas law when one sample of gas changes from a first state to a second state and the moles stay the same. Use PV = nRT when you have one state and need moles, mass, or one missing variable.
Does it matter which gas it is?
For PV = nRT, ideal gases with the same moles, temperature, and volume have the same pressure. Identity matters when converting grams to moles, balancing a reaction, or accounting for real-gas behavior.
When does the ideal gas law stop working?
The ideal gas law works best at low pressure and temperatures well above condensation. At high pressure, particle volume and attractions matter more; at low temperature, attractions matter more relative to molecular motion. The size of the deviation depends on the gas. The problems on this page assume ideal behavior.
Sources
- OpenStax Chemistry 2e, 9.1 Gas Pressure
- OpenStax Chemistry 2e, 9.2 The Ideal Gas Law
- OpenStax Chemistry 2e, 9.3 Stoichiometry of Gaseous Substances, Mixtures, and Reactions (water vapor pressures)
- OpenStax Chemistry 2e, 9.6 Non-Ideal Gas Behavior
- NIST CODATA constants (PDF): ideal-gas molar volumes and the gas constant
Ready for the rest of college General Chemistry? Keep practicing with instant feedback on every chapter.
Try 3 days free3-day free trial, no card needed.