The Ideal Gas Law
 Page ID
 1522
\( \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}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{\!\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{\!\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left#1\right}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)The Ideal Gas Law is very simply expressed:
\[ PV=nRT\]
from which simpler gas laws such as Boyle's, Charles's, Avogadro's and Amonton's law be derived.
Introduction
Many chemists had dreamed of having an equation that describes relation of a gas molecule to its environment such as pressure or temperature. However, they had encountered many difficulties because of the fact that there always are other affecting factors such as intermolecular forces. Despite this fact, chemists came up with a simple gas equation to study gas behavior while putting a blind eye to minor factors.
When dealing with gas, a famous equation was used to relate all of the factors needed in order to solve a gas problem. This equation is known as the Ideal Gas Equation. As we have always known, anything ideal does not exist. In this issue, two wellknown assumptions should have been made beforehand:
 the particles have no forces acting among them, and
 these particles do not take up any space, meaning their atomic volume is completely ignored.
An ideal gas is a hypothetical gas dreamed by chemists and students because it would be much easier if things like intermolecular forces do not exist to complicate the simple Ideal Gas Law. Ideal gases are essentially point masses moving in constant, random, straightline motion. Its behavior is described by the assumptions listed in the KineticMolecular Theory of Gases. This definition of an ideal gas contrasts with the NonIdeal Gas definition, because this equation represents how gas actually behaves in reality. For now, let us focus on the Ideal Gas.
We must emphasize that this gas law is ideal. As students, professors, and chemists, we sometimes need to understand the concepts before we can apply it, and assuming the gases are in an ideal state where it is unaffected by real world conditions will help us better understand the behavior the gases. In order for a gas to be ideal, its behavior must follow the KineticMolecular Theory whereas the NonIdeal Gases will deviate from this theory due to real world conditions.
The Ideal Gas Equation
Before we look at the Ideal Gas Equation, let us state the four gas variables and one constant for a better understanding. The four gas variables are: pressure (P), volume (V), number of mole of gas (n), and temperature (T). Lastly, the constant in the equation shown below is R, known as the the gas constant, which will be discussed in depth further later:
\[ PV=nRT \]
Another way to describe an ideal gas is to describe it in mathematically. Consider the following equation:
\[ \dfrac{PV}{nRT}=1 \]
The term \(\frac{pV}{nRT}\) is also called the compression factor and is a measure of the ideality of the gas. An ideal gas will always equal 1 when plugged into this equation. The greater it deviates from the number 1, the more it will behave like a real gas rather than an ideal. A few things should always be kept in mind when working with this equation, as you may find it extremely helpful when checking your answer after working out a gas problem.
 Pressure is directly proportional to number of molecule and temperature. (Since P is on the opposite side of the equation to n and T)
 Pressure, however, is indirectly proportional to volume. (Since P is on the same side of the equation with V)
Simple Gas Laws
The Ideal Gas Law is simply the combination of all Simple Gas Laws (Boyle's Law, Charles' Law, and Avogadro's Law), and so learning this one means that you have learned them all. The Simple Gas Laws can always be derived from the Ideal Gas equation.
Boyle's Law
Boyle’s Law describes the inverse proportional relationship between pressure and volume at a constant temperature and a fixed amount of gas. This law came from a manipulation of the Ideal Gas Law.
\[ P \propto \dfrac{1}{V} \]
or expressed from two pressure/volume points:
\[ P_1V_1=P_2V_2 \]
This equation would be ideal when working with problem asking for the initial or final value of pressure or volume of a certain gas when one of the two factor is missing.
Charles's Law
Charles's Law describes the directly proportional relationship between the volume and temperature (in Kelvin) of a fixed amount of gas, when the pressure is held constant.
\[ V\propto \; T \]
or express from two volume/temperature points:
\[ \dfrac{V_1}{T_1}=\dfrac{V_2}{T_2} \]
This equation can be used to solve for initial or final value of volume or temperature under the given condition that pressure and the number of mole of the gas stay the same.
Avogadro's Law
Volume of a gas is directly proportional to the amount of gas at a constant temperature and pressure.
\[ V \propto \; n\]
or expressed as a two volume/number points:
\[ \dfrac{V_1}{n_1}=\dfrac{V_2}{n_2} \]
Avogadro's Law can apply well to problems using Standard Temperature and Pressure (see below), because of a set amount of pressure and temperature.
Amontons's Law
Given a constant number of mole of a gas and an unchanged volume, pressure is directly proportional to temperature.
\[ P \propto \; T\]
or expressed as two pressure/temperature points:
\[ \dfrac{P_1}{T_1}=\dfrac{P_2}{T_2} \]
Boyle's Law, Charles' Law, and Avogradro's Law and Amontons's Law are given under certain conditions so directly combining them will not work. Through advanced mathematics (provided in outside link if you are interested), the properties of the three simple gas laws will give you the Ideal Gas Equation.
Standard Temperature and Pressure (STP)
 The universal value of STP is 1 atm (pressure) and 0^{o} C. Note that this form specifically stated 0^{o} C degree, not 273 Kelvin, even thought you will have to convert into Kelvin when plugging this value into the Ideal Gas equation or any of the simple gas equations.
 In STP, 1 mole of gas will take up 22.4 L of the volume of the container.
Units of P, V and T
The table below lists the different units for each property.
Factor

Variable

Units


Pressure

P

atm
Torr
Pa
mmHg

Volume

V

L
m³

Moles

n

mol

Temperature

T

K

Gas Constant

R*

see Values of R table below 
Pressure Units
Use the following table as a reference for pressure.
Unit  Symbol  Equivalent to 1 atm 

Atmosphere  atm  1 atm 
Millimeter of Mercury  mmHg  760 mmHg 
Torr  Torr  760 Torr 
Pascal  Pa  101326 Pa 
Kilopascal  kPa*  101.326 kPa 
Bar  bar  1.01325 bar 
Millibar  mb  1013.25 mb 
*note: This is the SI unit for pressure
The Gas Constant (R)
Here comes the tricky part when it comes to the gas constant, R. Value of R WILL change when dealing with different unit of pressure and volume (Temperature factor is overlooked because temperature will always be in Kelvin instead of Celsius when using the Ideal Gas equation). Only through appropriate value of R will you get the correct answer of the problem. It is simply a constant, and the different values of R correlates accordingly with the units given. When choosing a value of R, choose the one with the appropriate units of the given information (sometimes given units must be converted accordingly). Here are some commonly used values of R:
Values of R 
0.082057 L atm mol^{1} K^{1} 
62.364 L Torr mol^{1}^{ }K^{1} 
8.3145 m^{3} Pa mol^{1} K^{1} 
8.3145 J mol^{1} K^{1}^{*} 
*note: This is the SI unit for the gas constant
So, which value of R should I use?
Solution
Because of the various value of R you can use to solve a problem. It is crucial to match your units of Pressure, Volume, number of mole, and Temperature with the units of R.
 If you use the first value of R, which is 0.082057 L atm mol^{1}K^{1}, your unit for pressure must be atm, for volume must be liter, for temperature must be Kelvin.
 If you use the second value of R, which is 62.364 L Torr mol^{1}K^{1}, your unit for pressure must be Torr, for volume must be liter, and for temperature must be Kelvin.
Ideal Gas Law Applications
How do you know the Ideal Gas Equation is the correct equation to use? Use the Ideal Gas Equation to solve a problem when the amount of gas is given and the mass of the gas is constant. There are various type of problems that will require the use of the Ideal Gas Equation.
 Solving for the unknown variable
 Initial and Final
 Partial Pressure
Other things to keep in mind: Know what Standard Temperature and Pressure (STP) values are. Know how to do Stoichiometry. Know your basic equations. Take a look at the problems below for examples of each different type of problem. Attempt them initially, and if help is needed, the solutions are right below them. Remark: The units must cancel out to get the appropriate unit; knowing this will help you double check your answer.
5.0 g of neon is at 256 mm Hg and at a temperature of 35º C. What is the volume?
Solution
Step 1: Write down your given information:
 P = 256 mmHg
 V = ?
 m = 5.0 g
 R = 0.0820574 L•atm•mol^{1}K^{1}
 T = 35º C
Step 2: Convert as necessary:
Pressure: \( 256 \; \rm{mmHg} \times (1 \; \rm{atm/} 760 \; \rm{mmHg}) = 0.3368 \; \rm{atm} \)
Moles: \( 5.0 \; \rm{g}\; Ne \times (1 \; \rm{mol} / 20.1797\; \rm{g}) = 0.25 \; \rm{mol}\; \rm{Ne} \)
Temperature: \(35º C + 273 = 308 \; \rm{K} \)
Step 3: Plug in the variables into the appropriate equation.
\[ V = (nRT/P) \]
\[ V = \dfrac{(0.25\; \rm{mol})(0.08206\; \rm{L atm}/\rm{K mol})(308\; \rm{K})}{(0.3368\; \rm{atm})}] \]
\[ V = 19\; \rm{L}\]
What is a gas’s temperature in Celsius when it has a volume of 25 L, 203 mol, 143.5 atm?
Solution
Step 1: Write down your given information:
 P = 143.5 atm
 V= 25 L
 n = 203 mol
 R = 0.0820574 L•atm•mol^{1} K^{1}
 T = ?
Step 2: Skip because all units are the appropriate units.
Step 3: Plug in the variables into the appropriate equation.
\[T = \dfrac{PV}{nR}\]
\[T = \dfrac{(143.5\; \rm{atm})(25\; \rm{L})}{(203 \; \rm{mol})(0.08206 L•atm/K mol)}\]
\[T = 215.4\; \rm{K}\]
Step 4: You are not done. Be sure to read the problem carefully, and answer what they are asking for. In this case, they are asking for temperature in Celsius, so you will need to convert it from K, the units you have.
\[215.4 K  273 = 57.4º C\]
What is the density of nitrogen gas (\(N_2\)) at 248.0 Torr and 18º C?
Solution
Step 1: Write down your given information
 P = 248.0 Torr
 V = ?
 n = ?
 R = 0.0820574 L•atm•mol^{1} K^{1}
 T = 18º C
Step 2: Convert as necessary.
\[(248 \; \rm{Torr}) \times \dfrac{1 \; \rm{atm}}{760 \; \rm{Torr}} = 0.3263 \; \rm{atm}\]
\[18ºC + 273 = 291 K\]
Step 3: This one is tricky. We need to manipulate the Ideal Gas Equation to incorporate density into the equation. *Write down all known equations:
\[PV = nRT\]
\[\rho=\dfrac{m}{V}\]
where \(\rho\)=density, m=mass, V=Volume
\[m=M \times n\]
where m=mass, M=molar mass, n=moles
*Now take the density equation.
\[\rho=\dfrac{m}{V}\]
*Keeping in mind \(m=M \times n\)...replace \((M \times n)\) for \(mass\) within the density formula.
\[\rho=\dfrac{M \times n}{V}\]
\[\dfrac{\rho}{M} = \dfrac{n}{V}\]
*Now manipulate the Ideal Gas Equation
\(PV = nRT\)
\[\dfrac{n}{V} = \dfrac{P}{RT}\]
*\((n/V)\) is in both equations.
\[\dfrac{n}{V} = \dfrac{\rho}{M}\]
\[\dfrac{n}{V} = \dfrac{P}{RT}\]
*Now combine them please.
\[\dfrac{\rho}{M} = \dfrac{P}{RT}\]
*Isolate density.
\[\rho = \dfrac{PM}{RT}\]
Step 4: Now plug in the information you have.
\[\rho = \dfrac{PM}{RT}\]
\[\rho = \dfrac{(0.3263\; \rm{atm})(2*14.01 \; \rm{g/mol})}{(0.08206 L atm/K mol)(291 \; \rm{K})}\]
\[\rho = 0.3828 \; g/L\]
Find the volume, in mL, when 7.00 g of \(O_2\) and 1.50 g of \(Cl_2\) are mixed in a container with a pressure of 482 atm and at a temperature of 22º C.
Solution
Step 1: Write down your given information
 P = 482 atm
 V = ?
 n = ?
 R = 0.0820574 L•atm•mol^{1} K^{1}
 T = 22º C + 273 = 295K
 1.50g Cl_{2}
 7.00g_{ O2 }
Step 2: Find the total moles of the mixed gases in order to use the Ideal Gas Equation.
\[n_{total} = n_{O_2}+ n_{Cl_2}\]
\[= \left[7.0 \; \rm{g} \; O_2 \times \dfrac{1 \; \rm{mol} \; O_2}{32.00 \; \rm{g} \; O_2}\right] + \left[1.5 \; \rm{g}\; Cl_2 \times \dfrac{1 \; \rm{mol} \; Cl_2}{70.905 \; \rm{g} \; Cl_2}\right]\]
\[= 0.2188 \; \rm{mol} \; O_2 + 0.0212 \; \rm{mol} \; Cl_2\]
\[= 0.24 \; \rm{mol}\]
Step 3: Now that you have moles, plug in your information in the Ideal Gas Equation.
\[V= \dfrac{nRT}{P}\]
\[V= \dfrac{(0.24\; \rm{mol})(0.08206 L atm/K mol)(295\; \rm{K})}{(482\; \rm{atm})}\]
\[V= 0.0121\; \rm{L}\]
Step 4: Almost done! Now just convert the liters to milliliters.
\[0.0121\; \rm{L} \times \dfrac{1000\; \rm{ml}}{1\; \rm{L}} = 12.1\; \rm{mL}\]
A 3.00 L container is filled with \(Ne_{(g)}\) at 770 mmHg at 27^{o}C. A \(0.633\;\rm{g}\) sample of \(CO_2\) vapor is then added. What is the partial pressure of \(CO_2\) and \(Ne\) in atm? What is the total pressure in the container in atm?
Solution
Step 1: Write down all given information, and convert as necessary.
Before:
 P = 770mmHg > 1.01 atm
 V = 3.00L
 n_{Ne}=?
 T = 27^{o}C > \(300\; K\)
Other Unknowns: \(n_{CO_2}\)= ?
\[n_{CO_2} = 0.633\; \rm{g} \;CO_2 \times \dfrac{1 \; \rm{mol}}{44\; \rm{g}} = 0.0144\; \rm{mol} \; CO_2\]
Step 2: After writing down all your given information, find the unknown moles of Ne.
\[n_{Ne} = \dfrac{PV}{RT}\]
\[n_{Ne} = \dfrac{(1.01\; \rm{atm})(3.00\; \rm{L})}{(0.08206\;atm\;L/mol\;K)(300\; \rm{K})}\]
\[n_{Ne} = 0.123 \; \rm{mol}\]
Because the pressure of the container before the \(CO_2\) was added contained only \(Ne\), that is your partial pressure of \(Ne\). After converting it to atm, you have already answered part of the question!
\[P_{Ne} = 1.01\; \rm{atm}\]
Step 3: Now that have pressure for Ne, you must find the partial pressure for \(CO_2\). Use the ideal gas equation.
\[ \dfrac{P_{Ne}V}{n_{Ne}RT} = \dfrac{P_{CO_2}V}{n_{CO_2}RT}\]
but because both gases share the same Volume (\(V\)) and Temperature (\(T\)) and since the Gas Constant (\(R\)) is constants, all three terms cancel and can be removed them from the equation.
\[\dfrac{P}{n_{Ne}} = \dfrac{P}{n_{CO_2}}\]
\[\dfrac{1.01 \; \rm{atm}}{0.123\; \rm{mol} \;Ne} = \dfrac{P_{CO_2}}{0.0144\; \rm{mol} \;CO_2} \]
\[P_{CO_2} = 0.118 \; \rm{atm}\]
This is the partial pressure \(CO_2\).
Step 4: Now find total pressure.
\[P_{total}= P_{Ne} + P_{CO_2}\]
\[P_{total}= 1.01 \; \rm{atm} + 0.118\; \rm{atm}\]
\[P_{total}= 1.128\; \rm{atm} \approx 1.13\; \rm{atm} \; \text{(with appropriate significant figures)} \]
References
 Laugier, Alexander; Garai, Jozef. "Derivation of the Ideal Gas Law." Journal of Chemical Education. 2007, Vol. 84, Iss. 11, pgs. 1832 1833.
 Levine, S. "Derivation of the Ideal Gas Law." Journal of Chemical Education.1985, Vol. 62, Iss. 5, pgs. 399.
 Luder, W. F. "Ideal Gas Definition." Journal of Chemistry Education. 1968, 45(5), p351 DOI:10.1021/ed045p351.1
 Petrucci, Ralph H., William S. Harwood, F. G. Herring, and Jeffry D. Madura. General Chemistry: Principles and Modern Applications. 9th ed. Upper Saddle River: Pearson Education, Inc., 2007.
 Timberlake, Karen. General Organic and Biological Chemistry. Prentice Hall, 2007.
 West, John B. "Robert Boyle’s landmark book of 1660 with the first experiments on rarified air" Journal of Applied Physiology 98:3139, 2005. doi: 10.1152/japplphysiol.00759.2004
Contributors and Attributions
 Duke LeTran (UCD)