Gas Laws and Stoichiometry
Ideal gas law calculations
The ideal gas law ties together the four key variables that describe a gas sample into one equation:
where is pressure, is volume, is moles of gas, is the ideal gas constant, and is temperature in Kelvin. If you know any three of these variables, you can solve for the fourth.
Two useful rearrangements of this law come up frequently:
- Gas density can be calculated from , where is the molar mass of the gas. This is handy because it means you don't need to know the actual mass and volume separately. For example, you can compare the densities of air (average ) and helium () at the same conditions to see why helium balloons float.
- Molar mass can be determined experimentally by rearranging to . If you measure the density of an unknown gas at a known temperature and pressure, you can figure out its molar mass.
Molar volume is the volume one mole of an ideal gas occupies at a given temperature and pressure. At STP (0°C and 1 atm), this value is approximately 22.4 L/mol. This serves as a useful conversion factor in many problems.

Gas stoichiometry in reactions
Balanced chemical equations give you mole ratios between reactants and products. When gases are involved, you can use the ideal gas law to convert between moles and measurable quantities like volume and pressure.
Here's how to solve a gas stoichiometry problem:
- Balance the chemical equation so you have correct mole ratios.
- Convert given quantities to moles. If you're given a gas volume, pressure, and temperature, use to find moles. If you're given mass, divide by molar mass.
- Use the mole ratio from the balanced equation to find moles of the unknown substance.
- Convert moles of the unknown to the desired unit. Need volume? Use again. Need mass? Multiply by molar mass.
For example, in the combustion of methane:
The equation tells you that 1 mole of reacts with 2 moles of and produces 1 mole of . If you know the volume of at a certain temperature and pressure, you can find moles of , then use the 1:1 ratio to find moles of , then convert back to volume.
At STP, you can skip the full ideal gas law and use the shortcut that 1 mole of any ideal gas = 22.4 L.

Gas Mixtures
Dalton's law for mixtures
When multiple non-reacting gases share a container, each gas contributes to the total pressure independently. Dalton's law says the total pressure is simply the sum of each gas's partial pressure:
A gas's partial pressure () is the pressure it would exert if it alone occupied the entire container. You calculate it using the mole fraction:
The mole fraction () is the ratio of moles of one gas to the total moles in the mixture:
For example, air is roughly 78% and 21% by moles. At 1 atm total pressure, the partial pressure of is about 0.78 atm and is about 0.21 atm. This concept matters in real applications like calculating the gas mix in scuba tanks or determining the concentration of in exhaled breath.
Note that all mole fractions in a mixture must add up to 1.
Gas Laws
Three earlier gas laws describe what happens when you hold one variable constant. Each is really a special case of the ideal gas law:
- Charles's law: At constant pressure, volume is directly proportional to temperature. Heat a gas up, and it expands. ()
- Boyle's law: At constant temperature, pressure and volume are inversely proportional. Compress a gas into a smaller space, and its pressure increases. ()
- Gay-Lussac's law: At constant volume, pressure is directly proportional to temperature. Heat a sealed container, and the pressure rises. ()
These relationships all assume temperature is measured in Kelvin. Using Celsius in these equations will give you wrong answers.