An air bag has to fill in a few hundredths of a second, and the engineer who designs it must know how many grams of the solid that makes the gas to pack inside. A brewer, a baker and a chemist heating limestone ask the same question in different forms: how much gas does a reaction give, or how much reactant does a given volume of gas need?
This lesson joins two tools you already have. Stoichiometry turns grams of one substance into moles of another with a mole ratio from the balanced equation. The ideal gas law turns moles of a gas into a volume, or a volume into moles. Put together, they connect grams to liters of gas.
- Grams of Athe given substance
- divide by Mmolar mass of A
- Moles of Ain mol
- mole ratiofrom the balanced equation
- Moles of gas Bin mol
- ideal gas lawor 22.414 L/mol at STP
- Liters of gas Bat the stated T and P
The mole ratio applies to amounts (mol) only.The chain also runs backwards, from liters to grams.
Learning Objectives
After this lesson, you should be able to:
- Combine reaction stoichiometry with PV = nRT to find gas volumes produced or required.
Key Ideas
1. The Gas Stoichiometry Chain
Every problem in this lesson follows the same chain. Change the grams of the given substance to moles with its molar mass. Change those moles to moles of the gas with the mole ratio from the balanced equation. Then change the moles of gas to a volume (Figure 2).
- Grams to moles: divide by the molar mass.
- Moles to moles: multiply by the mole ratio, wanted over given.
- Moles of gas to liters: use the ideal gas law, or the molar volume at STP.
- Grams of Ain g
- molar mass of A
- Moles of Ain mol
- coefficients of the equation
- Moles of gas Bin mol
- T in K, R to match P
- Volume of Bin L
Key idea: the mole ratio connects the amounts of two different substances, so apply it to amounts (mol), never to masses or volumes.
2. STP Shortcut or PV = nRT
At any temperature and pressure, solve the ideal gas law for the volume: . At standard temperature and pressure the shortcut is the molar volume, , the volume of 1 mol of an ideal gas. This lesson follows Whitten STP, 273.15 K and 1 atm. From the exact value of R:
So at STP, multiply the moles by 22.414 L/mol, or use with 0.08206 and 273.15 K: both routes give the same 3 s.f. answer for every problem in this lesson. You may see 22.711 L/mol in other books: that is the IUPAC standard, 273.15 K and 1 bar (100 kPa). Review: The Ideal Gas Law
Key idea: use 22.414 L/mol only at STP. At any other temperature or pressure, use .
Try it: from grams to liters of gas
Pick a reaction, set the mass of the reactant and the conditions, and follow the chain from grams to moles to liters. Load the settings of a worked example, switch between STP and other conditions, or run the chain backwards from a volume to a mass.
Loading the simulator…
3. From a Gas Volume Back to Grams
The chain also runs backwards. When the volume of gas is given, find its moles with the ideal gas law, use the mole ratio to get the moles of the other substance, then multiply by its molar mass (Figure 4):
- Volume of gas Bin L, with T and P
- n from PV over RT
- Moles of gas Bin mol
- coefficients of the equation
- Moles of Ain mol
- molar mass of A
- Grams of Ain g
Key idea: backwards, the steps are the same in reverse: volume to moles of gas, mole ratio, then moles to grams.
Worked Example 1: Gas Volume at STP
Problem: Heating limestone decomposes calcium carbonate. What volume of CO2, measured at STP (273.15 K, 1 atm), is produced from 25.0 g of CaCO3?
Step 1. Convert the mass of CaCO3 to moles.
Step 2. Use the mole ratio. One mole of CaCO3 gives one mole of CO2:
Step 3. At STP, multiply by the molar volume.
Final Answer: 5.60 L of CO2
Rounded operand: Step 3 uses 0.2498 mol, rounded to 4 significant figures. The unrounded amount, and the route through , give the same final answer, 5.60 L.
Your turn: gas volume at STP
Same three steps as Worked Example 1: grams to moles, mole ratio, then times 22.414 L/mol.
Loading the practice problem…
Worked Example 2: Gas Volume at Other Conditions
Problem: Magnesium reacts with hydrochloric acid. What volume of H2 forms from 1.50 g of Mg at 23.0 °C and 0.985 atm?
Step 1. Convert the mass of Mg to moles, then use the mole ratio. One mole of Mg gives one mole of H2:
Step 2. Convert the temperature to kelvin.
Step 3. These are not STP conditions, so use . With the pressure in atm, use R in L·atm:
Final Answer: 1.52 L of H2
- Magnesiumgiven
- g to mol
- Moles of Mg4 significant figures
- mole ratio 1 to 1
- Moles of H24 significant figures
- not STP: RT over P
- Volume of H2Final answer to 3 significant figures
Rounded operand: Step 3 uses 0.06170 mol, rounded to 4 significant figures. The unrounded amount gives the same final answer, 1.52 L.
Your turn: gas volume at other conditions
Same steps as Worked Example 2: grams to moles, mole ratio, kelvin, then .
Loading the practice problem…
Worked Example 3: Volume of a Gas Reactant
Problem: Propane burns in oxygen. What volume of O2, at 25.0 °C and 748 torr, is needed to burn 8.80 g of C3H8 completely?
Step 1. Convert the mass of propane to moles.
Step 2. Use the mole ratio. Each mole of propane needs five moles of O2:
Step 3. Convert the temperature to kelvin and use . With the pressure in torr, use R in L·torr:
Final Answer: 24.8 L of O2
Rounded operand: Step 2 uses 0.1995 mol, rounded to 4 significant figures. The unrounded amount gives the same final answer, 24.8 L.
Your turn: volume of a gas reactant
Same steps as Worked Example 3: the mole ratio comes from the coefficients of the balanced equation.
Loading the practice problem…
Worked Example 4: Mass of Reactant for a Volume of Gas
Problem: An air bag inflates with N2 from sodium azide. What mass of NaN3 is needed to fill a 45.0 L bag with N2 at 115 kPa and 30.0 °C?
Step 1. Convert the temperature to kelvin and find the moles of N2. With the pressure in kPa, use R in L·kPa:
Step 2. Use the mole ratio. Three moles of N2 come from two moles of NaN3:
Step 3. Convert the moles of NaN3 to grams.
Final Answer: 89.0 g of NaN3
- Volume of N2given
- n from PV over RT
- Moles of N24 significant figures
- mole ratio 2 to 3
- Moles of NaN34 significant figures
- mol to g
- Mass of NaN3Final answer to 3 significant figures
Rounded operands: Steps 2 and 3 carry 2.053 mol and 1.369 mol, each rounded to 4 significant figures. The unrounded amounts give the same final answer, 89.0 g.
Your turn: mass of reactant for a volume of gas
Same steps as Worked Example 4: for the gas, mole ratio, then times the molar mass.
Loading the practice problem…
Common Mistakes
Common mistake: Using 22.414 L/mol away from STP. In Worked Example 2, 0.06170 mol times 22.414 L/mol gives 1.38 L. The gas is at 23.0 °C and 0.985 atm, not at STP, so use : 1.52 L.
Common mistake: Using the temperature in °C. Putting 23.0 instead of 296.15 into Worked Example 2 gives 0.118 L. Gas laws need kelvin.
Common mistake: Leaving out the mole ratio. In Worked Example 3, using the moles of propane for the O2 gives 4.96 L, five times too little. Every mole of propane needs five moles of O2.
Common mistake: Turning the mole ratio upside down. In Worked Example 3, dividing by 5 instead of multiplying gives 0.992 L. In Worked Example 4, using 3 over 2 instead of 2 over 3 gives about of NaN3. Put the substance you want on top.
Common mistake: Stopping at moles. In Worked Example 4, 1.369 mol of NaN3 is not the answer: the question asks for a mass. Multiply by 65.01 g/mol.
Exam tip: write the units on every factor. The mole ratio must cancel the moles of the given substance and leave the moles of the wanted one; R must match the pressure unit.
Key Takeaway
Gas stoichiometry is ordinary stoichiometry with the ideal gas law at one end. Grams change to moles with the molar mass, moles of one substance to moles of another with the mole ratio, and moles of gas to a volume with , or with 22.414 L/mol at STP only. Run the chain backwards to get a mass from a volume of gas.
The relations to keep at hand:
Practice: randomized problems
Each problem below uses fresh numbers every time: work it out, check your answer, then open the worked solution to compare your steps.
Loading the practice problem…
Your results
This summary collects every practice problem you try on this page and suggests what to review next.
Loading your results…
Figures and simulator: original work by Dr. Ray’s Learning Center, licensed CC BY 4.0. Atomic weights: IUPAC Commission on Isotopic Abundances and Atomic Weights, standard atomic weights 2021 (abridged values), the same table as the other stoichiometry lessons. Gas constant: CODATA 2022 recommended values (exact R in SI units, rounded to 0.08206, 62.36 and 8.314 in the lesson); the molar volume 22.414 L/mol at 273.15 K and 1 atm follows from it. Gas stoichiometry: K. Whitten, R. Davis, M. Peck and G. Stanley, General Chemistry, 9th ed., section 12-12, and J. Moore, C. Stanitski and P. Jurs, Chemistry: The Molecular Science, 5th ed., section 8-5. The simulator and the practice problems are audited; see the lesson audit log.