In this section we will develop the ideal gas law from first principles, that is, by considering the behavior of individual particles in an ensemble of gas particles. "Particles" will be our generic term for atoms and/or molecules.
Before we begin, we have to realize that this is a pretty complicated task, so we have to make some approximations. That's the way we often have to move forward in science: We make approximations to come up with a simple model, then ask, if we remove the constraints of our approximations (like adding friction in projectile motion), how does our model change, and can we then add that change to it?
Our assumptions are pretty simple →
Consider some kind of container holding gas "particles." We'll call them particles, though they could be atoms, like He or Ar, or molecules, like CO2 or O2. The particles are in constant motion in three dimensions. They have a range of velocities, but there are enough of them that an average velocity is a meaningful number. Here we're looking at the container from one side.
If we look at just one gas particle with average velocity $v$, we can decompose that velocity vector into velocity $v_x$, toward the wall, and $v_y$, parallel to it. For the purpose of calculating the force on the wall, we only care about the component of $v$ perpendicular to the wall, $v_x$
If we use that velocity to calculate the momentum of the particle in the x-direction, $p_x = mv_x$, we have this simplified picture.
Now we're interested in how much force each particle exerts on the container wall as it hits it, so we'll have to let it bounce off the wall. Remember that one of our approximations is that this will be a perfectly-elastic collision — no attractive forces between particles and walls. In the picture below, the inward and outward momentum vectors are angled just a bit so they won't overlap, but it's easy to see that the change in momentum is the forward momentum minus the backward momentum (a negative number).
So the momentum change perpendicular to the wall upon bouncing off of it is $\Delta p_x = 2 p_x$.
In order to calculate the total force that any particle exerts on the container walls, it's necessary to know how often it hits a wall. More hits in a given time means more force over that time which means more pressure (remember that pressure is force divided by area).
The particle will hit any one side wall, say the left one in the figure above, after traveling a distance of $2L$, where $L$ is the distance between walls. Using the velocity definition $v$ = distance/time, we can calculate $\Delta t$.
$$\Delta t = \frac{2L}{v_x}$$
Now from our studies of momentum and impulse ($\Delta p$), we know that
$$F = \frac{\Delta p}{\Delta t}$$
where $\Delta p$ is the impulse and $\Delta t$ is the time between collisions. If $p_x = mv_x$ is the momentum in the $x$-direction we get the force of a particle on the wall as a function of its velocity, mass and the length of the container:
$$F \ \frac{\Delta p}{\Delta t} = \frac{2 mv_x}{\Delta t} = \frac{mv_x^2}{L}$$
Make sure you work through that last line to see where the 2's come from and why they cancel.
Now if we have an ensemble of N particles, each of which are bouncing off our wall with the average force (because they can all be considered to be moving with the average velocity), the total force on a wall is
$$F = \frac{N m \bar{v}_x^2}{L}$$
Here we've put a bar over the vx to indicate that we're talking about the average velocity in the x-direction.
Now in our container, there's nothing special about the x-direction, and we'd expect that the average velocities in all three dimensions would be equal
$$\bar{v}_x^2 = \bar{v}_y^2 = \bar{v}_z^2$$
Using the squares of the velocities is important because velocity is a vector, and with equal probability of moving in either of two opposite directions, the x-, y- and z-velocities would be zero if we didn't square. We can always take a root when we need to get to the velocity.
Now the Pythagorean theorem for a three-dimensional velocity vector with x-, y- and z-components is
$$\bar{v}^2 = \bar{v}_x^2 + \bar{v}_y^2 + \bar{v}_z^2$$
Now using the equivalence of the squares of the velocities, we can rewrite that as
$$\bar{v}^2 = 3 \bar{v}_x^2$$
And we can solve that for the x-component:
$$\bar{v}_x^2 = \frac{1}{3} \bar{v}^2$$
Now we can plug that into our formula for the force, to express it as a function of the average velocity – forget about components now – of the particles in the container:
$$F = \frac{Nm\bar{v}^2}{3L}$$
Now pressure is force divided by area: P = F/A, and the area of a wall of our container is A = L2. So we can convert to pressure like this:
$$P = \frac{Nm\bar{v}^2}{3L^3}$$
Now if L3 is the volume we can write the pressure as
$$P = \frac{Nm\bar{v}^2}{3V}$$
The average kinetic energy is in there
Now the average kinetic energy of a particle in our ensemble is
$$KE = \frac{1}{2} mv^2$$
and if we insert that into the pressure equation we get
$$ \begin{align} P &= \left( \frac{N}{3V} \right) \left( \frac{1}{2} mv^2 \right) \cdot 2 \\[5pt] &= \frac{2}{3} \frac{n\cdot KE}{V} \end{align}$$
Now this is a remarkable place to pause. We've just related energy, the average kinetic energy of the particles in our gas, to the pressure and volume of the gas.
That expression is usually written in terms of the pressure-volume product, like this:
$$PV = \frac{2}{3} N\cdot KE$$
The average kinetic energy of the particles of a gas is related to the product of pressure and volume $(PV)$ by
$$PV = \frac{2}{3} N \cdot KE$$
Because $N$ is just a number (no units) it follows that the product, $PV$, has units of energy.
In the early days of exploring the properties of gases, Boyle, Charles, Gay-Lussac and Clapeyron developed a few important empirical laws of gas behavior, relating pressure, temperature, volume and number of particles. The most important relationship, due to Clapeyron, showed that the product of pressure and volume $(PV)$ is proportional to the number of particles and the temperature:
$$PV = NkT$$
where $k$ is a proportionality constant known as the Boltzmann constant, $k = 1.381 \times 10^{-23} \; J/K$
The constant can be viewed merely as being there to get the units right. The product $kT$ has units of energy (Joules, J)
If we equate the theoretical and empirical formulas for $PV$,
$$PV = \frac{2}{3} N\cdot KE \; \text{ and } \; PV = NkT$$
The transitive property gives us
$$\frac{2}{3} N\cdot KE = NkT$$
Canceling the $N$'s and solving for the average kinetic energy per particle, KE gives us a remarkable result:
$$KE = \frac{3}{2} kT$$
The average kinetic energy of the particles of a gas depends only on the temperature and can be approximated, to very good measure, with this formula.
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.
The average translational kinetic energy of the atoms or molecules of a gas is
$$KE = \frac{3}{2} kT$$
where $k = 1.381 \times 10^{-23} \; J/K$ is the Boltzmann constant, and $T$ is the temperature in Kelvins.
The empirically-derived ideal gas law, $PV = NkT$ and the kinetic molecular theory of an ideal gas give us a connection between the measurable properties of gases and the average kinetic energy of the gas particles.
If we let $R$ be the Boltzmann constant multiplied by Avogadro's number,
$$ \begin{align} \left(1.38065 \times 10^{-23} \, \frac{J}{K}\right)&(6.02215 \times 10^23/mol) \\[5pt] &= 8.314 \frac{J}{mol\cdot K} \end{align}$$
We get the molar gas constant $R = 8.314 \; J/mol\cdot K$ or $8.314 J\cdot mol^{-1}·K^{-1}$.
Then the ideal gas law can be rewritten,
$$PV = nRT$$
where $n$ is the number of moles instead of the number of particles ($N$).
The ideal gas law has two forms:
where $N$ is the number of gas particles (atoms or molecules), $n$ is the number of moles, $k = 1.381 \times 10^{-23} \; J/K$ is the Boltzmann constant and $R = 8.314 \; J/mol·K$ is the molar gas constant.
Calculate the average velocity of an H2 molecule at 0˚C if the average velocity of an O2 molecule at that temperature is 490 m/s.
The kinetic energy of a molecule of gas is $KE = \frac{1}{2} mv^2$. The average KE of H2 and O2 molecules is the same at a given temperature, so we have
$$ \require{cancel} \begin{align} \cancel{\frac{1}{2}} m_{H_2} v_{H_2}^2 &= \cancel{\frac{1}{2}} m_{O_2} v_{O_2}^2 \\[5pt] m_{H_2} v_{H_2}^2 &= m_{O_2} v_{O_2}^2 \\[5pt] v_{H_2}^2 &= \frac{m_{O_2}}{m_{H_2}} v_{O_2}^2 \\[5pt] v_{H_2} &= \sqrt{\frac{m_{O_2}}{m_{H_2}}} v_{O_2} \\[5pt] &= \sqrt{\frac{32}{2}} \cdot 490 \; \frac{m}{s} \tag{*} \\[5pt] &= 1960 \; \frac{m}{s} \end{align}$$
Equation (*) contains the ratio of the masses of the molecules in grams per mole, but the mass unit doesn't matter because they cancel in this ratio anyway.
Calculate the rms speed of nitrogen molecules (N2) at 30˚C.
The root-mean-squared speed of a molecule of mass $m$ at temperature $T$ is $v_{rms} = \sqrt{\frac{3RT}{m}}$, where $R$ is the molar gas constant, $R = 8.314 \; J/mol \cdot K$.
$$ \begin{align} v_{rms} &= \sqrt{\frac{3RT}{m}} \\[5pt] &= \sqrt{\frac{3 (8.314 \; \frac{J}{\cancel{mol}\cdot \cancel{K}})(303 \cancel{K})}{28 \; \frac{\cancel{g}}{\cancel{mol}} \left( \frac{1 \; Kg}{1000 \cancel{g}} \right)}} \\[5pt] &= 519 \; \frac{m}{s} \end{align}$$
In the last step the units are $\frac{J}{Kg}$, which is $\frac{1}{\cancel{Kg}} \frac{\cancel{Kg} \cdot m^2}{s^2}$. The square root gives us the desired speed units.
Calculate the rms speed of CO2 molecules at 25˚C.
The root-mean-squared speed of a molecule of mass $m$ at temperature $T$ is $v_{rms} = \sqrt{\frac{3RT}{m}}$, where $R$ is the molar gas constant, $R = 8.314 \; J/mol \cdot K$.
$$ \begin{align} v_{rms} &= \sqrt{\frac{3RT}{m}} \\[5pt] &= \sqrt{\frac{3 (8.314 \; \frac{J}{\cancel{mol}\cdot \cancel{K}})(298 \cancel{K})}{44 \; \frac{\cancel{g}}{\cancel{mol}} \left( \frac{1 \; Kg}{1000 \cancel{g}} \right)}} \\[5pt] &= 411 \; \frac{m}{s} \end{align}$$
In the last step the units are $\frac{J}{Kg}$, which is $\frac{1}{\cancel{Kg}} \frac{\cancel{Kg} \cdot m^2}{s^2}$. The square root gives us the desired speed units.
How does an increase in the number of moles of gas at constant volume and temperature affect the pressure?
The ideal gas law is $PV=nRT$, which we can rearrange to show that the pressure is
$$P = n\frac{RT}{V}$$
Now it's clear that the pressure (volume and temperature being held constant) is proportional to the number of molecules, thus scales linearly with it.
In a mixture of sulfur dioxide (SO2) and oxygen (O2) gases, what is the ratio of the average kinetic energy of SO2 to O2? What is the ratio of the rms speeds of the two gases?
The average KE of molecules of any kind at a give temperature is the same, so we have
$$ \begin{align} \cancel{\frac{1}{2}} m_{SO_2} v_{SO_2}^2 &= \cancel{\frac{1}{2}} m_{O_2} v_{O_2}^2 \\[5pt] m_{SO_2} v_{SO_2}^2 &= m_{O_2} v_{O_2}^2 \\[5pt] \frac{v_{SO_2}^2}{v_{O_2}^2} &= \frac{m_{O_2}}{m_{SO_2}} \\[5pt] \frac{v_{SO_2}}{v_{O_2}} &= \sqrt{\frac{m_{O_2}}{m_{SO_2}}} \end{align}$$
Now the ratio of the rms velocities is
$$ \begin{align} \frac{v_{rms\; SO_2}}{v_{rms\; O_2}} &= \frac{\sqrt{\frac{\cancel{3RT}}{m_{SO_2}}}}{\sqrt{\frac{\cancel{3RT}}{m_{O_2}}}} \\[5pt] &= \sqrt{\frac{m_{O_2}}{m_{SO_2}}} \end{align}$$
The ratios are the same.
In 2015, a Stanford U. physics research group set a new record for low-temperature of a material. Using laser cooling, they got 100,000 rubidium (Rb) atoms to a temperature of 50 pK. Calculate the rms speed of the atoms and the total internal energy of the ensemble.
At 50 picoKelvins, the average KE of the atoms is
$$\begin{align} \bar{KE} &= \frac{3}{2}kT \\[5pt] &= \frac{3}{2} (1.381 \times 10^{-23}\frac{J}{\cancel{K}}) 50 \times 10^{-9} \, \cancel{K} \\[5pt] &= 2.072 \times 10^{-30} \, J \end{align}$$
Now the average velocity is
$$v = \sqrt{\frac{2KE}{m}} = \sqrt{\frac{2(2.072 \times 10^{-30} \, J)}{85.5 \, \cancel{g} \left( \frac{1 \, Kg}{1000 \cancel{g}} \right)}} = 6.96 \times 10^{-15} \, \frac{m}{s}$$
The total KE for the ensemble of 100,000 atoms is just the average KE multiplied by 100,000, or $2.072 \times 10^{-24} \, J$
In chemistry and physics, ensemble means a collection of particles – atoms and/or molecules – large enough that averages of their properties, such as speed or kinetic energy, are meaningful.
An ensemble of particles is a theoretical grouping that helps us think through how individual atoms or molecules contribute to the bulk properties of gases, liquids or solids.
The translational kinetic energy is the energy of movement in 3D space, along the x-, y- and z-directions. It does not include the kinetic energy of rotation of molecules or vibration of molecular bonds, neither of which is a factor for an ideal gas of microscopic particles.
In science, the word ensemble is often used for a small group of things, such as atoms, molecules or cells. The group size (vaguely) is more than a few and fewer than a mole.
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.