Ideal Gas Law
The combined gas law shows that the pressure of a gas is inversely proportional to volume and directly proportional to temperature. Avogadro’s law shows that volume or pressure is directly proportional to the number of moles of gas. Putting these together leaves us with the following equation:
\begin{align*}\frac{P_1 \times V_1}{T_1 \times n_1}=\frac{P_2 \times V_2}{T_2 \times n_2}\end{align*}
As with the other gas laws, we can also say that \begin{align*}\frac{\left(P \times V \right)}{\left(T \times n \right)}\end{align*}
The ideal gas law is a single equation which relates the pressure, volume, temperature, and number of moles of an ideal gas. If we substitute in the variable \begin{align*}R\end{align*}
\begin{align*}\frac{P \times V}{T \times n}=R\end{align*}
The ideal gas law is conventionally rearranged to look this way, with the multiplication signs omitted:
\begin{align*}PV=nRT\end{align*}
The variable \begin{align*}R\end{align*}
Sample Problem: Ideal Gas Law
What volume is occupied by 3.760 g of oxygen gas at a pressure of 88.4 kPa and a temperature of 19°C? Assume the oxygen is ideal.
Step 1: List the known quantities and plan the problem.
Known

\begin{align*}P = 88.4 \ \text{kPa}\end{align*}
P=88.4 kPa 
\begin{align*}T = 19^\circ \text{C} = 292 \text{ K}\end{align*}
T=19∘C=292 K 
\begin{align*}\text{mass} \ O_2 = 3.760 \text{ g}\end{align*}
mass O2=3.760 g 
\begin{align*}O_2 = 32.00 \text{ g/mol}\end{align*}
O2=32.00 g/mol 
\begin{align*}R = 8.314 \text{ J/K} \cdot \text{mol}\end{align*}
R=8.314 J/K⋅mol
Unknown

\begin{align*}V = ? \text{ L}\end{align*}
V=? L
In order to use the ideal gas law, the number of moles of O_{2} \begin{align*}(n)\end{align*}
Step 2: Solve.
\begin{align*}3.760 \text{ g} \times \frac{1 \ \text{mol} \ O_2}{32.00 \text{ g} \ O_2}=0.1175 \ \text{mol} \ O_2\end{align*}
Rearrange the ideal gas law and solve for \begin{align*}V\end{align*}
\begin{align*}V=\frac{nRT}{P}=\frac{0.1175 \ \text{mol} \times 8.314 \text{ J/K} \cdot \text{mol} \times 292 \text{ K}}{88.4 \ \text{kPa}}=3.23 \text{ L } O_2\end{align*}
Step 3: Think about your result
The number of moles of oxygen is far less than one mole, so the volume should be fairly small compared to molar volume (22.4 L/mol) since the pressure and temperature are reasonably close to standard. The result has three significant figures because of the values for \begin{align*}T\end{align*} and \begin{align*}P\end{align*}. Since a joule (J) = kPa • L, the units cancel correctly, leaving a volume in liters.