Use Moles in the Ideal Gas Law Without Unit Mismatches
A worked explanation of use moles in the ideal gas law without unit mismatches, including the key limitation and a checkable example.
Use Moles in the Ideal Gas Law Without Unit Mismatches
To use moles in the ideal gas law without unit mismatches, you must convert the sample's mass and its molar mass into moles before plugging into PV = nRT. The governing formula is n = m / M, where m is the sample mass in grams and M is the molar mass in g/mol. This conversion is the single point where most errors occur, because the molar mass is substance-specific and must be calculated from the periodic table, not guessed.
A 0.500 g sample of N₂ gas (M = 28.013 g/mol, from IUPAC CIAAW) at 300.0 K and 1.01325 × 10⁵ Pa yields n = 0.500 / 28.013 = 0.01785 mol. Then, using the ideal gas law calculator with R = 8.314462618 J/(mol·K), V = nRT / P = (0.01785 × 8.31446 × 300.0) / (1.01325 × 10⁵) = 44.52 / 1.01325 × 10⁵ = 4.39 × 10⁻⁴ m³ = 0.439 L. Every step depends on having the correct molar mass for the gas as it exists.
A Worked Example
Work through an example with sodium chloride, NaCl, molar mass 58.44 g/mol. Prepare a 10.0 g sample of solid NaCl. First, confirm the molar mass: Na = 22.990 g/mol, Cl = 35.45 g/mol, sum = 58.44 g/mol. Then, n = 10.0 g / 58.44 g/mol = 0.171 mol. This value of n is the input for PV = nRT. If the gas is NaCl vapor at 1200 K and 1.00 atm, with R = 0.08206 L·atm/(mol·K), V = 0.171 × 0.08206 × 1200 / 1.00 = 16.8 L. The key failure here is using the molar mass of chlorine as Cl (35.45 g/mol) rather than Cl₂ (70.90 g/mol) if you had chlorine gas; for sodium chloride, the diatomic form does not apply, but for oxygen gas, O₂ at 31.998 g/mol is mandatory, not O at 15.999 g/mol.
Calculation Steps
For any calculation, prepare the mass by weighing the gas sample on a balance sensitive to 0.001 g. For a gas, you measure the mass indirectly: weigh a gas-filled container, then evacuate it and weigh the empty container; the difference is the sample mass. The molar mass is the sum of atomic masses from the periodic table. For carbon dioxide, CO₂, M = 12.011 + 2 × 15.999 = 44.01 g/mol. For sulfuric acid, H₂SO₄, M = 2 × 1.008 + 32.06 + 4 × 15.999 = 98.079 g/mol. The molar mass is not a fixed number for every substance; it is calculated per compound.
Handling Hydrates and Reactive Compounds
For a hydrate like CuSO₄·5H₂O, you must include the water molecules in the molar mass. Cu = 63.546, S = 32.06, 4 × O = 64.00, plus 5 × H₂O = 5 × 18.015 = 90.075, total = 249.68 g/mol. A common error is forgetting the water, using 159.61 g/mol for the anhydrous compound, which shifts the mole count by 56%. For reactive compounds like sodium hydroxide (NaOH, 39.997 g/mol), the sample absorbs water and CO₂ from air, increasing its mass. Weigh it in a sealed container immediately after opening.
Significant Figures and Precision
The number of significant figures in the mole output is limited by the least precise input. If the sample mass is 10.0 g (three significant figures) and molar mass is 58.44 g/mol (four significant figures), the mole result should be 0.171 mol, not 0.1712. The ideal gas law calculation then carries three significant figures. For high-precision work, use the full Avogadro constant 6.02214076 × 10²³ mol⁻¹, and the CODATA R value of 8.314462618 J/(mol·K). Rounding R to 8.314 or using 6.022 × 10²³ introduces a 0.0023% error, acceptable for homework but not for lab reporting.
Why the Method Works
The formula n = m / M is a dimensional analysis conversion. The sample mass m is in grams, and molar mass M is in grams per mole. When you divide grams by grams per mole, the grams cancel, leaving moles. This is identical to dividing a dozen eggs (12 eggs) by the number of eggs per dozen (12 eggs/dozen) to get 1 dozen. The mole is exactly the same counting unit, but for 6.02214076 × 10²³ particles.
Unit mismatches occur when the pressure and volume units do not match the R value. The SI value of R is 8.314462618 J/(mol·K). This requires pressure in pascals (Pa) and volume in cubic meters (m³). If you use R = 0.08206 L·atm/(mol·K), pressure must be in atmospheres and volume in liters. Mixing these is the most common source of incorrect answers. Always check that P, V, and R share the same unit system before substituting n.
Why Temperature Must Be in Kelvin
Temperature in the ideal gas law must be absolute in Kelvin. Celsius or Fahrenheit produce a linear offset that breaks the proportionality. Convert by adding 273.15 to Celsius: 300.0 K = 26.85 °C. A common mistake is using 300 °C instead of 300 K, which shifts the volume by a factor of about 1.9.
One specific failure case is using the molar mass of a diatomic element as the atomic mass. For oxygen gas (O₂), M = 31.998 g/mol, not 15.999 g/mol. For nitrogen gas (N₂), M = 28.013 g/mol, not 14.007 g/mol. For hydrogen gas (H₂), M = 2.016 g/mol, not 1.008 g/mol. Using the atomic mass cuts the mole count in half, doubling the calculated volume.
| Gas | Formula | Molar Mass (g/mol) | Source |
|---|---|---|---|
| Nitrogen | N₂ | 28.013 | IUPAC CIAAW |
| Oxygen | O₂ | 31.998 | IUPAC CIAAW |
| Carbon Dioxide | CO₂ | 44.01 | IUPAC CIAAW |
| Hydrogen | H₂ | 2.016 | IUPAC CIAAW |
| Ammonia | NH₃ | 17.031 | IUPAC CIAAW |
Failure Case: High Pressure and Real Gas Behavior
The ideal gas law fails at pressures above 10 atm or temperatures near the condensation point of the gas. At these conditions, intermolecular forces and molecular volume become significant, and real gases deviate. For example, calculating the volume of CO₂ at 50 atm and 200 K using PV = nRT gives a result that can be 20% off from the measured value. In such cases, you need the van der Waals equation or a compressibility factor, not the ideal gas law. The molar mass conversion remains correct, but the gas law itself is no longer valid.
For practical lab work, always confirm that the temperature is at least 50 K above the boiling point of the gas at the working pressure. For N₂, boiling point is 77 K at 1 atm, so 300 K is safe. For CO₂, the critical point is 304 K and 73 atm; at room temperature and high pressure, CO₂ is a supercritical fluid.
Common Questions
What is the exact formula to convert mass to moles for PV = nRT?
The formula is n = m / M, where m is the sample mass in grams and M is the molar mass in grams per mole. This yields the amount of substance in moles, which is the n in PV = nRT.
How do I find the molar mass of a compound?
Sum the atomic masses of each atom in the chemical formula, using values from the IUPAC CIAAW table. For example, for CO₂: C = 12.011 g/mol, O = 15.999 g/mol, so M = 12.011 + 2 × 15.999 = 44.01 g/mol. For a hydrate, add the water molecules: CuSO₄·5H₂O includes 5 × 18.015 g/mol = 90.075 g/mol for the water.
What happens if I use the wrong molar mass?
Using the atomic mass instead of the molecular mass for a diatomic gas like O₂ halves the mole count, doubling the volume. For a hydrate, forgetting the water of hydration shifts the mole count by the water mass fraction. For reactive compounds like NaOH, the actual mass absorbed from air can increase the sample mass by several percent, skewing n.
How do I avoid unit mismatches with R?
Always match the units of P, V, and T to the specific R value you use. For R = 8.314462618 J/(mol·K), use P in pascals and V in cubic meters. For R = 0.08206 L·atm/(mol·K), use P in atmospheres and V in liters. Temperature must always be in Kelvin.
What is the most common error in this conversion?
The most common error is treating the molar mass as a fixed number for every substance. It is substance-specific and must be calculated from the chemical formula. The second most common is a unit mismatch between the R value and the pressure and volume units.