This special section on the ideal gas law follows from the section on gas laws. You might want to begin there for a better understanding of where the ideal gas law originates. You might also benefit from reading about the kinetic molecular theory of gases.
You can learn about non-ideal gases here.
The ideal gas law has been developed from both an empirical approach and by building up a picture of gas particles from first principles in physics – the statistical mechanics approach.
It is extremely useful, but it does have limitations, which we'll discuss at the end of this section. Gases aren't "ideal," but many are ideal enough under the right conditions that the ideal gas law gives us very reliable results.
In developing the ideal gas law, we make the following assumptions that you should bear in mind while using it:
The ideal gas law takes two forms, an atomic/molecular form (top), and a molar form (bottom).
$N$ is the number of particles (atoms or molecules) and $k = 1.381 \times 10^{-23} \; J/K$ is the Boltzmann constant.
$n$ is the number of moles of a gas and $R = 8.314 \; J/mol\cdot K$ is the molar gas constant in SI units.
SI stands for Le Système International d'Unités (French), or International System of Units.
It is a standardized system of physical units based on the meter (m), kilogram (Kg), second (s), ampere (A), Kelvin (K), candela (cd), and mole (mol), along with a set of prefixes to indicate multiplication or division by a power of ten.
When using the molar gas law, $PV = nRT$, you have some choices of units. The SI unit of volume is the cubic meter ($m^3$), but that unit can be cumbersome, and the use of liters as a unit of gas volume is often favored. Likewise, the SI unit of pressure is the Pascal ($Pa$), but the atmosphere ($1 \text{ atm} = 101,325\; Pa$) is used more frequently in some fields
You can adapt to the set of units you'd like to use just by changing the gas constant. Here are the constants and the units of pressure, temperature and volume that go with them. While, when using gas laws like Charles' law and the Gay-Lussac law, it's OK to use Celsius temperatures (because they appear in ratios where the units cancel), it's important to use Kelvin temperatures in the ideal gas law.
$R = 8.314 \; J·mol^{-1}K^{-1}$
$P$ in Pascals (Pa)
$V$ in cubic meters (m3)
$T$ in Kelvin
$R = 0.0821 \; L\cdot atm\cdot mol^{-1}K^{-1}$
$P$ in atmospheres (atm)
$V$ in liters (L)
$T$ in Kelvins
How many moles of gas must be present in a gas cylinder of volume 0.01 m3 pressurized to 200 KPa at a temperature of 25˚C?
Now we rearrange the ideal gas law to solve for the number of moles. Do the rearrangement first so that we can plug numbers and units into the result an know we're on the right track:
$$PV = nRT \: \color{#E90F89}{\longrightarrow} \: n = \frac{PV}{RT}$$
The result is:
$$ \require{cancel} \begin{align} n &= \frac{(200,000 \, Pa)(0.01 \, m^3)}{(8.314 \, J \cdot mol^{-1}\cancel{K^{-1}})(298 \, \cancel{K})} \\[5pt] &= 0.807 \; \text{moles} \end{align}$$
Hopefully, you're wondering about how those units magically worked out to give us moles. Here is that equation (PV/RT) again, but this time just with units. Pascals have been expanded to their base SI units, $1\; Pa = 1 \; Kg\cdot m^{-1}\cdot s^{-2}$, and Joules likewise, $1 J = 1 \; Kg\cdot m^2\cdot s^{-2}$.
Like units have been canceled with a different color: Kg in
Calculate the temperature (in ˚C) of 3.5 moles of a gas at a pressure of 9.3 atm contained in a 10.0 liter cylinder.
$$PV = nRT \; \color{#E90F89}{\longrightarrow} \; T = \frac{PV}{nR}$$
Now our units of pressure and volume are atmospheres and liters, so using $R = 0.0821 \; L \cdot atm \cdot mol^{-1}K^{-1}$ is the best way to go.
Plugging the numbers in, we get:
$$T = \frac{(9.3 \, \cancel{atm})(10.0 \, \cancel{L})}{(3.5 \, \cancel{mol})(0.0821 \, \cancel{L} \, \cancel{atm} \, \cancel{mol^{-1}} \, K^{-1})}$$
See if you can follow the unit cancellation. Units will always tell you if you're on the right (or wrong) track. So the temperature is:
$$T = 323 \, K = 51˚ \, C$$
We converted to Celsius by subtracting 0˚C = 273.15 K.
A 1-liter water bottle is emptied and sealed on the top of a 14,000 ft. peak, at a temperature of 15˚C. At 14,000 ft., the air pressure is about 0.59 atm. (a) Calculate the number of moles of air (assume that "air" is an ideal gas). At sea level, the bottle is observed to have collapsed. This collapse is due to the difference between the outside air pressure at sea level (P = 1 atm.) and the low pressure inside the bottle. (b) Using this information, calculate the volume of the bottle at sea level.
$$PV = nRT \: \color{#E90F89}{\longrightarrow} \: n = \frac{PV}{nR}$$
Plugging in the information,
$$n = \frac{(0.59 \, \cancel{atm})(1 \, \cancel{L})}{(0.0821 \, \cancel{L} \, \cancel{atm} \, mol^{-1} \, \cancel{K^{-1}})(288 \, \cancel{K})}$$
gives
$$n = 0.025 \; \text{moles}$$
Now for part (b) we want the volume from PV = nRT:
$$PV = nRT \: \color{#E90F89}{\longrightarrow} \: V = \frac{nRT}{P}$$
Plugging in the new pressure and the rest of the information gives us:
$$ \begin{align} V &= \frac{0.025 \cancel{mol}\left( 0.0821 \, \frac{L \cdot \cancel{atm}}{\cancel{mol} \cdot \cancel{K}}\right)(288 \, \cancel{K})}{1 \, \cancel{atm}} \\[5pt] &= 0.59 \, L \end{align}$$
So the bottle loses almost half of its volume in descending to sea level from 14,000 ft.
There is another way of getting to this result, and it's somewhat simpler. Consider that the PV product for each state (high and low altitude) are given by these ideal-gas equations:
$$P_1 V_1 = nRT \: \: \color{#E90F89}{\&} \: \: P_2 V_2 = nRT$$
Because $nRT$ is the same for both, we can use the transitive property to equate the PV products
$$P_1 V_1 = P_2 V_2$$
... which is really just Boyle's law. It can be rearranged to find the final volume like this:
$$V_2 = \frac{P_1}{P_2} V_1$$
Then we see that the final volume is just the ratio of the pressures multiplied by the initial volume
$$V_2 = \frac{0.59}{1.0} V_1$$
... which gives the same result.
In chemistry, we abbreviate a common set of conditions "STP," which stands for "standard temperature and pressure."
$$ \begin{align} \text{At STP,} \: \: T &= 273.15 \, K \: (0˚C) \: \text{and} \\[5pt] P &= 1 \: atm \\[5pt] &= 101,325 \: Pa \\[5pt] &= 101.325 \: KPa \\[5pt] &= 760 \: torr \\[5pt] &= 1.013 \: bar \end{align}$$
You should memorize the meaning of STP; it's used very frequently.
What volume does one mole of gas occupy at STP?
$$PV = nRT \: \color{#E90F89}{\longrightarrow} \: V = \frac{nRT}{V}$$
Plugging in n = 1 mole, T = 273.15 K and P = 1 atm (and the appropriate gas constant, R = 0.0821 L·atm/mol·K), we get
$$V = \frac{(1.0 \, \cancel{mol})(0.0821 \frac{L \cdot \cancel{atm}}{\cancel{mol} \cdot \cancel{K}})(273.15 \cancel{K})}{1 \cancel{atm}}$$
The result is an important number, called the molar gas volume. One mole of any well-behaved (ideal) gas occupies this volume at STP:
$$V = 22.4 \: L$$
The volume of 1 mole of any gas at STP is 22.4 liters. This volume can vary if the gas or the conditions lead to non-ideal behavior.
To what volume must 2.5 moles of nitrogen gas (N2) be compressed in order to achieve a final pressure of 500 KPa at T = 300 K ?
First let's convert the pressure from KPa to atmospheres:
$$500 \, \cancel{KPa} \left( \frac{1 \, atm}{101.325 \, \cancel{KPa}} \right) = 4.935 \, atm$$
Now we can use the ideal gas law, rearranged to solve for volume:
$$PV = nRT \: \color{#E90F89}{\longrightarrow} \: V = \frac{nRT}{V}$$
$$ \begin{align} V &= \frac{(2.5 \, \cancel{mol}) \left(0.0821 \frac{L \cancel{atm}}{\cancel{mol} \cancel{K}} \right)(300 \cancel{K})}{4.935 \cancel{atm}} \\[5pt] &= \bf{12.5 \, L} \end{align}$$
The gas will have to be compressed to a volume of 12.5 L
The circumference of a basketball is 30 inches and it is inflated to a pressure of 8 pounds per square inch (psi) at room temperature (298 K). How much air (in moles) is in a properly inflated basketball ? [Hint: 1 atm. = 14.7 psi, and 1 inch = 2.54 cm].
First let's convert units so we're working in liters and atmospheres. The volume of a sphere is $V = \frac{4}{3} \pi r^3,$ and the circumference is $c = 2 \pi r,$, so the volume as a function of circumference is
$$V = \frac{4}{3} \pi r^3 = \frac{4 \pi}{3} \left( \frac{c}{2 \pi} \right)^3 = \frac{c^3}{6 \pi^2}$$
Now convert the circumference to dm because 1 L = 1 dm3:
$$30 \cancel{in} \left( \frac{2.54 \cancel{cm}}{1 \cancel{in}} \right) \left( \frac{1 \, dm}{10 \cancel{cm}} \right) = 7.62 \, dm$$
Now the volume is
$$V = \frac{c^3}{6 \pi^2} = 7.47 \, L$$
Next we need the pressure in atmospheres:
$$8 \cancel{psi} \left( \frac{1 \, atm}{14.7 \cancel{psi}} \right) = 0.544 \, atm$$
Now we can calculate the number of moles of air:
$$ \begin{align} n &= \frac{PV}{RT}\\[5pt] &= \frac{(0.544 \cancel{atm})(7.47 \cancel{L})}{(0.0821 \, \frac{\cancel{L} \cancel{atm}}{mol \, \cancel{K}})(298 \cancel{K})}\\[5pt] &= \bf{0.166 \, mol} \end{align}$$
There will be about 0.17 moles of gas inside the basketball.
Calculate the pressure, in Pa, of 25 moles of gas compressed into a volume of 1 liter at T = 298 K.
Because we want the pressure in Pascals, one way to approach the problem is to use $R = 8.314 \, Pa \, m^3/mol \cdot K.$ Then we'll have to convert the volume, 1 L, to m3, which is just 0.001 m3. So we have
$$ \begin{align} P &= \frac{nRT}{V}\\[5pt] &= \frac{(25 \cancel{mol})(8.314 \, \frac{Pa \cancel{m^3}}{\cancel{mol} \cancel{K}})(298 \cancel{K})}{0.001 \cancel{m^3}}\\[5pt] &= \bf{61,931,300 \, Pa}\\[5pt] &\approx 611 \, atm \end{align}$$
Two gas cylinders are connected by a valve, as shown. The volume of cylinder 1 is 24 L, and the volume of cylinder 2 is 18 L. If cylinder A contains 1.1 moles of gas at T = 300K and valve A is opened: (a) Calculate the pressure of the two cylinders together after their temperature is stabilized at 300K, and (b) What will happen if valve B is opened?
We'll first want to calculate the pressure in tank 1:
$$ \begin{align} P &= \frac{nRT}{V} = \frac{(0.0821 \frac{\cancel{L} \, atm}{\cancel{mol} \cancel{K}})(1.1 \cancel{mol})(300 \cancel{K})}{24 \cancel{L}} \\[5pt] &= 1.1289 \; \text{atm} \end{align}$$
Now because the temperature and number of moles will remain the same when valve A is opened, and R is a constant, we can write $P_1 V_1 = P_2 V_2,$ and solve for P2:
$$ \begin{align} P_2 &= \frac{P_1 V_1}{V_2}\\[5pt] &= \frac{(1.1289 \, atm)(24 \cancel{L})}{(24 + 18) \cancel{L}}\\[5pt] &= \bf{0.6451 \, atm}, \end{align}$$
where the final volume, V2 is the sum of the volumes of the two tanks.
If valve B is opened and we assume that the outside pressure is 1 atm., then air from outside will flow in to equalize the pressures. Eventually the gases inside and outside will mix, though this can take longer than you might think.
Two gas cylinders are connected by a valve, as in the drawing above. They are maintained at a temperature of 30˚C. The first cylinder, which has a volume of 24 L, contains 12 moles of argon (Ar) gas. The second contains 12 moles of Neon (Ne) gas. Calculate the pressure of each gas in its own cylinder with valve A closed, then calculate the pressure in both cylinders after valve A is opened.
First, recognize that 30˚C is 303 K. Then we can calculate the individual pressures, call them P1 and P2:
$$ \begin{align} P_1 &= \frac{nRT}{V} = \frac{(0.0821 \frac{\cancel{L} \, atm}{\cancel{mol} \cancel{K}})(12 \cancel{mol})(303 \cancel{K})}{24 \cancel{L}} \\[5pt] &= 12.44 \; \text{atm} \\[5pt] P_2 &= \frac{(0.0821 \frac{\cancel{L} \, atm}{\cancel{mol} \cancel{K}})(12 \cancel{mol})(303 \cancel{K})}{18 \cancel{L}} \\[5pt] &= 16.58 \; \text{atm} \end{align}$$
Now to calculate the combined pressure, we understand that we're treating each of these gases as an ideal gas (a good approximation for inert gases), so we can just add the number of moles and sum the volumes:
$$ \begin{align} P_{total} &= \frac{nRT}{V} = \frac{(0.0821 \frac{\cancel{L{} \, atm}{\cancel{mol} \cancel{K}})(12 \cancel{mol})(303 \cancel{K})}{(24 + 18) \cancel{L} \\[5pt] &= \bf{14.22 \, atm}, \end{align}$$
It makes sense that the final pressure can't be larger than that of the high-pressure tank, and it has to be greater than the low pressure tank.
A commercial cylinder of Neon (Ne) is pressurized to 151 atm. The cylinder has a diameter of 11.75 cm and a height of 140 cm. Calculate the mass (in Kg) of Ne in such a tank, assuming a constant temperature of 298 K. Unless the cylinder is pumped out with a vacuum pump, some residual gas will remain inside when it is "empty." How much gas, in grams, will remain in the tank when it's "empty" ?
First, let's calculate the volume of the tank in liters. Recall that 1 L = 1000 cm3.
$$ \begin{align} V &= \pi r^2 h = \pi \left( \frac{11.75}{2} \right)^2 \cdot 140 \, cm^3 \\[5pt] &= 15,181 \, cm^3 = 15.181 \, L \end{align}$$
Now the number of moles is:
$$ \begin{align} n &= \frac{PV}{RT} = \frac{(151 \cancel{atm})(15.181 \cancel{L})}{(0.0821 \frac{\cancel{L} \cancel{atm}}{mol \cancel{K}})(298 \cancel{K})} \\[5pt] &= 93.69 \; \text{mol} \end{align}$$
Now use the formula weight of Neon (20.1797 g/mol) to calculate the mass:
$$ \begin{align} m &= 93.69 \cancel{mol} \left( \frac{20.1797 \, g}{\cancel{mol}} \right) \\[5pt] &= 1,890 \, g = 1.89 \, Kg \end{align}$$
It's a surprisingly small mass of gas that creates so much pressure in such a volume.
Let's say you need a source of O2 gas that has a pressure of at least 20 atm. If you are limited to batches of 1.5 Kg of O2, what minimum volume of tank will you need to achieve that pressure at room temperature (298 K) ?
Ultimately, we just want to calculate a volume using the ideal gas law. In order to do that we'll need the number of grams of O2 in 1.5 Kg of O2.
$$ \begin{align} m &= 1500 \cancel{g} \left( \frac{1 \, mol}{32 \cancel{g}} \right) \\[5pt] &= 46.875 \, mol \; O_2 \end{align}$$
Now the volume is:
$$ \begin{align} V &= \frac{nRT}{P} = \frac{(46.875 \cancel{mol})(0.0821 \frac{L \cancel{atm}}{\cancel{mol} \cancel{K}})(298 \cancel{K})}{20 \cancel{atm}} \\[5pt] &= 57.3 \; \text{L} \end{align}$$
So our tank would need to have a volume less than 57.3 Liters.
What mass of krypton (Kr) gas is in a container of volume V = 0.22 m3 at a temperature of 20˚C and a pressure of 500 KPa ? Would you expect this calculation to be more or less accurate if you changed the gas to helium (He) ?
The units of our information suggest that we use the gas constant R = 8.314 m3·Pa·mol-1K-1. First calclulate the number of moles of krypton, which we're treating like an inert gas:
$$ \begin{align} n &= \frac{PV}{RT} = \frac{(500,000 \cancel{Pa})(0.22 \cancel{m^3})}{(8.314 \frac{\cancel{m^3} \cancel{Pa}}{mol \cancel{K}})(293 \cancel{K})} \\[5pt] &= 45.156 \, \text{mol} \end{align}$$
Now 1 mole of Kr has a mass of 83.798 Kg, so we have
$$m = 45.156 \cancel{mol} \left( \frac{83.798 \, g}{\cancel{mol}} \right) = 3.784 \, Kg$$
Kr is a large atom, and therefore has some attraction to other Kr atoms, reducing the pressure that we'd expect. Therefore we're likely calculating less Kr mass in the tank than is there. We don't have the same issue with helium (He) because it has no significant attraction to other He atoms.
Sometimes our assumptions of ideality break down and we have to consider the effects of those non-idealities on our calculations using the ideal gas law. A good place to start thinking about them is with the assumptions we made in the first place.
The first was that gases are spherical, basically have no size, and that the distance between them is much larger than the particle size. We know that this is not strictly true. some gases like CO2, water (H2O) and methane (CH4) are linear or bent or three-dimensional.
And for some gases, the attraction between "particles" is actually quite large, particularly at high pressure when the distance between them is significantly reduced. CO2, for example, actually liquefies at room temperature and pressures above about 100 atm – definitely not ideal gas behavior.
The second and third assumptions (see list at the top of this page) don't usually cause too much of a problem, but the fourth, that collisions with the walls of the container are perfectly-elastic, can be a problem. Sometimes gas atoms or molecules can be attracted to the walls of the container, causing energy (but not momentum) to be lost in collisions.
Finally, the sixth assumption, that collisions with the container walls are more frequent than collisions with other atoms or molecules, begins to break down when particles are large or pressures are high.
The essential root of all of the possible breakdowns of our ideal gas assumptions is that molecules actually do have size and they can exert attractive forces on each other and the walls of their container.
There are other models and patches to the ideal gas law that we can use when the ideal approximation breaks down. Those are discussed in another section.
An empirical rule or law is one that is based on experiment and observation instead of pure mathematical logic. Empirical observations inform theoretical investigations, and theory invites experiment in order to confirm, disprove or improve the theory.
In the field of statistical mechanics ("stat-mech"), we begin by considering the physics of small particles and their interactions, and then expand that behavior over large ensembles (groups) of particles using ideas from probability and statistics.
xaktly.com by Dr. Jeff Cruzan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. © 2016-2025, Jeff Cruzan. All text and images on this website not specifically attributed to another source were created by me and I reserve all rights as to their use. Any opinions expressed on this website are entirely mine, and do not necessarily reflect the views of any of my employers. Please feel free to send any questions or comments to jeff.cruzan@verizon.net.