Skip to main content
Chemistry LibreTexts

11.5: Applications of the Ideal Gas Law- Molar Volume, Density and Molar Mass of a Gas

  • Page ID
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Learning Objectives
    • Apply gas laws to solve stoichiometry problems.
    • Apply principles of stoichiometry to calculate properties of gases.

    The quantitative relationship of reactants and products is called stoichiometry. Stoichiometric problems require you to calculate the amounts of reactants required for certain amounts of products, or amounts of products produced from certain amounts of reactants. If, in a chemical reaction, one or more reactants or products are gases, gas laws must be considered for the calculation. Usually, the applications of the ideal gas law give results within 5% precision. Below, we review several important concepts that are helpful for solving Stoichiometry Problems Involving Gases.

    The Mole Concept and Molar Volume

    The mole concept is the key to both stoichiometry and gas laws. A mole is a definite amount of substance. Mole is a unit based on the number of identities (i.e. atoms, molecules, ions, or particles). A mole of anything has the same number of identities as the number of atoms in exactly 12 grams of carbon-12, the most abundant isotope of carbon.

    Molar volume is defined as the volume occupied by one mole of a gas. Using the ideal gas law and assuming standard pressure and temperature (STP), the volume of one mole of gas can be calculated:


    \[V = \dfrac{nRT}{P}\]

    \[{V = \rm \dfrac{1.00 mol\ \cdot 0.08206 \dfrac{L atm}{mol K}\cdot 273 K}{1.00 atm }}\]

    \[V = 22.4 \rm L\]

    In other words, 1 mole of a gas will occupy 22.4 L at STP, assuming ideal gas behavior.

    At STP, the volume of a gas is only dependent on number of moles of that gas and is independent of molar mass. With this information we can calculate the density (\( \rho \)) of a gas using only its molar mass. First, starting with the definition of density

    \[ \rho =\dfrac{m}{V}\label {where D = density, m=mass and V= volume}\]

    we rearrange for volume:

    \[V=\dfrac{m}{ \rho }\]

    We then substitute \(V\) into the ideal gas equation and rearrange for density:


    \[P\dfrac{m}{ \rho }=nRT\]


    Finally, we remember that molar mass is equal to mass divided by number of moles:

    \[MM =\dfrac{m}{n}\]

    and substitute this into our expression for density to give:

    \[ \rho = \dfrac{MM\cdot P}{RT}\]

    This equation can further be simplified if we assume STP:

    \[ \rho = \dfrac{MM\cdot 1 \rm atm}{(0.08206 \dfrac{\rm L atm}{\rm mol K}) \rm 273 K}\]

    \[ \rho = \dfrac{MM}{\rm 22.4 \dfrac{L}{mol}}\]

    Using this information, we can calculate the density of a gas using the gas's molar mass.

    Example 1

    Calculate the density of N2 gas at STP.

    What we know: Pressure (1 atm),temperature (273 K), the identity of the gas (N2).

    Asked for: Density of N2


    1. Calculate the molar mass of N2
    2. Solve for the density of using the equation relating density and molar mass at STP


    A The molar mass of N2:

    \[MM_{N2}=\rm2\cdot 14.0 g/mol = 28.0 g/mol\]

    B Calculate the density of N2

    \[ \rho = \dfrac{MM}{\rm 22.4 \dfrac{L}{mol}}\]

    \[ \rho = \dfrac{28.0 \rm g/mol}{\rm 22.4 \dfrac{L}{mol}}\]

    \[ \rho = 1.25 \rm g/L\]

    Example 2

    Calculate the density of Ne gas at 143 ºC and 4.3 atm.

    What we know: Pressure (4.3 atm), temperature (143 ºC ), the identity of the gas (Ne), the molar mass of Ne from the periodic table (20.2 g/mol).

    Asked for: Density of Ne


    1. The temperature is given in degrees Celsius. This must be converted to Kelvin
    2. Solve for the density


    A Calculate temperature in Kelvin:

    \[T = \rm 143 C + 273 = 416 K\]

    B Calculate the density of Ne:

    \[ \rho = \dfrac{MM\cdot P}{RT}\]

    \[ \rho = \dfrac{\rm 20.2 g/mol \cdot 4.3 \rm atm}{(0.08206 \dfrac{\rm L atm}{\rm mol K}) \rm 416 K}\]

    \[ \rho = \rm 2.54 g/L\]


    Molar Mass of a Gas

    The equations for calculating the density of a gas can rearranged to calculate the molar mass of a gas:

    \[MM = \dfrac{ \rho RT}{P}\label {where MM= molar mass and D = density}\]

    this can be further simplified if we work at STP:

    \[MM = \rho \cdot 22.4 L/mol\]

    We can use these equations to identify an unknown gas, as shown below:

    Example 3

    A unknown gas has density of 1.78 g/L at STP. What is the identify of this gas?

    What we know: Pressure (1.00 atm), temperature (273 K ), density of the gas (1.783 g/L)

    Asked for: Identity of the unknown gas


    1. First calculate the molar mass of the unknown gas
    2. Determine the identity of the gas by comparing the calculated molar mass to molar masses of known gases.


    A Since we are at STP, we can use the following equation to calculate molar mass:

    \[MM = \rho \cdot 22.4 L/mol\]

    \[MM = \rm 1.783 g/L \cdot 22.4 L/mol\]

    \[MM = \rm 39.9 g/mol\]

    B The calculated molar mass is 33.9 g/mol. Examination of the periodic table reveals that Argon has a mass of 39.948 g/mol. Therefore, the unknown gas is most likely argon.

    Stoichiometry and Gas Laws

    Stoichiometry is the theme of the previous block of modules, and the ideal gas law is the theme of this block of modules. These subjects are related. Be prepared to solve problems requiring concepts or principles of stoichiometry and gases. For example, we can calculate the number of moles from a certain volume, temperature and pressure of a \(\ce{HCl}\) gas. When n moles are dissolved in V L solution, its concentration is n/V M.

    Three examples are given to illustrate some calculations of stoichiometry involving gas laws and more are given in question form for you to practice.

    Example 1

    If 500 mL of \(\ce{HCl}\) gas at 300 K and 100 kPa dissolve in 100 mL of pure water, what is the concentration? Data required: R value 8.314 kPa L / (K mol).


    n_{\textrm{HCl}} &= \mathrm{\dfrac{0.50\: L \times 100\: kPa}{8.314\: \dfrac{kPa\: L}{K\: mol} \times 300\: K}}\\
    &= \mathrm{0.02\: mol}

    Concentration of \(\ce{HCl}\), \(\ce{[HCl]}\)

    \(\mathrm{[HCl] = \dfrac{0.02\: mol}{0.1\: L} = 0.2\: mol/L}\)


    Note that R = 0.08205 L atm /(K mol) will not be suitable in this case. If you have difficulty, review Solutions.

    Example 2

    If 500 mL of \(\ce{HCl}\) gas at 300 K and 100 kPa dissolved in pure water requires 12.50 mL of the \(\ce{NaOH}\) solution to neutralize in a titration experiment, what is the concentration of the \(\ce{NaOH}\) solution?

    Solution in Example 1 showed nHCl = 0.02 mol. From the titration experiment, we can conclude that there were 0.02 moles of \(\ce{NaOH}\) in 12.50 mL. Thus,

    \(\mathrm{[NaOH] = \dfrac{0.02\: mol}{0.0125\: L} = 1.60\: mol/L}\)

    Think in terms of reaction,

    \mathrm{HCl + NaOH \rightarrow NaCl + H_2O}
    &\Leftarrow \mathrm{Reaction}\\
    \mathrm{0.02\: mol \hspace{8px} 0.02\: mol \hspace{103px}}
    &\Leftarrow \mathrm{Quantities\: reacted}

    Note that 0.02 mol of \(\ce{NaOH}\) is in 0.0125 mL solution.

    Example 3

    A 5.0-L air sample containing \(\ce{H2S}\) at STP is treated with a catalyst to promote the reaction

    \(\mathrm{H_2S + O_2 \rightarrow H_2O + S_{(solid)}}\).

    If 3.2 g of solid \(\ce{S}\) was collected, calculate the volume percentage of \(\ce{H2S}\) in the original sample.


    \(\mathrm{3.2\: g\: S\times\dfrac{1\: mol\: H_2S}{32\: g\: S}= 0.10\: mol\: H_2S}\)

    \mathrm{V_{H_2S}} &= \mathrm{0.10\: mol \times 22.4\: L/mol}\\
    &= \mathrm{2.24\: L}

    \mathrm{Volume\: \%} &= \mathrm{\dfrac{2.25\: L}{5.0\: L}}\\
    &= 0.45\\
    &= 45 \%


    Data required: Atomic mass: \(\mathrm{H = 1}\); \(\mathrm{O = 16}\); \(\mathrm{S = 32}\). R = 0.08205 L atm /(K mol) is now suitable R values or molar volume at STP (22.4 L/mol)

    The volume percentage is also the mole percentage, but not the weight percentage.

    Example 4

    Hydrogen sulfide reacts with sulfur dioxide to give \(\ce{H2O}\) and \(\ce{S}\),

    \(\mathrm{H_2S + SO_2 \rightarrow H_2O + S_{(solid)}}\), unbalanced.

    If 6.0 L of \(\ce{H2S}\) gas at 750 torr produced 3.2 g of sulfur, calculate the temperature in C.

    Balanced reaction:

    \(\mathrm{2 H_2S + SO_2 \rightarrow 2 H_2O + {3 S_{(solid)}}}\\
    \mathrm{2\: mol \hspace{130px} 3\times32 = 96\: g}\)

    \(\mathrm{3.2\: g\: S\times\dfrac{2\: mol\: H_2S}{96\: g\: S}= 0.067\: mol\: H_2S}\)

    \(\mathrm{P = \dfrac{750}{760} = 0.987\: atm}\)

    T =\dfrac{PV}{n R}&=\mathrm{\dfrac{0.987\: atm \times 6\: L}{0.067\: mol \times 0.08205\: \dfrac{atm\: L}{mol\: K}}}\\
    &= \mathrm{1085\: K}\\
    &= \mathrm{812^\circ C}

    Atomic mass: \(\mathrm{H = 1.0}\); \(\mathrm{O = 16.0}\); \(\mathrm{S = 32.0}\). R = 0.08205 L atm /(K mol) is OK but watch units used for pressure.

    Example 5

    When 50.0 mL of \(\ce{AgNO3}\) solution is treated with an excess amount of \(\ce{HI}\) gas to give 2.35 g of \(\ce{AgI}\), what is the concentration of the \(\ce{AgNO3}\) solution?


    \(\mathrm{2.35\: g\: AgI \times\dfrac{1\: mol\: Ag^+}{234.8\: g\: AgI}\times\dfrac{1\: mol\: AgNO_3}{1\: mol\: Ag^+}= 0.010\: mol\: AgNO_3}\)

    \mathrm{[AgNO_3]} &= \mathrm{\dfrac{0.01\: mol\: AgNO_3}{0.050\: L}}\\
    &= \mathrm{0.20\: M\: AgNO_3}


    A gas is involved, but there is no need to consider the gas law. At. mass: \(\mathrm{Ag = 107.9}\); \(\mathrm{N = 14.0}\); \(\mathrm{O = 16.0}\); \(\mathrm{I = 126.9}\)

    Example 6

    What volume (L) will 0.20 mol \(\ce{HI}\) occupy at 300 K and 100.0 kPa? \(\mathrm{R = 8.314\: \dfrac{kPa\: L}{K\: mol} = 0.08205\: \dfrac{atm\: L}{mol\: K}}\)


    V &=\dfrac{n RT}{P}\\
    &= \mathrm{\dfrac{0.20\: mol \times 8.314\, \dfrac{kPa\:L}{mol\: K} \times 300\: K}{100\: kPa}}\\
    &= \mathrm{\mathrm{5\: L}

    Example 7

    A 3.66-g sample containing \(\ce{Zn}\) (at.wt. 65.4) and \(\ce{Mg}\) (24.3) reacted with a dilute acid to produce 2.470 L \(\ce{H2}\) gas at 101.0 kPa and 300 K. Calculate the percentage of \(\ce{Zn}\) in the sample.

    The number of moles of gas produced is the number of moles of metals in the sample. Once you know the number of moles, set up an equation to give the number of moles of metal in the sample.

    n &= \mathrm{\dfrac{101\: kPa \times 2.470\: L}{8.3145\: \dfrac{kPa\: L}{mol\: K} \times 300\: K}}\\
    &= \mathrm{0.100\: mol}

    Let x be the mass of \(\ce{Zn}\), then the mass of \(\ce{Mg}\) is 3.66 - x g. Thus, we have

    \(\dfrac{x}{65.4}+\dfrac{3.66 - x}{24.3}= \mathrm{0.100\: mole}\)

    Solving for x gives x = 1.96 g \(\ce{Zn}\),

    and the \(\mathrm{weight\: percent = 100 \times \dfrac{1.96}{3.66} = 53.6 \%}\)

    Find the mole percent of \(\ce{Zn}\) in the sample.

    \(\mathrm{\#\: mol\: of\: Zn = \dfrac{1.96}{65.4} = 0.03\: mol}\)

    \(\mathrm{\#\: mol\: of\: Mg = \dfrac{1.70}{24.3} = 0.07\: mol}\)

    \(\mathrm{mole\: percent = 100 \times \dfrac{0.03}{0.03 + 0.07} = 30 \%}\)

    Example 8

    When a 2.00 g mixture of \(\ce{Na}\) and \(\ce{Ca}\) reacted with water, 1.164 L hydrogen was produced at 300.0 K and 100.0 kPa. What is the percentage of \(\ce{Na}\) in the sample?


    \(\ce{2 Na + 2 H2O \rightarrow 2 Na(OH) + H2_{\large{(g)}}}\)
    \(\ce{Ca + H2O \rightarrow Ca(OH) + H2_{\large{(g)}}}\)

    Let x be the mass of \(\ce{Na}\), then (2.00-x) is the mass of \(\ce{Ca}\).

    We have the following relationship

    \(\mathrm{\dfrac{x\: g}{23.0\: g/mol}\times\dfrac{1\: mol\: H_2}{2\: mol\: Na}+\dfrac{(2.0 - x)\: g\: Ca}{40.1\: g\: Ca/mol}\times\dfrac{1\: mol\: H_2}{1\: mol\: Ca}=\dfrac{1.164\: L\: H_2 \times 100.0\: kPa}{8.3145\: kPa\: L\: mol^{-1}\: K^{-1}\: 300.0\: K}}\)

    Simplify to give

    \(\mathrm{\dfrac{x}{46.0}+\dfrac{2}{40.1}-\dfrac{x}{40.1}= 0.0467\:all\: in\: mol}\)

    Multiply all terms by (40.1 * 46.0)

    \(\mathrm{40.1\, x + 2 \times 46.0 - 46.0\, x = 86.1}\)


    \(\mathrm{-5.9\, x = 86.1 - 92.0 = -5.91}\)


    \(\mathrm{Mass\: of\: Na = x = 1.0\: g}\)

    \(\mathrm{Mass\: of\: Ca = 2.0 - x = 1.0\: g}\)

    \(\mathrm{Mass\: Percentage\: of\: Na = 100\times \dfrac{1}{2.0} = 50\%}\)


    \(\mathrm{Mole\: of\: Na = \dfrac{1}{23} = 0.0435\: mol}\)

    \(\mathrm{Mole\: percentage = \dfrac{\dfrac{1}{23}}{\dfrac{1}{23} + \dfrac{1}{40.1}} = 0.635 = 63.5\%}\)

    Compare this example with gravimetric analyses using the reaction

    \(\mathrm{Ag^+_{\large{(aq)}} + \sideset{ }{_{\large{(aq)}}^{-}}{Cl} \rightarrow AgCl_{\large{(s)}}}\)

    where \(\mathrm{\sideset{ }{_{\large{(aq)}}^{-}}{Cl}}\) comes from the disolution of two salts such as \(\ce{NaCl}\) and \(\ce{MgCl2}\).

    Also compare with analyses making use of the reaction

    \(\mathrm{Ba^{2+}_{\large{(aq)}} + SO^{2-}_{4\large{(aq)}} \rightarrow BaSO_{4\large{(s)}}}\)

    where the anion \(\mathrm{SO^{2-}_{4\large{(aq)}}}\) comes from the dissolution of two sulfate salts.

    This example is very similar to Example 7.

    Contributors and Attributions

    11.5: Applications of the Ideal Gas Law- Molar Volume, Density and Molar Mass of a Gas is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?