Skip to main content
Library homepage
Chemistry LibreTexts

9.2: Gas Laws

  • 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}}\)

    Gas Phase Chemistry

    Gasses are compressible fluids which form homogenous solutions. An ideal gas is a gas where there are no attractive (or repulsive) forces between the particles and their kinetic energy (the energy of motion) is linearly proportional to the absolute temperature (K). This relationship is expressed by the Ideal Gas Law as presented in the last section.

    \[PV=nRT \\variables = P,V,n,T \\constant = R=0.082057\left (\frac{L\cdot atm}{mol\cdot K} \right)\]

    The value of the Ideal Gas constant R depends on the units. The bottom left unit of table \(\PageIndex{1}\) (R=8.314 \(\left ( \frac{J}{mol\cdot K} \right )\)) is of special significance and will be used extensively in the second semester of this class (when you will need to memorize that value), as it relates the energy (Joules) of a gas to the absolute Temperature (K) and number of gas particles in the gas (n). In this class you only need to memorize the first value to four significant digits, (R=0.08206 \(\left (\frac{L\cdot atm}{mol\cdot K} \right)\). And hopefully you have realized by now that all these constants can be converted to SI base units (bottom right value of table, which is expressed in units of kg, m, mol and second).

    Table \(\PageIndex{1}\): Select Values of R.
    R=0.082057 \(\left (\frac{L\cdot atm}{mol\cdot K} \right) \) R=62.36367 \(\left ( \frac{L\cdot torr}{mol\cdot K} \right )\)
    R=8.3144598 \(\left ( \frac{J}{mol\cdot K} \right )\) R=8.3144598 \(\left ( \frac{kg(m^{2})}{(s^{2})mol\cdot K} \right )\)

    In the next section we will develop the empirical gas laws. What is important is that you be able to derive these from the ideal gas law. 

    Empirical Gas Laws

    Empirical data is experimental data, and an experiment typically involves two variables, the independent variable, which we change, and the dependent variable, whose value changes as the independent variable is changed (section 2.10). We generically define these variables as (X,Y) where X is the independent and Y is the dependent variable, and then set up an equation where Y is a function of X, or Y =fct(X). A common function is the linear function as expressed in fig. 10.2.1


    Figure \(\PageIndex{1}\): Linear function where the value of Y (dependent variable) depends on the value of X (independent variable).

    If we take a closer look at the ideal gas law, we see there are four variables, (P, T, V and n) and 1 constant (R). To make a plot of n variables you need n-dimensions. So two variables gives a line, three gives a surface (x,y,x axes), and there is no way we can draw 4 variables. What the early scientists could do is hold 2 of the 4 variables constant, and make 2D plots, and the empirical gas laws are the plots that result in linear equations. These were historically determined, and then later the Ideal gas law was developed. But we can use each of the empirical gas laws as a special case of the ideal gas law, defined by which variables are constant, and which are measured. So the idea is simple, you hold two variables constant, change the third (independent variable) and observe how the fourth adjusts (dependent variable).

    The Ideal Gas Law can be written as \[\frac{PV}{nT}=R\]

    Each of the Empirical Gas laws is an expression of the above equation where two of the four variables are held constant, and thus each of the empirical gas constants is related to the Ideal Gas constant through the values of the variables that were held constant.


    Boyle's Law (constant n,T)


    This describes the relationship between the pressure and volume of a gas with a constant number of particles at constant temperature.

    From the Ideal Gas Law we would predict:

    \[PV=nRT\Rightarrow V=\left ( nRT \right )\frac{1}{P}\]

    since n, R and T are all constants, we have


    \[PV=k~~where,k=\left ( nRT \right )\]

    Note, there are two possible graphs that come out of this relationship,

    1. P vs. 1/V
    2. V vs. 1/P

    These graphs of of the form Y=function of X, where Y is the dependent variable and x is the independent variable.  That is, if you change X, how does Y change?  So if I have a sealed cylinder and I double the volume the pressure will change and so one would plot pressure as a function of volume.  But if you had a frictionless piston in a cylinder and then changed the pressure in the cylinder, the piston would move until a new equilibrium was achieved, and we would say the volume is a function of pressure.

    Part (a) of Figure 10.2.2 shows that P and V are not linear, but as predicted above and shown in part (b), V is linear to the reciprocal of P.


    Figure \(\PageIndex{2}\): Plot (a) shows a non linear relationship of V as a function of P, while (b) shows V and P are inversely related.

    What the data says is that as P goes down, 1/P goes up, and V goes up proportional to 1/P.


    This might be easier to understand if we switched the axes and look at how the pressure is dependent on the volume.

    \[P=k'\frac{1}{V} \; \text{where, k=}\frac{1}{k'}\]

    The pressure is the force per unit area, and the pressure is due to the collision of gas particles against the surface of the container. The greater the collision frequency of particles with the wall, the greater the pressure. If you have a gas in a rigid container and reduce its volume, 1/V goes up, and the pressure goes up because there is a shorter path distance between the walls (increasing the collision frequency).

    We will revisit this after we cover the Kinetic Molecular Theory of gases, where you will find a better explanation (section 10.5.4).

    Gay-Lussac's Law (constant n,V)


    This describes the relationship between the pressure and temperature of a gas with a constant number of particles at constant temperature. From the Ideal Gas Law we would predict:

    PV=nRT \(\Rightarrow P=\left ( \frac{nR}{V} \right )T\)

    since n,V & R are constants

    P=kT where, k=\(\left ( \frac{nR}{V} \right )\)


    This describes a rigid closed container containing a fixed number of gas particles. As the temperature goes up the particles move faster, hit the wall more frequently at higher velocities and so the pressure goes up (remember P=\(\frac{F}{A}\). As the temperature rises the pressure continues to rise and at some point the material of the rigid container will rupture and an explosion will occur as the gas escapes.

    Likewise, as the temperature goes down the molecules slow down, hit the wall less frequently at lower velocities and so the pressure drops. Note, there is a lower limit to this equations, which is defined as the boiling point, and at temperatures below that Temperature the particle condenses out as a liquid (it is no longer a gas), and the Ideal gas law does not describe the system.

    Charles's Law (Constant n,P)

    This describes the relationship between the volume and the temperature of a gas with a constant number of particles at constant pressure. This relationship is demonstrated in the following YouTube where a balloon full of air is dropped into liquid nitrogen, and then returned to room temperature.

    Video \(\PageIndex{1}\): 2'39" YouTube by Jefferson Lab showing the temperature effect on a balloon full of air (

    Mathematically, Charles's Law can be derived from the ideal gas equation at constant pressure and number of particles and would be modeled by an ideal balloon (closed system) that had no resistance to expansion or contraction (constant pressure).

    \[PV=nRT\Rightarrow V=\left ( \frac{nR}{P} \right )T \Rightarrow V=kT \; where,k=\left ( \frac{nR}{P} \right )\; \]

    Note, just as for Gay-Lussac's Law there is a lower limit for the temperature, being the "boiling point", at which temperature the gas converts to a liquid and no longer follows the gas laws. Figure \(\PageIndex{4}\) shows experimental (empirical) data for the volume of a gas as a function of temperature.


    Figure \(\PageIndex{4}\): The Relationship between Volume and Temperature. (a) In these plots of volume versus temperature for equal-sized samples of H2 at three different pressures, the solid lines show the experimentally measured data down to −100°C, and the broken lines show the extrapolation of the data to V = 0. The temperature scale is given in both degrees Celsius and kelvins. Although the slopes of the lines decrease with increasing pressure, all of the lines extrapolate to the same temperature at V = 0 (−273.15°C = 0 K). (b) In these plots of volume versus temperature for different amounts of selected gases at 1 atm pressure, all the plots extrapolate to a value of V = 0 at −273.15°C, regardless of the identity or the amount of the gas (CC BY-SA-NC; anonymous by request).

    The significance of the invariant T intercept in plots of V versus T was recognized in 1848 by the British physicist William Thomson (1824–1907), later named Lord Kelvin. He postulated that −273.15°C was the lowest possible temperature that could theoretically be achieved, for which he coined the term absolute zero (0 K).

    Avogadro's Law (Constant P,T)

    This describes the relationship between the volume and the number of particles in a gas at constant pressure and temperature. We can derive Avogadro's Law from the ideal gas law using these constants:

    \[PV=nRT, \; \; \; \; \; \; \small{\text{at constant P,T}} \\ V=\left ( \frac{RT}{P} \right )n, \; \; \; \; \; \; \; \; \small{where \; k=\left ( \frac{RT}{P} \right )} \\ \Large{V=kn}\]

    Figure \(\PageIndex{5}\): Avogadro's Law states that at constant P and T the volume is proportional to the number of gas particles.

    An important facet of Avodadro's Law is that this relationship does not depend on the identity of the molecule (we will learn later that there are deviations), but the value of the constant does depend on the value of P and T held constant

    Historically, around 1811 Avogadro postulated his hypothesis, which was that equal volumes of gasses contain equal numbers of particles, and Avogadro's Law derives from that relationship. It is common to use STP (standard temperature and pressure) as the value for the constants (T and P) in Avagadro's Law

    STP (Standard Temperature and Pressure)

    STP is the standard temperature and pressure that many gas values are tabulated at. You may notice different values in different textbooks because in 1982 the definiton of the standard pressure changed from 1 atm to 1 bar.

    • Until 1982, STP was defined as a T= 0 °C and P = 1 atm (101.325 kPa).
    • Since 1982, STP is defined as a T= 0 °C  and P = 1 bar (100kPa)

    Molar Volume at STP

    Avogadro's hypothesis states that the volume of a mole should be the same for any substance, and as can be seen from Table \(\PageIndex{1}\).

    Table \(\PageIndex{1}\): Molar Volumes of Several Gases at STP
    Substance Formula Molar Volume/liter mol–1
    Hydrogen H2(g) 22.43
    Neon Ne(g) 22.44
    Oxygen O2(g) 22.39
    Nitrogen N2(g) 22.40
    Carbon dioxide CO2(g) 22.26
    Ammonia NH3(g) 22.09

    The data in Table \(\PageIndex{1}\), then, indicate that for a variety of gases, 6.022 × 1023 molecules occupy almost exactly the same volume (the molar volume) if the temperature and pressure are held constant, and the molar volume for an ideal gas is 22.4 l/mol. So if you can measure the volume of a gas at STP, you can calculate the number of moles.

    Ideal Gas Law Calculations

    There are two basic types of calculations we will do involving the ideal gas laws.  

    1. PV=nRT calculations.
    2. Two State Problems

    The two state problem will be approached in the next secion.


    These are simple algebraic problems where you are given 3 of the 4 variables. The trick is to keep your units in your equations and be sure the units of the answer make sense. If you think about it, the numerical value of R depends on the units of R (see table 10.2.1), and your variables must have the units of R or they will not cancel. This is especially important for temperature, which must be in units of Kelvin.

    Exercise \(\PageIndex{1}\)

    The following problems represent various solutions to the ideal gas equation

    1. A sample of gaseous Cl2 has a volume of 12.4 L at 500.0 K and 0.521 atm. How many moles are present?
    2. What is the mass of chlorine gas in a 12.4L container at 500.0K and 0.521 atm?
    3. What volume is occupied by 1.06 mol of CO2 gas at 299 K and a pressure of 0.89 atm?
    4. What is the temperature of 1.41 mol of methane gas in a 5.0 L container at 1.00 atm?
    5. What is the pressure exerted by a 1.75 mol sample of water at 7.0L and 20oC?
    Answer a

    \[n=\frac{PV}{RT}=\frac{0.521atm\left ( 12.4L \right )}{0.08206\frac{L\cdot atm}{mol\cdot K}\left ( 500K \right )}=0.157mol \nonumber \]

    Answer b

    \[n=\frac{PV}{RT}=\frac{0.521atm\left ( 12.4L \right )}{0.08206\frac{L\cdot atm}{mol\cdot K}\left ( 500K \right )}=0.157mol \nonumber \]

    \[0.157mol~Cl_{2}\left ( \frac{70.90g~Cl_{2}}{mol} \right )=11.1g\]

    Answer c

    \[V=\frac{nRT}{P}=\frac{1.06mol\left ( 0.08206\frac{L\cdot atm}{mol\cdot K} \right )299K}{0.89atm}=29L \nonumber \]

    Answer d

    \[T=\frac{PV}{nR}=\frac{1.00atm\left ( 5.0L \right )}{1.41mol\left ( 0.08206\frac{L\cdot atm}{mol\cdot K} \right )}=43K \nonumber \]

    Answer e

    \[P=\frac{nRT}{V}=\frac{1.75mol\left ( 0.08206\frac{L\cdot atm}{mol\cdot K} \right )293.15K}{7.0L}=6.0atm \nonumber \]



    • Bob Belford (UALR) and November Palmer (UALR)
    • Adoptions from Openstax

    9.2: Gas Laws is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?