If you like us, please share us on social media, tell your friends, tell your professor or consider building or adopting a Wikitext for your course.
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.
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.
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.
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:
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.
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.
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 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 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.
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.
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.
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 
Use the following table as a reference for pressure.
Common Units of 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
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
Example 1 

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.

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.
Other things to keep in mind: Know what Standard Temperature and Pressure (STP)* is. 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.
Example 2 

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:
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}\] 
Example 3 

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:
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\] 
Example 4 

What is the density of nitrogen gas (\(N_2\)) at 248.0 Torr and 18º C? SOLUTION Step 1: Write down your given information
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\] 
Example 5 

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
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}\] 
Example 6 

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:
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)} \] 
For more general information:
For more practice worksheets:
If you are interested in the actual derivation of the ideal gas equation using advanced mathematics:
Analytical Chemistry
Biological Chemistry
Inorganic Chemistry
Organic Chemistry
Physical Chemistry
Theoretical Chemistry
Diablo Valley College
Hope College
Howard University
Purdue University
Sacramento City College
United Arab Emirates U
UC Davis
UC Irvine
General Chemistry
Analytical Chemistry
Organic Chemistry
Physical Chemistry
Theoretical Chemistry
This material is based upon work supported by the National Science Foundation under Grant Number 1246120
Unless otherwise noted, content in the UC Davis ChemWiki is licensed under a Creative Commons AttributionNoncommercialShare Alike 3.0 United States License. Permissions beyond the scope of this license may be available at copyright@ucdavis.edu. Questions and concerns can be directed toward Prof. Delmar Larsen (dlarsen@ucdavis.edu), Founder and Director. Terms of Use