Skip to main content
Chemistry LibreTexts

The Ideal Gas Law

  • Page ID
    31916
  • \( \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
    • Explain all the quantities involved in the ideal gas law.
    • Evaluate the gas constant \(R\) from experimental results.
    • Calculate \(T\), \(V\), \(P\), or \(n\) of the ideal gas law: \(P V = n R T\).
    • Describe the ideal gas law using graphics.

    The Ideal Gas Law

    The volume (V) occupied by n moles of any gas has a pressure (P) at temperature (T) in Kelvin. The relationship for these variables,

    \[P V = n R T\]

    where R is known as the gas constant, is called the ideal gas law or equation of state. Properties of the gaseous state predicted by the ideal gas law are within 5% for gases under ordinary conditions. In other words, given a set of conditions, we can predict or calculate the properties of a gas to be within 5% by applying the ideal gas law. How to apply such a law for a given set of conditions is the focus of general chemistry.

    At a temperature much higher than the critical temperature and at low pressures, however, the ideal gas law is a very good model for gas behavior. When dealing with gases at low temperature and at high pressure, correction has to be made in order to calculate the properties of a gas in industrial and technological applications. One of the common corrections made to the ideal gas law is the van der Waal's equation, but there are also other methods dealing with the deviation of gas from ideality.

    The Gas Constant R

    Repeated experiments show that at standard temperature (273 K) and pressure (1 atm or 101325 N/m2), one mole (n = 1) of gas occupies 22.4 L volume. Using this experimental value, you can evaluate the gas constant R,

    \(\begin{align}
    R &= \dfrac{P V}{n T} = \mathrm{\dfrac{1\: atm\:\: 22.4\: L}{1\: mol\:\: 273\: K}}\\ \\
    &= \mathrm{0.08205\: \dfrac{L\: atm}{mol\cdot K}}
    \end{align}\)

    When SI units are desirable, P = 101325 N/m2 (Pa for pascal) instead of 1 atm. The volume is 0.0224 m3. The numerical value and units for R are

    \(\begin{align}
    R &= \mathrm{\dfrac{101325\: \dfrac{N}{m^2}\: 0.0224\: m^3}{1\: mol\: 273\: K}}\\
    \\
    &= \mathrm{8.314\: \dfrac{J}{mol\cdot K}}
    \end{align}\)

    Note that \(\mathrm{1\: L\: atm = 0.001\: m^3 \times 101325\: \dfrac{N}{m^2} = 101.325\: J\: (or\: N\: m)}\). Since energy can be expressed in many units, other numerical values and units for R are frequently in use.

    The Gas Constant

    For your information, the gas constant can be expressed in the following values and units.

    \(\begin{align}
    R &= \mathrm{0.08205\: \dfrac{L\: atm}{mol \cdot K}}
    &&\textrm{Notes:} \\
    &= \mathrm{8.3145\: \dfrac{L\: kPa}{mol\cdot K}}
    &&\mathrm{1\: atm = 101.32\: kPa} \\
    &= \mathrm{8.3145\: \dfrac{J}{mol\cdot K}}
    &&\mathrm{1\: J = 1\: L\: kPa} \\
    &= \mathrm{1.987\: \dfrac{cal}{mol\cdot K}}
    &&\mathrm{1\: cal = 4.182\: J} \\
    &= \mathrm{62.364\: \dfrac{L\: torr}{mol\cdot K}}
    &&\mathrm{1\: atm = 760\: torr}\\
    \end{align}\)

    The gas constant R is such a universal constant for all gases that its values are usually listed in the "Physical Constants" of textbooks and handbooks. It is also listed in Constants of our HandbookMenu at the left bottom. Although we try to use SI units all the time, the use of atm for pressure is still common. Thus, we often use R = 8.314 J / (mol·K) or 8.3145 J / mol·K.

    The volume occupied by one mole, n = 1, of substance is called the molar volume, \(V_{\textrm{molar}} = \dfrac{V}{n}\). Using the molar volume notation, the ideal gas law is:

    \(P V_{\textrm{molar}} = R T\)

    Applications of the Ideal Gas Law

    The ideal gas law has four parameters and a constant, R,

    \(P V = n R T\),

    and it can be rearranged to give an expression for each of P, V, n or T. For example,

    \(P = \dfrac{n R T}{V}\) (Boyle's law)
    \(P = \left(\dfrac{n R}{V}\right) T\) (Charles's law)

    These equations are Boyle's law and Charles's law respectively. Similar expressions can be derived for V, n and T in terms of other variables. Thus, there are many applications. However, you must make sure that you use the proper numerical value for the gas constant R according to the units you have for the parameters.

    Furthermore, \(\dfrac{n}{V}\) is number of moles per unit volume, and this quantity has the same units as the concentration (C). Thus, the concentration is a function of pressure and temperature,

    \(C = \dfrac{P}{R T}\)

    At 1.0 atm pressure and room temperature of 298 K, the concentration of an ideal gas is 0.041 mol/L.

    Avogadro's law can be further applied to correlate gas density \(\rho\) (weight per unit volume or n M / V) and molecular mass M of a gas. The following equation is easily derived from the ideal gas law:

    \[P M =\dfrac{n M}{V}R T\]

    Thus, we have

    \(\begin{align}
    P M &= \dfrac{d R T}{M}\\
    \rho &= \dfrac{n M}{V} \leftarrow \textrm{definition, and}\\
    \rho &= \dfrac{P M}{R T}\\
    M &= \dfrac{d R T}{P}
    \end{align}\)

    Example 1

    An air sample containing only nitrogen and oxygen gases has a density of 1.3393 g / L at STP. Find the weight and mole percentages of nitrogen and oxygen in the sample.

    Solution
    From the density \(\rho\), we can evaluate an average molecular weight (also called molar mass).

    \(\begin{align}
    P M &= d R T\\
    M &= 22.4 \times d\\
    &= \mathrm{22.4\: L/mol \times 1.3393\: g/L}\\
    &= \mathrm{30.0\: g / mol}
    \end{align}\)

    Assume that we have 1.0 mol of gas, and x mol of which is nitrogen, then (1 - x) is the amount of oxygen. The average molar mass is the mole weighted average, and thus,

    \(\mathrm{28.0\, x + 32.0 (1 - x) = 30.0}\)

    \(\mathrm{- 4\, x = - 2}\)

    \(\mathrm{x = 0.50\: mol\: of\: N_2,\: and\: 1.0 - 0.50 = 0.50\: mol\: O_2}\)

    Now, to find the weight percentage, find the amounts of nitrogen and oxygen in 1.0 mol (30.0 g) of the mixture.

    \(\mathrm{Mass\: of\: 0.5\: mol\: nitrogen = 0.5 \times 28.0 = 14.0\: g}\)

    \(\mathrm{Mass\: of\: 0.5\: mol\: oxygen = 0.5 \times 32.0 = 16.0\: g}\)

    \(\mathrm{Percentage\: of\: nitrogen = 100 \times \dfrac{14.0}{30.0} = 46.7 \% }\)

    \(\mathrm{Percentage\: of\: oxygen = 100 \times \dfrac{16.0}{30.0} = 100 - 46.7 = 53.3 \%}\)

    DISCUSSION
    We can find the density of pure nitrogen and oxygen first and evaluate the fraction from the density.

    \(\rho \mathrm{\: of\: N_2 = \dfrac{28.0}{22.4} = 1.2500\: g/L}\)

    \(\rho \mathrm{\: of\: O_2 = \dfrac{32.0}{22.4} = 1.4286\: g/L}\)

    \(\mathrm{1.2500\, x + 1.4286 (1 - x) = 1.3393}\)

    Solving for x gives

    \(\mathrm{x = 0.50}\) (same result as above)

    Exercise 1

    Now, repeat the calculations for a mixture whose density is 1.400 g/L.

    Example 2

    What is the density of acetone (\(\ce{C3H6O}\)) vapor at 1.0 atm and 400 K?

    Solution

    The molar mass of acetone = 3*12.0 + 6*1.0 + 16.0 = 58.0. Thus,

    \(\begin{align}
    \rho &= \dfrac{P M}{R T}\\
    \\
    &= \mathrm{\dfrac{1.0 \times 58.0\: atm\: \dfrac{g}{mol}} {0.08205\: \dfrac{L\: atm}{mol\: K} \times 400\: K}}\\
    \\
    &= \mathrm{1.767\: g / L}
    \end{align}\)

    Exercise 2

    The density of acetone is 1.767 g/L; calculate its molar mass.

    Confidence Building Questions

    1. What does the variable n stand for in the ideal gas law,

      \(P V = n R T\)?

      Hint: number of moles of gas in a closed system.

      Skill:
      Describe the ideal gas law.

    2. A closed system means no energy or mass flow into or out of a system. In a closed system, how many independent variables are there among n, T, V and P for a gas? Note: an independent variable can be of any arbitrary values.

      Hint: one

      Skill:
      The ideal gas equation shows the interdependence of the variables. Only one of them can be varied independently.

    3. What is the molar volume of an ideal gas at 2 atm and 1000 K?

      Hint: 41.0

      Skill:
      Evaluate molar volume at any condition.

    4. A certain amount of a gas is enclosed in a container of fixed volume. If you let heat (energy) flow into it, what will increase?
      (In a multiple choice, you may have volume, pressure, temperature, and any combination of these to choose from.)

      Hint: Both pressure and temperature will increase.

      Skill:
      Explain a closed system and apply ideal gas law.

    5. For a certain amount (n = constant) of gas in a closed system, how does volume V vary with the temperature? In the following, k is a constant depending on n and P.

      1. \(V = k T\)
      2. \(V = \dfrac{k}{T}\)
      3. \(T V = k\)
      4. \(V = k T^2\)
      5. \(V = k\)

      Hint: a

      Skill:
      Explain Charles's law.

    6. Boyle's law is P V = constant. A sketch of P vs V on graph paper is similar to a sketch of the equation x y = 5. What curve(s) does this equation represent?

      1. a parabola
      2. an ellipse
      3. a hyperbola
      4. a pair of hyperbolas
      5. a straight line
      6. a surface

      Hint: d

      Skill:
      Apply the skills acquired in math courses to chemical problem solving.

    7. For a certain amount of gas in a closed system, which one of the following equations is valid? Subscripts 1 and 2 refer to specific conditions 1 and 2 respectively.

      1. \(P_1 V_1 T_1 = P_2 V_2 T_2\)
      2. \(P_1 V_1 T_2 = P_2 V_2 T_1\)
      3. \(P_1 V_2 T_1 = P_2 V_1 T_2\)
      4. \(P_2 V_1 T_1 = P_1 V_2 T_2\)
      5. \(\dfrac{P_1 V_2}{T_1} = \dfrac{P_2 V_1}{T_2}\)

      Hint: b

      Skill:
      Rearrange a mathematical equation.

    8. The gas constant R is 8.314 J / mol·K. Convert the numerical value of R so that its units are cal / (mol·K). A unit conversion table will tell you that 1 cal = 4.184 J. Make sure you know where to find it. During the exam, the conversion factor is given, but you should know how to use it.

      Hint: 1.987 cal/(mol K).

      Skill:
      Use conversion factors, for example:

      \(\mathrm{8.314\: J\times\dfrac{1\: cal}{4.184\: J}=\: ?\: cal}\)

    9. At standard temperature and pressure, how many moles of \(\ce{H2}\) are contained in a 1.0 L container?

      Hint: 0.045 mol/L

      Discussion:
      There are many methods for calculating this value.

    10. At standard temperature and pressure, how many grams of \(\ce{CO2}\) are contained in a 3.0 L container? Molar mass of \(\mathrm{CO_2 = 44}\).

      Hint: 5.89 g in 3 L

      One method:
      It contains \(n \mathrm{= \dfrac{1\: atm \times 3\: L}{0.08205\: \dfrac{L\: atm}{mol\cdot K}\times 273\: K}}\)

    11. What is the pressure if 1 mole of \(\ce{N2}\) occupies 1 L of volume at 1000 K?

      Hint: 82.1 atm

      Discussion:
      Depending on the numerical value and units of R you use, you will get the pressure in various units.
      At 1000 K, some of the \(\ce{N2}\) molecules may dissociate. If that is true, the pressure will be higher!

    12. What is the temperature if 1 mole of \(\ce{N2}\) occupying 100 L of volume has a pressure of 20 Pa (1 Pa = 1 Nm-2 )?

      Hint: 240 K

      Discussion:
      At T = 240 K, ideal gas law may not apply to \(\ce{CO2}\), because this gas liquifies at a rather high temperature. The ideal gas law is still good for \(\ce{N2}\), \(\ce{H2}\), \(\ce{O2}\) etc, because these gases liquify at much lower temperatures.


    This page titled The Ideal Gas Law is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Chung (Peter) Chieh.

    • Was this article helpful?