🧮 Full Lesson · Stoichiometry
PV = nRT — Pressure · Volume = moles · R · Temperature
Gas Stoichiometry

A single equation links every measurable property of a gas together — and once you can solve it for moles, every gas-phase reaction becomes just another ordinary stoichiometry problem in disguise.

The Ideal Gas Law as a Moles-Finding Tool
Why PV=nRT is really just another way to reach moles

The ideal gas law, PV = nRT, relates four measurable properties of a gas sample to one another: pressure (P, typically in atmospheres), volume (V, typically in liters), moles (n), and temperature (T, always in Kelvin), connected by the gas constant R (most commonly used as 0.08206 L·atm/(mol·K) when pressure is in atmospheres and volume is in liters). Rearranged to solve for moles, n = PV ÷ RT, this equation becomes the specific tool that lets a gas-phase reactant or product be converted into moles — exactly the same starting point every other stoichiometry calculation in this sub-subject eventually needs.

This means gas stoichiometry isn't really a separate, different kind of stoichiometry at all — it's ordinary stoichiometry (mole ratios, dimensional analysis, limiting reagent, and so on, all covered in earlier lessons) with one additional conversion step layered on the front: using the ideal gas law to find moles of a gas from its measured pressure, volume, and temperature, before proceeding with the exact same mole-based calculations used throughout the rest of this sub-subject.

Two practical conditions must always be checked carefully before using the ideal gas law: temperature must be converted to Kelvin (K = °C + 273.15) if given in Celsius, since the equation is only valid using an absolute temperature scale, and pressure must be expressed in units consistent with whichever value of R is being used (commonly atmospheres, matching the 0.08206 L·atm/(mol·K) value of R used throughout this lesson).

💡 The STP Shortcut — When You Can Skip PV=nRT Entirely
As introduced in The Mole lesson, at standard temperature and pressure (STP, traditionally 0°C and 1 atm), one mole of any ideal gas occupies exactly 22.4 liters, regardless of which specific gas it is. This is not a separate, independent fact from the ideal gas law — it's actually a direct consequence of it: plugging T = 273.15 K, P = 1 atm, and n = 1 mol into PV = nRT and solving for V gives exactly 22.4 L, confirming that the STP molar volume shortcut is simply the ideal gas law evaluated at one specific, standard set of conditions.

Because of this direct relationship, whenever a gas stoichiometry problem specifically states that conditions are at STP, the full ideal gas law equation can be skipped entirely in favor of the much simpler 22.4 L/mol conversion factor — moles can be found directly by dividing the given volume by 22.4 L/mol, or volume can be found directly by multiplying moles by 22.4 L/mol, without ever needing to solve the full PV=nRT equation. This shortcut only applies at STP specifically; for any other combination of temperature and pressure, the full ideal gas law must be used instead, since the volume occupied by one mole of gas genuinely does change under different temperature and pressure conditions.
Solve
Solving for moles using the ideal gas law
To find moles of a gas from given pressure, volume, and temperature data: convert temperature to Kelvin if given in Celsius, convert pressure to atmospheres if given in a different unit, then rearrange PV = nRT to solve for n directly: n = PV ÷ RT, using R = 0.08206 L·atm/(mol·K). Once moles are found this way, the calculation proceeds exactly like any other stoichiometry problem — applying the mole ratio from the balanced equation, and converting to whatever final quantity (mass, volume of a different gas, concentration) the problem is actually asking for.
To find the moles of gas in a 5.00 L sample at 2.00 atm and 300 K: n = PV/RT = (2.00 atm × 5.00 L) / (0.08206 L·atm/(mol·K) × 300 K) = 10.0 / 24.6 = 0.406 mol.
Density
Finding molar mass from gas density
The ideal gas law can also be rearranged to find an unknown gas's molar mass from its measured density: since density (d) equals mass divided by volume, and moles equals mass divided by molar mass, substituting these relationships into the ideal gas law produces the useful rearranged form M = dRT/P, where M is molar mass and d is the gas's density (typically in g/L). This provides a practical experimental method for identifying an unknown gas — measure its density at a known temperature and pressure, then calculate its molar mass directly, and compare that calculated molar mass against known values to help identify the gas.
A gas with a measured density of 1.964 g/L at STP (0°C = 273.15 K, 1 atm) has a molar mass of M = dRT/P = (1.964 g/L × 0.08206 L·atm/(mol·K) × 273.15 K) / 1 atm ≈ 44.0 g/mol — closely matching CO₂'s known molar mass, strongly suggesting the unknown gas is carbon dioxide.
Dalton
Dalton's law of partial pressures
Dalton's law states that in a mixture of gases that don't chemically react with each other, the total pressure of the mixture equals the sum of the individual partial pressures each gas would exert on its own if it alone occupied the entire container: P_total = P₁ + P₂ + P₃ + ... This reflects the fact that, in an ideal gas mixture, each individual gas behaves essentially independently of the others, as if the other gases weren't present at all, contributing to the total pressure in direct proportion to its own mole fraction (covered further in the Concentration Units lesson) within the overall mixture.
If a container holds a gas mixture with a nitrogen partial pressure of 0.78 atm and an oxygen partial pressure of 0.21 atm (closely approximating the composition of ordinary air), the total pressure of the mixture is 0.78 + 0.21 = 0.99 atm, assuming these are the only two gases present.
🔬 Applied Scenario — Gas Stoichiometry in Practice
Gas-phase reactions and gas property calculations appear throughout industrial chemistry, environmental science, and everyday practical contexts.
A
Airbag deployment relies on precise gas stoichiometry. Automotive airbags rapidly generate a specific, calculated volume of nitrogen gas through a fast chemical decomposition reaction (commonly involving sodium azide), and gas stoichiometry calculations, including the ideal gas law, are essential to engineering the exact reactant quantities needed to inflate the airbag to its correct volume within the extremely short time available during a collision.
B
Industrial gas storage and transport requires precise pressure-volume-temperature calculations. Compressing gases for storage or transport (such as compressed natural gas or industrial oxygen tanks) requires careful ideal gas law calculations to determine safe pressure limits and to calculate exactly how many moles (and therefore how much usable gas) a given storage container actually holds under specific conditions.
C
Weather balloons and atmospheric science depend on gas law relationships. As a weather balloon rises through the atmosphere, decreasing atmospheric pressure and temperature cause the balloon's internal gas to expand according to the ideal gas law, a predictable relationship engineers account for when designing balloons that need to reach and maintain a specific altitude.
D
Determining an unknown gas's identity using molar mass calculated from density. As covered above, measuring an unknown gas's density under known temperature and pressure conditions and calculating its molar mass provides a practical, direct method chemists use to help identify an unknown gaseous substance, often as one piece of evidence alongside other analytical techniques.
📌 Exam Application
1. Ideal gas law: PV = nRT, rearranged to n = PV/RT to find moles of a gas, using R = 0.08206 L·atm/(mol·K).

2. Temperature must be in Kelvin (K = °C + 273.15) and pressure typically in atmospheres for the ideal gas law to work correctly.

3. STP shortcut: 1 mole of any ideal gas = 22.4 L at 0°C and 1 atm — a direct consequence of the ideal gas law at those specific conditions, not a separate fact.

4. Molar mass from density: M = dRT/P, useful for identifying an unknown gas.

5. Dalton's law: total pressure of a gas mixture = sum of each individual gas's partial pressure.
⚠️ Most Common Gas Stoichiometry Mistakes
Temperature must always be converted to Kelvin before using the ideal gas law — using Celsius directly produces a completely incorrect result. Students very frequently plug a Celsius temperature directly into PV=nRT without converting. The ideal gas law is only valid using an absolute temperature scale (Kelvin), since it relies on temperature being proportional to the actual kinetic energy of gas particles — Celsius, which includes negative values and an arbitrary zero point, does not have this proportional relationship.

The 22.4 L/mol shortcut applies ONLY at STP — using it for a gas at any other temperature or pressure produces an incorrect answer. Students sometimes apply the 22.4 L/mol conversion factor to gas stoichiometry problems that specify different conditions than standard temperature and pressure. Whenever a problem states conditions other than STP, the full ideal gas law (PV=nRT) must be used instead of the STP shortcut.

The value and units of R must match the units used for pressure and volume in the rest of the calculation. Students sometimes use R = 0.08206 L·atm/(mol·K) while pressure is given in a different unit (like kPa or mmHg) without converting first, producing a mismatched, incorrect calculation. Pressure must be converted to atmospheres specifically when using this common value of R, or a different value of R matching whatever pressure unit is actually being used must be substituted instead.
✓ Quick Self-Test
1. What is the ideal gas law, and how is it rearranged to solve for moles of a gas?
2. Why must temperature always be converted to Kelvin before using the ideal gas law?
3. Explain why the STP shortcut of 22.4 L/mol is not a separate, independent fact, but a direct consequence of the ideal gas law.
4. How can the ideal gas law be used to determine an unknown gas's molar mass from a density measurement?
5. State Dalton's law of partial pressures, and explain what it means for how gases behave in a mixture.

Answers:
1. The ideal gas law is PV = nRT, relating pressure, volume, moles, and temperature (with R as the gas constant). It is rearranged to solve for moles as n = PV ÷ RT.
2. Temperature must be converted to Kelvin because the ideal gas law relies on temperature being directly proportional to the actual kinetic energy of gas particles, a relationship that only holds true using an absolute temperature scale like Kelvin — Celsius, with its arbitrary zero point and negative values, does not have this proportional relationship.
3. The STP shortcut is a direct consequence of the ideal gas law because plugging the specific STP conditions (T = 273.15 K, P = 1 atm) and n = 1 mol into PV = nRT and solving for V produces exactly 22.4 L — the 'shortcut' is simply the ideal gas law evaluated at one specific, standard set of conditions, not a separate physical principle.
4. Rearranging the ideal gas law using the relationships between density, mass, and moles produces M = dRT/P, where d is the gas's measured density. Measuring an unknown gas's density at a known temperature and pressure allows its molar mass to be calculated directly, which can then be compared against known molar mass values to help identify the gas.
5. Dalton's law states that the total pressure of a mixture of non-reacting gases equals the sum of each individual gas's partial pressure (P_total = P1 + P2 + P3...). This means each gas in the mixture behaves essentially independently of the others, contributing to the total pressure as if it alone occupied the entire container.
Next Lesson
Combustion Analysis
← All Stoichiometry Lessons